Commit e362d766 authored by 赵啸非's avatar 赵啸非

回退站点业务请求列表

parent c1cce852
...@@ -18,6 +18,7 @@ import lombok.extern.slf4j.Slf4j; ...@@ -18,6 +18,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -38,7 +39,10 @@ public class StatSiteDeptMatterTaskImpl implements ITaskExcuteService { ...@@ -38,7 +39,10 @@ public class StatSiteDeptMatterTaskImpl implements ITaskExcuteService {
log.info("开始同步事项列表!"); log.info("开始同步事项列表!");
List<DeptEntity> deptEntities = deptService.find(new DeptQuery()); List<DeptEntity> deptEntities = deptService.find(new DeptQuery());
for (DeptEntity deptEntity : deptEntities) { for (DeptEntity deptEntity : deptEntities) {
int total = matterService.count(new MatterQuery().source(SourceEnum.政务网.getValue()).deptCode(deptEntity.getDeptNumber()), null);
MatterQuery matterQuery = new MatterQuery();
matterQuery.setEventTypeShowNotList(Arrays.asList("行政处罚"));
int total = matterService.count(matterQuery.source(SourceEnum.政务网.getValue()).deptCode(deptEntity.getDeptNumber()), null);
DeptEntity deptQuery = new DeptEntity(); DeptEntity deptQuery = new DeptEntity();
deptQuery.setTotal(total); deptQuery.setTotal(total);
deptQuery.setUpdateTime(new Date()); deptQuery.setUpdateTime(new Date());
......
...@@ -45,9 +45,7 @@ public class SiteMatterController extends BaseCRUDJsonBodyMappingController<Site ...@@ -45,9 +45,7 @@ public class SiteMatterController extends BaseCRUDJsonBodyMappingController<Site
super.doListBefore(query, model, context); super.doListBefore(query, model, context);
query.setOrderColList(Arrays.asList(new OrderCol("hot", OrderCol.DESCENDING))); query.setOrderColList(Arrays.asList(new OrderCol("hot", OrderCol.DESCENDING)));
if (ObjectUtils.isEmpty(query.getEventTypeShowNotList())) { if (ObjectUtils.isEmpty(query.getEventTypeShowNotList())) {
ArrayList<String> notList = new ArrayList<>(); query.setEventTypeShowNotList(Arrays.asList("行政处罚"));
notList.add("行政处罚");
query.setEventTypeShowNotList(notList);
} }
} }
} }
\ No newline at end of file
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