|
@@ -3,6 +3,7 @@ package com.diagbot.facade;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.client.UserServiceClient;
|
|
|
+import com.diagbot.dto.ProductLineDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.dto.UserOrgDTO;
|
|
|
import com.diagbot.entity.LantoneProduct;
|
|
@@ -118,17 +119,11 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
* @param page 页数和每页显示的条数默认显示10条
|
|
|
* @return 根据用户id查询是否有开通产品
|
|
|
*/
|
|
|
- public RespDTO<IPage<LantoneProduct>> productLine(Page page) {
|
|
|
+ public RespDTO<IPage<ProductLineDTO>> productLine(Page page) {
|
|
|
Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
- IPage<LantoneProduct> diagLantoneProducts =null;
|
|
|
- String name =null;
|
|
|
List<Long> list = openedProductsFacade.getOpendCountByUserId(userId);
|
|
|
- if(list.size()!=0){
|
|
|
- diagLantoneProducts=this.productLine(page,list);
|
|
|
- return RespDTO.onSuc(diagLantoneProducts);
|
|
|
- }
|
|
|
- diagLantoneProducts = this.selectProduct(page,name);
|
|
|
- return RespDTO.onSuc(diagLantoneProducts);
|
|
|
+
|
|
|
+ return RespDTO.onSuc(this.productLine(page,list));
|
|
|
}
|
|
|
|
|
|
|