|
|
@@ -5,6 +5,7 @@ import cn.com.taiji.core.entity.basic.QtkVehicleInfo; |
|
|
|
import cn.com.taiji.core.entity.comm.CommonWxSignConfig; |
|
|
|
import cn.com.taiji.core.entity.dict.basic.PlateColorType; |
|
|
|
import cn.com.taiji.core.entity.dict.basic.SourceType; |
|
|
|
import cn.com.taiji.core.entity.dict.basic.UserType; |
|
|
|
import cn.com.taiji.core.entity.dict.issue.IssueOrderStep; |
|
|
|
import cn.com.taiji.core.entity.dict.issue.ShippingStatus; |
|
|
|
import cn.com.taiji.core.entity.issue.IssueOrderinfo; |
|
|
@@ -128,6 +129,7 @@ public class SignQueryManager extends AbstractOrderManager<SignQueryRequest> { |
|
|
|
resultRequest.setOpenId(request.getSubOpenId()); |
|
|
|
resultRequest.setPlateNumber(order.getVehiclePlate()); |
|
|
|
resultRequest.setMchid(signConfig.getMchId()); |
|
|
|
resultRequest.setSubMchId(signConfig.getSubMchId()); |
|
|
|
resultRequest.setApiV3Key(signConfig.getSignKey()); |
|
|
|
resultRequest.setPrivateKey(signConfig.getPrivateKey()); |
|
|
|
resultRequest.setPublicKeyId(signConfig.getWxPublicKeyId()); |
|
|
@@ -155,6 +157,8 @@ public class SignQueryManager extends AbstractOrderManager<SignQueryRequest> { |
|
|
|
AtsVehicleSignV3Request v3Request = new AtsVehicleSignV3Request(); |
|
|
|
v3Request.setAppId(signConfig.getAppId()); |
|
|
|
v3Request.setMchid(signConfig.getMchId()); |
|
|
|
v3Request.setSubMchid(signConfig.getSubMchId()); |
|
|
|
v3Request.setSubAppId(signConfig.getSubAppId()); |
|
|
|
v3Request.setApiV3Key(signConfig.getSignKey()); |
|
|
|
v3Request.setPrivateKey(signConfig.getPrivateKey()); |
|
|
|
v3Request.setPublicKeyId(signConfig.getWxPublicKeyId()); |
|
|
@@ -163,8 +167,14 @@ public class SignQueryManager extends AbstractOrderManager<SignQueryRequest> { |
|
|
|
v3Request.setPlanId(signConfig.getPlanId()); |
|
|
|
v3Request.setOpenId(request.getSubOpenId()); |
|
|
|
v3Request.setPlateNumber(order.getVehiclePlate()); |
|
|
|
v3Request.setUserName(order.getCustomerName()); |
|
|
|
v3Request.setIdNum(order.getCustomerIdNum()); |
|
|
|
//单位订单使用经办人的身份证信息 |
|
|
|
if (UserType.PERSONAL_USER.equals(order.getUserType())) { |
|
|
|
v3Request.setUserName(order.getCustomerName()); |
|
|
|
v3Request.setIdNum(order.getCustomerIdNum()); |
|
|
|
}else { |
|
|
|
v3Request.setUserName(order.getAgentName()); |
|
|
|
v3Request.setIdNum(order.getAgentIdNum()); |
|
|
|
} |
|
|
|
AtsVehicleSignV3Response response = jsonPostRepeat(v3Request); |
|
|
|
SignQueryResponse signRes = copyProperties(response, new SignQueryResponse()); |
|
|
|
signRes.setUserState("UNAUTHORIZED"); |