Commit 9affb916 authored by 赵啸非's avatar 赵啸非

修改重复导入,用户名相同的,做更新操作

parent a5ee8e79
......@@ -250,7 +250,7 @@ public class WorkmanServiceImpl extends AbstractCRUDCacheServiceImpl<WorkmanDao,
try {
//通过用户名判断是更新还是新增;
WorkmanEntity workmanEntity = this.selectOne(new WorkmanQuery().loginName(entity.getLoginName()), context);
if (ObjectUtils.isEmpty(workmanEntity)) {
if (!ObjectUtils.isEmpty(workmanEntity)) {
entity.setId(workmanEntity.getId());
entity.setDeleted(YesNoEnum.NO.getValue());
entity.setUpdateUserId(this.getContextUserId(context));
......
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