|
|
|
@ -93,6 +93,9 @@ public class RohsController { |
|
|
|
if (StringUtils.isBlank(rohs.getSite()) || StringUtils.isBlank(rohs.getReferenceNo())) { |
|
|
|
return R.error("工厂(site)和序列号(referenceNo)不能为空"); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(rohs.getProcess())) { |
|
|
|
return R.error("工艺(process)不能为空"); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(rohs.getEndCustomer())) { |
|
|
|
return R.error("最终客户(endCustomer)不能为空"); |
|
|
|
} |
|
|
|
@ -165,6 +168,9 @@ public class RohsController { |
|
|
|
if (StringUtils.isBlank(rohs.getSite()) || StringUtils.isBlank(rohs.getReferenceNo())) { |
|
|
|
return R.error("工厂(site)和序列号(referenceNo)不能为空"); |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(rohs.getProcess())) { |
|
|
|
return R.error("工艺(process)不能为空"); |
|
|
|
} |
|
|
|
String currentUserName = getCurrentUserName(); |
|
|
|
RohsEntity exists = rohsService.getDetail(rohs.getSite(), rohs.getReferenceNo()); |
|
|
|
if (exists == null) { |
|
|
|
|