| <?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> |