修改测试数据
This commit is contained in:
parent
d764a3143f
commit
f272b48edc
|
@ -30,13 +30,13 @@ public class SummaryServiceImpl implements SummaryService {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<PieSummaryVO> getIndexPieSummary() {
|
public List<PieSummaryVO> getIndexPieSummary() {
|
||||||
// Map<String,String> onlineMap = redisTemplate.opsForHash().entries(ONLINE_DEVICE_CACHE);
|
Map<String,String> onlineMap = redisTemplate.opsForHash().entries(ONLINE_DEVICE_CACHE);
|
||||||
//TODO 记得改回从缓存里取值
|
//TODO 记得改回从缓存里取值
|
||||||
Map<String,String> onlineMap = new HashMap<>();
|
// Map<String,String> onlineMap = new HashMap<>();
|
||||||
onlineMap.put("1","true");
|
// onlineMap.put("1","true");
|
||||||
onlineMap.put("2","false");
|
// onlineMap.put("2","false");
|
||||||
onlineMap.put("3","true");
|
// onlineMap.put("3","true");
|
||||||
onlineMap.put("4","true");
|
// onlineMap.put("4","true");
|
||||||
List<Long> deviceIdList = onlineMap.keySet().stream().map(Long::parseLong).toList();
|
List<Long> deviceIdList = onlineMap.keySet().stream().map(Long::parseLong).toList();
|
||||||
|
|
||||||
List<DeviceVO> deviceVOList = deviceService.getDeviceVOByIds(deviceIdList);
|
List<DeviceVO> deviceVOList = deviceService.getDeviceVOByIds(deviceIdList);
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
|
|
||||||
|
|
||||||
<select id="historyPage" resultType="com.isu.gaswellwatch.vo.DeviceHistoryVO">
|
<select id="historyPage" resultType="com.isu.gaswellwatch.vo.DeviceHistoryVO">
|
||||||
select t.collection_time,t.oil_pressure,t.cas_pressure,t.pre_pressure,t.run_mode,t.plug_status from ${tableName} t where
|
select t.collection_time,t.oil_pressure,t.cas_pressure,t.run_mode,t.plug_status from ${tableName} t where
|
||||||
t.device_id = #{deviceId}
|
t.device_id = #{deviceId}
|
||||||
<if test="startTime!=null">
|
<if test="startTime!=null">
|
||||||
and t.collection_time >= #{startTime}
|
and t.collection_time >= #{startTime}
|
||||||
|
|
Loading…
Reference in New Issue