| | |
| | | package com.javaweb.geo.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.javaweb.common.core.domain.AjaxResult; |
| | | import com.javaweb.common.utils.DateUtils; |
| | | import com.javaweb.common.utils.IdGenerate; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import com.javaweb.geo.service.IProjectPersonService; |
| | | import com.javaweb.common.core.text.Convert; |
| | | import org.springframework.util.ObjectUtils; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | |
| | | /** |
| | | * 项目人员Service业务层处理 |
| | |
| | | { |
| | | return projectPersonMapper.deleteProjectPersonById(ids); |
| | | } |
| | | |
| | | /** |
| | | * 上传图片 |
| | | */ |
| | | @Override |
| | | public AjaxResult uploadImg(MultipartFile file, HttpServletRequest request) { |
| | | String originalFilename = file.getOriginalFilename(); |
| | | //传入的钻孔的id |
| | | String projectId = request.getParameter("projectId"); |
| | | |
| | | //获取后缀.zip 保存的文件名 |
| | | String substring = originalFilename.substring(originalFilename.lastIndexOf(".")); |
| | | String UID = IdGenerate.nextId(); |
| | | String dFileName = UID + substring; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return null; |
| | | } |
| | | } |