|
|
|
|
@ -35,6 +35,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
|
|
|
@ -1023,6 +1024,7 @@ public class CommomService {
|
|
|
|
|
* @param request
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
//@Transactional
|
|
|
|
|
public ResultUtil uploadCost(HttpServletRequest request) {
|
|
|
|
|
|
|
|
|
|
//读取文件
|
|
|
|
|
@ -1033,6 +1035,12 @@ public class CommomService {
|
|
|
|
|
return ResultUtil.error("上传文件不能为空");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 文件大小检查
|
|
|
|
|
/*long fileSize = multipartFile.getSize();
|
|
|
|
|
if (fileSize >= 419430400) { // 400MB
|
|
|
|
|
return ResultUtil.error("上传文件大小不能大于400M");
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
//解析压缩包文件上传并解压,返回存放pdf的全路径
|
|
|
|
|
|