update:his账单明细查询页面
This commit is contained in:
@@ -41,42 +41,42 @@
|
||||
</insert>
|
||||
|
||||
<select id="findBankbillHistoryList" parameterType="HashMap" resultType="HashMap">
|
||||
select I_JYRQ
|
||||
,I_JYSJ
|
||||
,I_JZRQ
|
||||
,I_YHLSH
|
||||
,I_SHLSH
|
||||
,I_DDH
|
||||
,I_DDZT
|
||||
,I_FKFZH
|
||||
,I_FKFHM
|
||||
,I_DDJE
|
||||
,I_JYJE
|
||||
,I_SXF
|
||||
,I_JSJE
|
||||
,I_GTDM
|
||||
,I_FXK
|
||||
,I_ZFKZ
|
||||
,I_JYLX
|
||||
,I_QS
|
||||
select C_JYRQ
|
||||
,C_JYSJ
|
||||
,C_QSRQ
|
||||
,C_LSH
|
||||
,C_SHDDH
|
||||
,C_YSDDH
|
||||
,C_JYLX
|
||||
,C_CARD
|
||||
,C_FKH
|
||||
,C_JYJE
|
||||
,C_QSJE
|
||||
,C_SXF
|
||||
,C_SJZFJE
|
||||
,C_ZDH
|
||||
,C_ZFFS
|
||||
,C_KLX
|
||||
,C_JYLX
|
||||
,C_FQQS
|
||||
|
||||
|
||||
from bankbills_history
|
||||
from bankbill_history
|
||||
<where>
|
||||
<if test="startTime!=null and startTime!=''">
|
||||
and I_JYRQ >= #{startTime}
|
||||
and C_JYRQ >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime!=null and endTime!=''">
|
||||
and I_JYRQ <= #{endTime}
|
||||
and C_JYRQ <= #{endTime}
|
||||
</if>
|
||||
<if test="c_zffs!=null and c_zffs!=''">
|
||||
and I_FXK = #{c_zffs}
|
||||
and C_ZFFS = #{c_zffs}
|
||||
</if>
|
||||
<if test="likeFiled!=null and likeFiled!=''">
|
||||
and I_DDH like concat('%',concat(#{likeFiled},'%'))
|
||||
and C_YSDDH like concat('%',concat(#{likeFiled},'%'))
|
||||
</if>
|
||||
</where>
|
||||
order by I_JYRQ,I_JYSJ
|
||||
order by C_JYRQ,C_JYSJ
|
||||
</select>
|
||||
|
||||
<!--获取支付方式 -->
|
||||
@@ -195,24 +195,24 @@
|
||||
|
||||
<!--交易次数 此处查交易类型为收款的,也就是即使这笔交易退款也算交易次数-->
|
||||
<select id="findBankBillNumByTime" parameterType="HashMap" resultType="HashMap">
|
||||
select I_JYRQ, I_FXK, count(1) as num
|
||||
from bankbills_history
|
||||
where I_JYRQ >= #{startTime}
|
||||
and I_JYRQ <= #{endTime}
|
||||
and I_JYLX = '1'
|
||||
group by I_FXK, I_JYRQ
|
||||
order by I_FXK, I_JYRQ
|
||||
select C_JYRQ, C_ZFFS, count(1) as num
|
||||
from bankbill_history
|
||||
where C_JYRQ >= #{startTime}
|
||||
and C_JYRQ <= #{endTime}
|
||||
and C_JYLX = '1'
|
||||
group by C_ZFFS, C_JYRQ
|
||||
order by C_ZFFS, C_JYRQ
|
||||
</select>
|
||||
|
||||
<!-- 交易金额 此处统计所有数据计算金额 因为存在退款是退余额的情况 -->
|
||||
<select id="findBankBillMoneyByTime" parameterType="HashMap" resultType="HashMap">
|
||||
select I_JYRQ, I_FXK, sum(cast(I_JYJE as decimal(18, 2))) as money
|
||||
from bankbills_history
|
||||
where I_JYRQ >= #{startTime}
|
||||
and I_JYRQ <= #{endTime}
|
||||
select C_JYRQ, C_ZFFS, sum(cast(C_JYJE as decimal(18, 2))) as money
|
||||
from bankbill_history
|
||||
where C_JYRQ >= #{startTime}
|
||||
and C_JYRQ <= #{endTime}
|
||||
|
||||
group by I_FXK, I_JYRQ
|
||||
order by I_FXK, I_JYRQ
|
||||
group by C_ZFFS, C_JYRQ
|
||||
order by C_ZFFS, C_JYRQ
|
||||
</select>
|
||||
|
||||
<select id="findbankbillHistoryCount" parameterType="HashMap" resultType="HashMap">
|
||||
@@ -249,20 +249,20 @@
|
||||
</delete>
|
||||
|
||||
<select id="findBankbillCountData" parameterType="HashMap" resultType="HashMap">
|
||||
select count(1) as num,cast(IFNULL(sum(I_JYJE),0) as decimal(19,2)) as money
|
||||
from bankbills_history
|
||||
select count(1) as num,cast(IFNULL(sum(C_JYJE),0) as decimal(19,2)) as money
|
||||
from bankbill_history
|
||||
<where>
|
||||
<if test="startTime!=null and startTime!=''">
|
||||
and I_JYRQ >= #{startTime}
|
||||
and C_JYRQ >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime!=null and endTime!=''">
|
||||
and I_JYRQ <= #{endTime}
|
||||
and C_JYRQ <= #{endTime}
|
||||
</if>
|
||||
<if test="c_zffs!=null and c_zffs!=''">
|
||||
and I_FXK = #{c_zffs}
|
||||
and C_ZFFS = #{c_zffs}
|
||||
</if>
|
||||
<if test="likeFiled!=null and likeFiled!=''">
|
||||
and I_DDH like concat('%',concat(#{likeFiled},'%'))
|
||||
and C_YSDDH like concat('%',concat(#{likeFiled},'%'))
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user