2/10 参数优化1.0

Lhxyy
wangwei 2 months ago
parent 5c955be0a5
commit 076aae06dd

@ -47,6 +47,7 @@ import com.glxp.mipsdl.req.yxzyy.YxBusTypeRequest;
import com.glxp.mipsdl.req.yxzyy.YxProductRequest;
import com.glxp.mipsdl.req.yxzyy.YxUnitRequest;
import com.glxp.mipsdl.res.BaseResponse;
import com.glxp.mipsdl.res.Lhzyy.LhBaseResponse;
import com.glxp.mipsdl.res.ctqyy.CtBaseResponse;
import com.glxp.mipsdl.res.udiwms.UdiRelevanceResponse;
import com.glxp.mipsdl.service.auth.AuthWarehouseService;
@ -444,7 +445,7 @@ public class LhzyyClient extends CommonHttpClient {
response = parserResult(response);
try {
log.error("提交新增产品信息:" + lhzyyRequest.getMsgBody());
CtBaseResponse baseResponse = JSONObject.parseObject(response, CtBaseResponse.class);
LhBaseResponse baseResponse = JSONObject.parseObject(response, LhBaseResponse.class);
if (baseResponse.getCode() != 20000) {
String errMsg = "提交新增产品信息,异常:{}" + response;
log.error(errMsg);
@ -453,7 +454,7 @@ public class LhzyyClient extends CommonHttpClient {
} else {
// materialDictEntity.setMaterialNo(baseResponse.getMaterialNo());
log.error("提交新增产品信息,成功:{}", response);
return ResultVOUtils.success(baseResponse.getMaterialNo());
return ResultVOUtils.success(baseResponse.getYpid());
}
} catch (Exception e) {
String errMsg = "提交新增产品信息,异常:{}" + response;

@ -0,0 +1,26 @@
package com.glxp.mipsdl.res.Lhzyy;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@Data
public class LhBaseResponse {
private Integer code;
private String priceNo;
private String message;
@JsonProperty("returnCode")
private Integer returnCode;
@JsonProperty("returnMessage")
private String returnMessage;
@JsonProperty("materialNo")
private String materialNo;
@JsonProperty("supplierCode")
private String supplierCode;
@JsonProperty("ypid")
private String ypid;
}
Loading…
Cancel
Save