| | |
| | | import com.fgkj.dto.ServiceModel; |
| | | import com.fgkj.dto.User_inf; |
| | | import com.fgkj.services.ResDataUploadService; |
| | | import com.fgkj.util.*; |
| | | import com.fgkj.util.ActionUtil; |
| | | import com.google.gson.Gson; |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpSession; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @RequestMapping("resDataUpload") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "resDataUpload接口") |
| | | //Perry TODO |
| | | public class ResDataUploadController{ |
| | | |
| | | /*private String tableRowData; |
| | |
| | | private ResDataUploadService service; |
| | | |
| | | @PostMapping("uploadResFile") |
| | | @ApiOperation(notes = "",value="上传文件") |
| | | public boolean uploadResfile(@RequestParam String tableRowData,int battgroupid,File[] file,String[] fileFileName){ |
| | | boolean res=false; |
| | | |
| | |
| | | |
| | | // 停止上传 |
| | | @PutMapping("stopResUpload") |
| | | @ApiOperation(notes = "",value="停止上传") |
| | | public DLG_Progress stopResUpload() { |
| | | HttpSession session = ActionUtil.getSession(); |
| | | DLG_Progress progress = (DLG_Progress) session.getAttribute("Resprogress"); |
| | |
| | | |
| | | // 查询进度 |
| | | @GetMapping("resProgress") |
| | | @ApiOperation(notes = "",value="查询进度") |
| | | public ServiceModel selectResprogress() { |
| | | ServiceModel model = new ServiceModel(); |
| | | |