瀏覽代碼

Merge branch 'oa_2022-03-29' of http://git.dayaedu.com/yonge/mec into master_saas

zouxuan 3 年之前
父節點
當前提交
34f6937cf1

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

@@ -544,8 +544,8 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
                         Objects.isNull(e.getAmount()) ||
                         Objects.isNull(e.getStudentId()) ||
                         Objects.isNull(e.getVipGroupId())).count();
-                if(count > 0){
-                    new BizException("参数校验失败");
+                if(count > 0l){
+                    throw new BizException("参数校验失败");
                 }
                 for (FinancialExpenditure financialExpenditure : financialExpenditureList) {
                     ReturnFeeDto returnFeeDto = new ReturnFeeDto();
@@ -565,8 +565,8 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
                 long count = financialExpenditureList.stream().
                         filter(e -> StringUtils.isEmpty(e.getMusicGroupId()) ||
                         Objects.isNull(e.getStudentId())).count();
-                if(count > 0){
-                    new BizException("参数校验失败");
+                if(count > 0l){
+                    throw new BizException("参数校验失败");
                 }
                 for (FinancialExpenditure financialExpenditure : financialExpenditureList) {
                     musicGroupService.checkDirectQuitMusicGroupOa(financialExpenditure);