|
|
@ -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("不能重复添加工序!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|