Prechádzať zdrojové kódy

财务金额查询调整

wangqiang 2 rokov pred
rodič
commit
3376bbf573

+ 1 - 1
jeeplus-modules/jeeplus-finance/src/main/java/com/jeeplus/finance/contractRegistration/service/ContractInfoService.java

@@ -117,7 +117,7 @@ public class ContractInfoService {
             if (StringUtils.isNotBlank(contractAmounts[0])) {
                 wrapper.ge("a.contract_amount",contractAmounts[0]);
             }
-            if (StringUtils.isNotBlank(contractAmounts[1])) {
+            if (contractAmounts.length>1 && StringUtils.isNotBlank(contractAmounts[1])) {
                 wrapper.le("a.contract_amount", contractAmounts[1]);
             }
         }

+ 1 - 1
jeeplus-modules/jeeplus-finance/src/main/java/com/jeeplus/finance/projectReport/service/CwProjectReportService.java

@@ -471,7 +471,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
             if (StringUtils.isNotEmpty(contractAmounts[0])) {
                 queryWrapper.ge("a.audit_fees",contractAmounts[0]);
             }
-            if (StringUtils.isNotEmpty(contractAmounts[1])) {
+            if (contractAmounts.length>1 && StringUtils.isNotEmpty(contractAmounts[1])) {
                 queryWrapper.le("a.audit_fees", contractAmounts[1]);
             }
         }

+ 1 - 1
jeeplus-modules/jeeplus-finance/src/main/java/com/jeeplus/finance/reimbursementApproval/approvalInfo/service/CwReimbursementInfoService.java

@@ -159,7 +159,7 @@ public class CwReimbursementInfoService {
                         .or().ge("b5.number", Double.parseDouble(dto.getAmounts()[0]))
                 );
             }
-            if (StringUtils.isNotEmpty(dto.getAmounts()[1])) {
+            if (dto.getAmounts().length>1 && StringUtils.isNotEmpty(dto.getAmounts()[1])) {
                 queryWrapper.and(w ->
                     w.le("b.number", Double.parseDouble(dto.getAmounts()[1]))
                         .or().le("b2.number", Double.parseDouble(dto.getAmounts()[1]))