From 96949649be9af0c267063e9d66c2151237bf5ca9 Mon Sep 17 00:00:00 2001 From: ruanqi Date: Thu, 27 Oct 2022 10:10:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E8=AE=A1=E5=88=92=E6=8E=92=E4=BA=A7?= =?UTF-8?q?=20=20=E6=97=A5=E8=AE=A1=E5=88=92=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../production/service/DailyPlanService.java | 1 + .../service/impl/PalletServiceImpl.java | 6 ++++++ src/main/resources/mapper/base/BoardDao.xml | 16 ++++++++-------- .../mapper/production/DailyPlanMapper.xml | 2 +- 4 files changed, 16 insertions(+), 9 deletions(-) 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 @@