Commit 99d9dc1a authored by 赵啸非's avatar 赵啸非

添加自定义导入修改

parent 739df990
......@@ -2158,7 +2158,9 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
SucessCount++;
} else {
log.info("事项已存在,更新事项:" + matterEntity.getMatterName());
BeanUtils.copyProperties(matterCustomImportEntity, matterEntity, new String[]{"areaCode", "deptName", "matterName"});
BeanUtils.copyProperties(matterCustomImportEntity, matterEntity, new String[]{"id","areaCode", "deptName", "matterName"});
matterEntity.setUpdateTime(new Date());
matterEntity.setUpdateUserId(1L);
this.dao.update(matterEntity);
......@@ -2168,7 +2170,7 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
}
return Rest.ok("成功:" + SucessCount + "更新:" + updateCount + " 失败:" + failCount);
return Rest.ok("成功:" + SucessCount + " 更新:" + updateCount + " 失败:" + failCount);
}
......
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