|
@@ -1,33 +1,33 @@
|
|
|
package org.dromara.customer.controller;
|
|
package org.dromara.customer.controller;
|
|
|
|
|
|
|
|
-import java.util.Collection;
|
|
|
|
|
-import java.util.List;
|
|
|
|
|
-
|
|
|
|
|
-import lombok.RequiredArgsConstructor;
|
|
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
-import jakarta.validation.constraints.*;
|
|
|
|
|
-import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
|
|
+import jakarta.validation.constraints.NotEmpty;
|
|
|
|
|
+import jakarta.validation.constraints.NotNull;
|
|
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
|
|
+import org.dromara.common.core.domain.R;
|
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
import org.dromara.common.core.utils.StringUtils;
|
|
|
-import org.dromara.customer.domain.CustomerSalesInfo;
|
|
|
|
|
-import org.dromara.customer.domain.bo.CustomerSalesInfoBo;
|
|
|
|
|
-import org.dromara.customer.domain.bo.CustomerListBo;
|
|
|
|
|
-import org.dromara.customer.domain.bo.MessagePublishCustomerBo;
|
|
|
|
|
-import org.dromara.customer.domain.dto.SetCustomerInfoTagDto;
|
|
|
|
|
-import org.dromara.customer.domain.vo.*;
|
|
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
|
+import org.dromara.common.core.validate.AddGroup;
|
|
|
|
|
+import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
|
import org.dromara.common.log.annotation.Log;
|
|
import org.dromara.common.log.annotation.Log;
|
|
|
-import org.dromara.common.web.core.BaseController;
|
|
|
|
|
-import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
-import org.dromara.common.core.domain.R;
|
|
|
|
|
-import org.dromara.common.core.validate.AddGroup;
|
|
|
|
|
-import org.dromara.common.core.validate.EditGroup;
|
|
|
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
import org.dromara.common.log.enums.BusinessType;
|
|
|
-import org.dromara.common.excel.utils.ExcelUtil;
|
|
|
|
|
|
|
+import org.dromara.common.mybatis.core.page.PageQuery;
|
|
|
|
|
+import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
+import org.dromara.common.web.core.BaseController;
|
|
|
import org.dromara.customer.domain.bo.CustomerInfoBo;
|
|
import org.dromara.customer.domain.bo.CustomerInfoBo;
|
|
|
|
|
+import org.dromara.customer.domain.bo.CustomerListBo;
|
|
|
|
|
+import org.dromara.customer.domain.bo.CustomerSalesInfoBo;
|
|
|
|
|
+import org.dromara.customer.domain.bo.MessagePublishCustomerBo;
|
|
|
|
|
+import org.dromara.customer.domain.dto.SetCustomerInfoTagDto;
|
|
|
|
|
+import org.dromara.customer.domain.vo.ContractVo;
|
|
|
|
|
+import org.dromara.customer.domain.vo.CustomerInfoVo;
|
|
|
|
|
+import org.dromara.customer.domain.vo.CustomerListVo;
|
|
|
|
|
+import org.dromara.customer.domain.vo.MessagePublishCustomerVo;
|
|
|
import org.dromara.customer.service.ICustomerInfoService;
|
|
import org.dromara.customer.service.ICustomerInfoService;
|
|
|
-import org.dromara.common.mybatis.core.page.TableDataInfo;
|
|
|
|
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
+
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 客户信息
|
|
* 客户信息
|
|
@@ -184,4 +184,22 @@ public class CustomerInfoController extends BaseController {
|
|
|
public R<Void> setCustomerInfoTag(@RequestBody SetCustomerInfoTagDto bo) {
|
|
public R<Void> setCustomerInfoTag(@RequestBody SetCustomerInfoTagDto bo) {
|
|
|
return toAjax(customerInfoService.setCustomerInfoTag(bo.getCustomerIds(), bo.getTagIds()));
|
|
return toAjax(customerInfoService.setCustomerInfoTag(bo.getCustomerIds(), bo.getTagIds()));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 转移业务人员
|
|
|
|
|
+ */
|
|
|
|
|
+ @Log(title = "客户信息", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @PutMapping("/transferSalesPerson")
|
|
|
|
|
+ public R<Integer> transferSalesPerson(@RequestBody SetCustomerInfoTagDto bo) {
|
|
|
|
|
+ return R.ok(customerInfoService.transferSalesPerson(bo.getCustomerIds(), bo.getSalesPersonId(), bo.getDeptId()));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 转移客服人员
|
|
|
|
|
+ */
|
|
|
|
|
+ @Log(title = "客户信息", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @PutMapping("/transferServiceStaff")
|
|
|
|
|
+ public R<Integer> transferServiceStaff(@RequestBody SetCustomerInfoTagDto bo) {
|
|
|
|
|
+ return R.ok(customerInfoService.transferServiceStaff(bo.getCustomerIds(), bo.getServiceStaffId()));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|