コード例 #1
0
  @Test
  public void testUpdate() {
    Map paramMap = new HashMap();
    paramMap.put("id", 3);
    paramMap.put("isDefault", 1);
    RepObject br = service.update(paramMap);

    System.out.println("---------" + br.getStatus());
    System.out.println("---------" + br.getCode());
    System.out.println("---------" + br.getMsg());
    System.out.println("---------" + br.getData());
  }
コード例 #2
0
 @Test
 public void testCreate() {
   try {
     Map paramMap = new HashMap();
     paramMap.put("receiveName", "大大");
     paramMap.put("receiveMobile", "18203312121");
     paramMap.put("provinceId", "112");
     paramMap.put("isDefault", "1");
     paramMap.put("customerId", "439645262386");
     RepObject br = service.create(paramMap);
     System.out.println("---------" + br.getStatus());
     System.out.println("---------" + br.getCode());
     System.out.println("---------" + br.getMsg());
   } catch (Exception e) {
     e.printStackTrace();
   }
 }