计划的bug修改

highway
zhaoxiaolin 1 year ago
parent c2caaab2f8
commit 4e194119a6

@ -143,7 +143,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectProOrderByOrderCode" parameterType="String" resultMap="ProOrderResult"> <select id="selectProOrderByOrderCode" parameterType="String" resultMap="ProOrderResult">
<include refid="selectProOrderVo"/> <include refid="selectProOrderVo"/>
where order_code like concat('%', #{orderCode}, '%') and del_flag = '0' where order_code = #{orderCode} and del_flag = '0'
</select> </select>
<select id="selectChildProOrderCodeByCode" resultType="java.lang.String"> <select id="selectChildProOrderCodeByCode" resultType="java.lang.String">

@ -86,9 +86,9 @@ public class ProRouteProcessController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody ProRouteProcess proRouteProcess) public AjaxResult add(@RequestBody ProRouteProcess proRouteProcess)
{ {
if(!proRouteProcessService.checkOrderNumExists(proRouteProcess)){ // if(!proRouteProcessService.checkOrderNumExists(proRouteProcess)){
return AjaxResult.error("序号已存在!"); // return AjaxResult.error("序号已存在!");
} // }
if(!proRouteProcessService.checkProcessExists(proRouteProcess)){ if(!proRouteProcessService.checkProcessExists(proRouteProcess)){
return AjaxResult.error("不能重复添加工序!"); return AjaxResult.error("不能重复添加工序!");
} }
@ -130,9 +130,9 @@ public class ProRouteProcessController extends BaseController
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody ProRouteProcess proRouteProcess) public AjaxResult edit(@RequestBody ProRouteProcess proRouteProcess)
{ {
if(!proRouteProcessService.checkOrderNumExists(proRouteProcess)){ // if(!proRouteProcessService.checkOrderNumExists(proRouteProcess)){
return AjaxResult.error("序号已存在!"); // return AjaxResult.error("序号已存在!");
} // }
if(!proRouteProcessService.checkProcessExists(proRouteProcess)){ if(!proRouteProcessService.checkProcessExists(proRouteProcess)){
return AjaxResult.error("不能重复添加工序!"); return AjaxResult.error("不能重复添加工序!");
} }

Loading…
Cancel
Save