Browse Source

feat(all): 索菲亚工厂

1 增加华之韵物流对接
pre-production
zhaoqiaobo 3 weeks ago
parent
commit
6edc6e92ad
  1. 10
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/controller/OrderController.java
  2. 2
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/vo/FactoryOrderDataVO.java

10
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/controller/OrderController.java

@ -1,6 +1,7 @@
package com.logpm.factorydata.suofeiya.controller;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.logpm.factorydata.suofeiya.service.DeliveryNoteService;
@ -64,9 +65,12 @@ public class OrderController {
log.info("接收工厂订单:{} ", jsonStr);
String res = "";
try {
DeliveryNoteVO params = vo.getParams();
if (ObjectUtil.isNotEmpty(params)) {
res = service.order(params);
String params = vo.getParams();
if(StrUtil.isNotEmpty(params)){
DeliveryNoteVO bean = JSONUtil.toBean(params, DeliveryNoteVO.class);
if (ObjectUtil.isNotEmpty(bean)) {
res = service.order(bean);
}
}
} catch (Exception e) {
log.error("工厂订单异常:{} ", e);

2
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/vo/FactoryOrderDataVO.java

@ -22,6 +22,6 @@ public class FactoryOrderDataVO {
private String companyCode;
@ApiModelProperty("订单信息")
private DeliveryNoteVO params;
private String params;
}

Loading…
Cancel
Save