|
@@ -19,6 +19,7 @@ import com.gyee.runeconomy.model.auto.*;
|
|
|
import com.gyee.runeconomy.service.TokenService;
|
|
|
import com.gyee.runeconomy.service.auto.IProBasicPowerPointService;
|
|
|
import com.gyee.runeconomy.service.auto.IProBasicPowerstationPointService;
|
|
|
+import com.gyee.runeconomy.service.auto.impl.ProEconManufacturerServiceImpl;
|
|
|
import com.gyee.runeconomy.util.StringUtils;
|
|
|
import com.gyee.runeconomy.util.realtimesource.IEdosUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -48,6 +49,9 @@ public class MatrixService {
|
|
|
@Resource
|
|
|
private IProBasicPowerstationPointService pointService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private ProEconManufacturerServiceImpl proEconManufacturerService;
|
|
|
+
|
|
|
public Map<String, Object> matrixMX(String company, String type) throws Exception {
|
|
|
|
|
|
HttpServletRequest request = ((ServletRequestAttributes) (RequestContextHolder.currentRequestAttributes())).getRequest();
|
|
@@ -819,14 +823,19 @@ public class MatrixService {
|
|
|
List<ProBasicEquipment> collect = CacheContext.wtls.stream().filter(w -> wtid.equals(w.getId())).collect(Collectors.toList());
|
|
|
List<ProEconEquipmentmodel> cs = CacheContext.equipmentmodels.stream().filter(m -> collect.get(0).getModelId().equals(m.getId())).collect(Collectors.toList());
|
|
|
|
|
|
+ QueryWrapper<ProEconManufacturer> eq = new QueryWrapper<>();
|
|
|
+ eq.lambda().eq(ProEconManufacturer::getId,cs.get(0).getWindturbineManufacturerId());
|
|
|
+ List<ProEconManufacturer> list = proEconManufacturerService.getBaseMapper().selectList(eq);
|
|
|
+
|
|
|
+
|
|
|
List<ProBasicSquare> squares = CacheContext.sqls.stream().filter(s -> collect.get(0).getSquareId().equals(s.getId())).collect(Collectors.toList());
|
|
|
if (wtid.contains("F_WT")) {
|
|
|
map.put("model", cs.get(0).getId());
|
|
|
- map.put("manufacturer", cs.get(0).getWindturbineManufacturerId());
|
|
|
+ map.put("manufacturer", list.get(0).getName());
|
|
|
}
|
|
|
if (wtid.contains("G_IN")) {
|
|
|
map.put("model", cs.get(0).getId());
|
|
|
- map.put("manufacturer", cs.get(0).getWindturbineManufacturerId());
|
|
|
+ map.put("manufacturer", list.get(0).getName());
|
|
|
map.put("squareid", squares.get(0).getTypes());
|
|
|
}
|
|
|
}
|