| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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<PageInfo<ZgxxzxPushLog>> taskList(@RequestBody TaskPageRequest request) throws IOException {
- return ResultData.ok(xinxizhongxinService.taskList(request));
- }
- }
|