调整基础人口导入

This commit is contained in:
wans 2022-02-15 16:40:03 +08:00
parent 58252cc5f5
commit 42a51fc1bd
8 changed files with 17 additions and 12 deletions

View File

@ -148,6 +148,10 @@ public class BasePopulationInfoServiceImpl extends AbstractService implements IB
break; break;
default : dataObj.put("gender", "01fffb32-73ca-4872-9d2f-abb2158f0e07"); default : dataObj.put("gender", "01fffb32-73ca-4872-9d2f-abb2158f0e07");
} }
if(dataObj.get("updateCreator") != null){
dataObj.put("creator", dataObj.get("updateCreator"));
dataObj.put("modifier", dataObj.get("updateCreator"));
}
basePopulationInfoDao.saveBasePopulationInfo(dataObj); basePopulationInfoDao.saveBasePopulationInfo(dataObj);
} }

View File

@ -49,6 +49,7 @@ public class PopulationBaseInfoUploadListener extends AnalysisEventListener<Map<
dataObj.put("areaCode",data.get(13)); dataObj.put("areaCode",data.get(13));
dataObj.put("areaNames",data.get(14)); dataObj.put("areaNames",data.get(14));
dataObj.put("currentResidenceAddr",data.get(15) == null ? "" : data.get(15).toString()); dataObj.put("currentResidenceAddr",data.get(15) == null ? "" : data.get(15).toString());
dataObj.put("uploadCreator",data.get(16) == null ? "" : data.get(16).toString());
try { try {
service.saveBasePopulationInfoImport(dataObj); service.saveBasePopulationInfoImport(dataObj);
} catch (Exception e){ } catch (Exception e){

View File

@ -26,9 +26,9 @@
<button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm"> <button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-download"></i> 下载模板 <i class="fa fa-lg fa-download"></i> 下载模板
</button> </button>
<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm"> <!--<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-upload"></i> 导入数据 <i class="fa fa-lg fa-upload"></i> 导入数据
</button> </button>-->
</div> </div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table> <table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 --> <!-- 表头按钮组 -->

View File

@ -32,9 +32,9 @@
<button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm"> <button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-download"></i> 下载模板 <i class="fa fa-lg fa-download"></i> 下载模板
</button> </button>
<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm"> <!--<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-upload"></i> 导入数据 <i class="fa fa-lg fa-upload"></i> 导入数据
</button> </button>-->
</div> </div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table> <table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 --> <!-- 表头按钮组 -->

View File

@ -26,9 +26,9 @@
<button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm"> <button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-download"></i> 下载模板 <i class="fa fa-lg fa-download"></i> 下载模板
</button> </button>
<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm"> <!--<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-upload"></i> 导入数据 <i class="fa fa-lg fa-upload"></i> 导入数据
</button> </button>-->
</div> </div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table> <table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 --> <!-- 表头按钮组 -->

View File

@ -26,9 +26,9 @@
<button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm"> <button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-download"></i> 下载模板 <i class="fa fa-lg fa-download"></i> 下载模板
</button> </button>
<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm"> <!--<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-upload"></i> 导入数据 <i class="fa fa-lg fa-upload"></i> 导入数据
</button> </button>-->
</div> </div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table> <table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 --> <!-- 表头按钮组 -->

View File

@ -26,9 +26,9 @@
<button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm"> <button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-download"></i> 下载模板 <i class="fa fa-lg fa-download"></i> 下载模板
</button> </button>
<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm"> <!--<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-upload"></i> 导入数据 <i class="fa fa-lg fa-upload"></i> 导入数据
</button> </button>-->
</div> </div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table> <table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 --> <!-- 表头按钮组 -->

View File

@ -26,9 +26,9 @@
<button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm"> <button type="button" id="downloadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-download"></i> 下载模板 <i class="fa fa-lg fa-download"></i> 下载模板
</button> </button>
<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm"> <!--<button type="button" id="uploadTemplate" class="layui-btn layui-btn-sm">
<i class="fa fa-lg fa-upload"></i> 导入数据 <i class="fa fa-lg fa-upload"></i> 导入数据
</button> </button>-->
</div> </div>
<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table> <table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>
<!-- 表头按钮组 --> <!-- 表头按钮组 -->