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/FunctionServiceDictDao.xml

35 lines
1.6 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.FunctionServiceDictDao" >
<resultMap id="BaseResultMap" type="com.nis.domain.FunctionServiceDict" >
<id column="dict_id" property="dictId" jdbcType="INTEGER" />
<result column="function_id" property="functionId" jdbcType="INTEGER" />
<result column="protocol_id" property="protocolId" jdbcType="INTEGER" />
<result column="action" property="action" jdbcType="INTEGER" />
<result column="action_code" property="actionCode" jdbcType="VARCHAR" />
<result column="service_id" property="serviceId" jdbcType="INTEGER" />
<result column="service_name" property="serviceName" jdbcType="VARCHAR" />
<result column="service_desc" property="serviceDesc" jdbcType="VARCHAR" />
<result column="is_valid" property="isValid" jdbcType="INTEGER" />
</resultMap>
<sql id="Base_Column_List" >
dict_id, function_id, protocol_id, action,action_code, service_id, service_name,service_desc,is_valid
</sql>
<select id="getList" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from function_service_dict
where is_valid=1
<if test="functionId != null">
AND function_id = #{functionId,jdbcType=INTEGER}
</if>
<if test="protocolId != null">
AND (protocol_id=#{protocolId,jdbcType=INTEGER} or protocol_id=0)
</if>
<if test="action != null">
AND action=#{action,jdbcType=INTEGER}
</if>
</select>
</mapper>