Commit ff6cc0e0 authored by shenxin's avatar shenxin

蓉易办推送数据

parent dc4df905
...@@ -15,4 +15,6 @@ public interface InformationService extends ICRUDService<InformationEntity,Long> ...@@ -15,4 +15,6 @@ public interface InformationService extends ICRUDService<InformationEntity,Long>
void applyAndAccept(); void applyAndAccept();
void submitLinkData(); void submitLinkData();
void pushMaxNum();
} }
\ No newline at end of file
...@@ -311,7 +311,7 @@ public class InformationServiceImpl extends AbstractCRUDServiceImpl<InformationD ...@@ -311,7 +311,7 @@ public class InformationServiceImpl extends AbstractCRUDServiceImpl<InformationD
@Override @Override
public void submitLinkData() { public void submitLinkData() {
PageInfo pageInfo = new PageInfo(); PageInfo pageInfo = new PageInfo();
pageInfo.setPrePageResult(100); pageInfo.setPrePageResult(pageSize);
InformationQuery informationQuery = new InformationQuery(); InformationQuery informationQuery = new InformationQuery();
informationQuery.setNodeType(NodeTypeEnum.办结.getCode()); informationQuery.setNodeType(NodeTypeEnum.办结.getCode());
informationQuery.setIsReport("1"); informationQuery.setIsReport("1");
...@@ -348,6 +348,15 @@ public class InformationServiceImpl extends AbstractCRUDServiceImpl<InformationD ...@@ -348,6 +348,15 @@ public class InformationServiceImpl extends AbstractCRUDServiceImpl<InformationD
informationService.update(collect, null); informationService.update(collect, null);
} }
@Override
public void pushMaxNum() {
PageInfo pageInfo = new PageInfo();
pageInfo.setPrePageResult(pageSize);
List<InformationEntity> informationEntities = informationService.find(null, pageInfo, null).getList();
informationService.update(informationEntities, null);
log.info("数量为:" + pageSize);
}
private HashMap<String, Object> assemblyParametersLink(InformationEntity e) { private HashMap<String, Object> assemblyParametersLink(InformationEntity e) {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
HashMap<String, Object> dataMap = new HashMap<>(16); HashMap<String, Object> dataMap = new HashMap<>(16);
......
...@@ -159,6 +159,14 @@ public class InformationController extends BaseCRUDJsonController<InformationSer ...@@ -159,6 +159,14 @@ public class InformationController extends BaseCRUDJsonController<InformationSer
} }
/**
* 推送蓉易办测试每次最大推送数量
*/
@GetMapping(value="pushMaxNum")
public void pushMaxNum(){
informationService.pushMaxNum();
}
} }
\ 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