fix 修改返回前端字段名
This commit is contained in:
@@ -479,7 +479,7 @@ public class BigScreenServiceImpl implements BigScreenService {
|
|||||||
JSONArray data = ObjectUtil.isNotEmpty(devicesStatus) ? devicesStatus.getJSONArray("data") : res;
|
JSONArray data = ObjectUtil.isNotEmpty(devicesStatus) ? devicesStatus.getJSONArray("data") : res;
|
||||||
for (int i = 0; i < data.size(); i++) {
|
for (int i = 0; i < data.size(); i++) {
|
||||||
JSONObject object = data.getJSONObject(i);
|
JSONObject object = data.getJSONObject(i);
|
||||||
result.put(object.getString("device_code"), object);
|
result.put("agv_" + object.getString("device_code"), object);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}, pool);
|
}, pool);
|
||||||
|
|||||||
Reference in New Issue
Block a user