分组配置增加以ud_flag字段标识状态
This commit is contained in:
@@ -17,5 +17,7 @@ public interface CommonGroupManageDao extends CrudDao<CommonGroupInfo> {
|
||||
List<CommonGroupInfo> findCommonGroupInfosByType(int groupType);
|
||||
|
||||
List<CommonGroupInfo> findGroupInfoList(@Param("ids")String ids);
|
||||
|
||||
void updateGroupStatus(@Param("serviceGroupId")String serviceGroupId, @Param("udFlag")Integer udFlag, @Param("groupType")Integer groupType);
|
||||
|
||||
}
|
||||
@@ -172,4 +172,12 @@
|
||||
r.group_id IN (${ids})
|
||||
</select>
|
||||
|
||||
<update id="updateGroupStatus">
|
||||
UPDATE
|
||||
policy_group_info
|
||||
SET
|
||||
ud_flag = #{udFlag,jdbcType=INTEGER}
|
||||
WHERE
|
||||
service_group_id IN (${serviceGroupId}) AND group_type = #{groupType}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -489,9 +489,6 @@
|
||||
<if test="cfgRegionCode != null " >
|
||||
CFG_REGION_CODE = #{cfgRegionCode,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userRegion1 != null and userRegion1 != ''" >
|
||||
USER_REGION1 = #{userRegion1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userRegion2 != null and userRegion2 != ''" >
|
||||
USER_REGION2 = #{userRegion2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
FROM
|
||||
url_comm_cfg r
|
||||
WHERE
|
||||
r.user_region3 IN(${ids}) AND r.is_valid != -1
|
||||
r.group_id IN(${ids}) AND r.is_valid != -1
|
||||
</select>
|
||||
|
||||
<insert id="insertUrlCommGroupCfg" parameterType="com.nis.domain.basics.UrlCommCfg">
|
||||
@@ -358,9 +358,6 @@
|
||||
<if test="groupId != null">
|
||||
group_id = #{groupId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="userRegion1 != null and userRegion1 != ''" >
|
||||
user_region1 = #{userRegion1,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userRegion2 != null and userRegion2 != ''" >
|
||||
user_region2 = #{userRegion2,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user