|
|
|
@ -1,6 +1,7 @@
|
|
|
|
package cn.iocoder.yudao.module.iot.service.devicepointrules;
|
|
|
|
package cn.iocoder.yudao.module.iot.service.devicepointrules;
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
@ -78,4 +79,10 @@ public class DevicePointRulesServiceImpl implements DevicePointRulesService {
|
|
|
|
return devicePointRulesMapper.selectPage(pageReqVO);
|
|
|
|
return devicePointRulesMapper.selectPage(pageReqVO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public List<DevicePointRulesDO> getList(Long id) {
|
|
|
|
|
|
|
|
return devicePointRulesMapper.selectList(Wrappers.<DevicePointRulesDO>lambdaQuery()
|
|
|
|
|
|
|
|
.eq(DevicePointRulesDO::getDeviceId,id).eq(DevicePointRulesDO::getIdentifier,"ALARM").orderByDesc(DevicePointRulesDO::getDeviceId));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|