Helius
2021-06-30 02b38bb7c08d68fffc6af25e4ba00a456d96e94e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xzx.gc.order.mapper.ConfigMapper">
    <resultMap id="ConfigInfoMap" type="com.xzx.gc.model.system.ConfigInfoVo">
        <result column="config_type_code" jdbcType="VARCHAR" property="configTypeCode"/>
        <result column="config_type_name" jdbcType="VARCHAR" property="configTypeName"/>
        <result column="config_value" jdbcType="VARCHAR" property="configValue"/>
        <result column="config_value_name" jdbcType="VARCHAR" property="configValueName"/>
    </resultMap>
 
    <!-- 配置信息查询 -->
    <select id="configInfoQuery" parameterType="com.xzx.gc.model.system.ConfigInfoReq" resultMap="ConfigInfoMap">
        select config_type_name,config_value,config_value_name
        from xzx_sys_config_info
        where 1=1
        <if test="configTypeCode!=null and configTypeCode!=''">
            and  config_type_code=#{configTypeCode}
        </if>
        <if test="configValue!=null and configValue!=''">
            and  config_value=#{configValue}
        </if>
    </select>
 
    <select id="queryTypeDesc" resultType="java.lang.String">
        select config_value_name
        from xzx_sys_config_info
        where config_type_code = #{type}
    </select>
 
 
 
 
        </mapper>