完善更新日航班计划的同时更新登机桥信息

This commit is contained in:
zhouxiunai
2019-02-26 12:01:14 +08:00
parent 2166556f49
commit 86875c2003
2 changed files with 98 additions and 27 deletions
@@ -1,6 +1,8 @@
package com.gzzn.omms.msgexchangeapi.redis;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -20,4 +22,25 @@ public class RedisServiceTest {
{
redisService.del(Arrays.asList("flightInfo"));
}
/**
* 测试多几次调用,后面的是否会把前面的值覆盖 (经测试,是更新式的)
*/
@Test
public void testHmset()
{
Map<String,Object> mapData1 = new HashMap<>();
mapData1.put("key1", "value1");
mapData1.put("key2", "value2");
redisService.hmset("hkey", mapData1);
Map<String,Object> mapData2 = new HashMap<>();
mapData2.put("key1", "value2");
mapData2.put("key3", "value4");
mapData2.put("key4", "value5");
redisService.hmset("hkey", mapData2);
}
}