This commit is contained in:
parent
4328fc5bac
commit
5191e10885
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user