|
@@ -11,6 +11,7 @@ import com.yoho.ufo.model.ChannelSkuCompareReq; |
|
@@ -11,6 +11,7 @@ import com.yoho.ufo.model.ChannelSkuCompareReq; |
11
|
import com.yoho.ufo.model.ChannelSkuCompareRspBo;
|
11
|
import com.yoho.ufo.model.ChannelSkuCompareRspBo;
|
12
|
import com.yoho.ufo.order.service.impl.exportbean.OrderInfoForPackageNum;
|
12
|
import com.yoho.ufo.order.service.impl.exportbean.OrderInfoForPackageNum;
|
13
|
import com.yoho.ufo.service.IBusinessExportService;
|
13
|
import com.yoho.ufo.service.IBusinessExportService;
|
|
|
14
|
+import com.yoho.ufo.service.model.ApiResponse;
|
14
|
import com.yoho.ufo.service.model.PageResponseBO;
|
15
|
import com.yoho.ufo.service.model.PageResponseBO;
|
15
|
import org.apache.commons.collections.CollectionUtils;
|
16
|
import org.apache.commons.collections.CollectionUtils;
|
16
|
import org.apache.commons.lang3.StringUtils;
|
17
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -25,7 +26,7 @@ import java.util.Map; |
|
@@ -25,7 +26,7 @@ import java.util.Map; |
25
|
/**
|
26
|
/**
|
26
|
* Created by li.ma on 2019/7/19.
|
27
|
* Created by li.ma on 2019/7/19.
|
27
|
*/
|
28
|
*/
|
28
|
-@Service
|
29
|
+@Service(value = "ClearanceRecordService")
|
29
|
public class ClearanceRecordService implements IBusinessExportService {
|
30
|
public class ClearanceRecordService implements IBusinessExportService {
|
30
|
private static final Logger LOGGER = LoggerFactory.getLogger(ClearanceRecordService.class);
|
31
|
private static final Logger LOGGER = LoggerFactory.getLogger(ClearanceRecordService.class);
|
31
|
|
32
|
|
|
@@ -71,6 +72,9 @@ public class ClearanceRecordService implements IBusinessExportService { |
|
@@ -71,6 +72,9 @@ public class ClearanceRecordService implements IBusinessExportService { |
71
|
throw new ServiceException(400, "没有要导出的数据");
|
72
|
throw new ServiceException(400, "没有要导出的数据");
|
72
|
}
|
73
|
}
|
73
|
|
74
|
|
|
|
75
|
+ if (request.getOrderCode() == null && StringUtils.isEmpty(request.getWaybillCode())) {
|
|
|
76
|
+ throw new ServiceException(400, "没有要导出的数据");
|
|
|
77
|
+ }
|
74
|
|
78
|
|
75
|
ClearanceRecord clearanceRecord = clearanceRecordMapper.selectByOrderCode(request);
|
79
|
ClearanceRecord clearanceRecord = clearanceRecordMapper.selectByOrderCode(request);
|
76
|
if (null == clearanceRecord) {
|
80
|
if (null == clearanceRecord) {
|