This commit is contained in:
cyk 2023-12-26 21:44:13 +08:00
parent 941ae2d42a
commit 86ddcd59c3
3 changed files with 5 additions and 4 deletions

View File

@ -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", "查询结果");

View File

@ -21,5 +21,5 @@ public interface AuthDao {
int updateByPrimaryKey(Auth record); int updateByPrimaryKey(Auth record);
List<Auth> selectAllAuth(); List<Auth> selectAllAuth(String isMenu);
} }

View File

@ -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>