소스 검색

fix:fapiao

CAYK\miaosen.zhao 6 달 전
부모
커밋
ac49d18c17
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      src/main/java/com/sunxung/factoring/service/invoicemanage/impl/InvoiceBasicInfoServiceImpl.java

+ 5 - 1
src/main/java/com/sunxung/factoring/service/invoicemanage/impl/InvoiceBasicInfoServiceImpl.java

@@ -158,7 +158,11 @@ public class InvoiceBasicInfoServiceImpl extends ServiceImpl<InvoiceBasicInfoMap
     @Override
     public InvoiceBasicInfo get(Long id) {
         User user = ThreadLocalUtil.getUser();
-        Long userId = user.getId();
+        Long userId = null;
+        List<Long> userIds = userService.findUserIdByRole(ConstantUtil.PROJECT_MANAGER);
+        if(cn.hutool.core.collection.CollectionUtil.isNotEmpty(userIds) && !userIds.contains(userId)){
+             userId = user.getId();
+        }
         InvoiceBasicInfo invoiceBasicInfo = baseMapper.getListInfo(id,userId);
         return invoiceBasicInfo;
     }