修改测试数据

This commit is contained in:
qinjie 2024-11-28 10:14:57 +08:00
parent d764a3143f
commit f272b48edc
2 changed files with 7 additions and 7 deletions

View File

@ -30,13 +30,13 @@ public class SummaryServiceImpl implements SummaryService {
@Override
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 记得改回从缓存里取值
Map<String,String> onlineMap = new HashMap<>();
onlineMap.put("1","true");
onlineMap.put("2","false");
onlineMap.put("3","true");
onlineMap.put("4","true");
// Map<String,String> onlineMap = new HashMap<>();
// onlineMap.put("1","true");
// onlineMap.put("2","false");
// onlineMap.put("3","true");
// onlineMap.put("4","true");
List<Long> deviceIdList = onlineMap.keySet().stream().map(Long::parseLong).toList();
List<DeviceVO> deviceVOList = deviceService.getDeviceVOByIds(deviceIdList);

View File

@ -67,7 +67,7 @@
<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}
<if test="startTime!=null">
and t.collection_time &gt;= #{startTime}