Commit 5c62f2ed74065525c192f51c2d9556b29c82e9f5
1 parent
a1ee3de6
运管处时刻表调整
Showing
1 changed file
with
54 additions
and
18 deletions
src/main/java/com/bsth/controller/schedule/TrafficManageController.java
| ... | ... | @@ -3,25 +3,24 @@ package com.bsth.controller.schedule; |
| 3 | 3 | import com.bsth.service.TrafficManageService; |
| 4 | 4 | |
| 5 | 5 | import org.springframework.beans.factory.annotation.Autowired; |
| 6 | -import org.springframework.web.bind.annotation.PathVariable; | |
| 7 | 6 | import org.springframework.web.bind.annotation.RequestMapping; |
| 8 | 7 | import org.springframework.web.bind.annotation.RequestMethod; |
| 9 | 8 | import org.springframework.web.bind.annotation.RequestParam; |
| 10 | 9 | import org.springframework.web.bind.annotation.RestController; |
| 11 | 10 | |
| 12 | 11 | /** |
| 13 | - * | |
| 12 | + * | |
| 14 | 13 | * @author BSTH |
| 15 | 14 | * |
| 16 | 15 | */ |
| 17 | 16 | @RestController |
| 18 | 17 | @RequestMapping("trmg") |
| 19 | 18 | public class TrafficManageController { |
| 20 | - | |
| 19 | + | |
| 21 | 20 | @Autowired |
| 22 | - private TrafficManageService trManageService; | |
| 23 | - | |
| 24 | - | |
| 21 | + private TrafficManageService trManageService; | |
| 22 | + | |
| 23 | + | |
| 25 | 24 | @RequestMapping(value = "/setXL", method = RequestMethod.GET) |
| 26 | 25 | public String setXL() throws Exception { |
| 27 | 26 | try { |
| ... | ... | @@ -30,7 +29,7 @@ public class TrafficManageController { |
| 30 | 29 | throw new Exception(exp.getCause()); |
| 31 | 30 | } |
| 32 | 31 | } |
| 33 | - | |
| 32 | + | |
| 34 | 33 | @RequestMapping(value = "/setCL", method = RequestMethod.GET) |
| 35 | 34 | public String setCL() throws Exception { |
| 36 | 35 | try { |
| ... | ... | @@ -39,7 +38,7 @@ public class TrafficManageController { |
| 39 | 38 | throw new Exception(exp.getCause()); |
| 40 | 39 | } |
| 41 | 40 | } |
| 42 | - | |
| 41 | + | |
| 43 | 42 | @RequestMapping(value = "/setSJ", method = RequestMethod.GET) |
| 44 | 43 | public String setSJ() throws Exception { |
| 45 | 44 | try { |
| ... | ... | @@ -48,16 +47,43 @@ public class TrafficManageController { |
| 48 | 47 | throw new Exception(exp.getCause()); |
| 49 | 48 | } |
| 50 | 49 | } |
| 51 | - | |
| 52 | - @RequestMapping(value = "/setCS", method = RequestMethod.GET) | |
| 53 | - public String setCS() throws Exception { | |
| 50 | + | |
| 51 | + @RequestMapping(value = "/setLD", method = RequestMethod.GET) | |
| 52 | + public String setLD() throws Exception { | |
| 54 | 53 | try { |
| 55 | - return trManageService.setCS(); | |
| 54 | + return trManageService.setLD(); | |
| 55 | + } catch (Exception exp) { | |
| 56 | + throw new Exception(exp.getCause()); | |
| 57 | + } | |
| 58 | + } | |
| 59 | + | |
| 60 | + @RequestMapping(value = "/setLCYH", method = RequestMethod.GET) | |
| 61 | + public String setLCYH() throws Exception { | |
| 62 | + try { | |
| 63 | + return trManageService.setLCYH(); | |
| 64 | + } catch (Exception exp) { | |
| 65 | + throw new Exception(exp.getCause()); | |
| 66 | + } | |
| 67 | + } | |
| 68 | + | |
| 69 | + @RequestMapping(value = "/setDDRB", method = RequestMethod.GET) | |
| 70 | + public String setDDRB() throws Exception { | |
| 71 | + try { | |
| 72 | + return trManageService.setDDRB(); | |
| 56 | 73 | } catch (Exception exp) { |
| 57 | 74 | throw new Exception(exp.getCause()); |
| 58 | 75 | } |
| 59 | 76 | } |
| 60 | - | |
| 77 | + | |
| 78 | + @RequestMapping(value = "/setJHBC", method = RequestMethod.GET) | |
| 79 | + public String setJHBC() throws Exception { | |
| 80 | + try { | |
| 81 | + return trManageService.setJHBC(); | |
| 82 | + } catch (Exception exp) { | |
| 83 | + throw new Exception(exp.getCause()); | |
| 84 | + } | |
| 85 | + } | |
| 86 | + | |
| 61 | 87 | @RequestMapping(value = "/setSKB", method = RequestMethod.GET) |
| 62 | 88 | public String setSKB(@RequestParam("ids") String ids) throws Exception { |
| 63 | 89 | try { |
| ... | ... | @@ -66,7 +92,7 @@ public class TrafficManageController { |
| 66 | 92 | throw new Exception(exp.getCause()); |
| 67 | 93 | } |
| 68 | 94 | } |
| 69 | - | |
| 95 | + | |
| 70 | 96 | @RequestMapping(value = "/setXLPC", method = RequestMethod.GET) |
| 71 | 97 | public String setXLPC() throws Exception { |
| 72 | 98 | try { |
| ... | ... | @@ -75,13 +101,23 @@ public class TrafficManageController { |
| 75 | 101 | throw new Exception(exp.getCause()); |
| 76 | 102 | } |
| 77 | 103 | } |
| 78 | - | |
| 79 | - @RequestMapping(value = "/setJHBC", method = RequestMethod.GET) | |
| 80 | - public String setJHBC() throws Exception { | |
| 104 | + | |
| 105 | + @RequestMapping(value = "/setCS", method = RequestMethod.GET) | |
| 106 | + public String setCS() throws Exception { | |
| 81 | 107 | try { |
| 82 | - return trManageService.setDDRB(); | |
| 108 | + return trManageService.setCS(); | |
| 83 | 109 | } catch (Exception exp) { |
| 84 | 110 | throw new Exception(exp.getCause()); |
| 85 | 111 | } |
| 86 | 112 | } |
| 113 | + | |
| 114 | + @RequestMapping(value = "/getDownLoadAllDataFile", method = RequestMethod.GET) | |
| 115 | + public String getDownLoadAllDataFile() throws Exception { | |
| 116 | + try { | |
| 117 | + return trManageService.getDownLoadAllDataFile(); | |
| 118 | + } catch (Exception exp) { | |
| 119 | + throw new Exception(exp.getCause()); | |
| 120 | + } | |
| 121 | + } | |
| 122 | + | |
| 87 | 123 | } | ... | ... |