| | |
| | | package com.lf.server.service.show; |
| | | |
| | | import com.lf.server.entity.all.HttpStatus; |
| | | import com.lf.server.entity.ctrl.MarkJsonEntity; |
| | | import com.lf.server.entity.show.MarkEntity; |
| | | import com.lf.server.entity.sys.UserEntity; |
| | | import com.lf.server.helper.*; |
| | | import com.lf.server.mapper.show.MarkMapper; |
| | | import com.lf.server.service.data.UploaderService; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import javax.servlet.ServletOutputStream; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.net.URLEncoder; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Random; |
| | | |
| | | /** |
| | | * 标绘 |
| | |
| | | return "Shp文件生成失败"; |
| | | } |
| | | |
| | | String zip = getZip(parent); |
| | | String zip = getZip(); |
| | | ZipHelper.zip(zip, parent); |
| | | //download(res, zip); |
| | | FileHelper.deleteDir(parent); |
| | | |
| | | return ""; |
| | | } |
| | |
| | | return rs; |
| | | } |
| | | |
| | | private String getZip(String parent) { |
| | | String path = parent + File.separator + WebHelper.getRandomInt(100000, 1000000) + ".zip"; |
| | | private String getZip() { |
| | | String path = pathHelper.getDownloadFullPath() + File.separator + WebHelper.getRandomInt(100000, 1000000) + ".zip"; |
| | | |
| | | File file = new File(path); |
| | | if (file.exists() && !file.isDirectory()) { |