From 2afa8a395a37ede04dd9e1dbaabd486121676d62 Mon Sep 17 00:00:00 2001 From: linfso Date: Thu, 19 Jun 2025 10:13:44 +0800 Subject: [PATCH] md --- .../EmisWaybillAjustApplyServiceImpl.java | 44 +++++++++++++------ 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillAjustApplyServiceImpl.java b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillAjustApplyServiceImpl.java index e9a5f7f5e..448ebec88 100644 --- a/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillAjustApplyServiceImpl.java +++ b/emis-biz/src/main/java/com/xdadan/erp/emis/service/impl/EmisWaybillAjustApplyServiceImpl.java @@ -133,7 +133,11 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements checkFirstSigningDay(emisWaybillOld, getEmisWaybillNewFromJson(emisWaybillAjustApply)); // 检查月结/现金客户额度 -// checkUseQuotaCredit(emisWaybillOld, getEmisWaybillNewFromJson(emisWaybillAjustApply)); + // bug:1657 调整后逻辑:单证部同事 员工表标识“单证专属”岗位登记的网点费用申请,不用判断 现金额度和月结客户额度 + boolean isDZZS=checkIsDZZS(emisWaybillAjustApply.getApplyManCode()); + if(!isDZZS) { + checkUseQuotaCredit(emisWaybillOld, getEmisWaybillNewFromJson(emisWaybillAjustApply)); + } // 插入数据 emisWaybillAjustApplyMapper.insertEmisWaybillAjustApply(emisWaybillAjustApply); @@ -237,6 +241,30 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements } + /** + * 判断是否单证专属 + * @param empCode + * @return + */ + private boolean checkIsDZZS(String empCode){ + boolean isDZZS=false; + SysUser opUser = getEmisStaffByCode(empCode); + if (opUser != null) { + // 判断申请人是否是单证专属 + List postIds = postMapper.selectPostListByUserId(opUser.getUserId()); + if (!CollectionUtils.isEmpty(postIds)) { + for (Long poId : postIds) { + if (poId == 18) { + isDZZS = true; + break; + } + } + } + } + + return isDZZS; + } + @Transactional @Override public int auditCenterPass(EmisWaybillAjustApply emisWaybillAjustApply) throws EmisBizError { @@ -255,19 +283,7 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements // 判断申请人是否是[单证专属]岗位 if("9".equals(emisWaybillAjustApply.getApplyType())) { - SysUser opUser = getEmisStaffByCode(emisWaybillAjustApply.getApplyManCode()); - if (opUser != null) { - // 判断申请人是否是单证专属 - List postIds = postMapper.selectPostListByUserId(opUser.getUserId()); - if (!CollectionUtils.isEmpty(postIds)) { - for (Long poId : postIds) { - if (poId == 18) { - isDZZS = true; - break; - } - } - } - } + isDZZS=checkIsDZZS(emisWaybillAjustApply.getApplyManCode()); } // 非单证专属则判断