| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.whyc.constant.BattSingalIdEnum; |
| | | import com.whyc.constant.DevAlarmEnum; |
| | | import com.whyc.constant.PowerAlarmEnum; |
| | |
| | | |
| | | return new Response().set(1,true,"提交完成"); |
| | | } |
| | | |
| | | public void addBatch(List<AlarmInspection> inspectionList) { |
| | | mapper.insertBatchSomeColumn(inspectionList); |
| | | } |
| | | |
| | | public List<AlarmInspection> getAlarmExistList() { |
| | | QueryWrapper<AlarmInspection> query = Wrappers.query(); |
| | | query.eq("is_exist",1); |
| | | return mapper.selectList(query); |
| | | } |
| | | |
| | | public void updateIsExist(List<Long> notExistIdList) { |
| | | QueryWrapper<AlarmInspection> query = Wrappers.query(); |
| | | query.in("id",notExistIdList); |
| | | AlarmInspection alarmInspection = new AlarmInspection(); |
| | | alarmInspection.setIsExist(0); |
| | | mapper.update(alarmInspection,query); |
| | | } |
| | | } |