| | |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.framework.common.service.impl.BaseServiceImpl; |
| | | import com.iailab.framework.common.util.object.BeanUtils; |
| | | import com.iailab.framework.common.util.object.ConvertUtils; |
| | | import com.iailab.framework.security.core.util.SecurityFrameworkUtils; |
| | | import com.iailab.module.model.api.mcs.dto.AlarmConfigRespDTO; |
| | | import com.iailab.module.model.mcs.pre.dao.MmPredictAlarmConfigDao; |
| | |
| | | public List<AlarmConfigRespDTO> list(Map<String, Object> params) { |
| | | QueryWrapper<MmPredictAlarmConfigEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("is_enable", 1); |
| | | return BeanUtils.toBean(baseDao.selectList(wrapper), AlarmConfigRespDTO.class); |
| | | List<MmPredictAlarmConfigEntity> list = baseDao.selectList(wrapper); |
| | | return ConvertUtils.sourceToTarget(list, AlarmConfigRespDTO.class); |
| | | } |
| | | } |