1、配置操作tag增加修改操作;2、音视频文件样例配置列表、表单界面、新增、修改功能涉及到functionService与functionRegion字典使用部分提交。

This commit is contained in:
zhangwei
2018-05-18 16:46:46 +08:00
parent ecb332df64
commit bee5dd6c05
22 changed files with 1684 additions and 594 deletions

View File

@@ -4,22 +4,29 @@
<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" property="configRegion" jdbcType="VARCHAR" />
<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" />
</resultMap>
<sql id="Base_Column_List" >
dict_id, function_id, config_region, config_district, config_desc, is_valid
dict_id, function_id, config_region_value,config_region_code, config_district, config_desc, is_valid
</sql>
<select id="getListByFunctionId" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
<select id="getList" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from function_region_dict
where function_id = #{functionId,jdbcType=INTEGER} and is_valid=1
<if test="configRegion != null and configRegion!=''">
AND config_district=#{configRegion,jdbcType=VARCHAR}
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>