| | |
| | | t_user_point tup |
| | | LEFT JOIN t_app_user tau ON tup.app_user_id = tau.id |
| | | <where> |
| | | <if test="userName != null and userName != ''"> |
| | | AND tau.`name` LIKE concat('%',#{userName},'%') |
| | | <if test="userPoint.userName != null and userPoint.userName != ''"> |
| | | AND tau.`name` LIKE concat('%',#{userPoint.userName},'%') |
| | | </if> |
| | | <if test="phone != null and phone != ''"> |
| | | AND tau.phone LIKE concat('%',#{phone},'%') |
| | | <if test="userPoint.phone != null and userPoint.phone != ''"> |
| | | AND tau.phone LIKE concat('%',#{userPoint.phone},'%') |
| | | </if> |
| | | <if test="type != null and type != ''"> |
| | | AND tup.type = #{type} |
| | | <if test="userPoint.type != null and userPoint.type != ''"> |
| | | AND tup.type = #{userPoint.type} |
| | | </if> |
| | | <if test="startTime != null and endTime != null"> |
| | | AND tup.create_time BETWEEN #{startTime} AND #{endTime} |
| | | <if test="userPoint.startTime != null and userPoint.endTime != null"> |
| | | AND tup.create_time BETWEEN #{userPoint.startTime} AND #{userPoint.endTime} |
| | | </if> |
| | | </where> |
| | | </sql> |