소스 검색

计费系统结算同步增加状态过滤

oppadmin 4 년 전
부모
커밋
8c89b95267
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      smart-city-platform/src/main/resources/mapper/ClearingRecordMapper.xml

+ 1 - 1
smart-city-platform/src/main/resources/mapper/ClearingRecordMapper.xml

@@ -227,7 +227,7 @@
 		sc_clearing_record cr
 		LEFT JOIN sc_clearing_plan cp ON ( cr.plan_id = cp.id ) 
 	WHERE
-		cr.`status` = 1
+		cr.`status` = 1 and cp.`status`=1
 	<if test="custId != null and custId != 0 ">
 		and cp.clearing_customer = #{custId}
 	</if>