diff --git a/src/main/java/com/letian/modules/production/service/DailyPlanService.java b/src/main/java/com/letian/modules/production/service/DailyPlanService.java index cc08391..cf48db4 100644 --- a/src/main/java/com/letian/modules/production/service/DailyPlanService.java +++ b/src/main/java/com/letian/modules/production/service/DailyPlanService.java @@ -3,6 +3,7 @@ package com.letian.modules.production.service; import com.letian.modules.base.entity.*; import com.letian.modules.product.entity.PartCheckData; import com.letian.modules.production.entity.*; +import org.springframework.stereotype.Service; import org.springframework.web.bind.annotation.RequestBody; import java.text.ParseException; diff --git a/src/main/java/com/letian/modules/production/service/impl/PalletServiceImpl.java b/src/main/java/com/letian/modules/production/service/impl/PalletServiceImpl.java index da34447..eeeaffd 100644 --- a/src/main/java/com/letian/modules/production/service/impl/PalletServiceImpl.java +++ b/src/main/java/com/letian/modules/production/service/impl/PalletServiceImpl.java @@ -103,6 +103,9 @@ public class PalletServiceImpl implements PalletService { } @Override public List getPalletFillDetailData(PalletFillDetailData inData){ + if("".equals(inData.getPalletNo())||inData.getPalletNo()==null){ + return new ArrayList<>(); + } return palletMapper.getPalletFillDetailData(inData); } @@ -428,6 +431,9 @@ public class PalletServiceImpl implements PalletService { // } // return palletMapper.getPalletFillDetailPartData(inData); //前面已经判断状态 + if("".equals(inData.getPalletNo())||inData.getPalletNo()==null){ + return new ArrayList<>(); + } return palletMapper.getPalletFillDetailWithPartData(inData); } @Override diff --git a/src/main/resources/mapper/base/BoardDao.xml b/src/main/resources/mapper/base/BoardDao.xml index 0482650..495a224 100644 --- a/src/main/resources/mapper/base/BoardDao.xml +++ b/src/main/resources/mapper/base/BoardDao.xml @@ -52,14 +52,14 @@ \ No newline at end of file diff --git a/src/main/resources/mapper/production/DailyPlanMapper.xml b/src/main/resources/mapper/production/DailyPlanMapper.xml index 01480f6..59fa23d 100644 --- a/src/main/resources/mapper/production/DailyPlanMapper.xml +++ b/src/main/resources/mapper/production/DailyPlanMapper.xml @@ -269,7 +269,7 @@