コード例 #1
0
 /** 添加平台信息测试. */
 public void testadd() {
   DynamicSqlParameter param = new DynamicSqlParameter();
   Map<String, String> map1 = new HashMap<String, String>();
   map1.put("messageContent", "100");
   map1.put("messageId", "101");
   map1.put("objectId", "1");
   map1.put("objectType", "2");
   param.setEqual(map1);
   String str;
   try {
     str = service.addForMsgInfo(param, "abc");
     String str1 = service.addForMsgPost(param, "abc");
     System.out.print(str);
     System.out.print(str1);
   } catch (Exception e) {
     e.printStackTrace();
   }
 }
コード例 #2
0
 /** 查询平台信息测试. */
 public void testfindVehicleEarlywarningByparam() {
   DynamicSqlParameter param = new DynamicSqlParameter();
   Map<String, String> map1 = new HashMap<String, String>();
   map1.put("messageContent", "100");
   map1.put("messageId", "101");
   map1.put("objectId", "1");
   map1.put("objectType", "2");
   param.setEqual(map1);
   List<ThPlatInfos> list = new ArrayList<ThPlatInfos>();
   list = service.findThPlatInfosByparam(param);
   System.out.print("++++++++++++++++" + list.size());
 }