|
@@ -8,6 +8,7 @@ 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;
|
|
@@ -134,10 +135,10 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
* @param page 页数和每页显示的条数默认显示10条
|
|
|
* @return 根据用户id查询是否有开通产品
|
|
|
*/
|
|
|
- public IPage<LantoneProduct> productLine(Page page) {
|
|
|
+ public RespDTO<IPage<LantoneProduct>> productLine(Page page) {
|
|
|
Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
IPage<LantoneProduct> diagLantoneProducts = productLine(page, userId);
|
|
|
- return diagLantoneProducts;
|
|
|
+ return RespDTO.onSuc(diagLantoneProducts);
|
|
|
}
|
|
|
|
|
|
|
|
@@ -195,4 +196,16 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
}
|
|
|
return list;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 用户-分页查询产品信息
|
|
|
+ *
|
|
|
+ * @param page 分页参数
|
|
|
+ * @param name 参数
|
|
|
+ * @return 产品信息
|
|
|
+ */
|
|
|
+ public RespDTO<IPage<LantoneProduct>> index(Page page, String name) {
|
|
|
+ IPage<User> res = this.selectProduct(page, name);
|
|
|
+ return RespDTO.onSuc(res);
|
|
|
+ }
|
|
|
}
|