NavigationController.java 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344
  1. package cn.hnthyy.thmz.controller;
  2. import cn.hnthyy.thmz.Utils.HttpUtil;
  3. import cn.hnthyy.thmz.Utils.TokenUtil;
  4. import cn.hnthyy.thmz.entity.thmz.*;
  5. import cn.hnthyy.thmz.service.thmz.MenuService;
  6. import cn.hnthyy.thmz.service.thmz.RoleMenuRelationService;
  7. import cn.hnthyy.thmz.service.thmz.UserRoleRelationService;
  8. import lombok.extern.slf4j.Slf4j;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.stereotype.Controller;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import javax.servlet.http.HttpServletRequest;
  13. import java.util.ArrayList;
  14. import java.util.HashSet;
  15. import java.util.List;
  16. import java.util.Set;
  17. import java.util.stream.Collectors;
  18. /**
  19. * 导航控制层,负责路由功能
  20. */
  21. @Controller
  22. @Slf4j
  23. public class NavigationController {
  24. @Autowired
  25. private MenuService menuService;
  26. @Autowired
  27. private RoleMenuRelationService roleMenuRelationService;
  28. @Autowired
  29. private UserRoleRelationService userRoleRelationService;
  30. /**
  31. * 打开登录页面
  32. *
  33. * @return
  34. */
  35. @RequestMapping("/login/view")
  36. public String loginView(HttpServletRequest request) {
  37. System.out.println(HttpUtil.getIPAddress(request) + "---------------------");
  38. return "login";
  39. }
  40. /**
  41. * 打开导航页面
  42. *
  43. * @return
  44. */
  45. @RequestMapping("/menu/view")
  46. public String menuView() {
  47. return "menu";
  48. }
  49. /**
  50. * 打开主页面
  51. *
  52. * @return
  53. */
  54. @RequestMapping("/index")
  55. public String index(HttpServletRequest httpServletRequest) throws Exception {
  56. List<String> urls = getRoleUrls(httpServletRequest);
  57. if (!urls.contains("/thmz/index")) {
  58. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  59. }
  60. return "index";
  61. }
  62. /**
  63. * 打开科室列表页面
  64. *
  65. * @return
  66. */
  67. @RequestMapping("/unit-code")
  68. public String unitCode(HttpServletRequest httpServletRequest) throws Exception {
  69. List<String> urls = getRoleUrls(httpServletRequest);
  70. if (!urls.contains("/thmz/unit-code")) {
  71. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  72. }
  73. return "mz/unit_code";
  74. }
  75. /**
  76. * 打开挂号管理页面
  77. *
  78. * @return
  79. */
  80. @RequestMapping("/registration")
  81. public String registration(HttpServletRequest httpServletRequest) throws Exception {
  82. List<String> urls = getRoleUrls(httpServletRequest);
  83. if (!urls.contains("/thmz/registration")) {
  84. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  85. }
  86. return "mz/registration";
  87. }
  88. /**
  89. * 打开挂号列表页面
  90. *
  91. * @return
  92. */
  93. @RequestMapping("/registration-list")
  94. public String registrationList(HttpServletRequest httpServletRequest) throws Exception {
  95. List<String> urls = getRoleUrls(httpServletRequest);
  96. if (!urls.contains("/thmz/registration-list")) {
  97. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  98. }
  99. return "mz/registration_list";
  100. }
  101. // private List<String> getUrls(HttpServletRequest httpServletRequest) throws Exception {
  102. // User tokenUser = TokenUtil.getUser(httpServletRequest);
  103. // List<UserMenuRelation> userMenuRelationList = userMenuRelationService.queryByUserId(tokenUser.getId());
  104. // List<Long> menuIds = userMenuRelationList.stream().map(UserMenuRelation::getMenuId).collect(Collectors.toList());
  105. // if (menuIds == null || menuIds.size() == 0) {
  106. // throw new Exception("您没有此模块的权限,请联系管理员开通!");
  107. // }
  108. // List<Menu> menuList = menuService.queryByIds(menuIds);
  109. // return menuList.stream().map(Menu::getMenuUrl).collect(Collectors.toList());
  110. // }
  111. private List<String> getRoleUrls(HttpServletRequest httpServletRequest) throws Exception {
  112. User tokenUser = TokenUtil.getUser(httpServletRequest);
  113. List<UserRoleRelation> userRoleRelations = userRoleRelationService.queryByUserId(tokenUser.getId());
  114. Set<RoleMenuRelation> roleMenuRelationSet = new HashSet<RoleMenuRelation>();
  115. for (UserRoleRelation userRoleRelation : userRoleRelations) {
  116. List<RoleMenuRelation> list = roleMenuRelationService.queryByRoleId(userRoleRelation.getRoleId());
  117. roleMenuRelationSet.addAll(list);
  118. }
  119. List<Long> menuIdsNew = roleMenuRelationSet.stream().map(RoleMenuRelation::getMenuId).collect(Collectors.toList());
  120. List<Long> menuIds = new ArrayList<>(new HashSet(menuIdsNew));//利用Set去重多个角色相同的菜单权限
  121. if (menuIds == null || menuIds.size() == 0) {
  122. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  123. }
  124. List<Menu> menuList = menuService.queryByIds(menuIds);
  125. return menuList.stream().map(Menu::getMenuUrl).collect(Collectors.toList());
  126. }
  127. /**
  128. * 打开收费管理页面
  129. *
  130. * @return
  131. */
  132. @RequestMapping({"/toll-administration"})
  133. public String tollAdministration(HttpServletRequest httpServletRequest) throws Exception {
  134. List<String> urls = getRoleUrls(httpServletRequest);
  135. if (!urls.contains("/thmz/toll-administration")) {
  136. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  137. }
  138. return "mz/toll_administration";
  139. }
  140. // /**
  141. // * 打开收费管理页面,带参数跳转
  142. // *
  143. // * @return
  144. // */
  145. // @RequestMapping({"/toll-administration/{patientId}"})
  146. // public String tollAdministration(@PathVariable String patientId, HttpServletRequest httpServletRequest) throws Exception {
  147. // List<String> urls = getUrls(httpServletRequest);
  148. // httpServletRequest.setAttribute("patientId",patientId);
  149. // if (!urls.contains("/thmz/toll-administration")) {
  150. // throw new Exception("您没有此模块的权限,请联系管理员开通!");
  151. // }
  152. // return "toll_administration";
  153. // }
  154. /**
  155. * 打开收费员基础设置页面
  156. *
  157. * @return
  158. */
  159. @RequestMapping("/sfy-config")
  160. public String sfyConfig(HttpServletRequest httpServletRequest) throws Exception {
  161. List<String> urls = getRoleUrls(httpServletRequest);
  162. if (!urls.contains("/thmz/sfy-config")) {
  163. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  164. }
  165. return "sfy_config";
  166. }
  167. /**
  168. * 打开发药员基础设置页面
  169. *
  170. * @return
  171. */
  172. @RequestMapping("/fy-config")
  173. public String fyConfig(HttpServletRequest httpServletRequest) throws Exception {
  174. List<String> urls = getRoleUrls(httpServletRequest);
  175. if (!urls.contains("/thmz/fy-config")) {
  176. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  177. }
  178. return "fy_config";
  179. }
  180. /**
  181. * 打印机设置页面
  182. *
  183. * @return
  184. */
  185. @RequestMapping("/print-config")
  186. public String printConfig(HttpServletRequest httpServletRequest) throws Exception {
  187. List<String> urls = getRoleUrls(httpServletRequest);
  188. if (!urls.contains("/thmz/print-config")) {
  189. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  190. }
  191. return "mz/print_config";
  192. }
  193. /**
  194. * 打开发票管理页面
  195. *
  196. * @return
  197. */
  198. @RequestMapping("/receipt")
  199. public String receipt(HttpServletRequest httpServletRequest) throws Exception {
  200. List<String> urls = getRoleUrls(httpServletRequest);
  201. if (!urls.contains("/thmz/receipt")) {
  202. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  203. }
  204. return "receipt";
  205. }
  206. /**
  207. * 打开日结处理页面
  208. *
  209. * @return
  210. */
  211. @RequestMapping("/daily")
  212. public String daily(HttpServletRequest httpServletRequest) throws Exception {
  213. List<String> urls = getRoleUrls(httpServletRequest);
  214. if (!urls.contains("/thmz/daily")) {
  215. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  216. }
  217. return "mz/daily";
  218. }
  219. /**
  220. * 打开重打日结报表页面
  221. *
  222. * @return
  223. */
  224. @RequestMapping("/daily-repeat-print")
  225. public String dailyRepeatPrint(HttpServletRequest httpServletRequest) throws Exception {
  226. List<String> urls = getRoleUrls(httpServletRequest);
  227. if (!urls.contains("/thmz/daily-repeat-print")) {
  228. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  229. }
  230. return "mz/daily_repeat_print";
  231. }
  232. /**
  233. * 日结汇总页面
  234. *
  235. * @return
  236. */
  237. @RequestMapping("/daily-collect")
  238. public String dailyCollect(HttpServletRequest httpServletRequest) throws Exception {
  239. List<String> urls = getRoleUrls(httpServletRequest);
  240. if (!urls.contains("/thmz/daily-collect")) {
  241. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  242. }
  243. return "mz/daily_collect";
  244. }
  245. /**
  246. * 病人费用清单
  247. *
  248. * @return
  249. */
  250. @RequestMapping("/charge-list")
  251. public String chargeList(HttpServletRequest httpServletRequest) throws Exception {
  252. List<String> urls = getRoleUrls(httpServletRequest);
  253. if (!urls.contains("/thmz/charge-list")) {
  254. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  255. }
  256. return "mz/charge_list";
  257. }
  258. /**
  259. * 退药申请
  260. *
  261. * @return
  262. */
  263. @RequestMapping("/refund-medicine")
  264. public String refundMedicine(HttpServletRequest httpServletRequest) throws Exception {
  265. List<String> urls = getRoleUrls(httpServletRequest);
  266. if (!urls.contains("/thmz/refund-medicine")) {
  267. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  268. }
  269. return "mz/refund_medicine";
  270. }
  271. /**
  272. * 取消退药
  273. *
  274. * @return
  275. */
  276. @RequestMapping("/repeal-refund-medicine")
  277. public String repealRefundMedicine(HttpServletRequest httpServletRequest) throws Exception {
  278. List<String> urls = getRoleUrls(httpServletRequest);
  279. if (!urls.contains("/thmz/repeal-refund-medicine")) {
  280. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  281. }
  282. return "mz/repeal_refund_medicine";
  283. }
  284. /**
  285. * 门诊收入明细
  286. *
  287. * @return
  288. */
  289. @RequestMapping("/mzsrmx")
  290. public String mzsrmx(HttpServletRequest httpServletRequest) throws Exception {
  291. List<String> urls = getRoleUrls(httpServletRequest);
  292. if (!urls.contains("/thmz/mzsrmx")) {
  293. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  294. }
  295. return "mz/mzsrmx";
  296. }
  297. /**
  298. * 门诊号别统计
  299. *
  300. * @return
  301. */
  302. @RequestMapping("/mzhbtj")
  303. public String mzhbtj(HttpServletRequest httpServletRequest) throws Exception {
  304. List<String> urls = getRoleUrls(httpServletRequest);
  305. if (!urls.contains("/thmz/mzhbtj")) {
  306. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  307. }
  308. return "mz/mzhbtj";
  309. }
  310. /**
  311. * 门诊应收核算报表
  312. *
  313. * @return
  314. */
  315. @RequestMapping("/bissinessReport")
  316. public String bissinessReport(HttpServletRequest httpServletRequest) throws Exception {
  317. List<String> urls = getRoleUrls(httpServletRequest);
  318. if (!urls.contains("/thmz/bissinessReport")) {
  319. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  320. }
  321. return "mz/bissinessReport";
  322. }
  323. /**
  324. * 号表字典维护
  325. *
  326. * @return
  327. */
  328. @RequestMapping("/request")
  329. public String request(HttpServletRequest httpServletRequest) throws Exception {
  330. List<String> urls = getRoleUrls(httpServletRequest);
  331. if (!urls.contains("/thmz/request")) {
  332. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  333. }
  334. return "mz/request";
  335. }
  336. /**
  337. * 收费员工作量统计
  338. *
  339. * @return
  340. */
  341. @RequestMapping("/cash-work-count")
  342. public String cashWorkCount(HttpServletRequest httpServletRequest) throws Exception {
  343. List<String> urls = getRoleUrls(httpServletRequest);
  344. if (!urls.contains("/thmz/cash-work-count")) {
  345. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  346. }
  347. return "mz/cash_work_count";
  348. }
  349. /**
  350. * 菜单管理页面
  351. *
  352. * @return
  353. */
  354. @RequestMapping("/menu-manage")
  355. public String menuManage(HttpServletRequest httpServletRequest) throws Exception {
  356. List<String> urls = getRoleUrls(httpServletRequest);
  357. if (!urls.contains("/thmz/menu-manage")) {
  358. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  359. }
  360. return "menu_manage";
  361. }
  362. /**
  363. * 菜单权限设置管理页面
  364. *
  365. * @return
  366. */
  367. @RequestMapping("/user-menu-relation")
  368. public String userMenuRelation(HttpServletRequest httpServletRequest) throws Exception {
  369. List<String> urls = getRoleUrls(httpServletRequest);
  370. if (!urls.contains("/thmz/user-menu-relation")) {
  371. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  372. }
  373. return "user_menu_relation";
  374. }
  375. /**
  376. * 号表预警设置页面
  377. *
  378. * @return
  379. */
  380. @RequestMapping("/request-config")
  381. public String requestConfig(HttpServletRequest httpServletRequest) throws Exception {
  382. List<String> urls = getRoleUrls(httpServletRequest);
  383. if (!urls.contains("/thmz/request-config")) {
  384. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  385. }
  386. return "mz/request-config";
  387. }
  388. /**
  389. * 医技预约科室设置页面
  390. *
  391. * @return
  392. */
  393. @RequestMapping("/schedule-of-medical")
  394. public String scheduleOfMedical(HttpServletRequest httpServletRequest) throws Exception {
  395. List<String> urls = getRoleUrls(httpServletRequest);
  396. if (!urls.contains("/thmz/schedule-of-medical")) {
  397. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  398. }
  399. return "mz/schedule-of-medical";
  400. }
  401. /**
  402. * 医技预约科室预约页面
  403. *
  404. * @return
  405. */
  406. @RequestMapping("/schedule-of-medical-apply")
  407. public String scheduleOfMedicalApply(HttpServletRequest httpServletRequest) throws Exception {
  408. List<String> urls = getRoleUrls(httpServletRequest);
  409. if (!urls.contains("/thmz/schedule-of-medical-apply")) {
  410. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  411. }
  412. return "mz/schedule-of-medical-apply";
  413. }
  414. /**
  415. * 文件上传页面
  416. *
  417. * @return
  418. */
  419. @RequestMapping("/profile-common")
  420. public String profileCommon(HttpServletRequest httpServletRequest) throws Exception {
  421. List<String> urls = getRoleUrls(httpServletRequest);
  422. if (!urls.contains("/thmz/profile-common")) {
  423. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  424. }
  425. return "profile_common";
  426. }
  427. /**
  428. * 入院登记
  429. *
  430. * @return
  431. */
  432. @RequestMapping("/hospitalized")
  433. public String hospitalized(HttpServletRequest httpServletRequest) throws Exception {
  434. List<String> urls = getRoleUrls(httpServletRequest);
  435. if (!urls.contains("/thmz/hospitalized")) {
  436. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  437. }
  438. return "zy/hospitalized";
  439. }
  440. /**
  441. * 节假日配置挂号
  442. *
  443. * @return
  444. */
  445. @RequestMapping("/request-holidays-config")
  446. public String requestHolidaysConfig(HttpServletRequest httpServletRequest) throws Exception {
  447. List<String> urls = getRoleUrls(httpServletRequest);
  448. if (!urls.contains("/thmz/request-holidays-config")) {
  449. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  450. }
  451. return "mz/request_holidays_config";
  452. }
  453. /**
  454. * 预交金处理
  455. *
  456. * @return
  457. */
  458. @RequestMapping("/accepting")
  459. public String accepting(HttpServletRequest httpServletRequest) throws Exception {
  460. List<String> urls = getRoleUrls(httpServletRequest);
  461. if (!urls.contains("/thmz/accepting")) {
  462. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  463. }
  464. return "zy/accepting";
  465. }
  466. /**
  467. * 病人列表
  468. *
  469. * @return
  470. */
  471. @RequestMapping("/actpatient")
  472. public String actpatient(HttpServletRequest httpServletRequest) throws Exception {
  473. List<String> urls = getRoleUrls(httpServletRequest);
  474. if (!urls.contains("/thmz/actpatient")) {
  475. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  476. }
  477. return "zy/actpatient";
  478. }
  479. /**
  480. * 号别类型
  481. *
  482. * @return
  483. */
  484. @RequestMapping("/request-type")
  485. public String requestType(HttpServletRequest httpServletRequest) throws Exception {
  486. List<String> urls = getRoleUrls(httpServletRequest);
  487. if (!urls.contains("/thmz/request-type")) {
  488. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  489. }
  490. return "mz/request_type";
  491. }
  492. /**
  493. * 收费项目字典维护
  494. *
  495. * @return
  496. */
  497. @RequestMapping("/charge-detail")
  498. public String chargeDetail(HttpServletRequest httpServletRequest) throws Exception {
  499. List<String> urls = getRoleUrls(httpServletRequest);
  500. if (!urls.contains("/thmz/charge-detail")) {
  501. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  502. }
  503. return "mz/charge_detail";
  504. }
  505. /**
  506. * 发药提醒
  507. *
  508. * @return
  509. */
  510. @RequestMapping("/to-medicine")
  511. public String toMedicine(HttpServletRequest httpServletRequest) throws Exception {
  512. List<String> urls = getRoleUrls(httpServletRequest);
  513. if (!urls.contains("/thmz/to-medicine")) {
  514. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  515. }
  516. return "mz/to-medicine";
  517. }
  518. /**
  519. * 发药叫号
  520. *
  521. * @return
  522. */
  523. @RequestMapping("/pharmacy-cell-number")
  524. public String pharmacyCellNumber(HttpServletRequest httpServletRequest) throws Exception {
  525. List<String> urls = getRoleUrls(httpServletRequest);
  526. if (!urls.contains("/thmz/pharmacy-cell-number")) {
  527. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  528. }
  529. return "mz/pharmacy-cell-number";
  530. }
  531. /**
  532. * 手机自助缴费查询
  533. *
  534. * @return
  535. */
  536. @RequestMapping("/paid-from-zz")
  537. public String paidFromZz(HttpServletRequest httpServletRequest) throws Exception {
  538. List<String> urls = getRoleUrls(httpServletRequest);
  539. if (!urls.contains("/thmz/paid-from-zz")) {
  540. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  541. }
  542. return "charge/paid_from_zz";
  543. }
  544. /**
  545. * 数据修复工具
  546. *
  547. * @return
  548. */
  549. @RequestMapping("/data-util")
  550. public String dataUtil(HttpServletRequest httpServletRequest) throws Exception {
  551. List<String> urls = getRoleUrls(httpServletRequest);
  552. if (!urls.contains("/thmz/data-util")) {
  553. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  554. }
  555. return "mz/data_util";
  556. }
  557. /**
  558. * 惠民活动
  559. *
  560. * @return
  561. */
  562. @RequestMapping("/discount")
  563. public String discount(HttpServletRequest httpServletRequest) throws Exception {
  564. List<String> urls = getRoleUrls(httpServletRequest);
  565. if (!urls.contains("/thmz/discount")) {
  566. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  567. }
  568. return "charge/discount";
  569. }
  570. /**
  571. * 角色管理
  572. *
  573. * @param httpServletRequest
  574. * @return
  575. * @throws Exception
  576. */
  577. @RequestMapping("/role-manage")
  578. public String roleManage(HttpServletRequest httpServletRequest) throws Exception {
  579. List<String> urls = getRoleUrls(httpServletRequest);
  580. if (!urls.contains("/thmz/role-manage")) {
  581. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  582. }
  583. return "role_manage";
  584. }
  585. /**
  586. * 用户管理
  587. *
  588. * @param httpServletRequest
  589. * @return
  590. * @throws Exception
  591. */
  592. @RequestMapping("/user-manage")
  593. public String userManage(HttpServletRequest httpServletRequest) throws Exception {
  594. List<String> urls = getRoleUrls(httpServletRequest);
  595. if (!urls.contains("/thmz/user-manage")) {
  596. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  597. }
  598. return "user_manage";
  599. }
  600. /**
  601. * 药房库字典管理
  602. *
  603. * @param httpServletRequest
  604. * @return
  605. * @throws Exception
  606. */
  607. @RequestMapping("/group-name")
  608. public String groupName(HttpServletRequest httpServletRequest) throws Exception {
  609. List<String> urls = getRoleUrls(httpServletRequest);
  610. if (!urls.contains("/thmz/group-name")) {
  611. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  612. }
  613. return "mz/group_name";
  614. }
  615. /**
  616. * 发药窗口字典管理
  617. *
  618. * @param httpServletRequest
  619. * @return
  620. * @throws Exception
  621. */
  622. @RequestMapping("/drug-win")
  623. public String drugWin(HttpServletRequest httpServletRequest) throws Exception {
  624. List<String> urls = getRoleUrls(httpServletRequest);
  625. if (!urls.contains("/thmz/drug-win")) {
  626. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  627. }
  628. return "mz/drug_win";
  629. }
  630. /**
  631. * 住院日结
  632. *
  633. * @param httpServletRequest
  634. * @return
  635. * @throws Exception
  636. */
  637. @RequestMapping("/zy-daily")
  638. public String zyDaily(HttpServletRequest httpServletRequest) throws Exception {
  639. List<String> urls = getRoleUrls(httpServletRequest);
  640. if (!urls.contains("/thmz/zy-daily")) {
  641. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  642. }
  643. return "zy/zy_daily";
  644. }
  645. /**
  646. * 门诊西药房配药
  647. *
  648. * @return
  649. */
  650. @RequestMapping("/west-pharmacy-dispensing")
  651. public String westPharmacyDispensing(HttpServletRequest httpServletRequest) throws Exception {
  652. List<String> urls = getRoleUrls(httpServletRequest);
  653. if (!urls.contains("/thmz/west-pharmacy-dispensing")) {
  654. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  655. }
  656. return "mz/west_pharmacy_dispensing";
  657. }
  658. /**
  659. * 门诊西药房发退药
  660. *
  661. * @return
  662. */
  663. @RequestMapping("/west-pharmacy-send")
  664. public String westPharmacySend(HttpServletRequest httpServletRequest) throws Exception {
  665. List<String> urls = getRoleUrls(httpServletRequest);
  666. if (!urls.contains("/thmz/west-pharmacy-send")) {
  667. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  668. }
  669. return "mz/west_pharmacy_send";
  670. }
  671. /**
  672. * 门诊医生就诊
  673. *
  674. * @return
  675. */
  676. @RequestMapping("/clinic")
  677. public String clinic(HttpServletRequest httpServletRequest) throws Exception {
  678. List<String> urls = getRoleUrls(httpServletRequest);
  679. if (!urls.contains("/thmz/clinic")) {
  680. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  681. }
  682. return "mz/clinic";
  683. }
  684. /**
  685. * 嘱托字典
  686. *
  687. * @return
  688. */
  689. @RequestMapping("/instruction-code")
  690. public String instructionCode(HttpServletRequest httpServletRequest) throws Exception {
  691. List<String> urls = getRoleUrls(httpServletRequest);
  692. if (!urls.contains("/thmz/instruction-code")) {
  693. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  694. }
  695. return "mz/instruction_code";
  696. }
  697. /**
  698. * 药品请领
  699. *
  700. * @return
  701. */
  702. @RequestMapping("/drug-apply")
  703. public String drugApply(HttpServletRequest httpServletRequest) throws Exception {
  704. List<String> urls = getRoleUrls(httpServletRequest);
  705. if (!urls.contains("/thmz/drug-apply")) {
  706. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  707. }
  708. return "yf/drug_apply";
  709. }
  710. /**
  711. * 药品接收入库
  712. *
  713. * @return
  714. */
  715. @RequestMapping("/pharmacy-warehouse")
  716. public String pharmacyWarehouse(HttpServletRequest httpServletRequest) throws Exception {
  717. List<String> urls = getRoleUrls(httpServletRequest);
  718. if (!urls.contains("/thmz/pharmacy-warehouse")) {
  719. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  720. }
  721. return "yf/pharmacy_warehouse";
  722. }
  723. /**
  724. * 药品入库记录查询
  725. *
  726. * @return
  727. */
  728. @RequestMapping("/incoming-records")
  729. public String incomingRecords(HttpServletRequest httpServletRequest) throws Exception {
  730. List<String> urls = getRoleUrls(httpServletRequest);
  731. if (!urls.contains("/thmz/incoming-records")) {
  732. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  733. }
  734. return "yf/incoming_records";
  735. }
  736. /**
  737. * 药品出库记录查询
  738. *
  739. * @return
  740. */
  741. @RequestMapping("/ck-records")
  742. public String ckRecords(HttpServletRequest httpServletRequest) throws Exception {
  743. List<String> urls = getRoleUrls(httpServletRequest);
  744. if (!urls.contains("/thmz/ck-records")) {
  745. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  746. }
  747. return "yf/ck_records";
  748. }
  749. /**
  750. * 药房库存清单
  751. *
  752. * @return
  753. */
  754. @RequestMapping("/yf-inventory-list")
  755. public String pharmacyStoreList(HttpServletRequest httpServletRequest) throws Exception {
  756. List<String> urls = getRoleUrls(httpServletRequest);
  757. if (!urls.contains("/thmz/yf-inventory-list")) {
  758. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  759. }
  760. return "yf/yf_inventory_list";
  761. }
  762. /**
  763. * 药品分装组合
  764. *
  765. * @return
  766. */
  767. @RequestMapping("/yf-divide")
  768. public String yfDivide(HttpServletRequest httpServletRequest) throws Exception {
  769. List<String> urls = getRoleUrls(httpServletRequest);
  770. if (!urls.contains("/thmz/yf-divide")) {
  771. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  772. }
  773. return "yf/yf_divide";
  774. }
  775. /**
  776. * 药房药品特殊标志维护
  777. *
  778. * @return
  779. */
  780. @RequestMapping("/yf-special-mark")
  781. public String yfSpecialMark(HttpServletRequest httpServletRequest) throws Exception {
  782. List<String> urls = getRoleUrls(httpServletRequest);
  783. if (!urls.contains("/thmz/yf-special-mark")) {
  784. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  785. }
  786. return "yf/yf_special_mark";
  787. }
  788. /**
  789. * 科室药品维护
  790. *
  791. * @return
  792. */
  793. @RequestMapping("/yf-yp-zd-dept")
  794. public String yfYpZdDept(HttpServletRequest httpServletRequest) throws Exception {
  795. List<String> urls = getRoleUrls(httpServletRequest);
  796. if (!urls.contains("/thmz/yf-yp-zd-dept")) {
  797. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  798. }
  799. return "yf/yf_yp_zd_dept";
  800. }
  801. /**
  802. * 精麻药查询统计
  803. *
  804. * @return
  805. */
  806. @RequestMapping("/spirit-anesthetic-print")
  807. public String spiritAnestheticPrint(HttpServletRequest httpServletRequest) throws Exception {
  808. List<String> urls = getRoleUrls(httpServletRequest);
  809. if (!urls.contains("/thmz/spirit-anesthetic-print")) {
  810. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  811. }
  812. return "yf/spirit_anesthetic_print";
  813. }
  814. /**
  815. * 药品盘点
  816. *
  817. * @return
  818. */
  819. @RequestMapping("/pharmacy-inventory")
  820. public String pharmacyInventory(HttpServletRequest httpServletRequest) throws Exception {
  821. List<String> urls = getRoleUrls(httpServletRequest);
  822. if (!urls.contains("/thmz/pharmacy-inventory")) {
  823. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  824. }
  825. return "yf/yf_inventory";
  826. }
  827. /**
  828. * 病房请领单
  829. *
  830. * @return
  831. */
  832. @RequestMapping("/ward-prescription")
  833. public String wardPrescription(HttpServletRequest httpServletRequest) throws Exception {
  834. List<String> urls = getRoleUrls(httpServletRequest);
  835. if (!urls.contains("/thmz/ward-prescription")) {
  836. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  837. }
  838. return "yf/ward_prescription";
  839. }
  840. /**
  841. * 检查检验
  842. *
  843. * @return
  844. */
  845. @RequestMapping("/jy-jc")
  846. public String jyJc(HttpServletRequest httpServletRequest) throws Exception {
  847. List<String> urls = getRoleUrls(httpServletRequest);
  848. if (!urls.contains("/thmz/jy-jc")) {
  849. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  850. }
  851. return "mz/jy_jc";
  852. }
  853. /**
  854. * 门诊病历
  855. *
  856. * @return
  857. */
  858. @RequestMapping("/mz-bl-record")
  859. public String mzBlRecord(HttpServletRequest httpServletRequest) throws Exception {
  860. List<String> urls = getRoleUrls(httpServletRequest);
  861. if (!urls.contains("/thmz/mz-bl-record")) {
  862. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  863. }
  864. return "mz/mz_bl_record";
  865. }
  866. /**
  867. * 检查检验分类字典
  868. *
  869. * @return
  870. */
  871. @RequestMapping("/jc-jy-zd-class")
  872. public String jcZdClass(HttpServletRequest httpServletRequest) throws Exception {
  873. List<String> urls = getRoleUrls(httpServletRequest);
  874. if (!urls.contains("/thmz/jc-jy-zd-class")) {
  875. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  876. }
  877. return "mz/jc_jy_zd_class";
  878. }
  879. /**
  880. * 检查项目字典
  881. *
  882. * @return
  883. */
  884. @RequestMapping("/jc-jy-zd-item")
  885. public String jcZdItem(HttpServletRequest httpServletRequest) throws Exception {
  886. List<String> urls = getRoleUrls(httpServletRequest);
  887. if (!urls.contains("/thmz/jc-jy-zd-item")) {
  888. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  889. }
  890. return "mz/jc_jy_zd_item";
  891. }
  892. /**
  893. * 临床试验室合作企业与合同号信息管理
  894. *
  895. * @return
  896. */
  897. @RequestMapping("/cooperative-enterprise")
  898. public String cooperativeEnterprise(HttpServletRequest httpServletRequest) throws Exception {
  899. List<String> urls = getRoleUrls(httpServletRequest);
  900. if (!urls.contains("/thmz/cooperative-enterprise")) {
  901. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  902. }
  903. return "mz/cooperative_enterprise";
  904. }
  905. /**
  906. * 按钮管理
  907. *
  908. * @return
  909. */
  910. @RequestMapping("/button")
  911. public String button(HttpServletRequest httpServletRequest) throws Exception {
  912. List<String> urls = getRoleUrls(httpServletRequest);
  913. if (!urls.contains("/thmz/button")) {
  914. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  915. }
  916. return "button";
  917. }
  918. /**
  919. * 门诊医生工作量统计
  920. *
  921. * @return
  922. */
  923. @RequestMapping("/doctor-workload-statistics")
  924. public String doctorWorkloadStatistics(HttpServletRequest httpServletRequest) throws Exception {
  925. List<String> urls = getRoleUrls(httpServletRequest);
  926. if (!urls.contains("/thmz/doctor-workload-statistics")) {
  927. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  928. }
  929. return "mz/doctor_workload_statistics";
  930. }
  931. /**
  932. * 科室工作量统计
  933. *
  934. * @return
  935. */
  936. @RequestMapping("/depart-workload-statistics")
  937. public String departWorkloadStatistics(HttpServletRequest httpServletRequest) throws Exception {
  938. List<String> urls = getRoleUrls(httpServletRequest);
  939. if (!urls.contains("/thmz/depart-workload-statistics")) {
  940. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  941. }
  942. return "mz/depart_workload_statistics";
  943. }
  944. /**
  945. * 打开混检管理页面
  946. *
  947. * @return
  948. */
  949. @RequestMapping("/hybrid-test")
  950. public String hybridTest() {
  951. return "mz/hybrid_test";
  952. }
  953. /**
  954. * 打开核酸混采列表页面
  955. *
  956. * @return
  957. */
  958. @RequestMapping("/hybrid-test-list")
  959. public String hybridTestList() {
  960. return "mz/hybrid_test_list";
  961. }
  962. /**
  963. * 打开评价器欢迎页面
  964. *
  965. * @return
  966. */
  967. @RequestMapping("/client-welcome")
  968. public String clientWelcome() {
  969. return "mz/client_welcome";
  970. }
  971. /**
  972. * 打开评价器登录后的首页
  973. *
  974. * @return
  975. */
  976. @RequestMapping("/client-index")
  977. public String clientIndex() {
  978. return "mz/client_index";
  979. }
  980. // /**
  981. // * 评价评价页面
  982. // *
  983. // * @return
  984. // */
  985. // @RequestMapping("/client-evaluate")
  986. // public String clientEvaluate() {
  987. // return "mz/client_evaluate";
  988. // }
  989. //
  990. // /**
  991. // * 评价价格页面
  992. // *
  993. // * @return
  994. // */
  995. // @RequestMapping("/client-price")
  996. // public String clientPrice() {
  997. // return "mz/client_price";
  998. // }
  999. /**
  1000. * 核酸检查申请列表
  1001. *
  1002. * @return
  1003. */
  1004. @RequestMapping("/hs-jc")
  1005. public String hsJc(HttpServletRequest httpServletRequest) throws Exception {
  1006. List<String> urls = getRoleUrls(httpServletRequest);
  1007. if (!urls.contains("/thmz/hs-jc")) {
  1008. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1009. }
  1010. return "mz/hs_jc";
  1011. }
  1012. /**
  1013. * 评价列表
  1014. *
  1015. * @return
  1016. */
  1017. @RequestMapping("/evaluation-list")
  1018. public String evaluationList(HttpServletRequest httpServletRequest) throws Exception {
  1019. List<String> urls = getRoleUrls(httpServletRequest);
  1020. if (!urls.contains("/thmz/evaluation-list")) {
  1021. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1022. }
  1023. return "mz/evaluation_list";
  1024. }
  1025. /**
  1026. * 缴费成功提示语设置
  1027. *
  1028. * @return
  1029. */
  1030. @RequestMapping("/message-to-phone")
  1031. public String messageToPhone(HttpServletRequest httpServletRequest) throws Exception {
  1032. List<String> urls = getRoleUrls(httpServletRequest);
  1033. if (!urls.contains("/thmz/message-to-phone")) {
  1034. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1035. }
  1036. return "mz/message_to_phone";
  1037. }
  1038. /**
  1039. * 危急值列表
  1040. *
  1041. * @return
  1042. */
  1043. @RequestMapping("/critical-value-list")
  1044. public String criticalValueList(HttpServletRequest httpServletRequest) throws Exception {
  1045. List<String> urls = getRoleUrls(httpServletRequest);
  1046. if (!urls.contains("/thmz/critical-value-list")) {
  1047. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1048. }
  1049. return "mz/critical_value_list";
  1050. }
  1051. /**
  1052. * 排队取药
  1053. *
  1054. * @return
  1055. */
  1056. @RequestMapping("/pharmacy-cell")
  1057. public String pharmacyCell(HttpServletRequest httpServletRequest) throws Exception {
  1058. List<String> urls = getRoleUrls(httpServletRequest);
  1059. if (!urls.contains("/thmz/pharmacy-cell")) {
  1060. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1061. }
  1062. return "mz/pharmacy-cell";
  1063. }
  1064. /**
  1065. * 药库药品入库
  1066. *
  1067. * @return
  1068. */
  1069. @RequestMapping("/drug-storage")
  1070. public String drugStorage(HttpServletRequest httpServletRequest) throws Exception {
  1071. List<String> urls = getRoleUrls(httpServletRequest);
  1072. if (!urls.contains("/thmz/drug-storage")) {
  1073. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1074. }
  1075. return "yk/drug_storage";
  1076. }
  1077. /**
  1078. * 消息列表
  1079. *
  1080. * @return
  1081. */
  1082. @RequestMapping("/notice-list")
  1083. public String noticeList(HttpServletRequest httpServletRequest) throws Exception {
  1084. List<String> urls = getRoleUrls(httpServletRequest);
  1085. if (!urls.contains("/thmz/notice-list")) {
  1086. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1087. }
  1088. return "mz/notice_list";
  1089. }
  1090. /**
  1091. * 药库药品出库
  1092. *
  1093. * @return
  1094. */
  1095. @RequestMapping("/drug-delivery")
  1096. public String drugDelivery(HttpServletRequest httpServletRequest) throws Exception {
  1097. List<String> urls = getRoleUrls(httpServletRequest);
  1098. if (!urls.contains("/thmz/drug-delivery")) {
  1099. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1100. }
  1101. return "yk/drug_delivery";
  1102. }
  1103. /**
  1104. * 入库验收汇总查询
  1105. *
  1106. * @return
  1107. */
  1108. @RequestMapping("/in-storage-acc-sum")
  1109. public String inStorageAccSum(HttpServletRequest httpServletRequest) throws Exception {
  1110. List<String> urls = getRoleUrls(httpServletRequest);
  1111. if (!urls.contains("/thmz/in-storage-acc-sum")) {
  1112. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1113. }
  1114. return "yk/in_storage_acc_sum";
  1115. }
  1116. /**
  1117. * 药品退库
  1118. *
  1119. * @return
  1120. */
  1121. @RequestMapping("/drug-return")
  1122. public String drugReturn(HttpServletRequest httpServletRequest) throws Exception {
  1123. List<String> urls = getRoleUrls(httpServletRequest);
  1124. if (!urls.contains("/thmz/drug-return")) {
  1125. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1126. }
  1127. return "yk/drug_return";
  1128. }
  1129. /**
  1130. * 药品账页
  1131. *
  1132. * @return
  1133. */
  1134. @RequestMapping("/drug-info")
  1135. public String drugBase(HttpServletRequest httpServletRequest) throws Exception {
  1136. List<String> urls = getRoleUrls(httpServletRequest);
  1137. if (!urls.contains("/thmz/drug-info")) {
  1138. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1139. }
  1140. return "yk/drug_info";
  1141. }
  1142. /**
  1143. * 药品退货
  1144. *
  1145. * @return
  1146. */
  1147. @RequestMapping("/drug-sales-return")
  1148. public String drugSalesReturn(HttpServletRequest httpServletRequest) throws Exception {
  1149. List<String> urls = getRoleUrls(httpServletRequest);
  1150. if (!urls.contains("/thmz/drug-sales-return")) {
  1151. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1152. }
  1153. return "yk/drug_sales_return";
  1154. }
  1155. /**
  1156. * 药品调价
  1157. *
  1158. * @return
  1159. */
  1160. @RequestMapping("/drug-reprice")
  1161. public String drugReprice(HttpServletRequest httpServletRequest) throws Exception {
  1162. List<String> urls = getRoleUrls(httpServletRequest);
  1163. if (!urls.contains("/thmz/drug-reprice")) {
  1164. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1165. }
  1166. return "yk/drug_reprice";
  1167. }
  1168. /**
  1169. * 药品购入情况分析
  1170. *
  1171. * @return
  1172. */
  1173. @RequestMapping("/drug-purchase-situation")
  1174. public String drugPurchaseSituation(HttpServletRequest httpServletRequest) throws Exception {
  1175. List<String> urls = getRoleUrls(httpServletRequest);
  1176. if (!urls.contains("/thmz/drug-purchase-situation")) {
  1177. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1178. }
  1179. return "yk/drug_purchase_situation";
  1180. }
  1181. /**
  1182. * 药品购入情况分析
  1183. *
  1184. * @return
  1185. */
  1186. @RequestMapping("/drug-in-out-count")
  1187. public String drugInOutCount(HttpServletRequest httpServletRequest) throws Exception {
  1188. List<String> urls = getRoleUrls(httpServletRequest);
  1189. if (!urls.contains("/thmz/drug-in-out-count")) {
  1190. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1191. }
  1192. return "yk/drug_in_out_count";
  1193. }
  1194. /**
  1195. * 科室药品出库销售统计
  1196. *
  1197. * @return
  1198. */
  1199. @RequestMapping("/drug-out-statistics")
  1200. public String drugOutStatistics(HttpServletRequest httpServletRequest) throws Exception {
  1201. List<String> urls = getRoleUrls(httpServletRequest);
  1202. if (!urls.contains("/thmz/drug-out-statistics")) {
  1203. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1204. }
  1205. return "yk/drug_out_statistics";
  1206. }
  1207. /**
  1208. * 药品使用量统计分析
  1209. *
  1210. * @return
  1211. */
  1212. @RequestMapping("/drug-use-quantity-count")
  1213. public String drugUseQuantityCount(HttpServletRequest httpServletRequest) throws Exception {
  1214. List<String> urls = getRoleUrls(httpServletRequest);
  1215. if (!urls.contains("/thmz/drug-use-quantity-count")) {
  1216. throw new Exception("您没有此模块的权限,请联系管理员开通!");
  1217. }
  1218. return "yk/drug_use_quantity_count";
  1219. }
  1220. }