无关风月
2025-06-06 f770f08c09b6e622242a73550b31b273f92e3444
ruoyi-system/src/main/resources/mapper/system/TLocationTypeMapper.xml
@@ -18,5 +18,15 @@
    <sql id="Base_Column_List">
        id, create_time, update_time, create_by, update_by, disabled, location_icon, location_name
    </sql>
    <select id="pageList" resultType="com.ruoyi.system.vo.system.LocationTypeListVO">
        select t1.*,count(t2.id) as locationCount from t_location_type t1
                            left join t_location t2 on t2.location_type=t1.id
        where 1=1
        <if test="query.locationName != null and query.locationName != ''">
            and t1.location_name like concat('%',#{query.locationName},'%')
        </if>
        and t1.`disabled` = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
    </select>
</mapper>