| | |
| | | List<MmPredictAlarmConfigEntity> list = baseDao.selectList(wrapper); |
| | | return ConvertUtils.sourceToTarget(list, AlarmConfigRespDTO.class); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByAlarmObj(MmPredictAlarmConfigSaveReqVO reqVO) { |
| | | QueryWrapper<MmPredictAlarmConfigEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("is_enable", 1); |
| | | wrapper.eq(StringUtils.isNotBlank(reqVO.getAlarmObj()),"alarm_obj", reqVO.getAlarmObj()); |
| | | baseDao.update(ConvertUtils.sourceToTarget(reqVO, MmPredictAlarmConfigEntity.class), wrapper); |
| | | } |
| | | } |