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

添加材料数量统计

parent 67e115d8
...@@ -52,6 +52,7 @@ public class SyncSiteMatterTaskImpl implements ITaskExcuteService { ...@@ -52,6 +52,7 @@ public class SyncSiteMatterTaskImpl implements ITaskExcuteService {
Rest<RespData<List<SiteMatterPdu>>> siteMatterRest = siteMatterFeign.list(siteMatterPdu); Rest<RespData<List<SiteMatterPdu>>> siteMatterRest = siteMatterFeign.list(siteMatterPdu);
if (siteMatterRest.getCode() == YesNoEnum.YES.getValue()) { if (siteMatterRest.getCode() == YesNoEnum.YES.getValue()) {
//删除后新增 //删除后新增
log.info("事项总数量:{}",siteMatterRest.getData().getData().size());
List<SheetMatterEntity> sheetMatterEntities = siteMatterRest.getData().getData().stream().map(siteMatter -> { List<SheetMatterEntity> sheetMatterEntities = siteMatterRest.getData().getData().stream().map(siteMatter -> {
SheetMatterEntity sheetMatterEntity = new SheetMatterEntity(); SheetMatterEntity sheetMatterEntity = new SheetMatterEntity();
sheetMatterEntity.initAttrValue(); sheetMatterEntity.initAttrValue();
...@@ -75,6 +76,8 @@ public class SyncSiteMatterTaskImpl implements ITaskExcuteService { ...@@ -75,6 +76,8 @@ public class SyncSiteMatterTaskImpl implements ITaskExcuteService {
} }
} }
}else{
log.info("请求错误,code:{}",siteMatterRest.getCode());
} }
}); });
} }
......
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