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