Commit 4c53d2861fa0ad639dc3211ba58f9b994d781cc3
1 parent
769bfda9
运管处接口控制器 提交
Showing
1 changed file
with
56 additions
and
0 deletions
src/main/java/com/bsth/controller/schedule/TrafficManageController.java
| ... | ... | @@ -3,8 +3,10 @@ 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; | |
| 6 | 7 | import org.springframework.web.bind.annotation.RequestMapping; |
| 7 | 8 | import org.springframework.web.bind.annotation.RequestMethod; |
| 9 | +import org.springframework.web.bind.annotation.RequestParam; | |
| 8 | 10 | import org.springframework.web.bind.annotation.RestController; |
| 9 | 11 | |
| 10 | 12 | /** |
| ... | ... | @@ -28,4 +30,58 @@ public class TrafficManageController { |
| 28 | 30 | throw new Exception(exp.getCause()); |
| 29 | 31 | } |
| 30 | 32 | } |
| 33 | + | |
| 34 | + @RequestMapping(value = "/setCL", method = RequestMethod.GET) | |
| 35 | + public String setCL() throws Exception { | |
| 36 | + try { | |
| 37 | + return trManageService.setCL(); | |
| 38 | + } catch (Exception exp) { | |
| 39 | + throw new Exception(exp.getCause()); | |
| 40 | + } | |
| 41 | + } | |
| 42 | + | |
| 43 | + @RequestMapping(value = "/setSJ", method = RequestMethod.GET) | |
| 44 | + public String setSJ() throws Exception { | |
| 45 | + try { | |
| 46 | + return trManageService.setSJ(); | |
| 47 | + } catch (Exception exp) { | |
| 48 | + throw new Exception(exp.getCause()); | |
| 49 | + } | |
| 50 | + } | |
| 51 | + | |
| 52 | + @RequestMapping(value = "/setCS", method = RequestMethod.GET) | |
| 53 | + public String setCS() throws Exception { | |
| 54 | + try { | |
| 55 | + return trManageService.setCS(); | |
| 56 | + } catch (Exception exp) { | |
| 57 | + throw new Exception(exp.getCause()); | |
| 58 | + } | |
| 59 | + } | |
| 60 | + | |
| 61 | + @RequestMapping(value = "/setSKB", method = RequestMethod.GET) | |
| 62 | + public String setSKB(@RequestParam("ids") String ids) throws Exception { | |
| 63 | + try { | |
| 64 | + return trManageService.setSKB(ids); | |
| 65 | + } catch (Exception exp) { | |
| 66 | + throw new Exception(exp.getCause()); | |
| 67 | + } | |
| 68 | + } | |
| 69 | + | |
| 70 | + @RequestMapping(value = "/setXLPC", method = RequestMethod.GET) | |
| 71 | + public String setXLPC() throws Exception { | |
| 72 | + try { | |
| 73 | + return trManageService.setXLPC(); | |
| 74 | + } catch (Exception exp) { | |
| 75 | + throw new Exception(exp.getCause()); | |
| 76 | + } | |
| 77 | + } | |
| 78 | + | |
| 79 | + @RequestMapping(value = "/setJHBC", method = RequestMethod.GET) | |
| 80 | + public String setJHBC() throws Exception { | |
| 81 | + try { | |
| 82 | + return trManageService.setDDRB(); | |
| 83 | + } catch (Exception exp) { | |
| 84 | + throw new Exception(exp.getCause()); | |
| 85 | + } | |
| 86 | + } | |
| 31 | 87 | } | ... | ... |