| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344 |
- package cn.hnthyy.thmz.controller;
- import cn.hnthyy.thmz.Utils.HttpUtil;
- import cn.hnthyy.thmz.Utils.TokenUtil;
- import cn.hnthyy.thmz.entity.thmz.*;
- import cn.hnthyy.thmz.service.thmz.MenuService;
- import cn.hnthyy.thmz.service.thmz.RoleMenuRelationService;
- 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.RequestMapping;
- import javax.servlet.http.HttpServletRequest;
- import java.util.ArrayList;
- import java.util.HashSet;
- import java.util.List;
- import java.util.Set;
- import java.util.stream.Collectors;
- /**
- * 导航控制层,负责路由功能
- */
- @Controller
- @Slf4j
- public class NavigationController {
- @Autowired
- private MenuService menuService;
- @Autowired
- private RoleMenuRelationService roleMenuRelationService;
- @Autowired
- private UserRoleRelationService userRoleRelationService;
- /**
- * 打开登录页面
- *
- * @return
- */
- @RequestMapping("/login/view")
- public String loginView(HttpServletRequest request) {
- System.out.println(HttpUtil.getIPAddress(request) + "---------------------");
- return "login";
- }
- /**
- * 打开导航页面
- *
- * @return
- */
- @RequestMapping("/menu/view")
- public String menuView() {
- return "menu";
- }
- /**
- * 打开主页面
- *
- * @return
- */
- @RequestMapping("/index")
- public String index(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/index")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "index";
- }
- /**
- * 打开科室列表页面
- *
- * @return
- */
- @RequestMapping("/unit-code")
- public String unitCode(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/unit-code")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/unit_code";
- }
- /**
- * 打开挂号管理页面
- *
- * @return
- */
- @RequestMapping("/registration")
- public String registration(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/registration")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/registration";
- }
- /**
- * 打开挂号列表页面
- *
- * @return
- */
- @RequestMapping("/registration-list")
- public String registrationList(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/registration-list")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- 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> getRoleUrls(HttpServletRequest httpServletRequest) throws Exception {
- User tokenUser = TokenUtil.getUser(httpServletRequest);
- List<UserRoleRelation> userRoleRelations = userRoleRelationService.queryByUserId(tokenUser.getId());
- Set<RoleMenuRelation> roleMenuRelationSet = new HashSet<RoleMenuRelation>();
- for (UserRoleRelation userRoleRelation : userRoleRelations) {
- List<RoleMenuRelation> list = roleMenuRelationService.queryByRoleId(userRoleRelation.getRoleId());
- roleMenuRelationSet.addAll(list);
- }
- List<Long> menuIdsNew = roleMenuRelationSet.stream().map(RoleMenuRelation::getMenuId).collect(Collectors.toList());
- List<Long> menuIds = new ArrayList<>(new HashSet(menuIdsNew));//利用Set去重多个角色相同的菜单权限
- if (menuIds == null || menuIds.size() == 0) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- 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 = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/toll-administration")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/toll_administration";
- }
- // /**
- // * 打开收费管理页面,带参数跳转
- // *
- // * @return
- // */
- // @RequestMapping({"/toll-administration/{patientId}"})
- // public String tollAdministration(@PathVariable String patientId, HttpServletRequest httpServletRequest) throws Exception {
- // List<String> urls = getUrls(httpServletRequest);
- // httpServletRequest.setAttribute("patientId",patientId);
- // 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 = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/sfy-config")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "sfy_config";
- }
- /**
- * 打开发药员基础设置页面
- *
- * @return
- */
- @RequestMapping("/fy-config")
- public String fyConfig(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/fy-config")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "fy_config";
- }
- /**
- * 打印机设置页面
- *
- * @return
- */
- @RequestMapping("/print-config")
- public String printConfig(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/print-config")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/print_config";
- }
- /**
- * 打开发票管理页面
- *
- * @return
- */
- @RequestMapping("/receipt")
- public String receipt(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/receipt")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "receipt";
- }
- /**
- * 打开日结处理页面
- *
- * @return
- */
- @RequestMapping("/daily")
- public String daily(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/daily")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/daily";
- }
- /**
- * 打开重打日结报表页面
- *
- * @return
- */
- @RequestMapping("/daily-repeat-print")
- public String dailyRepeatPrint(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/daily-repeat-print")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/daily_repeat_print";
- }
- /**
- * 日结汇总页面
- *
- * @return
- */
- @RequestMapping("/daily-collect")
- public String dailyCollect(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/daily-collect")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/daily_collect";
- }
- /**
- * 病人费用清单
- *
- * @return
- */
- @RequestMapping("/charge-list")
- public String chargeList(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/charge-list")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/charge_list";
- }
- /**
- * 退药申请
- *
- * @return
- */
- @RequestMapping("/refund-medicine")
- public String refundMedicine(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/refund-medicine")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/refund_medicine";
- }
- /**
- * 取消退药
- *
- * @return
- */
- @RequestMapping("/repeal-refund-medicine")
- public String repealRefundMedicine(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/repeal-refund-medicine")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/repeal_refund_medicine";
- }
- /**
- * 门诊收入明细
- *
- * @return
- */
- @RequestMapping("/mzsrmx")
- public String mzsrmx(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/mzsrmx")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/mzsrmx";
- }
- /**
- * 门诊号别统计
- *
- * @return
- */
- @RequestMapping("/mzhbtj")
- public String mzhbtj(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/mzhbtj")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/mzhbtj";
- }
- /**
- * 门诊应收核算报表
- *
- * @return
- */
- @RequestMapping("/bissinessReport")
- public String bissinessReport(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/bissinessReport")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/bissinessReport";
- }
- /**
- * 号表字典维护
- *
- * @return
- */
- @RequestMapping("/request")
- public String request(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/request")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/request";
- }
- /**
- * 收费员工作量统计
- *
- * @return
- */
- @RequestMapping("/cash-work-count")
- public String cashWorkCount(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/cash-work-count")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/cash_work_count";
- }
- /**
- * 菜单管理页面
- *
- * @return
- */
- @RequestMapping("/menu-manage")
- public String menuManage(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/menu-manage")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "menu_manage";
- }
- /**
- * 菜单权限设置管理页面
- *
- * @return
- */
- @RequestMapping("/user-menu-relation")
- public String userMenuRelation(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/user-menu-relation")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "user_menu_relation";
- }
- /**
- * 号表预警设置页面
- *
- * @return
- */
- @RequestMapping("/request-config")
- public String requestConfig(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/request-config")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/request-config";
- }
- /**
- * 医技预约科室设置页面
- *
- * @return
- */
- @RequestMapping("/schedule-of-medical")
- public String scheduleOfMedical(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/schedule-of-medical")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/schedule-of-medical";
- }
- /**
- * 医技预约科室预约页面
- *
- * @return
- */
- @RequestMapping("/schedule-of-medical-apply")
- public String scheduleOfMedicalApply(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/schedule-of-medical-apply")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/schedule-of-medical-apply";
- }
- /**
- * 文件上传页面
- *
- * @return
- */
- @RequestMapping("/profile-common")
- public String profileCommon(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/profile-common")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "profile_common";
- }
- /**
- * 入院登记
- *
- * @return
- */
- @RequestMapping("/hospitalized")
- public String hospitalized(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/hospitalized")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "zy/hospitalized";
- }
- /**
- * 节假日配置挂号
- *
- * @return
- */
- @RequestMapping("/request-holidays-config")
- public String requestHolidaysConfig(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/request-holidays-config")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/request_holidays_config";
- }
- /**
- * 预交金处理
- *
- * @return
- */
- @RequestMapping("/accepting")
- public String accepting(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/accepting")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "zy/accepting";
- }
- /**
- * 病人列表
- *
- * @return
- */
- @RequestMapping("/actpatient")
- public String actpatient(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/actpatient")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "zy/actpatient";
- }
- /**
- * 号别类型
- *
- * @return
- */
- @RequestMapping("/request-type")
- public String requestType(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/request-type")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/request_type";
- }
- /**
- * 收费项目字典维护
- *
- * @return
- */
- @RequestMapping("/charge-detail")
- public String chargeDetail(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/charge-detail")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/charge_detail";
- }
- /**
- * 发药提醒
- *
- * @return
- */
- @RequestMapping("/to-medicine")
- public String toMedicine(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/to-medicine")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/to-medicine";
- }
- /**
- * 发药叫号
- *
- * @return
- */
- @RequestMapping("/pharmacy-cell-number")
- public String pharmacyCellNumber(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/pharmacy-cell-number")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/pharmacy-cell-number";
- }
- /**
- * 手机自助缴费查询
- *
- * @return
- */
- @RequestMapping("/paid-from-zz")
- public String paidFromZz(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/paid-from-zz")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "charge/paid_from_zz";
- }
- /**
- * 数据修复工具
- *
- * @return
- */
- @RequestMapping("/data-util")
- public String dataUtil(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/data-util")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/data_util";
- }
- /**
- * 惠民活动
- *
- * @return
- */
- @RequestMapping("/discount")
- public String discount(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/discount")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "charge/discount";
- }
- /**
- * 角色管理
- *
- * @param httpServletRequest
- * @return
- * @throws Exception
- */
- @RequestMapping("/role-manage")
- public String roleManage(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/role-manage")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "role_manage";
- }
- /**
- * 用户管理
- *
- * @param httpServletRequest
- * @return
- * @throws Exception
- */
- @RequestMapping("/user-manage")
- public String userManage(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/user-manage")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "user_manage";
- }
- /**
- * 药房库字典管理
- *
- * @param httpServletRequest
- * @return
- * @throws Exception
- */
- @RequestMapping("/group-name")
- public String groupName(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/group-name")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/group_name";
- }
- /**
- * 发药窗口字典管理
- *
- * @param httpServletRequest
- * @return
- * @throws Exception
- */
- @RequestMapping("/drug-win")
- public String drugWin(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-win")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/drug_win";
- }
- /**
- * 住院日结
- *
- * @param httpServletRequest
- * @return
- * @throws Exception
- */
- @RequestMapping("/zy-daily")
- public String zyDaily(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/zy-daily")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "zy/zy_daily";
- }
- /**
- * 门诊西药房配药
- *
- * @return
- */
- @RequestMapping("/west-pharmacy-dispensing")
- public String westPharmacyDispensing(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/west-pharmacy-dispensing")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/west_pharmacy_dispensing";
- }
- /**
- * 门诊西药房发退药
- *
- * @return
- */
- @RequestMapping("/west-pharmacy-send")
- public String westPharmacySend(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/west-pharmacy-send")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/west_pharmacy_send";
- }
- /**
- * 门诊医生就诊
- *
- * @return
- */
- @RequestMapping("/clinic")
- public String clinic(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/clinic")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/clinic";
- }
- /**
- * 嘱托字典
- *
- * @return
- */
- @RequestMapping("/instruction-code")
- public String instructionCode(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/instruction-code")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/instruction_code";
- }
- /**
- * 药品请领
- *
- * @return
- */
- @RequestMapping("/drug-apply")
- public String drugApply(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-apply")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/drug_apply";
- }
- /**
- * 药品接收入库
- *
- * @return
- */
- @RequestMapping("/pharmacy-warehouse")
- public String pharmacyWarehouse(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/pharmacy-warehouse")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/pharmacy_warehouse";
- }
- /**
- * 药品入库记录查询
- *
- * @return
- */
- @RequestMapping("/incoming-records")
- public String incomingRecords(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/incoming-records")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/incoming_records";
- }
- /**
- * 药品出库记录查询
- *
- * @return
- */
- @RequestMapping("/ck-records")
- public String ckRecords(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/ck-records")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/ck_records";
- }
- /**
- * 药房库存清单
- *
- * @return
- */
- @RequestMapping("/yf-inventory-list")
- public String pharmacyStoreList(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/yf-inventory-list")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/yf_inventory_list";
- }
- /**
- * 药品分装组合
- *
- * @return
- */
- @RequestMapping("/yf-divide")
- public String yfDivide(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/yf-divide")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/yf_divide";
- }
- /**
- * 药房药品特殊标志维护
- *
- * @return
- */
- @RequestMapping("/yf-special-mark")
- public String yfSpecialMark(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/yf-special-mark")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/yf_special_mark";
- }
- /**
- * 科室药品维护
- *
- * @return
- */
- @RequestMapping("/yf-yp-zd-dept")
- public String yfYpZdDept(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/yf-yp-zd-dept")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/yf_yp_zd_dept";
- }
- /**
- * 精麻药查询统计
- *
- * @return
- */
- @RequestMapping("/spirit-anesthetic-print")
- public String spiritAnestheticPrint(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/spirit-anesthetic-print")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/spirit_anesthetic_print";
- }
- /**
- * 药品盘点
- *
- * @return
- */
- @RequestMapping("/pharmacy-inventory")
- public String pharmacyInventory(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/pharmacy-inventory")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/yf_inventory";
- }
- /**
- * 病房请领单
- *
- * @return
- */
- @RequestMapping("/ward-prescription")
- public String wardPrescription(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/ward-prescription")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yf/ward_prescription";
- }
- /**
- * 检查检验
- *
- * @return
- */
- @RequestMapping("/jy-jc")
- public String jyJc(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/jy-jc")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/jy_jc";
- }
- /**
- * 门诊病历
- *
- * @return
- */
- @RequestMapping("/mz-bl-record")
- public String mzBlRecord(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/mz-bl-record")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/mz_bl_record";
- }
- /**
- * 检查检验分类字典
- *
- * @return
- */
- @RequestMapping("/jc-jy-zd-class")
- public String jcZdClass(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/jc-jy-zd-class")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/jc_jy_zd_class";
- }
- /**
- * 检查项目字典
- *
- * @return
- */
- @RequestMapping("/jc-jy-zd-item")
- public String jcZdItem(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/jc-jy-zd-item")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/jc_jy_zd_item";
- }
- /**
- * 临床试验室合作企业与合同号信息管理
- *
- * @return
- */
- @RequestMapping("/cooperative-enterprise")
- public String cooperativeEnterprise(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/cooperative-enterprise")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/cooperative_enterprise";
- }
- /**
- * 按钮管理
- *
- * @return
- */
- @RequestMapping("/button")
- public String button(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/button")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "button";
- }
- /**
- * 门诊医生工作量统计
- *
- * @return
- */
- @RequestMapping("/doctor-workload-statistics")
- public String doctorWorkloadStatistics(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/doctor-workload-statistics")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/doctor_workload_statistics";
- }
- /**
- * 科室工作量统计
- *
- * @return
- */
- @RequestMapping("/depart-workload-statistics")
- public String departWorkloadStatistics(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/depart-workload-statistics")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/depart_workload_statistics";
- }
- /**
- * 打开混检管理页面
- *
- * @return
- */
- @RequestMapping("/hybrid-test")
- public String hybridTest() {
- return "mz/hybrid_test";
- }
- /**
- * 打开核酸混采列表页面
- *
- * @return
- */
- @RequestMapping("/hybrid-test-list")
- public String hybridTestList() {
- return "mz/hybrid_test_list";
- }
- /**
- * 打开评价器欢迎页面
- *
- * @return
- */
- @RequestMapping("/client-welcome")
- public String clientWelcome() {
- return "mz/client_welcome";
- }
- /**
- * 打开评价器登录后的首页
- *
- * @return
- */
- @RequestMapping("/client-index")
- public String clientIndex() {
- return "mz/client_index";
- }
- // /**
- // * 评价评价页面
- // *
- // * @return
- // */
- // @RequestMapping("/client-evaluate")
- // public String clientEvaluate() {
- // return "mz/client_evaluate";
- // }
- //
- // /**
- // * 评价价格页面
- // *
- // * @return
- // */
- // @RequestMapping("/client-price")
- // public String clientPrice() {
- // return "mz/client_price";
- // }
- /**
- * 核酸检查申请列表
- *
- * @return
- */
- @RequestMapping("/hs-jc")
- public String hsJc(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/hs-jc")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/hs_jc";
- }
- /**
- * 评价列表
- *
- * @return
- */
- @RequestMapping("/evaluation-list")
- public String evaluationList(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/evaluation-list")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/evaluation_list";
- }
- /**
- * 缴费成功提示语设置
- *
- * @return
- */
- @RequestMapping("/message-to-phone")
- public String messageToPhone(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/message-to-phone")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/message_to_phone";
- }
- /**
- * 危急值列表
- *
- * @return
- */
- @RequestMapping("/critical-value-list")
- public String criticalValueList(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/critical-value-list")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/critical_value_list";
- }
- /**
- * 排队取药
- *
- * @return
- */
- @RequestMapping("/pharmacy-cell")
- public String pharmacyCell(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/pharmacy-cell")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/pharmacy-cell";
- }
- /**
- * 药库药品入库
- *
- * @return
- */
- @RequestMapping("/drug-storage")
- public String drugStorage(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-storage")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_storage";
- }
- /**
- * 消息列表
- *
- * @return
- */
- @RequestMapping("/notice-list")
- public String noticeList(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/notice-list")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "mz/notice_list";
- }
- /**
- * 药库药品出库
- *
- * @return
- */
- @RequestMapping("/drug-delivery")
- public String drugDelivery(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-delivery")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_delivery";
- }
- /**
- * 入库验收汇总查询
- *
- * @return
- */
- @RequestMapping("/in-storage-acc-sum")
- public String inStorageAccSum(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/in-storage-acc-sum")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/in_storage_acc_sum";
- }
- /**
- * 药品退库
- *
- * @return
- */
- @RequestMapping("/drug-return")
- public String drugReturn(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-return")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_return";
- }
- /**
- * 药品账页
- *
- * @return
- */
- @RequestMapping("/drug-info")
- public String drugBase(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-info")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_info";
- }
- /**
- * 药品退货
- *
- * @return
- */
- @RequestMapping("/drug-sales-return")
- public String drugSalesReturn(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-sales-return")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_sales_return";
- }
- /**
- * 药品调价
- *
- * @return
- */
- @RequestMapping("/drug-reprice")
- public String drugReprice(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-reprice")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_reprice";
- }
- /**
- * 药品购入情况分析
- *
- * @return
- */
- @RequestMapping("/drug-purchase-situation")
- public String drugPurchaseSituation(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-purchase-situation")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_purchase_situation";
- }
- /**
- * 药品购入情况分析
- *
- * @return
- */
- @RequestMapping("/drug-in-out-count")
- public String drugInOutCount(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-in-out-count")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_in_out_count";
- }
- /**
- * 科室药品出库销售统计
- *
- * @return
- */
- @RequestMapping("/drug-out-statistics")
- public String drugOutStatistics(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-out-statistics")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_out_statistics";
- }
- /**
- * 药品使用量统计分析
- *
- * @return
- */
- @RequestMapping("/drug-use-quantity-count")
- public String drugUseQuantityCount(HttpServletRequest httpServletRequest) throws Exception {
- List<String> urls = getRoleUrls(httpServletRequest);
- if (!urls.contains("/thmz/drug-use-quantity-count")) {
- throw new Exception("您没有此模块的权限,请联系管理员开通!");
- }
- return "yk/drug_use_quantity_count";
- }
- }
|