Commit 06277c64 authored by 赵啸非's avatar 赵啸非

修改门户配置打包

parent c17fb3f3
...@@ -124,12 +124,7 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M ...@@ -124,12 +124,7 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M
private void updateOrSave(MatterEntity item, Long siteId, Context context) { private void updateOrSave(MatterEntity item, Long siteId, Context context) {
SiteMatterEntity siteMatterEntity = siteMatterService.selectOne(new SiteMatterQuery().siteId(siteId).matterId(item.getId())); SiteMatterEntity siteMatterEntity = siteMatterService.selectOne(new SiteMatterQuery().siteId(siteId).matterId(item.getId()));
if (!ObjectUtils.isEmpty(siteMatterEntity)) { if (ObjectUtils.isEmpty(siteMatterEntity)) {
BeanUtils.copyProperties(item, siteMatterEntity, new String[]{"id","siteId","matterId"});
siteMatterEntity.setMatterName(item.getMatterName());
siteMatterEntity.setUpdateTime(new Date());
siteMatterService.update(siteMatterEntity, context);
} else {
siteMatterEntity = new SiteMatterEntity(); siteMatterEntity = new SiteMatterEntity();
SiteEntity siteEntity = siteService.get(siteId); SiteEntity siteEntity = siteService.get(siteId);
siteMatterEntity.setSiteId(siteEntity.getId()); siteMatterEntity.setSiteId(siteEntity.getId());
......
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