Commit 37c84182 authored by 赵啸非's avatar 赵啸非

添加站点政务同步接口

parent f2260b11
This diff is collapsed.
...@@ -184,6 +184,7 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M ...@@ -184,6 +184,7 @@ public class MatterServiceImpl extends AbstractCRUDCacheServiceImpl<MatterDao, M
siteMatterEntity.setMatterName(item.getMatterName()); siteMatterEntity.setMatterName(item.getMatterName());
siteMatterEntity.setDeptCode(item.getDeptCode()); siteMatterEntity.setDeptCode(item.getDeptCode());
siteMatterEntity.setSource(item.getSource()); siteMatterEntity.setSource(item.getSource());
siteMatterEntity.setEventTypeShow(item.getEventTypeShow());
siteMatterEntity.setDeptName(deptEntity == null ? "" : deptEntity.getName()); siteMatterEntity.setDeptName(deptEntity == null ? "" : deptEntity.getName());
siteMatterEntity.setDeptId(deptEntity == null ? -1L : deptEntity.getId()); siteMatterEntity.setDeptId(deptEntity == null ? -1L : deptEntity.getId());
siteMatterEntity.setCreateUserId(context == null ? 1L : context.getUser() == null ? 1L : context.getUser().getId()); siteMatterEntity.setCreateUserId(context == null ? 1L : context.getUser() == null ? 1L : context.getUser().getId());
......
...@@ -39,6 +39,10 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -39,6 +39,10 @@ public class SiteMatterEntity extends SiteMatterVo {
* 部门名称 * 部门名称
*/ */
private String deptName; private String deptName;
/**
* 事项类型
*/
private String eventTypeShow;
/** /**
* 事项来源 * 事项来源
*/ */
...@@ -149,6 +153,20 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -149,6 +153,20 @@ public class SiteMatterEntity extends SiteMatterVo {
public void setDeptName(String deptName){ public void setDeptName(String deptName){
this.deptName = deptName; this.deptName = deptName;
} }
/**
* 获取 事项类型
* @return String
*/
public String getEventTypeShow(){
return eventTypeShow;
}
/**
* 设置 事项类型
* @param eventTypeShow
*/
public void setEventTypeShow(String eventTypeShow){
this.eventTypeShow = eventTypeShow;
}
/** /**
* 获取 事项来源 * 获取 事项来源
* @return Integer * @return Integer
...@@ -206,6 +224,7 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -206,6 +224,7 @@ public class SiteMatterEntity extends SiteMatterVo {
sb.append(",matterCode:").append(getMatterCode()); sb.append(",matterCode:").append(getMatterCode());
sb.append(",deptId:").append(getDeptId()); sb.append(",deptId:").append(getDeptId());
sb.append(",deptName:").append(getDeptName()); sb.append(",deptName:").append(getDeptName());
sb.append(",eventTypeShow:").append(getEventTypeShow());
sb.append(",source:").append(getSource()); sb.append(",source:").append(getSource());
sb.append(",deptCode:").append(getDeptCode()); sb.append(",deptCode:").append(getDeptCode());
return sb.toString(); return sb.toString();
...@@ -213,7 +232,7 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -213,7 +232,7 @@ public class SiteMatterEntity extends SiteMatterVo {
public void initAttrValue(){ public void initAttrValue(){
this.siteId = -1L; this.siteId = null;
this.siteName = ""; this.siteName = "";
...@@ -227,6 +246,8 @@ public class SiteMatterEntity extends SiteMatterVo { ...@@ -227,6 +246,8 @@ public class SiteMatterEntity extends SiteMatterVo {
this.deptName = ""; this.deptName = "";
this.eventTypeShow = "";
this.source = 0; this.source = 0;
this.deptCode = ""; this.deptCode = "";
......
...@@ -22,6 +22,7 @@ import com.mortals.xhx.feign.user.IUserFeign; ...@@ -22,6 +22,7 @@ import com.mortals.xhx.feign.user.IUserFeign;
import com.mortals.xhx.module.area.model.AreaEntity; import com.mortals.xhx.module.area.model.AreaEntity;
import com.mortals.xhx.module.area.model.AreaQuery; import com.mortals.xhx.module.area.model.AreaQuery;
import com.mortals.xhx.module.area.service.AreaService; import com.mortals.xhx.module.area.service.AreaService;
import com.mortals.xhx.module.dept.model.DeptEntity;
import com.mortals.xhx.module.dept.service.DeptService; import com.mortals.xhx.module.dept.service.DeptService;
import com.mortals.xhx.module.matter.model.MatterEntity; import com.mortals.xhx.module.matter.model.MatterEntity;
import com.mortals.xhx.module.matter.model.MatterQuery; import com.mortals.xhx.module.matter.model.MatterQuery;
...@@ -431,8 +432,9 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE ...@@ -431,8 +432,9 @@ public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteE
log.info("需要添加事项数量====" + subList.size()); log.info("需要添加事项数量====" + subList.size());
//差集进行插入并更新详细数据 //差集进行插入并更新详细数据
if (!ObjectUtils.isEmpty(subList)) { if (!ObjectUtils.isEmpty(subList)) {
for (MatterEntity matterEntity : subList) { for (MatterEntity matterEntity : subList) {
DeptEntity deptCache = deptService.getExtCache(matterEntity.getDeptCode());
matterEntity.setDeptName(deptCache == null ? "" : deptCache.getName());
matterService.save(matterEntity, context); matterService.save(matterEntity, 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