|
@@ -68,9 +68,19 @@ public class FsInterestSubsidySettleServiceImpl extends ServiceImpl<FsInterestSu
|
68
|
68
|
|
69
|
69
|
@Transactional(rollbackFor = Exception.class)
|
70
|
70
|
@Override
|
71
|
|
- public void add(FsInterestSubsidySettleAddParam fsInterestSubsidySettleAddParam) {
|
72
|
|
- FsInterestSubsidySettle fsInterestSubsidySettle = BeanUtil.toBean(fsInterestSubsidySettleAddParam, FsInterestSubsidySettle.class);
|
73
|
|
- this.save(fsInterestSubsidySettle);
|
|
71
|
+ public void add(List<FsInterestSubsidySettleAddParam> fsInterestSubsidySettleAddParamList) {
|
|
72
|
+ FsInterestSubsidySettle fsInterestSubsidySettle=new FsInterestSubsidySettle();
|
|
73
|
+ for (FsInterestSubsidySettleAddParam fsInterestSubsidySettleAddParam:fsInterestSubsidySettleAddParamList) {
|
|
74
|
+ if(fsInterestSubsidySettleAddParam.getId()!=null){
|
|
75
|
+ fsInterestSubsidySettle = BeanUtil.toBean(fsInterestSubsidySettleAddParam, FsInterestSubsidySettle.class);
|
|
76
|
+ this.updateById(fsInterestSubsidySettle);
|
|
77
|
+ }else{
|
|
78
|
+ fsInterestSubsidySettle = BeanUtil.toBean(fsInterestSubsidySettleAddParam, FsInterestSubsidySettle.class);
|
|
79
|
+ this.save(fsInterestSubsidySettle);
|
|
80
|
+ }
|
|
81
|
+
|
|
82
|
+ }
|
|
83
|
+
|
74
|
84
|
}
|
75
|
85
|
|
76
|
86
|
@Transactional(rollbackFor = Exception.class)
|