| | |
| | | package com.fgkj.controller; |
| | | |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | | import java.io.InputStream; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import com.fgkj.dto.BattInf; |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.fbo.CsvData; |
| | |
| | | import com.fgkj.fbo.IdcData; |
| | | import com.fgkj.mapper.impl.BattInfMapper; |
| | | import com.fgkj.services.FileService; |
| | | import com.opensymphony.xwork2.ActionSupport; |
| | | import io.swagger.annotations.Api; |
| | | import org.hibernate.validator.constraints.pl.REGON; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.File; |
| | | import java.io.FileNotFoundException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @RequestMapping("fileUpload") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "fileUpload接口") |
| | | public class FileUploadController { |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private FileService service; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private BattInfMapper battInfMapper; |
| | | |
| | | // private String result; |
| | |
| | | |
| | | //上传fbo/idc文件 |
| | | @PostMapping("uploadFboFile") |
| | | @ApiOperation(notes = "TODO ",value="上传fbo/idc文件") |
| | | public List UploadFboFile(@RequestParam File[] file, @RequestParam String[] fileFileName, |
| | | @RequestParam int battgroupid) throws FileNotFoundException { |
| | | //String path = ServletActionContext.getRequest().getRealPath("/upload"); |