Commit 9592bfe3ca5a972600922484ad45433bae9c3745

Authored by zlz
1 parent 9048b5ff

运管处路单上传BUG修改

src/main/java/com/bsth/controller/schedule/TrafficManageController.java
@@ -8,6 +8,8 @@ import org.springframework.web.bind.annotation.RequestMethod; @@ -8,6 +8,8 @@ import org.springframework.web.bind.annotation.RequestMethod;
8 import org.springframework.web.bind.annotation.RequestParam; 8 import org.springframework.web.bind.annotation.RequestParam;
9 import org.springframework.web.bind.annotation.RestController; 9 import org.springframework.web.bind.annotation.RestController;
10 10
  11 +import java.util.Map;
  12 +
11 /** 13 /**
12 * 14 *
13 * @author BSTH 15 * @author BSTH
@@ -22,9 +24,9 @@ public class TrafficManageController { @@ -22,9 +24,9 @@ public class TrafficManageController {
22 24
23 25
24 @RequestMapping(value = "/setXL", method = RequestMethod.GET) 26 @RequestMapping(value = "/setXL", method = RequestMethod.GET)
25 - public String setXL() throws Exception { 27 + public String setXL(@RequestParam Map<String, Object> param) throws Exception {
26 try { 28 try {
27 - return trManageService.setXL(); 29 + return trManageService.setXL(param);
28 } catch (Exception exp) { 30 } catch (Exception exp) {
29 throw new Exception(exp.getCause()); 31 throw new Exception(exp.getCause());
30 } 32 }
@@ -57,6 +59,15 @@ public class TrafficManageController { @@ -57,6 +59,15 @@ public class TrafficManageController {
57 } 59 }
58 } 60 }
59 61
  62 + @RequestMapping(value = "/setLDFile", method = RequestMethod.GET)
  63 + public String setLDFile() throws Exception {
  64 + try {
  65 + return trManageService.setLDFile();
  66 + } catch (Exception exp) {
  67 + throw new Exception(exp.getCause());
  68 + }
  69 + }
  70 +
60 @RequestMapping(value = "/setLCYH", method = RequestMethod.GET) 71 @RequestMapping(value = "/setLCYH", method = RequestMethod.GET)
61 public String setLCYH() throws Exception { 72 public String setLCYH() throws Exception {
62 try { 73 try {