|
@@ -6,13 +6,17 @@ import cn.hutool.core.date.DateUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.TypeReference;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
import com.gyee.common.model.PointData;
|
|
|
import com.gyee.runeconomy.config.GyeeConfig;
|
|
|
import com.gyee.runeconomy.init.CacheContext;
|
|
|
+import com.gyee.runeconomy.mapper.PowerLossesMapper;
|
|
|
+import com.gyee.runeconomy.model.PowerLosses;
|
|
|
import com.gyee.runeconomy.model.StatusTime;
|
|
|
import com.gyee.runeconomy.model.auto.PointInfo;
|
|
|
import com.gyee.runeconomy.model.auto.ProBasicEquipment;
|
|
|
import com.gyee.runeconomy.model.auto.ProBasicEquipmentPoint;
|
|
|
+import com.gyee.runeconomy.service.PowerLossesService;
|
|
|
import com.gyee.runeconomy.service.agc.AgcDeviateService;
|
|
|
import com.gyee.runeconomy.service.auto.IPointInfoService;
|
|
|
import com.gyee.runeconomy.util.realtimesource.IEdosUtil;
|
|
@@ -50,6 +54,8 @@ public class AgcDeviateController {
|
|
|
|
|
|
@Resource
|
|
|
private IPointInfoService pointInfoService;
|
|
|
+ @Resource
|
|
|
+ private PowerLossesMapper powerLossesMapper;
|
|
|
|
|
|
|
|
|
* 获取偏差信息
|
|
@@ -73,7 +79,12 @@ public class AgcDeviateController {
|
|
|
}
|
|
|
return ls.stream().collect(Collectors.toMap(AgcDeviateTag::getName, f -> f));
|
|
|
}
|
|
|
-
|
|
|
+ @GetMapping("/xdloss")
|
|
|
+ public List<PowerLosses> getxdData() {
|
|
|
+ QueryWrapper<PowerLosses> queryWrapper = new QueryWrapper<>();
|
|
|
+ List<PowerLosses> powerLosses = powerLossesMapper.selectList(queryWrapper);
|
|
|
+ return powerLosses;
|
|
|
+ }
|
|
|
|
|
|
* 获取配置
|
|
|
*
|