|
@@ -81,7 +81,7 @@
|
|
|
|
|
|
<select id="getQf3Data" resultType="Map">
|
|
|
--欠费超过三月的数据,时间 startTime
|
|
|
- select count(1) as QF3COUNT,sum(MONEY) as QF3ZJE from OSM_T_RECORDS@yxdblink
|
|
|
+ select count(1) as QF3COUNT,sum(MONEY) as QF3ZJE from OSM_T_RECORDS@yxdblink t1
|
|
|
where ISPAYMENT=0
|
|
|
<![CDATA[ and to_char(FINANCIAL_DATE,'yyyyMM')<#{yearAndMonth} ]]>
|
|
|
</select>
|
|
@@ -89,7 +89,8 @@
|
|
|
|
|
|
<select id="getQfData" resultType="Map">
|
|
|
--欠费超过三月的数据,时间 startTime
|
|
|
- select count(distinct customer_code) as QF3COUNT,sum(MONEY) as QF3ZJE,to_char(FINANCIAL_DATE,'yyyyMM') as cwrq from OSM_T_RECORDS@yxdblink
|
|
|
+ select count(distinct customer_code) as QF3COUNT,
|
|
|
+sum(MONEY) as QF3ZJE,to_char(FINANCIAL_DATE,'yyyyMM') as cwrq from OSM_T_RECORDS@yxdblink t1
|
|
|
where ISPAYMENT=0
|
|
|
and to_char(FINANCIAL_DATE,'yyyyMM') between #{start} and #{end}
|
|
|
group by to_char(FINANCIAL_DATE,'yyyyMM')
|
|
@@ -119,26 +120,9 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="getUserYsXzAndMoney" resultType="Map">
|
|
|
- select
|
|
|
- sum(case when t1.ISPAYMENT=1 then t1.MONEY else 0 end) as je,
|
|
|
- sum(t1.MONEY) as zje,
|
|
|
- sum(t1.AMOUNT) as num
|
|
|
- from OSM_T_RECORDS@yxdblink t1
|
|
|
- inner join OSM_T_CUSTOMERS@yxdblink t2
|
|
|
- on t1.CUSTOMER_CODE=t2.CUSTOMER_CODE
|
|
|
- where to_char(t1.FINANCIAL_DATE,'yyyyMM')=to_char(ADD_MONTHS(SYSDATE, -1),'yyyyMM')
|
|
|
- <if test="typeNames!=null and typeNames.size()>0">
|
|
|
- AND t2.NATURENAME in
|
|
|
- <foreach item="item" index="index" collection="typeNames" separator="," open="(" close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- </select>
|
|
|
|
|
|
|
|
|
-
|
|
|
- <select id="getUserYsXzAndMoneyNew" resultType="Map">
|
|
|
+ <select id="getUserYsXzAndMoney" resultType="Map">
|
|
|
|
|
|
select
|
|
|
nvl(config.name,'其他') as mc,
|