|
|
@@ -28,14 +28,17 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 打开登录页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/login/view")
|
|
|
public String loginView() {
|
|
|
return "login";
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 打开导航页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/menu/view")
|
|
|
@@ -45,12 +48,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 打开主页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/index")
|
|
|
public String index(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/index")){
|
|
|
+ if (!urls.contains("/thmz/index")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "index";
|
|
|
@@ -58,24 +62,27 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 打开科室列表页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/unit-code")
|
|
|
public String unitCode(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/unit-code")){
|
|
|
+ if (!urls.contains("/thmz/unit-code")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "unit_code";
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 打开挂号管理页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/registration")
|
|
|
public String registration(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/registration")){
|
|
|
+ if (!urls.contains("/thmz/registration")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "registration";
|
|
|
@@ -83,12 +90,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 打开挂号列表页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/registration-list")
|
|
|
public String registrationList(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/registration-list")){
|
|
|
+ if (!urls.contains("/thmz/registration-list")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "registration_list";
|
|
|
@@ -96,35 +104,38 @@ public class NavigationController {
|
|
|
|
|
|
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){
|
|
|
+ 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);
|
|
|
+ List<Menu> menuList = menuService.queryByIds(menuIds);
|
|
|
return menuList.stream().map(Menu::getMenuUrl).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 打开收费管理页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/toll-administration")
|
|
|
public String tollAdministration(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/toll-administration")){
|
|
|
+ if (!urls.contains("/thmz/toll-administration")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "toll_administration";
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 打开收费员基础设置页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/sfy-config")
|
|
|
public String sfyConfig(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/sfy-config")){
|
|
|
+ if (!urls.contains("/thmz/sfy-config")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "sfy_config";
|
|
|
@@ -132,12 +143,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 打印机设置页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/print-config")
|
|
|
public String printConfig(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/print-config")){
|
|
|
+ if (!urls.contains("/thmz/print-config")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "print_config";
|
|
|
@@ -145,12 +157,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 打开发票管理页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/receipt")
|
|
|
public String receipt(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/receipt")){
|
|
|
+ if (!urls.contains("/thmz/receipt")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "receipt";
|
|
|
@@ -159,27 +172,28 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 打开日结处理页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/daily")
|
|
|
public String daily(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/daily")){
|
|
|
+ if (!urls.contains("/thmz/daily")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "daily";
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 打开重打日结报表页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/daily-repeat-print")
|
|
|
public String dailyRepeatPrint(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/daily-repeat-print")){
|
|
|
+ if (!urls.contains("/thmz/daily-repeat-print")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "daily_repeat_print";
|
|
|
@@ -187,12 +201,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 日结汇总页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/daily-collect")
|
|
|
public String dailyCollect(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/daily-collect")){
|
|
|
+ if (!urls.contains("/thmz/daily-collect")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "daily_collect";
|
|
|
@@ -200,12 +215,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 病人费用清单
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/charge-list")
|
|
|
public String chargeList(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/charge-list")){
|
|
|
+ if (!urls.contains("/thmz/charge-list")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "charge_list";
|
|
|
@@ -214,27 +230,28 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 退药申请
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/refund-medicine")
|
|
|
public String refundMedicine(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/refund-medicine")){
|
|
|
+ if (!urls.contains("/thmz/refund-medicine")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "refund_medicine";
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 门诊收入明细
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/mzsrmx")
|
|
|
public String mzsrmx(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/mzsrmx")){
|
|
|
+ if (!urls.contains("/thmz/mzsrmx")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "mzsrmx";
|
|
|
@@ -243,12 +260,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 门诊号别统计
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/mzhbtj")
|
|
|
public String mzhbtj(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/mzhbtj")){
|
|
|
+ if (!urls.contains("/thmz/mzhbtj")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "mzhbtj";
|
|
|
@@ -257,12 +275,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 门诊应收核算报表
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/bissinessReport")
|
|
|
public String bissinessReport(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/bissinessReport")){
|
|
|
+ if (!urls.contains("/thmz/bissinessReport")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "bissinessReport";
|
|
|
@@ -270,12 +289,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 号表字典维护
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/request")
|
|
|
public String request(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/request")){
|
|
|
+ if (!urls.contains("/thmz/request")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "request";
|
|
|
@@ -283,12 +303,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 收费员工作量统计
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/cash-work-count")
|
|
|
public String cashWorkCount(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/cash-work-count")){
|
|
|
+ if (!urls.contains("/thmz/cash-work-count")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "cash_work_count";
|
|
|
@@ -297,12 +318,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 菜单管理页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/menu-manage")
|
|
|
public String menuManage(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/menu-manage")){
|
|
|
+ if (!urls.contains("/thmz/menu-manage")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "menu_manage";
|
|
|
@@ -310,12 +332,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 菜单权限设置管理页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/user-menu-relation")
|
|
|
public String userMenuRelation(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/user-menu-relation")){
|
|
|
+ if (!urls.contains("/thmz/user-menu-relation")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "user_menu_relation";
|
|
|
@@ -324,12 +347,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 号表预警设置页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/request-config")
|
|
|
public String requestConfig(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/request-config")){
|
|
|
+ if (!urls.contains("/thmz/request-config")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "request-config";
|
|
|
@@ -337,12 +361,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 医技预约科室设置页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/schedule-of-medical")
|
|
|
public String scheduleOfMedical(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/schedule-of-medical")){
|
|
|
+ if (!urls.contains("/thmz/schedule-of-medical")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "schedule-of-medical";
|
|
|
@@ -351,12 +376,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 医技预约科室预约页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/schedule-of-medical-apply")
|
|
|
public String scheduleOfMedicalApply(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/schedule-of-medical-apply")){
|
|
|
+ if (!urls.contains("/thmz/schedule-of-medical-apply")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "schedule-of-medical-apply";
|
|
|
@@ -365,12 +391,13 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 文件上传页面
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/profile-common")
|
|
|
public String profileCommon(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/profile-common")){
|
|
|
+ if (!urls.contains("/thmz/profile-common")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "profile_common";
|
|
|
@@ -379,14 +406,30 @@ public class NavigationController {
|
|
|
|
|
|
/**
|
|
|
* 入院登记
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping("/hospitalized")
|
|
|
public String hospitalized(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
List<String> urls = getUrls(httpServletRequest);
|
|
|
- if(!urls.contains("/thmz/hospitalized")){
|
|
|
+ if (!urls.contains("/thmz/hospitalized")) {
|
|
|
throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
}
|
|
|
return "hospitalized";
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 节假日配置挂号
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("/request-holidays-config")
|
|
|
+ public String requestHolidaysConfig(HttpServletRequest httpServletRequest) throws Exception {
|
|
|
+ List<String> urls = getUrls(httpServletRequest);
|
|
|
+ if (!urls.contains("/thmz/request-holidays-config")) {
|
|
|
+ throw new Exception("您没有此模块的权限,请联系管理员开通!");
|
|
|
+ }
|
|
|
+ return "request_holidays_config";
|
|
|
+ }
|
|
|
}
|