| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 分配客户 |
| | | */ |
| | | @Log(title = "客户档案", businessType = BusinessType.OTHER) |
| | | @PostMapping("/assignCustomer") |
| | | public AjaxResult assignCustomer(@RequestBody CustomerDto customer) { |
| | | customerService.assignCustomer(customer); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 回收客户 |
| | | */ |
| | | @Log(title = "客户档案", businessType = BusinessType.OTHER) |
| | | @PostMapping("/recycleCustomer") |
| | | public AjaxResult recycleCustomer(@RequestBody CustomerDto customer) { |
| | | customerService.recycleCustomer(customer); |
| | | return AjaxResult.success(); |
| | | } |
| | | } |