wangyu 6 سال پیش
والد
کامیت
f7464e1310
1فایلهای تغییر یافته به همراه11 افزوده شده و 7 حذف شده
  1. 11 7
      diagbotman-service/src/main/java/com/diagbot/service/impl/LantoneProductServiceImpl.java

+ 11 - 7
diagbotman-service/src/main/java/com/diagbot/service/impl/LantoneProductServiceImpl.java

@@ -3,12 +3,17 @@ package com.diagbot.service.impl;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.client.UserServiceClient;
+import com.diagbot.dto.RespDTO;
+import com.diagbot.dto.UserOrgDTO;
 import com.diagbot.entity.LantoneProduct;
 import com.diagbot.entity.wrapper.LantoneProductWrapper;
 import com.diagbot.mapper.LantoneProductMapper;
 import com.diagbot.service.LantoneProductService;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import java.util.ArrayList;
 import java.util.List;
 import java.util.Map;
 
@@ -22,6 +27,8 @@ import java.util.Map;
  */
 @Service
 public class LantoneProductServiceImpl extends ServiceImpl<LantoneProductMapper, LantoneProduct> implements LantoneProductService {
+    @Autowired
+    private UserServiceClient userServiceClient;
     /**
      * @Description: 显示朗通产品线
      * @Author: wangyu
@@ -39,7 +46,9 @@ public class LantoneProductServiceImpl extends ServiceImpl<LantoneProductMapper,
      */
     @Override
     public IPage<LantoneProduct> selectProduct(Page<LantoneProduct> page, String name) {
-
+        List<Long> list =new ArrayList<>();
+        list.add(2l);
+        RespDTO<Map<Long,UserOrgDTO>> map = userServiceClient.getUserAndOrg(list);
         return baseMapper.selectProduct(page,name);
     }
 
@@ -48,13 +57,8 @@ public class LantoneProductServiceImpl extends ServiceImpl<LantoneProductMapper,
         return baseMapper.opendedProduct(page,map);
     }
 
-    /**
-     * @Description: 根据用户查询已开通产品
-     * @Author: zhaops
-     * @Date: 10:10 2018/9/20
-     */
     @Override
     public List<LantoneProductWrapper> opendedProductByUserId(Long userId) {
-        return baseMapper.opendedProductByUserId(userId);
+        return null;
     }
 }