Commit 763105661752c55ab9c9d282a2d7deafdda68498
1 parent
1ed3d540
1.报修url写入配置文件
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/com/bsth/controller/realcontrol/ScheduleRealInfoController.java
| @@ -36,6 +36,7 @@ import com.bsth.entity.schedule.SchedulePlanInfo; | @@ -36,6 +36,7 @@ import com.bsth.entity.schedule.SchedulePlanInfo; | ||
| 36 | import com.bsth.entity.sys.SysUser; | 36 | import com.bsth.entity.sys.SysUser; |
| 37 | import com.bsth.security.util.SecurityUtils; | 37 | import com.bsth.security.util.SecurityUtils; |
| 38 | import com.bsth.service.realcontrol.ScheduleRealInfoService; | 38 | import com.bsth.service.realcontrol.ScheduleRealInfoService; |
| 39 | +import com.bsth.util.ConfigUtil; | ||
| 39 | import com.fasterxml.jackson.databind.ObjectMapper; | 40 | import com.fasterxml.jackson.databind.ObjectMapper; |
| 40 | 41 | ||
| 41 | @RestController | 42 | @RestController |
| @@ -720,8 +721,8 @@ public class ScheduleRealInfoController extends BaseController<ScheduleRealInfo, | @@ -720,8 +721,8 @@ public class ScheduleRealInfoController extends BaseController<ScheduleRealInfo, | ||
| 720 | public Map<String, Object> deleteToHistory(@RequestParam Map<String, Object> param){ | 721 | public Map<String, Object> deleteToHistory(@RequestParam Map<String, Object> param){ |
| 721 | SysUser user = SecurityUtils.getCurrentUser(); | 722 | SysUser user = SecurityUtils.getCurrentUser(); |
| 722 | String uname = user.getUserName(); | 723 | String uname = user.getUserName(); |
| 723 | - StringBuilder url = new StringBuilder("http://116.247.73.122:9098/jgjwsystem_j2ee/clbx/clbx_dd_gps.do?nbbm="); | ||
| 724 | - url.append(param.get("nbbm")).append("&bxy=").append(uname).append("&bxbm=").append(param.get("bxType")); | 724 | + StringBuilder url = new StringBuilder(ConfigUtil.get("http.report.url")); |
| 725 | + url.append("?nbbm=").append(param.get("nbbm")).append("&bxy=").append(uname).append("&bxbm=").append(param.get("bxType")); | ||
| 725 | 726 | ||
| 726 | return request(url.toString()); | 727 | return request(url.toString()); |
| 727 | } | 728 | } |