修改人员定位接口地址

pull/5/head^2
fangjiakai 2024-03-01 12:08:00 +08:00
parent f7ebc6a958
commit b5f20683d4
2 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ public class LoginController extends BaseController {
PageData dpd = new PageData(); PageData dpd = new PageData();
dpd.put("DEPARTMENT_ID", pd.getString("DEPARTMENT_ID")); dpd.put("DEPARTMENT_ID", pd.getString("DEPARTMENT_ID"));
dpd = departmentService.findById(dpd); dpd = departmentService.findById(dpd);
if (dpd.getString("FOREIGNPERSONNEL").equals("1")) { if ("1".equals(dpd.getString("FOREIGNPERSONNEL"))) {
return ReturnMap.error("账号密码不正确"); return ReturnMap.error("账号密码不正确");
} }
map.put("DEPARTMENT_NAME", dpd.getString("NAME")); map.put("DEPARTMENT_NAME", dpd.getString("NAME"));

View File

@ -393,7 +393,7 @@ public class PLSUtil {
headers.set("Authorization", getToken(CORPINFO_ID)); headers.set("Authorization", getToken(CORPINFO_ID));
HttpEntity<JSONObject> httpEntity = new HttpEntity<>(headers); 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(); return exchange.getBody();
} }