Ver Fonte

fix: 可开票积分不正确

李学松 há 2 anos atrás
pai
commit
405e31720d

+ 5 - 0
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/recharge/service/impl/SysDeptInvoiceServiceImpl.java

@@ -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)