xuhy
2025-08-25 9bffc39e222d057c6ae7b268f2791628e4a42637
ruoyi-system/src/main/resources/mapper/system/TErpGoodsUnitMapper.xml
@@ -17,5 +17,17 @@
    <sql id="Base_Column_List">
        id, unit_name, create_time, update_time, create_by, update_by, disabled
    </sql>
    <select id="pageList" resultType="com.ruoyi.system.model.TErpGoodsUnit">
        select
        <include refid="Base_Column_List" />
            from t_erp_goods_unit
        <where>
            <if test="query.unitName != null and query.unitName != ''">
                AND unit_name LIKE concat('%',#{query.unitName},'%')
            </if>
            AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY create_time DESC
    </select>
</mapper>