|
@@ -3865,9 +3865,14 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
if(StringUtils.isEmpty(fsPayConfig.getRefundConsignee()) || StringUtils.isEmpty(fsPayConfig.getRefundPhoneNumber())){
|
|
|
throw new ServiceException("导出失败,请在系统配置里的商城配置页面,设置退货人信息!");
|
|
|
}
|
|
|
- n.setSender("007"+fsPayConfig.getRefundConsignee()+"A");
|
|
|
+ n.setSender("007"+fsPayConfig.getRefundConsignee()+"AC");
|
|
|
n.setSenderPhone(fsPayConfig.getRefundPhoneNumber());
|
|
|
n.setSenderCompany(fsPayConfig.getRefundPhoneNumber());
|
|
|
+ if(StringUtils.isEmpty(n.getOrderNotes())){
|
|
|
+ n.setOrderNotes(n.getSender());
|
|
|
+ }else {
|
|
|
+ n.setSender(n.getOrderNotes());
|
|
|
+ }
|
|
|
});
|
|
|
return noteExportVOS;
|
|
|
}
|
|
@@ -3893,17 +3898,24 @@ public class FsStoreOrderScrmServiceImpl implements IFsStoreOrderScrmService {
|
|
|
request.setDeliveryMode(1);
|
|
|
request.setLogisticsType(1);
|
|
|
List<ShippingListBean> shippingList = new ArrayList<>(orderDetails.size());
|
|
|
+ ShippingListBean shippingListBean = null;
|
|
|
for (FsStoreOrderCodeOpenIdVo detail : orderDetails) {
|
|
|
- ShippingListBean shippingListBean = new ShippingListBean();
|
|
|
- shippingListBean.setTrackingNo(dto.getDeliveryId());
|
|
|
- shippingListBean.setExpressCompany(dto.getDeliverySn());
|
|
|
- JSONObject js = JSON.parseObject(detail.getJsonInfo());
|
|
|
- shippingListBean.setItemDesc(js.getString("productName"));
|
|
|
- ContactBean contactBean = new ContactBean();
|
|
|
- contactBean.setReceiverContact(detail.getPhone());
|
|
|
- shippingListBean.setContact(contactBean);
|
|
|
- shippingList.add(shippingListBean);
|
|
|
+ if(shippingListBean == null){
|
|
|
+ shippingListBean=new ShippingListBean();
|
|
|
+ shippingListBean.setTrackingNo(dto.getDeliveryId());
|
|
|
+ shippingListBean.setExpressCompany(dto.getDeliverySn());
|
|
|
+ JSONObject js = JSON.parseObject(detail.getJsonInfo());
|
|
|
+ shippingListBean.setItemDesc(js.getString("productName"));
|
|
|
+ ContactBean contactBean = new ContactBean();
|
|
|
+ contactBean.setReceiverContact(detail.getPhone());
|
|
|
+ shippingListBean.setContact(contactBean);
|
|
|
+ }else {
|
|
|
+ //拼接
|
|
|
+ JSONObject js = JSON.parseObject(detail.getJsonInfo());
|
|
|
+ shippingListBean.setItemDesc(shippingListBean.getItemDesc()+"-"+js.getString("productName"));
|
|
|
+ }
|
|
|
}
|
|
|
+ shippingList.add(shippingListBean);
|
|
|
request.setShippingList(shippingList);
|
|
|
request.setUploadTime(uploadTime);
|
|
|
// 设置支付者信息
|