| | |
| | | <sql id="Base_Column_List"> |
| | | id, create_time, update_time, create_by, update_by, disabled, location_code, location_name, project_id, location_leader, location_cleaner, location_type, location_address, location_lon, location_lat |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.system.LocationListVO"> |
| | | select t1.*,t2.name as locationTypeName,t3.cleaner_name as cleanerName from t_location t1 |
| | | left join t_location_type t2 on t1.location_type = t2.id |
| | | left join t_cleaner t3 on t1.location_cleaner = t3.id |
| | | where 1=1 |
| | | <if test="query.locationName != null and query.locationName != ''"> |
| | | and t1.location_name like concat('%', #{query.locationName}, '%') |
| | | </if> |
| | | <if test="query.locationCode != null and query.locationCode != ''"> |
| | | and t1.location_code like concat('%', #{query.locationCode}, '%') |
| | | </if> |
| | | <if test="query.locationType != null and query.locationType != ''"> |
| | | and t1.location_type = #{query.locationType} |
| | | </if> |
| | | <if test="query.projectId != null and query.projectId != ''"> |
| | | and t1.project_id = #{query.projectId} |
| | | </if> |
| | | <if test="query.locationCleaner != null and query.locationCleaner != ''"> |
| | | and t1.location_cleaner = #{query.locationCleaner} |
| | | </if> |
| | | and t1.disabled = = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | |
| | | </select> |
| | | |
| | | </mapper> |