feat: There is no way the

This commit is contained in:
super_liu
2021-11-03 13:00:33 +08:00
parent 8af54bab9c
commit 869bcdbad8
6 changed files with 106 additions and 12 deletions
@@ -159,11 +159,14 @@
<select id="selectMenuByMenuParentId" resultMap="BaseResultMap" parameterType="com.adc.da.base.page.BasePage">
select <include refid="Base_Column_List"/> from SAR_LAWS_MENU
where laws_id = #{lawsId} and valid_flag=0
and MENU_ID in (select SAR_MENU.id from SAR_MENU where VALID_FLAG=0 start with id=#{menuId} connect by prior id= parent_id)
and MENU_ID in
<foreach collection="menuIds" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
<update id="updateByLawsIdAndMenuId" parameterType="com.adc.da.slrs.sarLawsMenu.entity.SarLawsMenu" >
update SAR_BUSS_STAND_MENU
update SAR_LAWS_MENU
<set >
<if test="menuId != null" >
menu_id = #{menuId},
@@ -179,8 +182,10 @@
<delete id="deleteByMenuId" parameterType="com.adc.da.slrs.sarLawsMenu.entity.SarLawsMenu">
delete from SAR_LAWS_MENU
where laws_id = #{lawsId}
and MENU_ID in (select SAR_MENU.id from SAR_MENU
where VALID_FLAG=0 start with id=#{oldMenuId} connect by prior id= parent_id)
and MENU_ID in
<foreach collection="menuIds" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<select id="selectAllMenuByStandId" resultMap="BaseResultMap" parameterType="com.adc.da.slrs.sarLawsMenu.entity.SarLawsMenu">
select <include refid="Base_Column_List" />