This commit is contained in:
linfso 2025-06-18 15:04:33 +08:00
parent 58e904c23a
commit 3b35c592bf

View File

@ -209,6 +209,8 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
throw new EmisBizError(EmisBizErrorType.FAIL,"已审核!"); throw new EmisBizError(EmisBizErrorType.FAIL,"已审核!");
} }
emisWaybillAjustApply.setBlDestConfirmed("1"); emisWaybillAjustApply.setBlDestConfirmed("1");
emisWaybillAjustApply.setDestConfirmManCode(getCurrentUser().getEmpCode()); emisWaybillAjustApply.setDestConfirmManCode(getCurrentUser().getEmpCode());
@ -242,6 +244,8 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
@Override @Override
public int auditCenterPass(EmisWaybillAjustApply emisWaybillAjustApply) throws EmisBizError { public int auditCenterPass(EmisWaybillAjustApply emisWaybillAjustApply) throws EmisBizError {
boolean isDZZS=false;
// 重新从数据库取信息 // 重新从数据库取信息
emisWaybillAjustApply = emisWaybillAjustApplyMapper.selectEmisWaybillAjustApplyById(emisWaybillAjustApply.getId()); emisWaybillAjustApply = emisWaybillAjustApplyMapper.selectEmisWaybillAjustApplyById(emisWaybillAjustApply.getId());
@ -252,8 +256,23 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
emisWaybillAjustApply.setBlCenterConfirmed("1"); emisWaybillAjustApply.setBlCenterConfirmed("1");
emisWaybillAjustApply.setCenterConfirmManCode(getCurrentUser().getEmpCode()); emisWaybillAjustApply.setCenterConfirmManCode(getCurrentUser().getEmpCode());
// 判断申请人是否是[单证专属]岗位
SysUser opUser = getEmisStaffByCode(emisWaybillAjustApply.getApplyManCode());
if (opUser != null) {
// 判断申请人是否是单证专属
List<Long> postIds = postMapper.selectPostListByUserId(opUser.getUserId());
if (!CollectionUtils.isEmpty(postIds)) {
for (Long poId : postIds) {
if (poId == 18) {
isDZZS = true;
break;
}
}
}
}
// 非单证专属则判断
if(!isDZZS) {
// 获取账单状态,若账单处于非未确认状态,不允许审核 // 获取账单状态,若账单处于非未确认状态,不允许审核
List<EmisSettleSubBill> emisSettleSubBillList = getSettleSubBillListByBillCode(emisWaybillAjustApply.getBillCode()); List<EmisSettleSubBill> emisSettleSubBillList = getSettleSubBillListByBillCode(emisWaybillAjustApply.getBillCode());
if (!CollectionUtils.isEmpty(emisSettleSubBillList)) { if (!CollectionUtils.isEmpty(emisSettleSubBillList)) {
@ -305,6 +324,7 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
} }
} }
} }
}
// 运单更新 // 运单更新
JSONObject jsonObject = JSONObject.parseObject(emisWaybillAjustApply.getJsonData()); JSONObject jsonObject = JSONObject.parseObject(emisWaybillAjustApply.getJsonData());
@ -342,24 +362,9 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
// 审核通过 // 审核通过
emisWaybillAjustApplyMapper.auditCenterPass(emisWaybillAjustApply); emisWaybillAjustApplyMapper.auditCenterPass(emisWaybillAjustApply);
// 财务中心费用审核:数据部人员通过岗位登记的费用申请:修改项目“运费调整”,财务审批通过后数据直接修改不用再进行层层审核; //bug:1610 财务中心费用审核:数据部人员通过岗位登记的费用申请:修改项目“运费调整”,财务审批通过后数据直接修改不用再进行层层审核;
// 运费调整类型 // 运费调整类型
if("9".equals(emisWaybillAjustApply.getApplyType())){ if("9".equals(emisWaybillAjustApply.getApplyType())){
SysUser opUser=getEmisStaffByCode(emisWaybillAjustApply.getApplyManCode());
if(opUser!=null){
// 判断申请人是否是单证专属
boolean isDZZS=false;
List<Long> postIds=postMapper.selectPostListByUserId(opUser.getUserId());
if(!CollectionUtils.isEmpty(postIds)){
for(Long poId:postIds){
if(poId==18){
isDZZS=true;
break;
}
}
}
// 若是单证专属则自动确认账单 // 若是单证专属则自动确认账单
if(isDZZS) { if(isDZZS) {
// 自动确认账单 // 自动确认账单
@ -410,9 +415,6 @@ public class EmisWaybillAjustApplyServiceImpl extends EmisBaseService implements
} }
} }
}
return 1; return 1;
} }