This commit is contained in:
linfso 2025-03-12 19:13:07 +08:00
parent 4945736038
commit 6641fa5b5f

View File

@ -131,6 +131,18 @@ public class EmisWaybillProblemInfoServiceImpl extends EmisBaseService implement
emisWaybill.setBillCode(emisWaybillProblemInfo.getMainBillCode());
emisWaybillMapper.cancelProblemRegister(emisWaybill);
// 重新计算信用额度
// 重新计算信用额度 173,170,151
Integer typeId = emisWaybillProblemInfo.getProblemType();
if(typeId == 173 || typeId == 170 || typeId == 151) {
try {
EmisWaybill oldEmisWaybill=getWaybillByBillCode(emisWaybillProblemInfo.getMainBillCode());
adjustUseQuotaCredit(oldEmisWaybill, null);
} catch (EmisBizError emisBizError) {
emisBizError.printStackTrace();
}
}
}
return 1;