| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.aftersalesservice.dto.AfterSalesServiceExeclDto; |
| | | import com.ruoyi.aftersalesservice.dto.AfterSalesServiceImportDto; |
| | | import com.ruoyi.aftersalesservice.dto.AfterSalesServiceNewDto; |
| | | import com.ruoyi.aftersalesservice.pojo.AfterSalesService; |
| | | import com.ruoyi.aftersalesservice.service.AfterSalesServiceService; |
| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | return AjaxResult.success(afterSalesServiceService.countAfterSalesService()); |
| | | } |
| | | |
| | | @PostMapping("/import") |
| | | @Operation(summary = "售后服务-反馈登记导入") |
| | | @Log(title = "售后服务-反馈登记导入", businessType = BusinessType.IMPORT) |
| | | public AjaxResult importData(MultipartFile file) { |
| | | return afterSalesServiceService.importData(file); |
| | | } |
| | | |
| | | @PostMapping("/importTemplate") |
| | | @Operation(summary = "售后服务-反馈登记导入模板") |
| | | public void importTemplate(HttpServletResponse response) { |
| | | ExcelUtil<AfterSalesServiceImportDto> util = new ExcelUtil<AfterSalesServiceImportDto>(AfterSalesServiceImportDto.class); |
| | | util.importTemplateExcel(response, "反馈登记导入模板"); |
| | | } |
| | | |
| | | } |