YYC
2023-10-19 6bd36a38fc587ba39bd50e26257ed6ece71363e7
igds-protocol-modbus/src/main/java/com/ld/igds/modbus/service/HModbusService.java
@@ -140,6 +140,23 @@
        return null;
    }
    /**
     * 根据类型获取Modbus能耗设备配置信息
     * @param bizType
     * @param serId
     * @return
     */
    public List<DeviceModbus> getDataByBizType(String bizType, String serId) {
        String hql = " from " + DeviceModbus.class.getName() + " where bizType=:bizType and serId =:serId";
        Map<String, Object> param = new HashMap<>();
        param.put("bizType", bizType);
        param.put("serId", serId);
        return this.query(hql, param);
    }
    public DeviceModbus getGasData(String companyId, String depotId, String bizType) {