|
|
@ -106,22 +106,19 @@ |
|
|
|
<if test="ipAddress != null and ipAddress.length > 0"> |
|
|
|
AND fm.ip_address = #{ipAddress} |
|
|
|
</if> |
|
|
|
<if test="sourceName != null and sourceName.length > 0"> |
|
|
|
AND fy.source_name = #{sourceName} |
|
|
|
</if> |
|
|
|
<if test="payType != null"> |
|
|
|
AND fy.pay_type = #{payType} |
|
|
|
</if> |
|
|
|
<if test="sourceType != null"> |
|
|
|
AND fy.source_type = #{good} |
|
|
|
AND fy.source_type = #{sourceType} |
|
|
|
</if> |
|
|
|
<if test="startTime != null and endTime != null"> |
|
|
|
AND FROM_UNIXTIME(fy.`time`) BETWEEN #{startTime} AND #{endTime} |
|
|
|
</if> |
|
|
|
) AS subquery |
|
|
|
WHERE 1=1 |
|
|
|
<if test="room != null and room.length > 0"> |
|
|
|
AND room LIKE CONCAT('%', #{room}, '%') |
|
|
|
<if test="sourceName != null and sourceName.length > 0"> |
|
|
|
AND room LIKE CONCAT('%', #{sourceName}, '%') |
|
|
|
</if> |
|
|
|
<choose> |
|
|
|
<when test="sortField != null and sortField.length > 0 or sortOrder != null and sortOrder.length > 0"> |
|
|
@ -177,10 +174,10 @@ |
|
|
|
and fy.order_no = #{orderNo} |
|
|
|
</if> |
|
|
|
<if test="type != null and type.length > 0"> |
|
|
|
and type LIKE CONCAT('%', #{type}, '%') |
|
|
|
and content LIKE CONCAT('%', #{type}, '%') |
|
|
|
</if> |
|
|
|
<if test="ipAddress != null and ipAddress.length > 0"> |
|
|
|
and fm.ip_address = #{ipAddress} |
|
|
|
<if test="deptName != null and deptName.length > 0"> |
|
|
|
and fm.ip_address = #{deptName} |
|
|
|
</if> |
|
|
|
<if test="startTime != null and endTime != null"> |
|
|
|
and FROM_UNIXTIME(fy.`time`) BETWEEN #{startTime} AND #{endTime} |
|
|
@ -195,15 +192,15 @@ |
|
|
|
<select id="getPayIp" resultType="java.lang.String"> |
|
|
|
select DISTINCT ip_address from fx_member WHERE ip_address is not null |
|
|
|
</select> |
|
|
|
<select id="getRechargeTotal" resultType="com.example.demo.domain.dou.RechargeTotal"> |
|
|
|
<select id="getTotal" resultType="com.example.demo.domain.dou.Total"> |
|
|
|
SELECT |
|
|
|
sum(money)/50 as priceTotal, |
|
|
|
sum(money) as countTotal |
|
|
|
sum(money)/50 as price, |
|
|
|
sum(money) as count |
|
|
|
from fx_yaoqing_records as fy |
|
|
|
LEFT JOIN fx_member as fm on fy.uid = fm.id |
|
|
|
<where> |
|
|
|
`data`=0 |
|
|
|
<if test="jwcode != null"> |
|
|
|
<if test="jwcode != null and jwcode.length > 0"> |
|
|
|
and fm.jwcode = #{jwcode} |
|
|
|
</if> |
|
|
|
<if test="orderNo != null and orderNo.length > 0"> |
|
|
|