|
@@ -463,10 +463,14 @@ public class ApsProductionOrderServiceImpl extends ServiceImpl<ApsProductionOrde
|
|
|
*/
|
|
|
for (ApsProductDetailVo apsProductDetailVo : apsProductDetailVoList) {
|
|
|
if (apsProductDetailVo.getDeleted().equals("0")) {
|
|
|
- if (apsProductDetailVo.getNotyetreview().equals("否") && (ObjectUtil.isEmpty(apsProductDetailVo.getPlanout()) || apsProductDetailVo.getPlanout().toString().equals("0"))) {
|
|
|
+ String notyetreview = "否";
|
|
|
+ if (StringUtils.isNotBlank(apsProductDetailVo.getNotyetreview())) {
|
|
|
+ notyetreview = apsProductDetailVo.getNotyetreview();
|
|
|
+ }
|
|
|
+ if (notyetreview.equals("否") && (ObjectUtil.isEmpty(apsProductDetailVo.getPlanout()) || apsProductDetailVo.getPlanout().toString().equals("0"))) {
|
|
|
return R.error("订单产品 " + apsProductDetailVo.getInputmaterialdescription() + "坯料计划未填写");
|
|
|
}
|
|
|
- if (apsProductDetailVo.getNotyetreview().equals("是") && ObjectUtil.isNotEmpty(apsProductDetailVo.getPlanout()) && !apsProductDetailVo.getPlanout().toString().equals("0")) {
|
|
|
+ if (notyetreview.equals("是") && ObjectUtil.isNotEmpty(apsProductDetailVo.getPlanout()) && !apsProductDetailVo.getPlanout().toString().equals("0")) {
|
|
|
return R.error("订单产品 " + apsProductDetailVo.getInputmaterialdescription() + "暂不评审,不应该填写坯料计划");
|
|
|
}
|
|
|
}
|