|
@@ -121,6 +121,10 @@ public class SysDeptInvoiceServiceImpl extends ServiceImpl<SysDeptInvoiceMapper,
|
|
|
queryDeptIds.retainAll(likeDeptIds);
|
|
|
}
|
|
|
|
|
|
+ if (CollUtil.isEmpty(queryDeptIds)) {
|
|
|
+ return page;
|
|
|
+ }
|
|
|
+
|
|
|
IPage<SysDeptInvoiceRelationVO> relationVOIPage =
|
|
|
deptInvoiceRelationMapper.pageInvoiceScorePacakgeRelation(new Page<>(page.getCurrent(), page.getSize()), toScorePackagePage, queryDeptIds);
|
|
|
|
|
@@ -352,6 +356,7 @@ public class SysDeptInvoiceServiceImpl extends ServiceImpl<SysDeptInvoiceMapper,
|
|
|
@Override
|
|
|
public List<SysDeptInvoiceRelationVO> listToInvoiceScore(Integer deptId) {
|
|
|
Set<Integer> queryDeptIds = new HashSet<>();
|
|
|
+ queryDeptIds.add(deptId);
|
|
|
// 查询关联的企业
|
|
|
List<SysDeptRelation> deptRelations = deptRelationService.list(Wrappers.<SysDeptRelation>lambdaQuery()
|
|
|
.eq(SysDeptRelation::getAncestor, deptId)
|