Commit 5d3e2dc4 authored by 赵啸非's avatar 赵啸非

工作人员添加经办人id

parent 7b31b9fc
......@@ -77,7 +77,7 @@ public class SyncGovMatterDetailThread implements Runnable {
if (rest.getCode() == YesNoEnum.YES.getValue()) {
List<MatterEntity> matterEntityList = matterService.find(new MatterQuery().areaCode(siteEntity.getAreaCode()).source(SourceEnum.政务网.getValue()));
List<MatterEntity> unSyncDetailMatterList = matterEntityList.stream()
.filter(f -> f.getHaveGetMatterInfo().equalsIgnoreCase("false"))
//.filter(f -> f.getHaveGetMatterInfo().equalsIgnoreCase("false"))
.collect(Collectors.toList());
//查询站点事项相关
......
package com.mortals.xhx.module.business.service.impl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result;
......@@ -8,6 +9,10 @@ import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.xhx.module.business.dao.BusinessMatterDao;
import com.mortals.xhx.module.business.model.BusinessMatterEntity;
import com.mortals.xhx.module.business.service.BusinessMatterService;
import java.util.Iterator;
import java.util.List;
/**
* BusinessMatterService
* 业务事项关联 service实现
......@@ -18,6 +23,26 @@ import com.mortals.xhx.module.business.service.BusinessMatterService;
@Service("businessMatterService")
public class BusinessMatterServiceImpl extends AbstractCRUDServiceImpl<BusinessMatterDao, BusinessMatterEntity, Long> implements BusinessMatterService {
/**
* @param list
* @param context
* @throws AppException
*/
@Override
protected void saveBefore(List<BusinessMatterEntity> list, Context context) throws AppException {
//批量校验列表 如果存在 则剔除
Iterator<BusinessMatterEntity> iterator = list.iterator();
while (iterator.hasNext()) {
BusinessMatterEntity next = iterator.next();
int count = this.getDao().getCount(new BusinessMatterQuery().siteBusinessId(next.getSiteBusinessId()).matterId(next.getMatterId()));
if(count>0){
iterator.remove();
}
}
super.saveBefore(list, context);
}
@Override
public Result<BusinessMatterEntity> getListByBusiness(BusinessMatterQuery query, PageInfo pageInfo, Context context) {
return this.getDao().getListByBusiness(query,pageInfo);
......
......@@ -1274,7 +1274,7 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
datumEntity.initAttrValue();
datumEntity.setMatterId(matterEntity.getId());
datumEntity.setMatterCode(matterEntity.getMatterNo());
datumEntity.setMaterialName(matterEntity.getMatterName());
datumEntity.setMatterName(matterEntity.getMatterName());
datumEntity.setSource(SourceEnum.政务网.getValue());
datumEntity.setCreateTime(new Date());
datumEntity.setCreateUser("system");
......
......@@ -8,7 +8,7 @@
备注 = remark
是否减免 = isjianm
纸质材料份数 = paperNum
材料名称 = matterName
材料名称 = materialName
填报须知 = remarkSub
受理标准 = summary
来源渠道 = materialSource
......
......@@ -5,9 +5,8 @@ Content-Type: application/json
{
"page": 1,
"matterId": 123,
"siteId": 53,
"size": 10
"siteBusinessId": 11,
"size": -1
}
###业务事项关联列表
......
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