Explorar el Código

缺失功能:
私有应收 结算报表筛选不出未结算的数据

jiakai hace 2 meses
padre
commit
32171c0895

+ 3 - 1
tenant/organization/src/main/java/com/jzg/organization/service/impl/ReceivableServiceImpl.java

@@ -5322,7 +5322,9 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
         // 1. 先将有数据的保险公司进行汇总
         // 累计应收金额, 应收手续费(手续费)
         List<CompanySuperviseSettlementReportDto> allCompaniesIncomeDatas = baseMapper.queryCumulativeAccountsReceivable(systemCode, queryVo);
-        
+        // 结算状态在上面的sql进行过筛选了,后面就不再筛选了
+        queryVo.setStatus(null);
+
         // 车险
         if("10".equals(queryVo.getAccountsReceivable())){
             // 默认情况下,superviseFee 得到的就是车险的手续费

+ 8 - 0
tenant/organization/src/main/resources/mapper/ReceivableMapper.xml

@@ -1941,6 +1941,14 @@
             <if test="vo.agreementType != null and vo.agreementType != ''">
                 AND ipi.agreement_type = #{vo.agreementType}
             </if>
+            <if test="vo.status != null">
+                <if test="vo.status == 1">
+                    AND ipi.settlement_time IS NOT NULL
+                </if>
+                <if test="vo.status == 0">
+                    AND ipi.settlement_time IS NULL
+                </if>
+            </if>
             <if test="vo.signingStartTime != null and vo.signingStartTime != '' and vo.signingEndTime != null and vo.signingEndTime != ''">
                 AND DATE(ipi.signing_time) between #{vo.signingStartTime} and #{vo.signingEndTime}
             </if>