|
@@ -114,12 +114,11 @@ public class EmsProdplanRoundController extends BaseRESTfulController {
|
|
|
model.setWorkprocType(model.getWorkprocType());
|
|
|
emsGmPcJh.setState("3");
|
|
|
emsGmPcJh.setReceiveTime(new Date());
|
|
|
- emsGmPcJhMapper.updateByPrimaryKeySelective(emsGmPcJh);
|
|
|
- emsProdplanRoundService.add(model);
|
|
|
EmsGmPcJh prodplan = emsGmPcJhMapper.selectByPrimaryKey(model.getParentid());
|
|
|
int a = prodplan.getPlanWeight().intValue()*2;
|
|
|
if (a>=emsProdplanRoundMapper.getPlanCount(model.getParentid()).intValue()){
|
|
|
-
|
|
|
+ emsGmPcJhMapper.updateByPrimaryKeySelective(emsGmPcJh);
|
|
|
+ emsProdplanRoundService.add(model);
|
|
|
}else {
|
|
|
return failed("请检查新增的计划!");
|
|
|
}
|
|
@@ -413,8 +412,8 @@ public class EmsProdplanRoundController extends BaseRESTfulController {
|
|
|
return failed();
|
|
|
}
|
|
|
@GetMapping("getstdchem")
|
|
|
- public RESTfulResult getstdchem(@RequestParam("workprocType") String workprocType){
|
|
|
- List<EmsProdplanRound> emsProdplanRounds = emsProdplanRoundService.getchemicalStandard(workprocType);
|
|
|
+ public RESTfulResult getstdchem(){
|
|
|
+ List<EmsProdplanRound> emsProdplanRounds = emsProdplanRoundService.getchemicalStandard();
|
|
|
return success(emsProdplanRounds);
|
|
|
}
|
|
|
|