Commit 19e4f622 by songyinghui

feat: 数据转换

parent 995336dd
......@@ -343,12 +343,11 @@ public class MaterialDataAdaptor {
return new Page<>();
}
Page<MaterialStoreUsedDataVO> pageResult = new Page<>();
List<MaterialStoreUsedDataVO> materialStoreUsedDataVOS =null;
List<JSONObject> jsonObjects = JSON.parseArray(JSON.toJSONString(result.get("data")), JSONObject.class);
if (CollectionUtils.isEmpty(jsonObjects)) {
return new Page<>();
}
jsonObjects.stream()
List<MaterialStoreUsedDataVO> materialStoreUsedDataVOS = jsonObjects.stream()
.map(item -> {
MaterialStoreUsedDataVO temp = JSONObject.parseObject(item.toJSONString(), MaterialStoreUsedDataVO.class);
temp.setDayAvgUseRate(item.getBigDecimal("dayAvgUseBindProportion"));
......
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