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