| | |
| | | package com.whyc.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.Response; |
| | |
| | | fieldValues.add("curr_b"); |
| | | fieldValues.add("vol_b"); |
| | | |
| | | //List<String> unit = new LinkedList(); |
| | | //unit.add("A"); |
| | | //unit.add("V"); |
| | | //unit.add("A"); |
| | | //unit.add("V"); |
| | | |
| | | fieldMap.put("fieldNames",fieldNames); |
| | | fieldMap.put("fieldValues",fieldValues); |
| | | return new Response<Map<String,List>>().set(1,fieldMap); |
| | |
| | | return new Response<PageInfo<CentralMonitorSysST>>().set(1,centralMonitorSysSTPageInfo); |
| | | |
| | | } |
| | | |
| | | public Response updateStatus(int devId, int switchFaultBusScreen) { |
| | | UpdateWrapper<CentralMonitorSysST> wrapper = Wrappers.update(); |
| | | wrapper.set("switch_fault_bus_screen",switchFaultBusScreen).eq("dev_id",devId); |
| | | |
| | | mapper.update(null,wrapper); |
| | | return new Response().setMsg(1,"更新成功"); |
| | | } |
| | | } |