(1)修复in() sql中 使用了#导致的bug,#修改为$

(2)asn 策略组删除时判断其下有没有新增的ip,如果有,则不允许删除
This commit is contained in:
wangxin
2018-09-03 11:23:10 +08:00
parent bcba4c785d
commit bf0d81421b
10 changed files with 54 additions and 8 deletions

View File

@@ -254,7 +254,7 @@
where cfg_id = #{cfgId,jdbcType=BIGINT}
</update>
<update id="updateValid" parameterType="com.nis.domain.configuration.CfgIndexInfo" >
update cfg_index_info set is_valid=#{isValid} where cfg_id in (#{ids})
update cfg_index_info set is_valid=#{isValid} where cfg_id in (${ids})
</update>
<select id="getConfigGroupInfoList" resultType="com.nis.domain.specific.ConfigGroupInfo" parameterType="java.lang.Integer">
SELECT c.id,c.group_id,c.group_name,c.is_issued,c.insert_time,c.update_time,c.group_type FROM (