提交 7a346eae 作者: 刘明祎-运维用途

修改bug

上级 6a223898
流水线 #7361 已通过 于阶段
in 2 分 55 秒
package com.mmc.csf.infomation.qo; package com.mmc.csf.infomation.qo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
/** /**
* @author 张培 * @author 张培
*/ */
...@@ -16,9 +17,10 @@ public class AgreeOrRefusePilotQO { ...@@ -16,9 +17,10 @@ public class AgreeOrRefusePilotQO {
@ApiModelProperty(value = "订单id") @ApiModelProperty(value = "订单id")
private Integer requireInfoId; private Integer requireInfoId;
@ApiModelProperty(value = "同意传2 进入飞手到达现场 拒绝传 11") @ApiModelProperty(value = "同意传2 进入飞手到达现场 拒绝传 1")
private Integer serviceFlowId; private Integer serviceFlowId;
@ApiModelProperty(value = "接单飞手的user_id") @ApiModelProperty(value = "接单飞手的user_id",required = true)
@NotNull(message = "飞手id不能为空")
private Integer pilotCertificationUserId; private Integer pilotCertificationUserId;
} }
...@@ -366,7 +366,7 @@ public class RequirementsController extends BaseController { ...@@ -366,7 +366,7 @@ public class RequirementsController extends BaseController {
@ApiOperation(value = "小程序—发单方(同意/拒绝)该飞手") @ApiOperation(value = "小程序—发单方(同意/拒绝)该飞手")
@ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)}) @ApiResponses({@ApiResponse(code = 200, message = "OK", response = ResultBody.class)})
@PostMapping("agreeOrRefusePilot") @PostMapping("agreeOrRefusePilot")
public ResultBody agreeOrRefusePilot(@RequestBody AgreeOrRefusePilotQO param) { public ResultBody agreeOrRefusePilot(@Validated @RequestBody AgreeOrRefusePilotQO param) {
return requirementsService.agreeOrRefusePilot(param); return requirementsService.agreeOrRefusePilot(param);
} }
} }
\ No newline at end of file
...@@ -710,7 +710,7 @@ ...@@ -710,7 +710,7 @@
LEFT JOIN requirements_amount_update rau ON rau.requirements_info_id = ri.id LEFT JOIN requirements_amount_update rau ON rau.requirements_info_id = ri.id
WHERE ri.user_account_id = #{userAccountId} and ri.is_deleted!=1 WHERE ri.user_account_id = #{userAccountId} and ri.is_deleted!=1
<if test=" requirementsInfoId != null "> <if test=" requirementsInfoId != null ">
and ri.id=#{requirementsInfoId} and ri.father_require_id=#{requirementsInfoId}
</if> </if>
<if test="requireDescription!=null and requireDescription!='' "> <if test="requireDescription!=null and requireDescription!='' ">
and ri.require_description like CONCAT("%",#{requireDescription},"%") and ri.require_description like CONCAT("%",#{requireDescription},"%")
...@@ -747,13 +747,16 @@ ...@@ -747,13 +747,16 @@
ri.publish, ri.publish,
ri.require_num, ri.require_num,
rau.update_order_amount, rau.update_order_amount,
ri.repertory ri.repertory,
rs.pilot_certification_id,
rs.pilot_certification_user_id
FROM FROM
requirements_info ri requirements_info ri
LEFT JOIN requirements_type rt ON rt.id = ri.requirement_type_id LEFT JOIN requirements_type rt ON rt.id = ri.requirement_type_id
LEFT JOIN service_flow sf ON sf.id = ri.service_flow_id LEFT JOIN service_flow sf ON sf.id = ri.service_flow_id
LEFT JOIN requirements_amount ra ON ra.requirements_info_id = ri.id LEFT JOIN requirements_amount ra ON ra.requirements_info_id = ri.id
LEFT JOIN requirements_amount_update rau ON rau.requirements_info_id = ri.id LEFT JOIN requirements_amount_update rau ON rau.requirements_info_id = ri.id
left join requirements_service rs on ri.id = rs.requirements_info_id
WHERE ri.user_account_id = #{userAccountId} and ri.is_deleted!=1 WHERE ri.user_account_id = #{userAccountId} and ri.is_deleted!=1
and father_require_id = 0 and father_require_id = 0
<if test=" requirementsInfoId != null "> <if test=" requirementsInfoId != null ">
...@@ -1355,7 +1358,7 @@ ...@@ -1355,7 +1358,7 @@
<select id="serviceAgreePilotOrderDTO" resultMap="serviceAgreePilotOrderMap"> <select id="serviceAgreePilotOrderDTO" resultMap="serviceAgreePilotOrderMap">
select require_info_id,create_time,service_flow_id from agree_pilot_order select require_info_id,create_time,service_flow_id from agree_pilot_order
where service_flow_id = 2 and require_info_id = #{requirementsInfoId} where service_flow_id = 2 and require_info_id = #{requirementsInfoId} limit 1
</select> </select>
<select id="serviceFulfilATaskDTO" resultMap="serviceFulfilATaskMap"> <select id="serviceFulfilATaskDTO" resultMap="serviceFulfilATaskMap">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论