|
@@ -21,6 +21,7 @@ import com.fs.erp.dto.ErpRefundUpdateRequest;
|
|
|
import com.fs.erp.mapper.FsJstAftersalePushMapper;
|
|
import com.fs.erp.mapper.FsJstAftersalePushMapper;
|
|
|
import com.fs.erp.service.IErpOrderService;
|
|
import com.fs.erp.service.IErpOrderService;
|
|
|
import com.fs.erp.utils.ErpContextHolder;
|
|
import com.fs.erp.utils.ErpContextHolder;
|
|
|
|
|
+import com.fs.express.FsStoreDeliversService;
|
|
|
import com.fs.express.enums.TaskStatusEnum;
|
|
import com.fs.express.enums.TaskStatusEnum;
|
|
|
import com.fs.live.domain.*;
|
|
import com.fs.live.domain.*;
|
|
|
import com.fs.live.dto.LiveAfterSalesProductDTO;
|
|
import com.fs.live.dto.LiveAfterSalesProductDTO;
|
|
@@ -52,6 +53,7 @@ import com.fs.store.service.IFsUserService;
|
|
|
import com.fs.system.config.SnowflakeUtils;
|
|
import com.fs.system.config.SnowflakeUtils;
|
|
|
import com.fs.system.service.ISysConfigService;
|
|
import com.fs.system.service.ISysConfigService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.http.util.Asserts;
|
|
import org.apache.http.util.Asserts;
|
|
|
import org.springframework.aop.framework.AopContext;
|
|
import org.springframework.aop.framework.AopContext;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -143,6 +145,9 @@ public class LiveAfterSalesServiceImpl implements ILiveAfterSalesService {
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsUserCacheService fsUserCacheService;
|
|
private IFsUserCacheService fsUserCacheService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private FsStoreDeliversService fsStoreDeliversService;
|
|
|
/**
|
|
/**
|
|
|
* 查询售后记录列表
|
|
* 查询售后记录列表
|
|
|
*
|
|
*
|
|
@@ -160,6 +165,24 @@ public class LiveAfterSalesServiceImpl implements ILiveAfterSalesService {
|
|
|
item.setUserName(String.format("%s_%s",fsUser.getUserId(),fsUser.getNickname()));
|
|
item.setUserName(String.format("%s_%s",fsUser.getUserId(),fsUser.getNickname()));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if(ObjectUtil.isNotNull(item.getCompanyUserNickName())) {
|
|
|
|
|
+ item.setCompanyUserNickName("-");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(ObjectUtil.isNotNull(item.getCompanyName())){
|
|
|
|
|
+ item.setCompanyName("-");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(ObjectUtil.isNotNull(item.getOrderId())){
|
|
|
|
|
+ List<FsStoreDelivers> byOrderIdWithType = fsStoreDeliversService.findByOrderIdWithType(item.getOrderId(), 1);
|
|
|
|
|
+ if(CollectionUtils.isNotEmpty(byOrderIdWithType)) {
|
|
|
|
|
+ FsStoreDelivers delivers = byOrderIdWithType.get(0);
|
|
|
|
|
+ item.setDeliveryStatus(String.valueOf(delivers.getStatus()));
|
|
|
|
|
+ item.setDeliveryId(delivers.getDeliverId());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
return liveAfterSalesVos;
|
|
return liveAfterSalesVos;
|
|
|
}
|
|
}
|