package com.fdkankan.external.controller; import com.fdkankan.external.annotation.SignVerification; import com.fdkankan.external.entity.ZgxxzxPushLog; import com.fdkankan.external.request.TaskPageRequest; import com.fdkankan.external.response.PageInfo; import com.fdkankan.external.service.IZgxxzxPushLogService; import com.fdkankan.external.service.XinxizhongxinService; import com.fdkankan.web.response.ResultData; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import java.io.IOException; @RestController @RequestMapping("/xxzx") public class XinxizhongxinController { @Autowired private XinxizhongxinService xinxizhongxinService; @Autowired private IZgxxzxPushLogService zgxxzxPushLogService; @SignVerification @PostMapping("import") private ResultData importExcel(@RequestParam("file")MultipartFile file) throws IOException { xinxizhongxinService.importExcel(file); return ResultData.ok(); } @SignVerification @PostMapping("taskList") private ResultData> taskList(@RequestBody TaskPageRequest request) throws IOException { return ResultData.ok(xinxizhongxinService.taskList(request)); } }