페이지 타이틀 쿼리 오류 수정.
parent
8313c57024
commit
aa4c298b14
|
|
@ -52,11 +52,9 @@ public class CommonAop {
|
|||
LogService logService;
|
||||
|
||||
@Around("execution(* kcg.faics..*Controller.*(..))")
|
||||
public Object menuGenerator(final ProceedingJoinPoint thisJoinPoint)
|
||||
throws Throwable {
|
||||
public Object menuGenerator(final ProceedingJoinPoint thisJoinPoint) throws Throwable {
|
||||
|
||||
HttpServletRequest req = ((ServletRequestAttributes) RequestContextHolder
|
||||
.getRequestAttributes()).getRequest();
|
||||
HttpServletRequest req = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
|
||||
String loginUrl = "/loginView.do";
|
||||
String url = req.getRequestURI();
|
||||
|
||||
|
|
@ -125,7 +123,7 @@ public class CommonAop {
|
|||
menu.put("query", qryCate);
|
||||
|
||||
HashMap<String, Object> menuInfo = menuService.getMenuInfo(menu);
|
||||
menuVO.setId(Integer.parseInt(menuInfo.get("ID").toString()));
|
||||
menuVO.setId(((Double)menuInfo.get("id")).intValue());
|
||||
menuInfo.put("userId", loginUserVO.getUserid());
|
||||
|
||||
List<MenuVO> currAndHigherMenuList = menuService.selectListWithHigher(menuVO);
|
||||
|
|
@ -140,8 +138,7 @@ public class CommonAop {
|
|||
// e.printStackTrace();
|
||||
}
|
||||
|
||||
Object proc = thisJoinPoint.proceed();
|
||||
return proc;
|
||||
return thisJoinPoint.proceed();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -85,11 +85,10 @@ public class MenuServiceImpl implements MenuService {
|
|||
|
||||
HashMap<String, Object> paramMenu = menuMapper.getMenuInfo(menu);
|
||||
|
||||
int depth = ((BigDecimal) paramMenu.get("DEPTH")).intValue();
|
||||
if (depth < 3) {
|
||||
if ((Double)paramMenu.get("depth") < 3.0d) {
|
||||
return paramMenu;
|
||||
} else {
|
||||
menu.put("id", ((BigDecimal) paramMenu.get("PARENT")).intValue());
|
||||
menu.put("id", ((BigDecimal) paramMenu.get("parent")).intValue());
|
||||
return menuMapper.getMenuInfoById(menu);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,25 +97,17 @@
|
|||
</select>
|
||||
<!---->
|
||||
<select id="Menu.getMenuInfo" parameterType="map" resultType="map">
|
||||
<![CDATA[
|
||||
SELECT * FROM (
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
T_MENU
|
||||
WHERE
|
||||
URL_GROUP = #{group} AND
|
||||
URL = #{url}
|
||||
]]>
|
||||
<if test="boardId != null and boardId != ''"><![CDATA[
|
||||
SELECT *
|
||||
FROM T_MENU
|
||||
WHERE URL_GROUP = #{group}
|
||||
AND URL = #{url}
|
||||
<if test="boardId != null and boardId != ''">
|
||||
AND BOARD_ID = #{boardId}
|
||||
]]></if>
|
||||
<if test="query != null and query != ''"><![CDATA[
|
||||
</if>
|
||||
<if test="query != null and query != ''">
|
||||
AND URL_QUERY = #{query}
|
||||
]]></if>
|
||||
<![CDATA[
|
||||
) WHERE ROWNUM = 1
|
||||
]]>
|
||||
</if>
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="Menu.getMenuInfoById" parameterType="map" resultType="map">
|
||||
|
|
|
|||
Loading…
Reference in New Issue