This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-ntc/src/main/java/com/nis/web/dao/FunctionRegionDictDao.xml

35 lines
1.7 KiB
XML

<?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.nis.web.dao.FunctionRegionDictDao" >
<resultMap id="BaseResultMap" type="com.nis.domain.FunctionRegionDict" >
<id column="dict_id" property="dictId" jdbcType="INTEGER" />
<result column="function_id" property="functionId" jdbcType="INTEGER" />
<result column="config_region_value" property="configRegionValue" jdbcType="VARCHAR" />
<result column="config_region_code" property="configRegionCode" jdbcType="INTEGER" />
<result column="config_district" property="configDistrict" jdbcType="VARCHAR" />
<result column="config_desc" property="configDesc" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
<result column="is_maat" property="isMaat" jdbcType="INTEGER" />
<result column="region_type" property="regionType" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
dict_id, function_id, config_region_value,config_region_code, config_district, config_desc, is_valid,is_maat,region_type
</sql>
<select id="getList" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from function_region_dict
where is_valid=1
<if test="functionId != null">
AND function_id = #{functionId,jdbcType=INTEGER}
</if>
<if test="configRegionValue != null and configRegionValue!=''">
AND config_region_value=#{configRegionValue,jdbcType=VARCHAR}
</if>
<if test="configRegionCode != null">
AND config_region_code=#{configRegionCode,jdbcType=VARCHAR}
</if>
</select>
</mapper>