|
|
@@ -55,6 +55,7 @@ import com.uas.platform.b2c.trade.support.ResultMap;
|
|
|
import com.uas.platform.core.exception.IllegalOperatorException;
|
|
|
import com.uas.platform.core.model.Constant;
|
|
|
import com.uas.platform.core.model.PageInfo;
|
|
|
+import com.uas.platform.core.model.PageParams;
|
|
|
import com.uas.platform.core.model.Type;
|
|
|
import com.uas.platform.core.persistence.criteria.LogicalExpression;
|
|
|
import com.uas.platform.core.persistence.criteria.PredicateUtils;
|
|
|
@@ -2177,5 +2178,24 @@ public class ProductServiceImpl implements ProductService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分页获取器件信息
|
|
|
+ *
|
|
|
+ * @param params 分页信息
|
|
|
+ * @param keyword 搜索关键字
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Page<V_ProductPrivate> getPageProducts(PageParams params, String keyword) {
|
|
|
+ SPage<Long> ids = searchService.getProducts(null, keyword, params.getPage(), params.getCount(), null);
|
|
|
+ PageInfo info = new PageInfo(params);
|
|
|
+ if (null == ids) {
|
|
|
+ return new PageImpl<V_ProductPrivate>(Collections.emptyList(), info, 0);
|
|
|
+ }
|
|
|
+ List<Long> idList = ids.getContent();
|
|
|
+ List<V_ProductPrivate> productList = v_productPrivateDao.findAll(idList);
|
|
|
+ return new PageImpl<V_ProductPrivate>(productList, info, ids.getTotalElement());
|
|
|
+ }
|
|
|
}
|
|
|
|