🐛 处理无需赋码的情况
All checks were successful
Release / Release (push) Successful in 44s

This commit is contained in:
my_ong 2025-03-23 11:03:16 +08:00
parent f8663453d2
commit 54a2a4e089

View File

@ -155,6 +155,10 @@ public class ApplyFormController {
applyFormService.save(applyInfo.getApplyForm());
for (ApplyDetail applyDetail : applyInfo.getApplyDetails()) {
applyDetail.setApplyId(applyInfo.getApplyForm().getId());
// 如果市无须赋码的情况设置确认数量为申请数量
if (applyType == ApplyTypeEnum.LOAN_OUT && !applyDetail.getAssignRule()) {
applyDetail.setConfirmQuantity(applyDetail.getQuantity());
}
}
applyDetailService.saveBatch(applyInfo.getApplyDetails());