CAYK\miaosen.zhao преди 6 месеца
родител
ревизия
dc5d41d3b4

+ 1 - 1
src/main/java/com/sunxung/factoring/mapper/invoicemanage/InvoiceBasicInfoMapper.java

@@ -27,7 +27,7 @@ public interface InvoiceBasicInfoMapper extends BaseMapper<InvoiceBasicInfo> {
      * @param id
      * @return
      */
-    InvoiceBasicInfo getListInfo(Long id);
+    InvoiceBasicInfo getListInfo(Long id,Long userId);
 
     /**
      * 查询我已处理列表页

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

@@ -157,7 +157,9 @@ public class InvoiceBasicInfoServiceImpl extends ServiceImpl<InvoiceBasicInfoMap
 
     @Override
     public InvoiceBasicInfo get(Long id) {
-        InvoiceBasicInfo invoiceBasicInfo = baseMapper.getListInfo(id);
+        User user = ThreadLocalUtil.getUser();
+        Long userId = user.getId();
+        InvoiceBasicInfo invoiceBasicInfo = baseMapper.getListInfo(id,userId);
         return invoiceBasicInfo;
     }