Browse Source

考虑负金额

java110 3 years ago
parent
commit
3143fcf997

+ 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}