ccjgmwz 3 anos atrás
pai
commit
68c40902fd

+ 1 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/CommonUserServiceImpl.java

@@ -788,6 +788,7 @@ public class CommonUserServiceImpl extends ServiceImpl<CommonUserMapper, CommonU
     }
 
     @Override
+    @Transactional
     public String saveRole(CommonStaffRole commonStaffRole){
         commonStaffRoleService.delete(new EntityWrapper<CommonStaffRole>().eq("staff_id",commonStaffRole.getStaffId())
         .eq("role_major","0"));

+ 3 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/PaymentManagementServiceImpl.java

@@ -28,6 +28,7 @@ import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.util.CollectionUtils;
 
+import java.text.DecimalFormat;
 import java.text.SimpleDateFormat;
 import java.util.*;
 import java.util.stream.Collectors;
@@ -199,6 +200,8 @@ public class PaymentManagementServiceImpl extends ServiceImpl<PaymentManagementM
                     }
                 }
                 param += qualityInspectionManagement.getBuckleMiscellaneous();
+                DecimalFormat df = new DecimalFormat("#.00");
+                param = Float.parseFloat(df.format(param));
                 paymentManagement.setParam(param );
                 paymentManagement.setWeightDeduction(param);
             }