Commit 93eb912d authored by luzhuang's avatar luzhuang

更新代码

parent bb47f29b
......@@ -138,7 +138,8 @@ public class SysUserController extends PaginationController<SysUser> {
}
@ApiOperation(value = "706 根据userId 查询菜单", notes = "userId 和 modelId查询 menu")
@ApiImplicitParam(name = "modelId", value = "前台菜单10 后台菜单20", required = true, dataType = "varchar", paramType = "path")
@ApiImplicitParams({@ApiImplicitParam(name = "modelId", value = "前台菜单10 后台菜单20", required = true, dataType = "varchar", paramType = "path"),
@ApiImplicitParam(name = "type", value = "查总裁读书会菜单 客户端传2 手机端传0 不传查全部(modelId传 10) ", required = true, dataType = "varchar", paramType = "path")})
@GetMapping("/queryMenuById")
public Result queryMenu(CurUser curUser,String modelId,String type) {
return Result.builder(new PersistModel(1),
......
......@@ -300,7 +300,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
@Select("<script>select title menuName,external_url url,logo from b_external_link where 1=1 " +
"<if test=\"type !=null \"> and type != 2 </if>" +
"<if test=\"type !=null \"> and type in ('1',${type}) </if>" +
" and corp_id = #{corpId} " +
" and del_flag !=1 and flag = 1 ORDER BY sort </script>")
List<MenuDTO> getReadingMenu(@Param("type") String type, @Param("corpId") String corpId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment