zss
2024-10-18 1f15333b0a97a327865f7aab8f1e3f9ba8fc16f8
framework/src/main/java/com/yuanchu/mom/mapper/AuthMapper.java
@@ -6,6 +6,7 @@
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
@Mapper
@@ -20,9 +21,11 @@
    int deletePower();
    @Select("select COALESCE(count(*), 0) from power p left join user u on u.role_id = p.role_id where u.id = #{userId} and p.menu_method = #{method}")
    int isPower(Integer userId, String method);
    Integer isPower(Integer userId, String method);
    @Select("select look from power p left join user u on u.role_id = p.role_id where u.id = #{userId} and p.menu_method = #{method}")
    int countPower(Integer userId, String method);
    Integer countPower(Integer userId, String method);
    @Select("select distinct category from enums")
    List<String> getDic();
}