长泰接口修改

dev
anthonywj 1 year ago
parent bde1c7ac54
commit 66bcec9f9b

@ -15,6 +15,7 @@ import com.glxp.mipsdl.req.base.*;
import com.glxp.mipsdl.req.ctqyy.*;
import com.glxp.mipsdl.req.post.*;
import com.glxp.mipsdl.res.BaseResponse;
import com.glxp.mipsdl.res.ctqyy.CtBaseResponse;
import com.glxp.mipsdl.res.udiwms.*;
import com.glxp.mipsdl.service.thrsys.ThrSystemDetailService;
import com.glxp.mipsdl.util.ResultVOUtils;
@ -180,8 +181,8 @@ public class CtqyyClient extends CommonHttpClient {
response = parserResult(response);
try {
log.error("提交新增产品信息:" + ctqyyRequest.getMsgBody());
BaseResponse baseResponse = JSONObject.parseObject(response, BaseResponse.class);
if (baseResponse.getCode() != 20000) {
CtBaseResponse baseResponse = JSONObject.parseObject(response, CtBaseResponse.class);
if (baseResponse.getReturnCode() != 20000) {
log.error("提交新增产品信息,异常:{}", response);
} else {
log.error("提交新增产品信息,成功:{}", response);

@ -0,0 +1,18 @@
package com.glxp.mipsdl.res.ctqyy;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Data
public class CtBaseResponse {
@JsonProperty("returnCode")
private Integer returnCode;
@JsonProperty("returnMessage")
private String returnMessage;
@JsonProperty("materialNo")
private String materialNo;
}

@ -1,7 +1,7 @@
spring:
datasource:
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_ph?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:p6spy:mysql://127.0.0.1:3306/udi_wms_ct?allowMultiQueries=true&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
hikari:

@ -18,7 +18,7 @@ server:
#第三方系统标识
THIRD_ID: thirdId
THIRD_NAME: thirdName
997
#UDI管理系统地址
UDIWMS_IP: http://127.0.0.1:9991

Loading…
Cancel
Save