|
|
@ -47,11 +47,9 @@ public class B2HandServiceImpl implements B2HandService { |
|
|
|
@Override |
|
|
|
public Map<String, Object> callTask(B2HeadDto dto) { |
|
|
|
JSONArray errArr = new JSONArray(); |
|
|
|
String start_device_code = dto.getStart_device_code1(); |
|
|
|
String next_device_code = dto.getNext_device_code1(); |
|
|
|
String start_device_code2 = dto.getStart_device_code2(); |
|
|
|
String next_device_code2 = dto.getNext_device_code2(); |
|
|
|
String task_type = dto.getTask_type(); |
|
|
|
String start_device_code = dto.getStart_device_code(); |
|
|
|
String next_device_code = dto.getNext_device_code(); |
|
|
|
String task_type = dto.getType(); |
|
|
|
|
|
|
|
if (StrUtil.isEmpty(start_device_code)) { |
|
|
|
throw new BadRequestException("起点1不能为空"); |
|
|
@ -64,17 +62,6 @@ public class B2HandServiceImpl implements B2HandService { |
|
|
|
} |
|
|
|
|
|
|
|
JSONObject jo = new JSONObject(); |
|
|
|
if (StrUtil.equals(task_type, CommonFinalParam.TYPE_ONE)) { |
|
|
|
jo.put("start_device_code2", start_device_code2); |
|
|
|
jo.put("next_device_code2", next_device_code2); |
|
|
|
jo.put("start_point_code2", start_device_code2); |
|
|
|
jo.put("next_point_code2", next_device_code2); |
|
|
|
} else if (StrUtil.equals(task_type, CommonFinalParam.TYPE_TWO)) { |
|
|
|
jo.put("start_device_code2", start_device_code2); |
|
|
|
jo.put("next_device_code2", next_device_code2); |
|
|
|
jo.put("start_point_code2", start_device_code2); |
|
|
|
jo.put("next_point_code2", next_device_code2); |
|
|
|
} |
|
|
|
jo.put("start_device_code", start_device_code); |
|
|
|
jo.put("next_device_code", next_device_code); |
|
|
|
jo.put("start_point_code", start_device_code); |
|
|
|