Commit 641cb701 authored by 罗林杰's avatar 罗林杰

修改导出

parent 05c00387
...@@ -25,7 +25,7 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> { ...@@ -25,7 +25,7 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
* @column type * @column type
* @default * @default
*/ */
@Excel(name = "1:充值 2:消费", orderNum = "0", width = 20) @Excel(name = "类型", orderNum = "0", width = 20,replace = {"充值_1","消费_2"})
private String type; private String type;
/** /**
...@@ -33,7 +33,7 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> { ...@@ -33,7 +33,7 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
* @column action_type * @column action_type
* @default * @default
*/ */
@Excel(name = "10:用户充值 11:系统充值 12:系统赠送 20:点赞 21:发动态 22:留言", orderNum = "1", width = 20) @Excel(name = "方式", orderNum = "1", width = 60,replace = {"用户充值_10","系统充值_11","系统赠送_12","点赞_20","发动态_21","留言_22","要微信联系方式_23","接收微信请求_24"})
private String actionType; private String actionType;
/** /**
...@@ -57,7 +57,7 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> { ...@@ -57,7 +57,7 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
* @column order_id * @column order_id
* @default * @default
*/ */
@Excel(name = "订单id", orderNum = "4", width = 20) @Excel(name = "订单号", orderNum = "4", width = 40)
private BigInteger orderId; private BigInteger orderId;
/** /**
...@@ -65,7 +65,6 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> { ...@@ -65,7 +65,6 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
* @column target_id * @column target_id
* @default * @default
*/ */
@Excel(name = "目标id,用户id", orderNum = "5", width = 20)
private BigInteger targetId; private BigInteger targetId;
//现在的余额 //现在的余额
...@@ -77,10 +76,12 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> { ...@@ -77,10 +76,12 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
private Integer memberId; private Integer memberId;
//用户昵称 //用户昵称
@Excel(name = "发起用户", orderNum = "5", width = 20)
@TableField(exist = false) @TableField(exist = false)
private String userNickName; private String userNickName;
//目标用户昵称 //目标用户昵称
@Excel(name = "目标用户", orderNum = "6", width = 20)
@TableField(exist = false) @TableField(exist = false)
private String targetNickName; private String targetNickName;
......
...@@ -19,31 +19,39 @@ ...@@ -19,31 +19,39 @@
</resultMap> </resultMap>
<select id="queryMemGoldCoinFlows" resultMap="BaseResultMap"> <select id="queryMemGoldCoinFlows" resultMap="BaseResultMap">
select * from mem_gold_coin_flow select mgcf.*,
mi.mem_nick_name as userNickName,
mi2.mem_nick_name as targetNickName
from mem_gold_coin_flow mgcf
left join mem_info mi on mi.user_id = mgcf.create_by
left join mem_info mi2 on mi2.user_id = mgcf.target_id
where 1=1 where 1=1
and del_flag = '0' and mgcf.del_flag = '0'
<if test="entity.flag !=null and entity.flag != '' "> <if test="entity.beginTime !=null and entity.beginTime != '' ">
and flag = #{entity.flag} and mgcf.create_date &gt;= #{entity.beginTime}
</if> </if>
<if test="entity.type !=null and entity.type != '' "> <if test="entity.endTime !=null and entity.endTime != '' ">
and type = #{entity.type} and mgcf.create_date &lt;= #{entity.endTime}
</if> </if>
<if test="entity.actionType !=null and entity.actionType != '' "> <if test="entity.targetId !=null and entity.targetId != '' ">
and action_type = #{entity.actionType} and mgcf.create_by = #{entity.targetId}
</if> </if>
<if test="entity.count !=null and entity.count != '' "> <if test="entity.orderId !=null">
and count = #{entity.count} and mgcf.order_id like concat('%',#{entity.orderId},'%')
</if> </if>
<if test="entity.endCount !=null and entity.endCount != '' "> <if test="entity.type !=null and entity.type != '' ">
and end_count = #{entity.endCount} and mgcf.type = #{entity.type}
</if> </if>
<if test="entity.orderId !=null and entity.orderId != '' "> <if test="entity.actionType !=null and entity.actionType != '' ">
and order_id = #{entity.orderId} and mgcf.action_type = #{entity.actionType}
</if> </if>
<if test="entity.targetId !=null and entity.targetId != '' "> <if test="entity.userNickName !=null and entity.userNickName != '' ">
and target_id = #{entity.targetId} and mi.mem_nick_name like concat('%',#{entity.userNickName},'%')
</if> </if>
ORDER BY business_id DESC <if test="entity.targetNickName !=null and entity.targetNickName != '' ">
and mi2.mem_nick_name like concat('%',#{entity.targetNickName},'%')
</if>
ORDER BY mgcf.business_id DESC
</select> </select>
<select id="queryGoldCoinFlowsPaged" resultType="org.rcisoft.business.memGoldCoinFlow.entity.MemGoldCoinFlow"> <select id="queryGoldCoinFlowsPaged" resultType="org.rcisoft.business.memGoldCoinFlow.entity.MemGoldCoinFlow">
...@@ -74,7 +82,10 @@ ...@@ -74,7 +82,10 @@
and mgcf.action_type = #{entity.actionType} and mgcf.action_type = #{entity.actionType}
</if> </if>
<if test="entity.userNickName !=null and entity.userNickName != '' "> <if test="entity.userNickName !=null and entity.userNickName != '' ">
and su.nick_name like concat('%',#{entity.userNickName},'%') and mi.mem_nick_name like concat('%',#{entity.userNickName},'%')
</if>
<if test="entity.targetNickName !=null and entity.targetNickName != '' ">
and mi2.mem_nick_name like concat('%',#{entity.targetNickName},'%')
</if> </if>
ORDER BY mgcf.business_id DESC ORDER BY mgcf.business_id DESC
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment