wangb hai 2 semanas
pai
achega
a4de9fd2d2

+ 4 - 0
runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/IProBasicEquipmentPointService.java

@@ -3,6 +3,8 @@ package com.gyee.runeconomy.service.auto;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.gyee.runeconomy.model.auto.ProBasicEquipmentPoint;
 
+import java.util.List;
+
 /**
  * <p>
  * 设备测点 服务类
@@ -15,4 +17,6 @@ public interface IProBasicEquipmentPointService extends IService<ProBasicEquipme
 
     public ProBasicEquipmentPoint getEquipmentPoint(String wpId, String uniformCode);
 
+    List<ProBasicEquipmentPoint> selectList(String station, List<String> points);
+
 }

+ 19 - 0
runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/impl/ProBasicEquipmentPointServiceImpl.java

@@ -1,5 +1,6 @@
 package com.gyee.runeconomy.service.auto.impl;
 
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.gyee.runeconomy.init.CacheContext;
 import com.gyee.runeconomy.mapper.auto.ProBasicEquipmentPointMapper;
@@ -8,6 +9,8 @@ import com.gyee.runeconomy.service.auto.IProBasicEquipmentPointService;
 import com.gyee.runeconomy.util.StringUtils;
 import org.springframework.stereotype.Service;
 
+import java.util.ArrayList;
+import java.util.List;
 import java.util.Map;
 
 /**
@@ -37,4 +40,20 @@ public class ProBasicEquipmentPointServiceImpl extends ServiceImpl<ProBasicEquip
         }
         return point;
     }
+
+
+    @Override
+    public List<ProBasicEquipmentPoint> selectList(String station, List<String> points) {
+        List<ProBasicEquipmentPoint> list = new ArrayList();
+        QueryWrapper<ProBasicEquipmentPoint> wrapper = new QueryWrapper<>();
+        wrapper.lambda().eq(ProBasicEquipmentPoint::getWindpowerstationId, station).in(ProBasicEquipmentPoint::getUniformCode,points);
+
+        try{
+            list = baseMapper.selectList(wrapper);
+        }catch (Exception e){
+            log.error("ProBasicEquipmentPoint--selectList", e);
+        }
+
+        return list;
+    }
 }