zouxuan 3 роки тому
батько
коміт
d679a22d39

+ 3 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/FinancialExpenditureServiceImpl.java

@@ -545,7 +545,7 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
                         Objects.isNull(e.getStudentId()) ||
                         Objects.isNull(e.getVipGroupId())).count();
                 if(count > 0l){
-                    throw new BizException("参数校验失败");
+                    throw new BizException("表单信息有误,请核实");
                 }
                 for (FinancialExpenditure financialExpenditure : financialExpenditureList) {
                     ReturnFeeDto returnFeeDto = new ReturnFeeDto();
@@ -564,9 +564,10 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
             }else {
                 long count = financialExpenditureList.stream().
                         filter(e -> StringUtils.isEmpty(e.getMusicGroupId()) ||
+                        Objects.isNull(e.getAmount()) ||
                         Objects.isNull(e.getStudentId())).count();
                 if(count > 0l){
-                    throw new BizException("参数校验失败");
+                    throw new BizException("表单信息有误,请核实");
                 }
                 for (FinancialExpenditure financialExpenditure : financialExpenditureList) {
                     musicGroupService.checkDirectQuitMusicGroupOa(financialExpenditure);