| | |
| | | <sql id="Base_Column_List"> |
| | | id, del_flag, create_time, app_user_id, before_vip_id, after_vip_id, change_type |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.account.api.model.UserChangeLog"> |
| | | SELECT t1.*,t2.`name` as userName,t2.phone as userPhone |
| | | from t_user_change_log t1 |
| | | LEFT JOIN t_app_user t2 on t1.app_user_id = t2.id |
| | | <where> |
| | | <if test="userChangeLog.name !=null and userChangeLog.name !=''"> |
| | | and t2.name like concat('%',#{userChangeLog.name},'%') |
| | | </if> |
| | | <if test="userChangeLog.phone !=null and userChangeLog.phone !=''"> |
| | | and t2.phone like concat('%',#{userChangeLog.phone},'%') |
| | | </if> |
| | | <if test="userChangeLog.changeType !=null"> |
| | | and t1.change_type = #{userChangeLog.phone.changeType} |
| | | </if> |
| | | <if test="userChangeLog.localDate1 !=null"> |
| | | and DATE(t1.create_time) between #{userChangeLog.localDate1} and #{userChangeLog.localDate2} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |