소스 검색

考虑负金额

java110 3 년 전
부모
커밋
3143fcf997
1개의 변경된 파일과 4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

+ 4 - 4
java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml

@@ -1534,9 +1534,9 @@
         <if test="endTime !=null and endTime != ''">
             and t.create_time &lt;= #{endTime}
         </if>
-        and t.amount_owed > 0 and pf.end_time &lt; now()
+        and t.amount_owed != 0 and pf.end_time &lt; now()
         group by t.payer_obj_name ,t.fee_name ,pf.end_time ,t.create_time
-        HAVING oweAmount > 0
+        HAVING oweAmount != 0
         ) t
     </select>
 
@@ -1592,9 +1592,9 @@
         <if test="endTime !=null and endTime != ''">
             and t.create_time &lt;= #{endTime}
         </if>
-        and t.amount_owed > 0 and pf.end_time &lt; now()
+        and t.amount_owed != 0 and pf.end_time &lt; now()
         group by t.payer_obj_name ,t.fee_name ,pf.end_time ,t.update_time,pfa.`value` ,br.built_up_area
-        HAVING oweAmount > 0
+        HAVING oweAmount != 0
         order by t.payer_obj_name
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}