|
|
@@ -39,7 +39,30 @@
|
|
|
<if test="param.sourceType != null">
|
|
|
AND cbl.source_type = #{param.sourceType}
|
|
|
</if>
|
|
|
- <if test="param.createTime != null and param.createTime.size() == 2">
|
|
|
+ <if test="param.createTime != null and param.createTime.length == 2">
|
|
|
+ AND cbl.create_time between #{param.createTime[0]} and #{param.createTime[1]}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+ <select id="exportLog" resultType="com.kxs.system.api.vo.admin.camp.CampBonusLogVO">
|
|
|
+ SELECT cbl.id, cbl.source_num, cbl.username as sourceName, cbl.source_id, cbl.user_code as sourceCode, cbl.source_type, cbl.remark, cbl.create_time, cbl.group_id, cbl.kind,
|
|
|
+ cu.username, cu.user_code,
|
|
|
+ c.title
|
|
|
+ FROM kxs_camp_bonus_log cbl
|
|
|
+ LEFT JOIN kxs_camp_user cu ON cbl.camp_user_id = cu.user_id
|
|
|
+ LEFT JOIN kxs_camp c ON cbl.camp_id = c.id
|
|
|
+ <where>
|
|
|
+ AND cbl.del_flag = 0
|
|
|
+ <if test="param.campId != null">
|
|
|
+ AND cbl.camp_id = #{param.campId}
|
|
|
+ </if>
|
|
|
+ <if test="param.userCode != null">
|
|
|
+ AND cu.user_code = #{param.userCode}
|
|
|
+ </if>
|
|
|
+ <if test="param.sourceType != null">
|
|
|
+ AND cbl.source_type = #{param.sourceType}
|
|
|
+ </if>
|
|
|
+ <if test="param.createTime != null and param.createTime.length == 2">
|
|
|
AND cbl.create_time between #{param.createTime[0]} and #{param.createTime[1]}
|
|
|
</if>
|
|
|
</where>
|