同步用户空指针

This commit is contained in:
zhaokaiyao@91isoft.com
2021-09-28 08:57:55 +08:00
parent 2991806086
commit f3b8466c5f
@@ -49,8 +49,10 @@ public class DataSyncController {
//存放岗位信息
Map<String, String> positionMap = new HashMap<>();
Map<String, String> useDistinct = new HashMap<>();
IPage<TsPosition> iPage = tsPositionService.getPosition(new TsPosition());
TsPosition position = new TsPosition();
position.setCurrent(1);
position.setPageSize(100000);
IPage<TsPosition> iPage = tsPositionService.getPosition(position);
List<TsPosition> positions=iPage.getRecords();
if (!positions.isEmpty()) {
positions.forEach(tsPosition -> {