|
@@ -8,7 +8,6 @@ import com.diagbot.dto.UserOrgDTO;
|
|
|
import com.diagbot.entity.LantoneProduct;
|
|
|
import com.diagbot.entity.OpenedProducts;
|
|
|
import com.diagbot.entity.OpenedProductsIndex;
|
|
|
-import com.diagbot.entity.User;
|
|
|
import com.diagbot.entity.wrapper.LantoneProductWrapper;
|
|
|
import com.diagbot.entity.wrapper.OpendProductWrapper;
|
|
|
import com.diagbot.enums.IsDeleteEnum;
|
|
@@ -41,7 +40,6 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
@Autowired
|
|
|
private UserServiceClient userServiceClient;
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 产品线管理添加产品
|
|
|
*
|
|
@@ -136,8 +134,15 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
* @return 根据用户id查询是否有开通产品
|
|
|
*/
|
|
|
public RespDTO<IPage<LantoneProduct>> productLine(Page page) {
|
|
|
- Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
- IPage<LantoneProduct> diagLantoneProducts = productLine(page, userId);
|
|
|
+ /*Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());*/
|
|
|
+ IPage<LantoneProduct> diagLantoneProducts =null;
|
|
|
+ String name =null;
|
|
|
+ List<Long> list = openedProductsFacade.getOpendCountByUserId(1L);
|
|
|
+ if(list.size()!=0){
|
|
|
+ diagLantoneProducts=this.productLine(page,list);
|
|
|
+ return RespDTO.onSuc(diagLantoneProducts);
|
|
|
+ }
|
|
|
+ diagLantoneProducts = this.selectProduct(page,name);
|
|
|
return RespDTO.onSuc(diagLantoneProducts);
|
|
|
}
|
|
|
|