Commit 734e848b by wubh

包活干V2.0.0-修改:大搜车驳回单修改

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28495 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7814f8ee
package com.glsx.ordercenter.pojo; package com.glsx.ordercenter.pojo;
import java.util.List; import java.util.List;
import com.glsx.common.utils.StringUtils;
/** /**
* *
* @Title SysOrderDevice.java * @Title SysOrderDevice.java
* @Package com.glsx.ordercenter.pojo * @Package com.glsx.ordercenter.pojo
* @Description TODO 订单安装设备 * @Description TODO 订单安装设备
...@@ -12,7 +13,7 @@ import java.util.List; ...@@ -12,7 +13,7 @@ import java.util.List;
* @version 1.0.0 * @version 1.0.0
*/ */
public class SysOrderDevice { public class SysOrderDevice {
private Integer id; private Integer id;
private Integer orderId; private Integer orderId;
...@@ -27,7 +28,9 @@ public class SysOrderDevice { ...@@ -27,7 +28,9 @@ public class SysOrderDevice {
private String deviceTypeName; private String deviceTypeName;
private String installLocation; private String installLocation;
private Boolean isInstallLocation;
private Integer sort; private Integer sort;
private List<String> suppliers; private List<String> suppliers;
...@@ -97,6 +100,14 @@ public class SysOrderDevice { ...@@ -97,6 +100,14 @@ public class SysOrderDevice {
this.installLocation = installLocation == null ? null : installLocation.trim(); this.installLocation = installLocation == null ? null : installLocation.trim();
} }
public Boolean getIsInstallLocation() {
return isInstallLocation;
}
public void setIsInstallLocation(String installLocation) {
this.isInstallLocation = StringUtils.isNotEmpty(installLocation)?true:false;
}
public Integer getSort() { public Integer getSort() {
return sort; return sort;
} }
...@@ -144,5 +155,5 @@ public class SysOrderDevice { ...@@ -144,5 +155,5 @@ public class SysOrderDevice {
+ ", deviceTypeName=" + deviceTypeName + ", installLocation=" + ", deviceTypeName=" + deviceTypeName + ", installLocation="
+ installLocation + ", sort=" + sort + "]"; + installLocation + ", sort=" + sort + "]";
} }
}
\ No newline at end of file \ No newline at end of file
}
package com.glsx.ordercenter.service;
import java.util.Map;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.glsx.ordercenter.dto.req.DaSouCheBaseReq;
import com.glsx.ordercenter.dto.req.DaSouCheCheckOrderReq;
import com.glsx.ordercenter.utils.DaSouCheUtil;
import com.souche.api.SoucheApiException;
import com.souche.api.util.SoucheSignature;
/**
* <p>Description:
* <p>Project: car-service
*
* @author wbh
* @date 2020-09-14
*/
public class DscOrderTest {
public static void main(String[] args) throws SoucheApiException {
DaSouCheCheckOrderReq data = new DaSouCheCheckOrderReq();
data.setAuditResult(0);
data.setReason("没有原因就要驳回");
data.setTicketNo("GPSAZ2020091235941");
DaSouCheBaseReq req = new DaSouCheBaseReq();
req.setData(JSON.toJSONString(data));
req.setAppKey("eb60c913ca28a4ab593e7edd777c8617");
req.setType("0");
req.setTimestamp(System.currentTimeMillis());
Map<String, String> map = DaSouCheUtil.doGetSign(req);
String sign = SoucheSignature.sign(map, "93f07f51084ffb9b36015e75992b8989");
req.setSign(sign);
String resp = HttpUtil.post(
"https://qcwx.glsx.com.cn/carservice/ordercenter/api/dasouche/checkOrder",
JSON.toJSONString(req));
System.out.println(resp);
}
}
...@@ -14,23 +14,23 @@ import com.glsx.common.utils.MD5Coder; ...@@ -14,23 +14,23 @@ import com.glsx.common.utils.MD5Coder;
*/ */
public class OrderTest { public class OrderTest {
public static void main(String[] args) { public static void main(String[] args) {
TreeMap<String, Object> map = new TreeMap<>(); Map<String, Object> map = new TreeMap<>();
map.put("channel", "glsx_edun"); map.put("channel", "glsx_edun");
map.put("workOrderNo", "1103092690");//sqbh map.put("workOrderNo", "glsx_1600054962170");//sqbh
map.put("carOwner", "胡春丽"); //name map.put("carOwner", "福州新宝汽车租赁有限公司"); //name
map.put("carOwnerPhone", "18608892742"); //userTel map.put("carOwnerPhone", ""); //userTel
map.put("vinNo", "LB37742Z9JA036929");//standno map.put("vinNo", "zlgj1111111111111");//standno
map.put("expectInstallTime", "2020-09-14"); map.put("expectInstallTime", "2020-09-15");
map.put("merchantName", "新疆帮帮金服汽车销售服务有限公司");//shopName
map.put("serviceCode", "004"); map.put("serviceCode", "003");
map.put("contact", "马军"); map.put("contact", "张钰莉");
map.put("phoneNumber", "15299193286"); map.put("phoneNumber", "13110528650");
map.put("address", "乌鲁木齐市"); map.put("merchantName", "云南鸿超汽车服务有限公司");//shopName
map.put("address", "福建省福州市鼓楼区世纪金源酒店");
map.put("district", ""); map.put("district", "");
map.put("carType", "2018款帝豪GS-1.8-A/MT优雅版领尚型双离合DCT(国Ⅴ)"); //carTypeName map.put("carType", "暂无车型"); //carTypeName
map.put("carColor", "白"); //color map.put("carColor", ""); //color
map.put("remark", ""); map.put("remark", "");
String sign = getParamsMD5Sign(map); String sign = getParamsMD5Sign(map);
map.put("sign", sign); map.put("sign", sign);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!