Browse Source

4.7 金币明细导出修改

Huang
huangqizhen 1 month ago
parent
commit
e82e2a677a
  1. 4
      src/main/java/com/example/demo/domain/entity/UserDetailExport.java
  2. 11
      src/main/resources/mapper/DetailYMapper.xml

4
src/main/java/com/example/demo/domain/entity/UserDetailExport.java

@ -27,10 +27,10 @@ public class UserDetailExport {
private String area;
@ExcelProperty("平台信息")
@ColumnWidth(20)
private String platformInfo;
private String consumePlatform;
@ExcelProperty("更新数量")
@ColumnWidth(20)
private BigDecimal count;
private BigDecimal gold;
@ExcelProperty("更新类型")
@ColumnWidth(20)
private Integer updateType;

11
src/main/resources/mapper/DetailYMapper.xml

@ -82,10 +82,10 @@
FROM
detail_y
<where>
<if test="num!=null">
and recharge_coin LIKE '-%'
<if test="num!=null and num.length > 0">
AND (recharge_coin LIKE '-%'
OR free_coin LIKE '-%'
OR task_coin LIKE '-%'
OR task_coin LIKE '-%')
</if>
<!-- 动态条件 -->
<if test="jwcode != null and jwcode.length > 0">
@ -247,7 +247,7 @@
</if>
</where>
</select>
<select id="searchAll" resultType="com.example.demo.domain.vo.DetailExport">
<select id="searchAll" resultType="com.example.demo.domain.entity.UserDetailExport">
SELECT
d.detaily_id,
u.name,
@ -259,7 +259,8 @@
d.task_coin,
d.free_coin,
d.create_admin,
d.create_time
d.create_time,
(d.recharge_coin+d.task_coin+d.free_coin) AS gold
FROM
detail_y d
LEFT JOIN

Loading…
Cancel
Save