验证代码优化

This commit is contained in:
yangsong 2023-10-10 16:35:12 +08:00
parent 0c2861eb24
commit 14fe3d24d2

View File

@ -64,8 +64,9 @@ public class SaasFeatureApplyServiceImpl implements SaasFeatureApplyService {
saasFeatureApply.setCreateAt(now);
saasFeatureApply.setUpdateAt(now);
saasFeatureApply.setCreateBy(apply.getCreateBy());
saasFeatureApplyDao.save(saasFeatureApply);
List<SaasFeatureApplyDetail> details = validAndBuildApplyDetail(apply, saasFeatureApply.getId(), now);
saasFeatureApplyDao.save(saasFeatureApply);
details.forEach(e -> e.setApplyId(saasFeatureApply.getId()));
saasFeatureApplyDetailService.saveOrUpdate(details);
return saasFeatureApply.getId();
}