| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.dto.CustomerDto; |
| | | import com.ruoyi.basic.pojo.Customer; |
| | | import com.ruoyi.basic.service.ICustomerService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | * 查询客户档案列表 |
| | | */ |
| | | @GetMapping("/list") |
| | | public IPage<Customer> list(Page<Customer> page, Customer customer) { |
| | | public IPage<CustomerDto> list(Page<Customer> page, Customer customer) { |
| | | return customerService.selectCustomerList(page, customer); |
| | | } |
| | | |
| | |
| | | return customerService.customerList(customer); |
| | | } |
| | | |
| | | @GetMapping("/regions") |
| | | @ApiOperation("获取客户地区") |
| | | public AjaxResult getRegions() { |
| | | List<String> regionsList = customerService.regionsList(); |
| | | return AjaxResult.success(regionsList); |
| | | } |
| | | } |