|
|
@@ -11,6 +11,7 @@ import shop.alien.entity.store.vo.LawyerConsultationOrderVO;
|
|
|
import shop.alien.store.service.LawyerConsultationOrderService;
|
|
|
import shop.alien.util.myBaticsPlus.QueryBuilder;
|
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -166,5 +167,46 @@ public class LawyerConsultationOrderController {
|
|
|
lawyerId, question, sessionId, clientUserId, problemScenarId);
|
|
|
return consultationOrderService.startConsultation(lawyerId, question, sessionId, clientUserId, problemScenarId);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("立即咨询")
|
|
|
+ @ApiOperationSupport(order = 9)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "clientUserId", value = "客户端用户ID", dataType = "Integer", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "lawyerUserId", value = "律师用户ID", dataType = "Integer", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "problemScenarioId", value = "法律问题场景ID", dataType = "Integer", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "problemDescription", value = "问题描述", dataType = "String", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "orderAmount", value = "订单金额,单位分", dataType = "Decimal", paramType = "query"),
|
|
|
+// @ApiImplicitParam(name = "lawyerName", value = "律师姓名(支持模糊查询,关联查询)", dataType = "String", paramType = "query"),
|
|
|
+// @ApiImplicitParam(name = "consultationFee", value = "咨询费用,单位分", dataType = "Integer", paramType = "query"),
|
|
|
+// @ApiImplicitParam(name = "startTime", value = "咨询开始时间", dataType = "Date", paramType = "query"),
|
|
|
+// @ApiImplicitParam(name = "endTime", value = "咨询结束时间", dataType = "Date", paramType = "query"),
|
|
|
+// @ApiImplicitParam(name = "validityPeriod", value = "订单有效期", dataType = "Date", paramType = "query"),
|
|
|
+// @ApiImplicitParam(name = "orderStatus", value = "订单状态, 0:待支付, 1:已支付, 2:进行中, 3:已完成, 4:已取消", dataType = "Integer", paramType = "query"),
|
|
|
+// @ApiImplicitParam(name = "paymentStatus", value = "支付状态, 0:未支付, 1:已支付", dataType = "Integer", paramType = "query"),
|
|
|
+ })
|
|
|
+ @PostMapping("/consultNow")
|
|
|
+ public R<LawyerConsultationOrder> startConsultation(Integer clientUserId,Integer lawyerUserId,Integer problemScenarioId ,String problemDescription , BigDecimal orderAmount) {
|
|
|
+ log.info("LawyerConsultationOrderController.consultNow?clientUserId={},lawyerUserId={},problemScenarioId={},problemScenarioId={},orderAmount{}",
|
|
|
+ clientUserId, lawyerUserId, problemScenarioId, problemDescription, orderAmount);
|
|
|
+ return consultationOrderService.consultNow(clientUserId, lawyerUserId, problemScenarioId, problemDescription, orderAmount);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("是否支付成功更改订单表状态")
|
|
|
+ @ApiOperationSupport(order = 10)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "id", value = "律师订单表id", dataType = "Integer", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "paymentStatus", value = "支付状态, 0:未支付, 1:已支付", dataType = "Integer", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "orderStatus", value = "订单状态, 0:待支付, 1:已支付, 2:进行中, 3:已完成, 4:已取消", dataType = "Integer", paramType = "query"),
|
|
|
+ })
|
|
|
+ @PostMapping("/payStatus")
|
|
|
+ public R<LawyerConsultationOrder> payStatus(Integer id,Integer paymentStatus,Integer orderStatus) {
|
|
|
+ log.info("LawyerConsultationOrderController.consultNow?id{},paymentStatus{},orderStatus{}",
|
|
|
+ id, paymentStatus, orderStatus);
|
|
|
+ return consultationOrderService.payStatus(id, paymentStatus, orderStatus);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|