|
|
|
@ -37,7 +37,7 @@ public class MesNcProcessingController {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
partInspection.setOrganizeCode(AuthUtil.getOrganizeCode());
|
|
|
|
|
partInspection.setOrganizeCode(partInspection.getOrganizeCode());
|
|
|
|
|
ListPager<MesPartInspection> partInspectionListPager = ncProcessingService.queryPartInspectionByPager(partInspection, pager);
|
|
|
|
|
return ResultBean.success("查询成功").setListPager(partInspectionListPager);
|
|
|
|
|
} catch (ImppBusiException imppException) {
|
|
|
|
@ -88,6 +88,9 @@ public class MesNcProcessingController {
|
|
|
|
|
if (model.getType() == MesExtEnumUtil.NC_TYPE.REWORK.getValue()
|
|
|
|
|
|| model.getType() == MesExtEnumUtil.NC_TYPE.SCRAP.getValue()) {
|
|
|
|
|
ValidatorBean.checkNotNull(model.getPerson(), "责任人不能为空");
|
|
|
|
|
if (model.getPerson().getId() == null) {
|
|
|
|
|
throw new ImppBusiException("责任人不能为空");
|
|
|
|
|
}
|
|
|
|
|
ValidatorBean.checkNotNull(model.getInventoryLocationCode(), "区域代码不能为空");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|