上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 34 下一页
摘要: 1.业务层实现: CategoryService : public interface CategoryService { public ResultVO listCategories(); public ResultVO listFirstLevelCategories(); } Category 阅读全文
posted @ 2022-07-19 17:25 临易 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 按照商品的分类(一级分类)推销销量最高的6个商品。 一、流程分析 加载分类商品推荐有两种实现方案: 方案一:当加载首页时不加载分类的推荐商品,监听进度条滚动事件,当进度条触底(滚动指定的距离),就触发分类推荐商品的加载,每次只加载一个分类的商品。 方案二:一次性加载所有分类的推荐商品,整体进行初始化 阅读全文
posted @ 2022-07-19 17:14 临易 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 1.流程分析 首页 ——————ajax——————> 首页商品推荐 index.html <——销量最高的三个商品—— 接口 推荐规则:1.根据当前用户的最近搜索进行推荐 2.查询销量最高的商品进行推荐 3.根据平台管理员设置的需要推荐的商品 4.查询最新上架的商品进行推荐 2.数据库实现 商品推 阅读全文
posted @ 2022-07-19 12:15 临易 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1.业务层实现: CategoryServic接口: public interface CategoryService { public ResultVO listCategories(); } CategoryServicImpl实现类: @Service public class Categor 阅读全文
posted @ 2022-07-18 15:46 临易 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 一、首页-分类列表 实现流程分析: 1.方案一:一次查询三级分类 优点:只需要一次查询,根据一级分类显示二级分类时响应速度较快。 缺点:数据库查询效率较低,页面首次加载的速度也相对较慢。 2.方案二:先只查询一级分类,用户点击/鼠标移动到一级分类,动态加载二级分类。 优点:数据库查询效率提高,页面首 阅读全文
posted @ 2022-07-18 15:33 临易 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.报错信息 七月 18, 2022 2:51:48 下午 org.junit.platform.launcher.core.DefaultLauncher handleThrowable 警告: TestEngine with ID 'junit-jupiter' failed to discov 阅读全文
posted @ 2022-07-18 14:55 临易 阅读(2157) 评论(0) 推荐(0) 编辑
摘要: 1.具体报错信息: Caused by: org.apache.ibatis.builder.BuilderException: Ambiguous collection type for property 'categories'. You must specify 'javaType' or ' 阅读全文
posted @ 2022-07-18 14:51 临易 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 当进入到index.html,在进行页面初始化之后,就需要请求轮播图数据进行轮播图的显示。 <script type="text/javascript"> var baseUrl="http://localhost:8080/"; var vm = new Vue({ el:"#container" 阅读全文
posted @ 2022-07-18 11:29 临易 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 业务层实现: 1.IndexImgService接口: public interface IndexImgService { public ResultVO listIndexImgs(); } 2.IndexImgServiceImpl实现类: @Service public class Inde 阅读全文
posted @ 2022-07-14 22:18 临易 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 数据库操作实现: 1.分析数据表结构 查询status=1且按照seq进行排序 2.添加测试数据 3.编写sql语句 SELECT img_id,img_url,img_bg_color,prod_id,category_id,index_type,seq,STATUS,create_time,up 阅读全文
posted @ 2022-07-14 20:10 临易 阅读(79) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 34 下一页