Commit 2aa451b0 authored by hongguangwu's avatar hongguangwu

批量更新

parent 6f1b7bca
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
package com.yifu.cloud.plus.v1.yifu.archives.service.impl; package com.yifu.cloud.plus.v1.yifu.archives.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import com.alibaba.excel.EasyExcel; import com.alibaba.excel.EasyExcel;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
...@@ -1300,17 +1301,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -1300,17 +1301,6 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
empNatrueMap = dictMap.get("emp_natrue"); empNatrueMap = dictMap.get("emp_natrue");
} }
// 调用区域服务,渲染区域值
R<Map<String, Map<String, String>>> areaMapR = HttpDaprUtil.invokeMethodPost(daprUpmsProperties.getAppUrl(), daprUpmsProperties.getAppId()
, "/area/inner/getAreaToName", null, Map.class, SecurityConstants.FROM_IN);
Map<String, String> areaMap;
if (areaMapR == null) {
return R.failed("获取区域失败!");
} else {
Map<String, Map<String, String>> areaMaps = areaMapR.getData();
areaMap = areaMaps.get("data");
}
String areaStr; String areaStr;
// 执行数据插入操作 组装 // 执行数据插入操作 组装
for (int i = 0; i < excelVOList.size(); i++) { for (int i = 0; i < excelVOList.size(); i++) {
...@@ -1326,8 +1316,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T ...@@ -1326,8 +1316,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
// 档案在职 // 档案在职
if (saveEmp.getFileStatus() == CommonConstants.ZERO_INT) { if (saveEmp.getFileStatus() == CommonConstants.ZERO_INT) {
// 可以更新 // 可以更新
oldEmp = new TEmployeeInfo();
oldEmp = existEmpMap.get(excel.getEmpIdcard()); BeanUtil.copyProperties(saveEmp, oldEmp);
if (Common.isNotNull(excel.getEmpPhone())) { if (Common.isNotNull(excel.getEmpPhone())) {
saveEmp.setEmpPhone(excel.getEmpPhone()); saveEmp.setEmpPhone(excel.getEmpPhone());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment