DSC
parent
513b888532
commit
29ae7a1a9b
|
@ -1,18 +1,12 @@
|
|||
package com.zzjee.wmutil.dsc;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import org.codehaus.jackson.annotate.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class customerListRes {
|
||||
|
||||
/**
|
||||
* result : success
|
||||
* error : 0
|
||||
* msg : 成功获取数据
|
||||
* info : {"list":[{"user_id":"68","aite_id":"","email":"1491748198@qq.com","user_name":"8569326","nick_name":"","password":"e10adc3949ba59abbe56e057f20f883e","question":"","answer":"","sex":"2","birthday":"0000-00-00","user_money":"0.00","frozen_money":"0.00","pay_points":"0","rank_points":"0","address_id":"0","reg_time":"1575584970","last_login":"0","last_time":"0000-00-00 00:00:00","last_ip":"","visit_count":"0","user_rank":"0","is_special":"0","ec_salt":null,"salt":"0","parent_id":"0","flag":"0","alias":"","msn":"","qq":"","office_phone":"","home_phone":"","mobile_phone":"","is_validated":"0","credit_line":"0.00","passwd_question":"","passwd_answer":"","user_picture":"","old_user_picture":"","report_time":"0","drp_parent_id":"0"},{"user_id":"69","aite_id":"","email":"","user_name":"123456789","nick_name":"7362385-375417","password":"be6ee1380e61c346b28c45a1df1c7aeb","question":"","answer":"","sex":"0","birthday":"0000-00-00","user_money":"0.00","frozen_money":"0.00","pay_points":"0","rank_points":"0","address_id":"2","reg_time":"1576708778","last_login":"1576708801","last_time":"0000-00-00 00:00:00","last_ip":"111.121.0.220","visit_count":"2","user_rank":"6","is_special":"0","ec_salt":"8461","salt":"0","parent_id":"0","flag":"0","alias":"","msn":"","qq":"","office_phone":"","home_phone":"","mobile_phone":"13623826364","is_validated":"0","credit_line":"0.00","passwd_question":null,"passwd_answer":null,"user_picture":"","old_user_picture":"","report_time":"0","drp_parent_id":"0"}],"filter":{"page":1,"page_size":15,"record_count":"2","page_count":1},"page_count":1,"record_count":"2"}
|
||||
*/
|
||||
|
||||
|
||||
@JsonProperty("result")
|
||||
private String result;
|
||||
|
|
|
@ -83,7 +83,7 @@ public class dscUtil {
|
|||
Map<String, Object> paramMap = getbasepara();
|
||||
paramMap.put("method","dsc.order.list.get");
|
||||
paramMap.put("page",page);
|
||||
paramMap.put("order_status","1");
|
||||
// paramMap.put("order_status","1");
|
||||
String res = HttpUtil.get(baseurl,paramMap);
|
||||
return res;
|
||||
}
|
||||
|
@ -123,16 +123,6 @@ public class dscUtil {
|
|||
}
|
||||
|
||||
|
||||
|
||||
public static Map<String, Object> getbasepara(){
|
||||
Map<String, Object> paramMap = new HashMap<>();
|
||||
String baseukey = ResourceUtil.getConfigByName("dsc.key");
|
||||
paramMap.put("app_key",baseukey);
|
||||
paramMap.put("format","json");
|
||||
return paramMap;
|
||||
}
|
||||
|
||||
|
||||
public static void saveothercustowm(customerListRes reslist){
|
||||
String cusCode = ResourceUtil.getConfigByName("dsc.cuscode");
|
||||
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
|
||||
|
@ -149,6 +139,30 @@ public class dscUtil {
|
|||
}
|
||||
}
|
||||
|
||||
public static void saveordertowm(customerListRes reslist){
|
||||
String cusCode = ResourceUtil.getConfigByName("dsc.cuscode");
|
||||
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
|
||||
for( customerListRes.InfoBean.ListBean t:reslist.getInfo().getList()){
|
||||
// MdCusOtherEntity md = systemService.findUniqueByProperty(MdCusOtherEntity.class,"keHuBianMa",t.getUserId());
|
||||
// if(md==null){
|
||||
// md = new MdCusOtherEntity();
|
||||
// }
|
||||
// md.setSuoShuKeHu(cusCode);
|
||||
// md.setKeHuBianMa(t.getUserId());
|
||||
// md.setZhongWenQch(unicodeDecode(t.getUserName()+t.getNickName()));
|
||||
// md.setDianHua(t.getMobilePhone());
|
||||
// systemService.saveOrUpdate(md);
|
||||
}
|
||||
}
|
||||
|
||||
public static Map<String, Object> getbasepara(){
|
||||
Map<String, Object> paramMap = new HashMap<>();
|
||||
String baseukey = ResourceUtil.getConfigByName("dsc.key");
|
||||
paramMap.put("app_key",baseukey);
|
||||
paramMap.put("format","json");
|
||||
return paramMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Title: unicodeDecode
|
||||
* @Description: unicode解码
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -109,7 +109,9 @@ public class HttpUtil {
|
|||
|
||||
public static void main(String args[]){
|
||||
// dscUtil.updateGoodsFromDsc();
|
||||
String res = dscUtil.getOrder("1");
|
||||
// String res = dscUtil.getOrderList("1");
|
||||
String res = dscUtil.getOrder("2019122311217330866");
|
||||
|
||||
System.out.println(res);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue