zengjia
This commit is contained in:
parent
941ae2d42a
commit
86ddcd59c3
@ -18,8 +18,8 @@ public class AuthController {
|
||||
AuthDao authDao;
|
||||
|
||||
@RequestMapping("/retAllAuth")
|
||||
public String retAllAuth(){
|
||||
List<Auth> auths = authDao.selectAllAuth();
|
||||
public String retAllAuth(String isMenu){
|
||||
List<Auth> auths = authDao.selectAllAuth(isMenu);
|
||||
HashMap<String, Object> result = new HashMap<>();
|
||||
result.put("code", 200);
|
||||
result.put("msg", "查询结果");
|
||||
|
@ -21,5 +21,5 @@ public interface AuthDao {
|
||||
|
||||
int updateByPrimaryKey(Auth record);
|
||||
|
||||
List<Auth> selectAllAuth();
|
||||
List<Auth> selectAllAuth(String isMenu);
|
||||
}
|
@ -20,10 +20,11 @@
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
|
||||
<select id="selectAllAuth" resultMap="BaseResultMap">
|
||||
<select id="selectAllAuth" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from ln_auth
|
||||
where is_menu = #{isMenu,jdbcType=TINYINT}
|
||||
</select>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user