Authored by mali

清关资料

@@ -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) {
@@ -93,6 +93,7 @@ @@ -93,6 +93,7 @@
93 <entry key="couponServiceImpl" value-ref="couponServiceImpl"></entry> 93 <entry key="couponServiceImpl" value-ref="couponServiceImpl"></entry>
94 <entry key="channelSkuCompareServiceImpl" value-ref="channelSkuCompareServiceImpl"/> 94 <entry key="channelSkuCompareServiceImpl" value-ref="channelSkuCompareServiceImpl"/>
95 <entry key="productPoolDetailsServiceImpl" value-ref="productPoolDetailsServiceImpl"/> 95 <entry key="productPoolDetailsServiceImpl" value-ref="productPoolDetailsServiceImpl"/>
  96 + <entry key="ClearanceRecordService" value-ref="ClearanceRecordService"/>
96 </util:map> 97 </util:map>
97 98
98 </beans> 99 </beans>
@@ -90,7 +90,7 @@ @@ -90,7 +90,7 @@
90 // var params = {"poolId": poolId.toString()}; 90 // var params = {"poolId": poolId.toString()};
91 91
92 var param = getParams(); 92 var param = getParams();
93 - window.open(contextPath + "/batch/export.do?type=ClearanceRecordService&queryConf=" + JSON.stringify(param)); 93 + window.open(contextPath + "/batch/export.do?type=ClearanceRecordService&queryConf=" + escape(JSON.stringify(param)));
94 } 94 }
95 }); 95 });
96 96
@@ -98,7 +98,7 @@ @@ -98,7 +98,7 @@
98 * 提取出搜索参数 98 * 提取出搜索参数
99 */ 99 */
100 function getParams() { 100 function getParams() {
101 - var waybillCode = $("#sellerWaybillCode").val(); 101 + var waybillCode = $("#waybillCode").val();
102 var orderCode = $("#orderCode").val(); 102 var orderCode = $("#orderCode").val();
103 var param = {}; 103 var param = {};
104 if (undefined !== orderCode && null !== orderCode && "" !== orderCode) { 104 if (undefined !== orderCode && null !== orderCode && "" !== orderCode) {