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 | 36 | import com.bsth.entity.sys.SysUser; |
| 37 | 37 | import com.bsth.security.util.SecurityUtils; |
| 38 | 38 | import com.bsth.service.realcontrol.ScheduleRealInfoService; |
| 39 | +import com.bsth.util.ConfigUtil; | |
| 39 | 40 | import com.fasterxml.jackson.databind.ObjectMapper; |
| 40 | 41 | |
| 41 | 42 | @RestController |
| ... | ... | @@ -720,8 +721,8 @@ public class ScheduleRealInfoController extends BaseController<ScheduleRealInfo, |
| 720 | 721 | public Map<String, Object> deleteToHistory(@RequestParam Map<String, Object> param){ |
| 721 | 722 | SysUser user = SecurityUtils.getCurrentUser(); |
| 722 | 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 | 727 | return request(url.toString()); |
| 727 | 728 | } | ... | ... |