| | |
| | | <sql id="Base_Column_List"> |
| | | id, app_user_id, type, price, balance, create_time, create_user_id |
| | | </sql> |
| | | <select id="integralChangeRecord" resultType="com.ruoyi.system.vo.IntegralChangeRecordVo"> |
| | | SELECT |
| | | t.id, |
| | | t.app_user_id, |
| | | t.balance AS newIntegral, |
| | | t.old_balance AS oldIntegral, |
| | | t.create_time, |
| | | t.create_user_id, |
| | | u.profile_photo, |
| | | u.name, |
| | | u.code, |
| | | u.phone, |
| | | su.nick_name AS operatorName |
| | | FROM t_integral_change_record t |
| | | LEFT JOIN t_app_user u ON t.app_user_id = u.id |
| | | LEFT JOIN sys_user su ON su.user_id = t.create_user_id |
| | | |
| | | WHERE 1=1 |
| | | <if test="query.name != null and query.name != ''"> |
| | | AND u.name LIKE concat('%',#{query.name},'%') |
| | | </if> |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | AND u.phone LIKE concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.code != null and query.code != ''"> |
| | | AND u.code LIKE concat('%',#{query.code},'%') |
| | | </if> |
| | | order by t.create_time desc |
| | | |
| | | |
| | | </select> |
| | | <select id="integralChangeRecordExport" resultType="com.ruoyi.system.vo.IntegralChangeRecordVo"> |
| | | SELECT |
| | | t.id, |
| | | t.app_user_id, |
| | | t.balance AS newIntegral, |
| | | t.old_balance AS oldIntegral, |
| | | t.create_time, |
| | | t.create_user_id, |
| | | u.profile_photo, |
| | | u.name, |
| | | u.code, |
| | | u.phone, |
| | | su.nick_name AS operatorName |
| | | FROM t_integral_change_record t |
| | | LEFT JOIN t_app_user u ON t.app_user_id = u.id |
| | | LEFT JOIN sys_user su ON su.user_id = t.create_user_id |
| | | |
| | | WHERE 1=1 |
| | | <if test="query.name != null and query.name != ''"> |
| | | AND u.name LIKE concat('%',#{query.name},'%') |
| | | </if> |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | AND u.phone LIKE concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.code != null and query.code != ''"> |
| | | AND u.code LIKE concat('%',#{query.code},'%') |
| | | </if> |
| | | order by t.create_time desc |
| | | </select> |
| | | |
| | | </mapper> |