|
|
|
@ -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); |
|
|
|
|