数据20250916优化-点位名称模糊查询
This commit is contained in:
@ -119,5 +119,7 @@ public interface EmsPointMatchMapper
|
||||
@Param("deviceId")String deviceId);
|
||||
|
||||
// 单个站点单个设备点位查询
|
||||
public List<PointQueryResponse> getSingleSiteDevicePoints(@Param("siteId")String siteId, @Param("deviceCategory")String deviceCategory);
|
||||
public List<PointQueryResponse> getSingleSiteDevicePoints(@Param("siteId")String siteId,
|
||||
@Param("deviceCategory")String deviceCategory,
|
||||
@Param("dataPointName")String dataPointName);
|
||||
}
|
||||
|
||||
@ -24,5 +24,5 @@ public interface IEmsDeviceSettingService
|
||||
|
||||
public List<DeviceCategory> getDeviceCategory();
|
||||
|
||||
public List<PointQueryResponse> getSingleSiteDevicePoints(String siteId, String deviceId, String deviceCategory);
|
||||
public List<PointQueryResponse> getSingleSiteDevicePoints(String siteId, String deviceId, String deviceCategory, String dataPointName);
|
||||
}
|
||||
|
||||
@ -119,8 +119,9 @@ public class EmsDeviceSettingServiceImpl implements IEmsDeviceSettingService
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PointQueryResponse> getSingleSiteDevicePoints(String siteId, String deviceId, String deviceCategory) {
|
||||
List<PointQueryResponse> response = emsPointMatchMapper.getSingleSiteDevicePoints(siteId,deviceCategory);
|
||||
public List<PointQueryResponse> getSingleSiteDevicePoints(String siteId, String deviceId,
|
||||
String deviceCategory, String dataPointName) {
|
||||
List<PointQueryResponse> response = emsPointMatchMapper.getSingleSiteDevicePoints(siteId,deviceCategory,dataPointName);
|
||||
|
||||
// 电动所的电池簇特殊处理-来源pcs+bmsd
|
||||
if (siteId.equals(DDS_SITE_ID) && DeviceCategory.CLUSTER.getCode().equals(deviceCategory)) {
|
||||
|
||||
@ -327,10 +327,13 @@
|
||||
from ems_point_match t
|
||||
where 1=1
|
||||
<if test="siteId != null and siteId != ''">
|
||||
and site_id = #{siteId}
|
||||
and t.site_id = #{siteId}
|
||||
</if>
|
||||
<if test="deviceCategory != null and deviceCategory != ''">
|
||||
and device_category = #{deviceCategory}
|
||||
and t.device_category = #{deviceCategory}
|
||||
</if>
|
||||
<if test="dataPointName != null and dataPointName != ''">
|
||||
and t.data_point_name like CONCAT('%', #{dataPointName}, '%')
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user