|
@@ -276,7 +276,7 @@ public class CadastreManageServiceImpl implements CadastreManageService {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public CadastreFile saveUploadFile(String theFileName, String theFilePath, String fileType, String updateType) {
|
|
|
|
|
|
|
+ public CadastreFile saveUploadFile(String theFileName, String theFilePath, String fileType, String updateType,String landRightType,String landChangeMode) {
|
|
|
try {
|
|
try {
|
|
|
if (theFilePath == null || theFilePath.trim().isEmpty()) {
|
|
if (theFilePath == null || theFilePath.trim().isEmpty()) {
|
|
|
log.warn("处理文件失败:filePath不能为空");
|
|
log.warn("处理文件失败:filePath不能为空");
|
|
@@ -344,11 +344,19 @@ public class CadastreManageServiceImpl implements CadastreManageService {
|
|
|
if (StringUtils.isNotBlank(fileType)) {
|
|
if (StringUtils.isNotBlank(fileType)) {
|
|
|
cadastreFile.setFileType(fileType);
|
|
cadastreFile.setFileType(fileType);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
//0 为全量更新,1为增量更新
|
|
//0 为全量更新,1为增量更新
|
|
|
if (StringUtils.isNotBlank(updateType)) {
|
|
if (StringUtils.isNotBlank(updateType)) {
|
|
|
cadastreFile.setReadStatus(updateType);
|
|
cadastreFile.setReadStatus(updateType);
|
|
|
}
|
|
}
|
|
|
|
|
+ //权利类型
|
|
|
|
|
+ if (StringUtils.isNotBlank(landRightType)) {
|
|
|
|
|
+ cadastreFile.setLandRightType(landRightType);
|
|
|
|
|
+ }
|
|
|
|
|
+ //合并方式
|
|
|
|
|
+ if (StringUtils.isNotBlank(landChangeMode)) {
|
|
|
|
|
+ cadastreFile.setLandChangeMode(landChangeMode);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
cadastreFile.setFileSize(fileSize);
|
|
cadastreFile.setFileSize(fileSize);
|
|
|
cadastreFile.setStatus("0");
|
|
cadastreFile.setStatus("0");
|
|
|
cadastreFile.setUploadUser("admin");
|
|
cadastreFile.setUploadUser("admin");
|
|
@@ -382,13 +390,13 @@ public class CadastreManageServiceImpl implements CadastreManageService {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public CheckInfoResultVo checkFileData(String theFileName, String theFilePath, String fileType, String updateType) {
|
|
|
|
|
|
|
+ public CheckInfoResultVo checkFileData(String theFileName, String theFilePath, String fileType, String updateType,String landRightType,String landChangeMode) {
|
|
|
CheckInfoResultVo checkInfoResult = new CheckInfoResultVo();
|
|
CheckInfoResultVo checkInfoResult = new CheckInfoResultVo();
|
|
|
checkInfoResult.setResultStatus(true);
|
|
checkInfoResult.setResultStatus(true);
|
|
|
List<CheckInfoVo> checkInfoSuccessList = new ArrayList<>();
|
|
List<CheckInfoVo> checkInfoSuccessList = new ArrayList<>();
|
|
|
List<CheckInfoVo> checkInfoFailList = new ArrayList<>();
|
|
List<CheckInfoVo> checkInfoFailList = new ArrayList<>();
|
|
|
|
|
|
|
|
- CadastreFile uploadFile = this.saveUploadFile(theFileName, theFilePath, fileType, updateType);
|
|
|
|
|
|
|
+ CadastreFile uploadFile = this.saveUploadFile(theFileName, theFilePath, fileType, updateType,landRightType,landChangeMode);
|
|
|
|
|
|
|
|
if (Objects.nonNull(uploadFile)) {
|
|
if (Objects.nonNull(uploadFile)) {
|
|
|
//入库成功
|
|
//入库成功
|