|
|
@@ -9,7 +9,6 @@ import cn.hnthyy.thmz.service.thmz.UserRoleRelationService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
@@ -79,7 +78,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/unit-code")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "unit_code";
|
|
|
+ return "mz/unit_code";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -93,7 +92,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/registration")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "registration";
|
|
|
+ return "mz/registration";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -107,19 +106,19 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/registration-list")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "registration_list";
|
|
|
+ return "mz/registration_list";
|
|
|
}
|
|
|
|
|
|
- private List<String> getUrls(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
- User tokenUser = TokenUtil.getUser(httpServletRequest);
|
|
|
- List<UserMenuRelation> userMenuRelationList = userMenuRelationService.queryByUserId(tokenUser.getId());
|
|
|
- List<Long> menuIds = userMenuRelationList.stream().map(UserMenuRelation::getMenuId).collect(Collectors.toList());
|
|
|
- if (menuIds == null || menuIds.size() == 0) {
|
|
|
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
- }
|
|
|
- List<Menu> menuList = menuService.queryByIds(menuIds);
|
|
|
- return menuList.stream().map(Menu::getMenuUrl).collect(Collectors.toList());
|
|
|
- }
|
|
|
+// private List<String> getUrls(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
+// User tokenUser = TokenUtil.getUser(httpServletRequest);
|
|
|
+// List<UserMenuRelation> userMenuRelationList = userMenuRelationService.queryByUserId(tokenUser.getId());
|
|
|
+// List<Long> menuIds = userMenuRelationList.stream().map(UserMenuRelation::getMenuId).collect(Collectors.toList());
|
|
|
+// if (menuIds == null || menuIds.size() == 0) {
|
|
|
+// throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
+// }
|
|
|
+// List<Menu> menuList = menuService.queryByIds(menuIds);
|
|
|
+// return menuList.stream().map(Menu::getMenuUrl).collect(Collectors.toList());
|
|
|
+// }
|
|
|
|
|
|
private List<String> getRoleUrls(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
User tokenUser = TokenUtil.getUser(httpServletRequest);
|
|
|
@@ -149,7 +148,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/toll-administration")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "toll_administration";
|
|
|
+ return "mz/toll_administration";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -193,7 +192,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/print-config")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "print_config";
|
|
|
+ return "mz/print_config";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -222,7 +221,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/daily")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "daily";
|
|
|
+ return "mz/daily";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -237,7 +236,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/daily-repeat-print")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "daily_repeat_print";
|
|
|
+ return "mz/daily_repeat_print";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -251,7 +250,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/daily-collect")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "daily_collect";
|
|
|
+ return "mz/daily_collect";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -265,7 +264,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/charge-list")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "charge_list";
|
|
|
+ return "mz/charge_list";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -280,7 +279,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/refund-medicine")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "refund_medicine";
|
|
|
+ return "mz/refund_medicine";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -295,7 +294,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/mzsrmx")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "mzsrmx";
|
|
|
+ return "mz/mzsrmx";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -310,7 +309,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/mzhbtj")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "mzhbtj";
|
|
|
+ return "mz/mzhbtj";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -325,7 +324,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/bissinessReport")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "bissinessReport";
|
|
|
+ return "mz/bissinessReport";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -339,7 +338,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/request")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "request";
|
|
|
+ return "mz/request";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -353,7 +352,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/cash-work-count")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "cash_work_count";
|
|
|
+ return "mz/cash_work_count";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -397,7 +396,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/request-config")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "request-config";
|
|
|
+ return "mz/request-config";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -411,7 +410,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/schedule-of-medical")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "schedule-of-medical";
|
|
|
+ return "mz/schedule-of-medical";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -426,7 +425,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/schedule-of-medical-apply")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "schedule-of-medical-apply";
|
|
|
+ return "mz/schedule-of-medical-apply";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -456,7 +455,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/hospitalized")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "hospitalized";
|
|
|
+ return "zy/hospitalized";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -471,7 +470,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/request-holidays-config")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "request_holidays_config";
|
|
|
+ return "mz/request_holidays_config";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -486,7 +485,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/accepting")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "accepting";
|
|
|
+ return "zy/accepting";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -501,7 +500,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/actpatient")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "actpatient";
|
|
|
+ return "zy/actpatient";
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -516,7 +515,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/request-type")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "request_type";
|
|
|
+ return "mz/request_type";
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -530,7 +529,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/charge-detail")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "charge_detail";
|
|
|
+ return "mz/charge_detail";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -545,7 +544,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/to-medicine")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "to-medicine";
|
|
|
+ return "mz/to-medicine";
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -574,7 +573,7 @@ public class NavigationController {
|
|
|
if (!urls.contains("/thmz/data-util")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
- return "data_util";
|
|
|
+ return "mz/data_util";
|
|
|
}
|
|
|
|
|
|
|