ZeroLiYi пре 4 месеци
родитељ
комит
88ebda2f7a

+ 3 - 4
unis-plugin/unis-plugin-biz/src/main/java/com/unis/financialSupervision/modular/fsinterestsubsidysettle/service/impl/FsInterestSubsidySettleServiceImpl.java

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