|
@@ -13,6 +13,7 @@ import com.onemap.apply.utils.*;
|
|
import com.onemap.common.core.domain.UploadZipDTO;
|
|
import com.onemap.common.core.domain.UploadZipDTO;
|
|
import com.onemap.common.core.utils.FileStreamUtils;
|
|
import com.onemap.common.core.utils.FileStreamUtils;
|
|
import com.onemap.common.core.utils.StringUtils;
|
|
import com.onemap.common.core.utils.StringUtils;
|
|
|
|
+import com.onemap.common.core.utils.UnPackageUtils;
|
|
import com.onemap.common.core.web.domain.AjaxResult;
|
|
import com.onemap.common.core.web.domain.AjaxResult;
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
import com.onemap.common.redis.service.RedisService;
|
|
import com.onemap.common.redis.service.RedisService;
|
|
@@ -67,10 +68,10 @@ public class CgglServiceImpl implements CgglService {
|
|
@Autowired
|
|
@Autowired
|
|
private XzczghcgsbMapper xzczghcgsbMapper;
|
|
private XzczghcgsbMapper xzczghcgsbMapper;
|
|
|
|
|
|
- @Value("${platform}")
|
|
|
|
|
|
+ @Value("${Cggl.temp}")
|
|
private static String platform;
|
|
private static String platform;
|
|
@Value("${Cggl.temp}")
|
|
@Value("${Cggl.temp}")
|
|
- private String temp;
|
|
|
|
|
|
+ private static String temp;
|
|
@Value("${Cggl.appid}")
|
|
@Value("${Cggl.appid}")
|
|
private String appid;
|
|
private String appid;
|
|
@Value("${Cggl.oauthUrl}")
|
|
@Value("${Cggl.oauthUrl}")
|
|
@@ -184,7 +185,7 @@ public class CgglServiceImpl implements CgglService {
|
|
wrapper.eq("name", escalationDTO.getName());
|
|
wrapper.eq("name", escalationDTO.getName());
|
|
EscalationDTO res = escalationMapper.selectOne(wrapper);
|
|
EscalationDTO res = escalationMapper.selectOne(wrapper);
|
|
if (res != null) {
|
|
if (res != null) {
|
|
- return RequestResult.error("该名称已存在!", false);
|
|
|
|
|
|
+// return RequestResult.error("该名称已存在!", false);
|
|
}
|
|
}
|
|
// if (escalationDTO.getName().getBytes().length > 100) {
|
|
// if (escalationDTO.getName().getBytes().length > 100) {
|
|
// return RequestResult.error("成果名称不能大于100个字节!", false);
|
|
// return RequestResult.error("成果名称不能大于100个字节!", false);
|
|
@@ -865,7 +866,7 @@ public class CgglServiceImpl implements CgglService {
|
|
data.setId(map.get(file.getAbsolutePath()));
|
|
data.setId(map.get(file.getAbsolutePath()));
|
|
data.setPid(map.get(file.getParent()));
|
|
data.setPid(map.get(file.getParent()));
|
|
data.setName(file.getName());
|
|
data.setName(file.getName());
|
|
- data.setFilepath(StringUtils.getFileStaticPath(file.getAbsolutePath(), platform));
|
|
|
|
|
|
+ data.setFilepath(StringUtils.getFileStaticPath(file.getAbsolutePath(), temp));
|
|
data.setIsparent(true);
|
|
data.setIsparent(true);
|
|
if (file.getName().toLowerCase().indexOf(".gdb") > 0) {
|
|
if (file.getName().toLowerCase().indexOf(".gdb") > 0) {
|
|
data.setFilepath(file.getAbsolutePath());
|
|
data.setFilepath(file.getAbsolutePath());
|
|
@@ -898,7 +899,7 @@ public class CgglServiceImpl implements CgglService {
|
|
data.setId(map.get(file.getAbsolutePath()));
|
|
data.setId(map.get(file.getAbsolutePath()));
|
|
data.setPid(map.get(file.getParent()));
|
|
data.setPid(map.get(file.getParent()));
|
|
data.setName(file.getName());
|
|
data.setName(file.getName());
|
|
- data.setFilepath(StringUtils.getFileStaticPath(file.getAbsolutePath(), platform));
|
|
|
|
|
|
+ data.setFilepath(StringUtils.getFileStaticPath(file.getAbsolutePath(), temp));
|
|
data.setIsparent(false);
|
|
data.setIsparent(false);
|
|
allFile.add(data);
|
|
allFile.add(data);
|
|
}
|
|
}
|