| | |
| | | where app_user_id = #{appUserId} and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </select> |
| | | |
| | | |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TSysOrderPageVo"> |
| | | select t1.id,t1.create_time,t1.total_money,t2.nick_name as userName,t2.phone from t_sys_order t1 |
| | | left join t_sys_app_user t2 on t1.app_user_id = t2.id |
| | | where t1.disabled = 0 and t1.clinic_id =#{query.clinicId} |
| | | <if test="query.userName != null and query.userName != ''"> |
| | | and t2.nick_name like concat('%',#{query.userName},'%') |
| | | </if> |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | and t2.phone like concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="sTime != null and eTime != ''"> |
| | | and t1.create_time between #{sTime} and #{eTime} |
| | | </if> |
| | | order by t1.create_time desc |
| | | |
| | | </select> |
| | | |
| | | </mapper> |