This commit is contained in:
parent
4328fc5bac
commit
5191e10885
@ -171,8 +171,12 @@ public class ApplyFormController {
|
|||||||
ApplyForm applyForm = applyInfo.to();
|
ApplyForm applyForm = applyInfo.to();
|
||||||
applyForm.setType(ApplyTypeEnum.AUDIT);
|
applyForm.setType(ApplyTypeEnum.AUDIT);
|
||||||
applyFormService.save(applyForm);
|
applyFormService.save(applyForm);
|
||||||
|
List<Material> materials;
|
||||||
List<Material> materials = materialService.listByIds(applyInfo.getIds());
|
if(applyInfo.getAuditType() == AuditTypeEnum.ALL){
|
||||||
|
materials = materialService.list();
|
||||||
|
}else{
|
||||||
|
materials = materialService.listByIds(applyInfo.getIds());
|
||||||
|
}
|
||||||
|
|
||||||
materials.forEach(material -> applyDetailService.save(ApplyDetail.builder()
|
materials.forEach(material -> applyDetailService.save(ApplyDetail.builder()
|
||||||
.applyId(applyForm.getId())
|
.applyId(applyForm.getId())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user