Commit cc844702 authored by Administrator's avatar Administrator

绑定接口异常

parent bb366064
......@@ -106,7 +106,9 @@ public class CmptService {
Map<String,String> enrollUser = remoteService.getEnrollUsersByUserMapId(userMapId);
phone = enrollUser.get("mobileNum");
name = enrollUser.get("name");
teamId = enrollUser.get("teamId");
if(enrollUser.containsKey(teamId) && StringUtils.isNotBlank(enrollUser.get("teamId"))){
teamId = enrollUser.get("teamId");
}
}
// 根据手机号和姓名查计时名单
EnrollInfo info = getUserInfoByPhone(phone, cmptId, name);
......
......@@ -77,7 +77,9 @@ public class RoadsGpsCheckpointController {
List<RoadsGpsCheckpointMap> roadsGpsCheckpointMapList = new ArrayList<>();
JSONObject object = JSONObject.parseObject(points);
JSONArray result = object.getJSONArray("placeMark");
if (result == null || result.isEmpty()) return Result.fail().setMsg("未设置轨迹");
if (result == null || result.isEmpty()) {
return Result.fail().setMsg("未设置轨迹");
}
for (int i = 0; i < result.size(); i++) {
RoadsGpsCheckpointMap roadsGpsCheckpointMap = new RoadsGpsCheckpointMap();
JSONObject o = (JSONObject) result.get(i);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment