|
@@ -31,6 +31,7 @@ import java.util.Map;
|
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
+import static cn.iocoder.yudao.framework.common.pojo.PageParam.PAGE_SIZE_NONE;
|
|
|
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertSet;
|
|
|
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertSetByFlatMap;
|
|
|
import static cn.iocoder.yudao.framework.operatelog.core.enums.OperateTypeEnum.EXPORT;
|
|
@@ -115,7 +116,7 @@ public class CrmCustomerController {
|
|
|
@OperateLog(type = EXPORT)
|
|
|
public void exportCustomerExcel(@Valid CrmCustomerPageReqVO pageVO,
|
|
|
HttpServletResponse response) throws IOException {
|
|
|
- // TODO @puhui999:看看复用 getCustomerPage 方法;然后可以禁用下分页;
|
|
|
+ pageVO.setPageSize(PAGE_SIZE_NONE); // 不分页
|
|
|
List<CrmCustomerDO> list = customerService.getCustomerPage(pageVO, getLoginUserId()).getList();
|
|
|
// 导出 Excel
|
|
|
List<CrmCustomerExcelVO> datas = CrmCustomerConvert.INSTANCE.convertList02(list);
|
|
@@ -168,9 +169,6 @@ public class CrmCustomerController {
|
|
|
@PreAuthorize("@ss.hasPermission('crm:customer:distribute')")
|
|
|
public CommonResult<Boolean> distributeCustomer(@RequestParam(value = "ids") List<Long> ids,
|
|
|
@RequestParam(value = "ownerUserId") Long ownerUserId) {
|
|
|
- // 校验负责人是否存在
|
|
|
- // TODO @puhui999:这个校验,是不是可以收到 validateUserList
|
|
|
- adminUserApi.validateUserList(singletonList(ownerUserId));
|
|
|
// 领取公海数据
|
|
|
customerService.receiveCustomer(ids, ownerUserId);
|
|
|
return success(true);
|