验证代码优化
This commit is contained in:
parent
0c2861eb24
commit
14fe3d24d2
@ -64,8 +64,9 @@ public class SaasFeatureApplyServiceImpl implements SaasFeatureApplyService {
|
|||||||
saasFeatureApply.setCreateAt(now);
|
saasFeatureApply.setCreateAt(now);
|
||||||
saasFeatureApply.setUpdateAt(now);
|
saasFeatureApply.setUpdateAt(now);
|
||||||
saasFeatureApply.setCreateBy(apply.getCreateBy());
|
saasFeatureApply.setCreateBy(apply.getCreateBy());
|
||||||
saasFeatureApplyDao.save(saasFeatureApply);
|
|
||||||
List<SaasFeatureApplyDetail> details = validAndBuildApplyDetail(apply, saasFeatureApply.getId(), now);
|
List<SaasFeatureApplyDetail> details = validAndBuildApplyDetail(apply, saasFeatureApply.getId(), now);
|
||||||
|
saasFeatureApplyDao.save(saasFeatureApply);
|
||||||
|
details.forEach(e -> e.setApplyId(saasFeatureApply.getId()));
|
||||||
saasFeatureApplyDetailService.saveOrUpdate(details);
|
saasFeatureApplyDetailService.saveOrUpdate(details);
|
||||||
return saasFeatureApply.getId();
|
return saasFeatureApply.getId();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user