一、主要功能概述
前台门户: 后台:
二、主要学习到的知识点
主要接口设计
运营后台
1.产品list:/manage/product/list.do
2.产品搜索:/manage/product/search.do
3.图片上传:/manage/product/upload.do
4.产品详情:/manage/product/detail.do
5.产品上下架:/manage/product/set_sale_status.do
6.新增OR更新产品:/manage/product/save.do
7.富文本上传图片:/manage/product/richtext_img_upload.do
门户
1.产品搜索及动态排序List:/product/list.do
2.产品detail:/product/detail.do
三、数据表设计
四、DAO层
package com.mmall.dao; import com.mmall.pojo.Product; import org.apache.ibatis.annotations.Param; import java.util.List; public interface ProductMapper { int deleteByPrimaryKey(Integer id); int insert(Product record); int insertSelective(Product record); Product selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(Product record); int updateByPrimaryKey(Product record); List<Product> selectProductList(); List<Product> selectByNameAndId(@Param("productName") String productName, @Param("productId") Integer productId); List<Product> selectByNameAndCategoryIds(@Param("keyword") String productName, @Param("categoryList") List<Integer> categoryList); }