Browse Source

4.26 修复金豆充值明细地区查询页面

Huang
huangqizhen 3 weeks ago
parent
commit
8f62f0305c
  1. 1
      src/main/java/com/example/demo/domain/dou/Total.java
  2. 2
      src/main/java/com/example/demo/serviceImpl/OtherServiceImpl.java
  3. 14
      src/main/resources/mapper/StatisticsMapper.xml
  4. 4
      src/main/resources/mapperLink/DouMapper.xml

1
src/main/java/com/example/demo/domain/dou/Total.java

@ -17,6 +17,7 @@ public class Total {
private String orderNo;
private String type;
private String ipAddress;
private String deptName;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date startTime;

2
src/main/java/com/example/demo/serviceImpl/OtherServiceImpl.java

@ -98,9 +98,9 @@ public class OtherServiceImpl implements OtherService {
typesToUpdateOne.add("43");
typesToUpdateOne.add("50");
typesToUpdateOne.add("51");
typesToUpdateOne.add("52");
typesToUpdateOne.add("62");
typesToUpdateTwo.add("52");
typesToUpdateTwo.add("55");
typesToUpdateTwo.add("56");
typesToUpdateTwo.add("57");

14
src/main/resources/mapper/StatisticsMapper.xml

@ -124,4 +124,18 @@
</if>
GROUP BY DATE_FORMAT(create_time, '%Y-%m-%d')
</select>
<select id="getMediuPayCoinday" resultType="com.example.demo.domain.vo.SumCoin">
SELECT
DATE_FORMAT(create_time, '%Y-%m-%d') AS day,
IFNULL(SUM(recharge_coin) / 100, 0) AS rechargeSumCoin,
IFNULL(SUM(free_coin) / 100, 0) AS freeSumCoin,
IFNULL(SUM(task_coin) / 100, 0) AS taskSumCoin
FROM
detail_y
WHERE
DATE(create_time) = #{searchEndTime}
AND update_type = #{updateType}
GROUP BY
DATE_FORMAT(create_time, '%Y-%m-%d')
</select>
</mapper>

4
src/main/resources/mapperLink/DouMapper.xml

@ -209,8 +209,8 @@
<if test="type != null and type.length > 0">
and type 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}

Loading…
Cancel
Save