cloudroam
2025-01-07 1d0fc6126fb664e81a1a3737d8eaf4a618e7cb0f
src/main/resources/mapper/configParam/ConfigParamGroupMapper.xml
@@ -2,17 +2,16 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.mzl.flower.mapper.configParam.ConfigParamGroupMapper">
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.mzl.flower.entity.configParam.ConfigParamGroupDO">
        <id column="id" property="id" />
        <result column="deleted" property="deleted" />
        <result column="create_by" property="createBy" />
        <result column="create_time" property="createTime" />
        <result column="update_by" property="updateBy" />
        <result column="update_time" property="updateTime" />
        <result column="param_group" property="paramGroup" />
        <result column="param_group_name" property="paramGroupName" />
        <result column="param_order" property="paramOrder" />
    </resultMap>
    <select id="queryPage" resultType="com.mzl.flower.dto.response.configParam.ConfigParamGroupVO">
        select t.* from t_config_param_group t
        where t.deleted= 0
        <if test="dto.paramGroupName != null and dto.paramGroupName != ''">
            and t.param_group_name like concat('%', #{dto.paramGroupName}, '%')
        </if>
        <if test="dto.paramGroup != null and dto.paramGroup != ''">
            and t.param_group = #{dto.paramGroup}
        </if>
        order by t.param_order
    </select>
</mapper>