|
@@ -158,7 +158,11 @@ public class InvoiceBasicInfoServiceImpl extends ServiceImpl<InvoiceBasicInfoMap
|
|
@Override
|
|
@Override
|
|
public InvoiceBasicInfo get(Long id) {
|
|
public InvoiceBasicInfo get(Long id) {
|
|
User user = ThreadLocalUtil.getUser();
|
|
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);
|
|
InvoiceBasicInfo invoiceBasicInfo = baseMapper.getListInfo(id,userId);
|
|
return invoiceBasicInfo;
|
|
return invoiceBasicInfo;
|
|
}
|
|
}
|