| | |
| | | <!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.ConfigParamMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.mzl.flower.entity.configParam.ConfigParamDO"> |
| | | <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_id" property="paramGroupId" /> |
| | | <result column="param_group" property="paramGroup" /> |
| | | <result column="param_group_name" property="paramGroupName" /> |
| | | <result column="param_name" property="paramName" /> |
| | | <result column="param_key" property="paramKey" /> |
| | | <result column="param_value" property="paramValue" /> |
| | | <result column="param_placeholder" property="paramPlaceholder" /> |
| | | <result column="param_tip" property="paramTip" /> |
| | | <result column="param_order" property="paramOrder" /> |
| | | <result column="param_value_type" property="paramValueType" /> |
| | | <result column="param_dict" property="paramDict" /> |
| | | |
| | | <result column="param_control_type" property="paramControlType" /> |
| | | <result column="param_require" property="paramRequire" /> |
| | | <result column="param_limit" property="paramLimit" /> |
| | | </resultMap> |
| | | |
| | | <select id="queryPage" resultType="com.mzl.flower.dto.response.configParam.ConfigParamVO"> |
| | | select t.* from t_config_param 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> |
| | | </select> |
| | | </mapper> |