feat: 菜单初始化提交

This commit is contained in:
fit2cloud-chenyw
2021-02-23 16:21:06 +08:00
parent 6f3f98b1e6
commit 12d0d862b9
3 changed files with 22 additions and 18 deletions

View File

@@ -8,8 +8,8 @@ import org.apache.ibatis.annotations.Update;
public interface ExtMenuMapper {
@Update(" update sys_menu set sub_count = sub_count+1 where menu_id = #{menuId} ")
int incrementalSubcount(@Param("deptId") Long menuId);
int incrementalSubcount(@Param("menuId") Long menuId);
@Update(" update sys_menu set sub_count = sub_count-1 where menu_id = #{menuId} and sub_count > 0")
int decreasingSubcount(@Param("deptId") Long menuId);
int decreasingSubcount(@Param("menuId") Long menuId);
}