forked from integrated_whb/integrated_whb
修改人员定位接口地址
parent
f7ebc6a958
commit
b5f20683d4
|
@ -149,7 +149,7 @@ public class LoginController extends BaseController {
|
|||
PageData dpd = new PageData();
|
||||
dpd.put("DEPARTMENT_ID", pd.getString("DEPARTMENT_ID"));
|
||||
dpd = departmentService.findById(dpd);
|
||||
if (dpd.getString("FOREIGNPERSONNEL").equals("1")) {
|
||||
if ("1".equals(dpd.getString("FOREIGNPERSONNEL"))) {
|
||||
return ReturnMap.error("账号密码不正确");
|
||||
}
|
||||
map.put("DEPARTMENT_NAME", dpd.getString("NAME"));
|
||||
|
|
|
@ -393,7 +393,7 @@ public class PLSUtil {
|
|||
|
||||
headers.set("Authorization", getToken(CORPINFO_ID));
|
||||
HttpEntity<JSONObject> httpEntity = new HttpEntity<>(headers);
|
||||
ResponseEntity<JSONObject> exchange = restTemplate.exchange(getBakeAddr(CORPINFO_ID) + "/api/prod-api/coordinate/realTime/data", HttpMethod.GET, httpEntity, JSONObject.class);
|
||||
ResponseEntity<JSONObject> exchange = restTemplate.exchange(getBakeAddr(CORPINFO_ID) + "/location/loca", HttpMethod.GET, httpEntity, JSONObject.class);
|
||||
return exchange.getBody();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue