|
|
@@ -8,18 +8,21 @@ import com.fs.common.core.page.TableDataInfo;
|
|
|
import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.common.utils.ParseUtils;
|
|
|
import com.fs.common.utils.ServletUtils;
|
|
|
+import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
import com.fs.company.service.ICompanyService;
|
|
|
import com.fs.company.service.ICompanyUserService;
|
|
|
import com.fs.core.security.LoginUser;
|
|
|
import com.fs.core.web.service.TokenService;
|
|
|
import com.fs.store.domain.*;
|
|
|
+import com.fs.store.mapper.FsStoreOrderMapper;
|
|
|
import com.fs.store.service.*;
|
|
|
import com.fs.store.vo.FsStoreAfterSalesVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -48,6 +51,8 @@ public class FsStoreAfterSalesController extends BaseController
|
|
|
private ICompanyUserService companyUserService;
|
|
|
@Autowired
|
|
|
private ICompanyService companyService;
|
|
|
+ @Autowired
|
|
|
+ private FsStoreOrderMapper fsStoreOrderMapper;
|
|
|
|
|
|
|
|
|
/**
|
|
|
@@ -57,6 +62,15 @@ public class FsStoreAfterSalesController extends BaseController
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(FsStoreAfterSales fsStoreAfterSales)
|
|
|
{
|
|
|
+ if (fsStoreAfterSales.getHuYiUserId() != null) {
|
|
|
+ String unionId = fsStoreOrderMapper.selectUnionIdByHyUserId(fsStoreAfterSales.getHuYiUserId());
|
|
|
+ if (StringUtils.isEmpty(unionId)) {
|
|
|
+ return getDataTable(new ArrayList<>());
|
|
|
+ }
|
|
|
+
|
|
|
+ fsStoreAfterSales.setUnionId(unionId);
|
|
|
+ }
|
|
|
+
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
fsStoreAfterSales.setCompanyId(loginUser.getCompany().getCompanyId());
|
|
|
startPage();
|