| | |
| | | <sql id="Base_Column_List"> |
| | | id, clinic_id, device_code, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TCrmDeviceVO"> |
| | | select tcd.id, tcd.clinic_id, tcd.device_code, tcd.create_time, tcd.update_time, |
| | | tcd.create_by, tcd.update_by, tcd.disabled, tcc.clinic_name |
| | | from t_crm_device tcd |
| | | left join t_crm_clinic tcc on tcd.clinic_id = tcc.id |
| | | <where> |
| | | <if test="query.clinicId != null and query.clinicId != ''"> |
| | | and tcd.clinic_id = #{query.clinicId} |
| | | </if> |
| | | <if test="query.deviceCode != null and query.deviceCode != ''"> |
| | | and tcd.device_code LIKE concat('%',#{query.deviceCode},'%') |
| | | </if> |
| | | AND tcd.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tcd.create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |