update:军保页面增加军保支付筛选
This commit is contained in:
@@ -23,7 +23,13 @@
|
||||
,ybtcAmount
|
||||
from hisbill_history
|
||||
<where>
|
||||
<if test="payType!=null and payType!=''">
|
||||
<if test="payTypeList != null and payTypeList.size() > 0">
|
||||
and PayType in
|
||||
<foreach collection="payTypeList" item="pt" open="(" separator="," close=")">
|
||||
#{pt}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="(payTypeList == null or payTypeList.size() == 0) and payType!=null and payType!=''">
|
||||
and PayType = #{payType}
|
||||
</if>
|
||||
<if test="bizType!=null and bizType!=''">
|
||||
@@ -47,7 +53,13 @@
|
||||
select count(1)
|
||||
from hisbill_history
|
||||
<where>
|
||||
<if test="payType!=null and payType!=''">
|
||||
<if test="payTypeList != null and payTypeList.size() > 0">
|
||||
and PayType in
|
||||
<foreach collection="payTypeList" item="pt" open="(" separator="," close=")">
|
||||
#{pt}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="(payTypeList == null or payTypeList.size() == 0) and payType!=null and payType!=''">
|
||||
and PayType = #{payType}
|
||||
</if>
|
||||
<if test="bizType!=null and bizType!=''">
|
||||
@@ -201,7 +213,13 @@
|
||||
,ybtcAmount
|
||||
from hisbill_history
|
||||
where trade_date=#{trade_date}
|
||||
<if test="payType!=null and payType!=''">
|
||||
<if test="payTypeList != null and payTypeList.size() > 0">
|
||||
and PayType in
|
||||
<foreach collection="payTypeList" item="pt" open="(" separator="," close=")">
|
||||
#{pt}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="(payTypeList == null or payTypeList.size() == 0) and payType!=null and payType!=''">
|
||||
and PayType = #{payType}
|
||||
</if>
|
||||
<if test="tradingStatus!=null and tradingStatus!=''">
|
||||
@@ -238,7 +256,13 @@
|
||||
select count(1) as num,cast(IFNULL(sum(Amount),0) as decimal(19,2)) as money
|
||||
from hisbill_history
|
||||
<where>
|
||||
<if test="payType!=null and payType!=''">
|
||||
<if test="payTypeList != null and payTypeList.size() > 0">
|
||||
and PayType in
|
||||
<foreach collection="payTypeList" item="pt" open="(" separator="," close=")">
|
||||
#{pt}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="(payTypeList == null or payTypeList.size() == 0) and payType!=null and payType!=''">
|
||||
and (PayType = #{payType} or PayType = CAST(#{payType} AS UNSIGNED))
|
||||
</if>
|
||||
<if test="startTime!=null and startTime!=''">
|
||||
|
||||
Reference in New Issue
Block a user