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