一、主要功能概述

前台门户:                                                                                                 后台:

【SSM电商项目后台开发】006-商品管理模块【SSM电商项目后台开发】006-商品管理模块

 

二、主要学习到的知识点

【SSM电商项目后台开发】006-商品管理模块【SSM电商项目后台开发】006-商品管理模块

主要接口设计

运营后台

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

 

三、数据表设计

【SSM电商项目后台开发】006-商品管理模块

四、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);


}
View Code

相关文章:

  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-08-14
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案