From d7afa3298f137748646bcdc3626a31fc768e75a4 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 11 Dec 2025 15:52:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E6=98=AF=E5=90=A6=E6=9C=89=E7=9B=98=E7=82=B9=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=8D=95=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/NuInvoicingCgdMainServiceImpl.java | 43 ++++++++++++++++++- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/nursing-unit-invoicing/nu-invoicing-biz/src/main/java/com/nu/modules/cgd/service/impl/NuInvoicingCgdMainServiceImpl.java b/nursing-unit-invoicing/nu-invoicing-biz/src/main/java/com/nu/modules/cgd/service/impl/NuInvoicingCgdMainServiceImpl.java index 44b7a222..c06be200 100644 --- a/nursing-unit-invoicing/nu-invoicing-biz/src/main/java/com/nu/modules/cgd/service/impl/NuInvoicingCgdMainServiceImpl.java +++ b/nursing-unit-invoicing/nu-invoicing-biz/src/main/java/com/nu/modules/cgd/service/impl/NuInvoicingCgdMainServiceImpl.java @@ -22,6 +22,7 @@ import com.nu.modules.cgd.service.INuInvoicingCgdMainService; import com.nu.modules.configSuppliersInfo.entity.ConfigSuppliersInfo; import com.nu.modules.configSuppliersInfo.mapper.ConfigSuppliersInfoMapper; import com.nu.modules.invoicing.api.IInvoicingApi; +import com.nu.modules.invoicing.api.IPddApi; import com.nu.modules.nubaseinfo.entity.NuBaseInfo; import com.nu.modules.nubaseinfo.mapper.NuBaseInfoMapper; import com.nu.modules.qgd.entity.QgdInfo; @@ -105,6 +106,9 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl generatedPurchaseViewOrder(List infoEntityList) { + Map pddMap = pddApi.queryPddStartInfo(null); + if(!toBoolean(pddMap.get("success"))){ + throw new IllegalArgumentException(pddMap.get("message").toString()); + } Map map = new HashMap<>(); LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); @@ -350,10 +358,17 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl generatedPurchaserder(List cgdMainList) { + Map pddMap = pddApi.queryPddStartInfo(null); + if(!toBoolean(pddMap.get("success"))){ + throw new IllegalArgumentException(pddMap.get("message").toString()); + } Map map = new HashMap<>(); LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); String qgdDate = new SimpleDateFormat("yyyyMMdd").format(new Date()); @@ -555,6 +570,10 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl pddMap = pddApi.queryPddStartInfo(null); + if(!toBoolean(pddMap.get("success"))){ + throw new IllegalArgumentException(pddMap.get("message").toString()); + } NuInvoicingCgdMain cgdMainPar = baseMapper.selectById(cgdMainEntity.getId()); if (!"0".equals(cgdMainPar.getStatus())){ //不是待入库状态,不可进行作废操作,请刷新页面 @@ -679,6 +698,10 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl infoList,Integer maxCount) { + Map pddMap = pddApi.queryPddStartInfo(null); + if(!toBoolean(pddMap.get("success"))){ + throw new IllegalArgumentException(pddMap.get("message").toString()); + } String nuId = infoList.get(0).getNuId(); if(StringUtils.isEmpty(nuId)){ return "3";//护理单元为空 @@ -757,6 +780,10 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl pddMap = pddApi.queryPddStartInfo(null); + if(!toBoolean(pddMap.get("success"))){ + throw new IllegalArgumentException(pddMap.get("message").toString()); + } QgdInfo qgdInfo = new QgdInfo(); BeanUtils.copyProperties(info,qgdInfo); @@ -910,6 +937,11 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl pddMap = pddApi.queryPddStartInfo(null); + if(!toBoolean(pddMap.get("success"))){ + throw new IllegalArgumentException(pddMap.get("message").toString()); + } + List listqg = qgdInfoMapper.selectList(new QueryWrapper().eq("nu_id",cgdInfoEntityDto.getNuId())); if(listqg.size()>=maxCount){ return "4";//购物车最大数量为100,请购数量超出限制 @@ -1019,7 +1051,10 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl pickingInfo(CgdInfoEntity cgdInfoEntityDto) { - + Map pddMap = pddApi.queryPddStartInfo(null); + if(!toBoolean(pddMap.get("success"))){ + throw new IllegalArgumentException(pddMap.get("message").toString()); + } Map result = new HashMap<>(); LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); if(loginUser == null || StringUtils.isBlank(loginUser.getRealname())){ @@ -1210,6 +1245,10 @@ public class NuInvoicingCgdMainServiceImpl extends ServiceImpl editPrice(CgdInfoEntity cgdInfoEntityDto) { + Map pddMap = pddApi.queryPddStartInfo(null); + if(!toBoolean(pddMap.get("success"))){ + throw new IllegalArgumentException(pddMap.get("message").toString()); + } Map map = new HashMap<>(); NuInvoicingCgdInfo cgdInfo = new NuInvoicingCgdInfo(); cgdInfo.setId(cgdInfoEntityDto.getId());