dev #2
@ -146,9 +146,10 @@ public class EmsSiteConfigController extends BaseController{
|
|||||||
* 单个站点单个设备点位查询
|
* 单个站点单个设备点位查询
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getDevicePointList")
|
@GetMapping("/getDevicePointList")
|
||||||
public TableDataInfo getDevicePointList(@RequestParam String siteId,@RequestParam String deviceId,@RequestParam String deviceCategory)
|
public TableDataInfo getDevicePointList(@RequestParam String siteId,@RequestParam String deviceId,
|
||||||
|
@RequestParam String deviceCategory, String dataPointName)
|
||||||
{
|
{
|
||||||
List<PointQueryResponse> result = iEmsDeviceSettingService.getSingleSiteDevicePoints(siteId,deviceId,deviceCategory);
|
List<PointQueryResponse> result = iEmsDeviceSettingService.getSingleSiteDevicePoints(siteId,deviceId,deviceCategory,dataPointName);
|
||||||
return getDataTable2(result);
|
return getDataTable2(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,5 +119,7 @@ public interface EmsPointMatchMapper
|
|||||||
@Param("deviceId")String deviceId);
|
@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<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
|
@Override
|
||||||
public List<PointQueryResponse> getSingleSiteDevicePoints(String siteId, String deviceId, String deviceCategory) {
|
public List<PointQueryResponse> getSingleSiteDevicePoints(String siteId, String deviceId,
|
||||||
List<PointQueryResponse> response = emsPointMatchMapper.getSingleSiteDevicePoints(siteId,deviceCategory);
|
String deviceCategory, String dataPointName) {
|
||||||
|
List<PointQueryResponse> response = emsPointMatchMapper.getSingleSiteDevicePoints(siteId,deviceCategory,dataPointName);
|
||||||
|
|
||||||
// 电动所的电池簇特殊处理-来源pcs+bmsd
|
// 电动所的电池簇特殊处理-来源pcs+bmsd
|
||||||
if (siteId.equals(DDS_SITE_ID) && DeviceCategory.CLUSTER.getCode().equals(deviceCategory)) {
|
if (siteId.equals(DDS_SITE_ID) && DeviceCategory.CLUSTER.getCode().equals(deviceCategory)) {
|
||||||
|
|||||||
@ -327,10 +327,13 @@
|
|||||||
from ems_point_match t
|
from ems_point_match t
|
||||||
where 1=1
|
where 1=1
|
||||||
<if test="siteId != null and siteId != ''">
|
<if test="siteId != null and siteId != ''">
|
||||||
and site_id = #{siteId}
|
and t.site_id = #{siteId}
|
||||||
</if>
|
</if>
|
||||||
<if test="deviceCategory != null and deviceCategory != ''">
|
<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>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user