|
|
@@ -5,6 +5,7 @@ import com.siwei.apply.domain.vo.ConvergeFilterVo;
|
|
|
import com.siwei.apply.domain.vo.ConvergeUpdateVo;
|
|
|
import com.siwei.apply.mapper.ConvergeMapper;
|
|
|
import com.siwei.apply.service.ConvergeService;
|
|
|
+import com.siwei.apply.service.cadastre.impl.FzssFxrwrzHandleService;
|
|
|
import com.siwei.apply.utils.ServiceFileUtil;
|
|
|
import com.siwei.common.core.utils.uuid.IdUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -30,6 +31,11 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
@Autowired
|
|
|
private ConvergeMapper convergeMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FzssFxrwrzHandleService fzssFxrwrzHandleService;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void add(Converge converge) {
|
|
|
@@ -42,7 +48,6 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
filterVo.validatePageParams();
|
|
|
List<Converge> list = convergeMapper.getList(filterVo);
|
|
|
Integer total = convergeMapper.getCount(filterVo);
|
|
|
-
|
|
|
Map<String, Object> res = new HashMap<>();
|
|
|
res.put("rows", list);
|
|
|
res.put("total", total);
|
|
|
@@ -105,11 +110,43 @@ public class ConvergeServiceImpl implements ConvergeService {
|
|
|
log.error("导出SHP文件失败", e);
|
|
|
throw new RuntimeException("导出SHP文件失败: " + e.getMessage());
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @Transactional
|
|
|
+ @Override
|
|
|
+ public void operationConverge(String batch,String type) {
|
|
|
+ try {
|
|
|
+ Converge converge = new Converge();
|
|
|
+ converge.generateId();
|
|
|
+ String convergeId = converge.getId();
|
|
|
+ fzssFxrwrzHandleService.insertFxrwrz(convergeId, "地籍库管理", "操作汇交开始", "info");
|
|
|
+ converge.setName("赣江新区"+batch+"数据");
|
|
|
+ converge.setBatchName(batch);
|
|
|
+ converge.setFilePath("");
|
|
|
+ converge.setStatus("0");
|
|
|
+ converge.setType(type);
|
|
|
+ converge.setReadMessage("正在生成。。");
|
|
|
+ converge.setFileCostTime("0");
|
|
|
+ convergeMapper.add(converge);
|
|
|
+ log.info("==========="+convergeId);
|
|
|
+ fzssFxrwrzHandleService.insertFxrwrz(convergeId, "地籍库管理", "汇交任务创建", "info");
|
|
|
+ fzssFxrwrzHandleService.insertFxrwrz(convergeId, "地籍库管理", "汇交数据执行开始。。。", "info");
|
|
|
+
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("导出SHP文件失败", e);
|
|
|
+ throw new RuntimeException("导出SHP文件失败: " + e.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|