🐛 修复全部盘点场景的bug
All checks were successful
Release / Release (push) Successful in 34s

This commit is contained in:
my_ong 2024-12-19 17:10:44 +08:00
parent 4328fc5bac
commit 5191e10885

View File

@ -171,8 +171,12 @@ public class ApplyFormController {
ApplyForm applyForm = applyInfo.to();
applyForm.setType(ApplyTypeEnum.AUDIT);
applyFormService.save(applyForm);
List<Material> materials = materialService.listByIds(applyInfo.getIds());
List<Material> materials;
if(applyInfo.getAuditType() == AuditTypeEnum.ALL){
materials = materialService.list();
}else{
materials = materialService.listByIds(applyInfo.getIds());
}
materials.forEach(material -> applyDetailService.save(ApplyDetail.builder()
.applyId(applyForm.getId())