资源简介

ssm开发购物商城web项目代码+详细注释(使用idea编辑器) 商城项目介绍 商城项目 一 前端展示 1.1注册 1.2登录 1.3注销 1.4商品类别展示 1.5单个商品的展示 1.6 立刻购买(buynow) 1.7购物车(gotoShopcar) 1.8付款 二 后端管理 用户管理 增加编辑页面 商品管理 编辑界面 商品类别管理 编辑页面 三 开发计划 3.1了解需求 3.2 表结构设计 3.3 编码阶段

资源截图

代码片段和文件信息

package com.qf.shoppingcenter.controller;

import com.qf.shoppingcenter.entity.TAddress;
import com.qf.shoppingcenter.entity.TUser;
import com.qf.shoppingcenter.service.TAddressService;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * (TAddress)表控制层
 *
 * @author makejava
 * @since 2020-05-18 20:21:26
 */
@RestController
@RequestMapping(“/tAddress“)
public class TAddressController {
    /**
     * 服务对象
     */
    @Resource
    private TAddressService tAddressService;

    /**
     * 新增地址信息
     * @param request
     * @param shouhuoren
     * @param phone
     * @param address
     * @return
     */
    @RequestMapping(“/addAddress.action“)
    public ModelAndView addAddress(HttpServletRequest request@RequestParam(“shouhuoren“)String shouhuoren @RequestParam(“phone“)String phone @RequestParam(“address“)String address){
        TAddress tAddress=new TAddress();
        tAddress.setShouhuoren(shouhuoren);
        tAddress.setPhone(phone);
        tAddress.setAddress(address);
        tAddress.setIsdefault(“否“);
        tAddress.setUserid(((TUser)request.getSession().getAttribute(“user1“)).getId());
        System.out.println(address);
        System.out.println(tAddress);
        int result=tAddressService.addAddress(tAddress);

        //获得用户编号
        Integer uid=((TUser)(request.getSession().getAttribute(“user1“))).getId();

        //根据用户编号查询收货信息
        List addressList1=tAddressService.findAddressByUid(uid);

        //创建ModelAndView对象跳转页面
        ModelAndView mav=new ModelAndView(“pay.jsp“);
        mav.addobject(“addressList“addressList1);
        return mav;
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-05-31 10:09  ShoppingCenterlianxi\
     目录           0  2020-05-31 17:34  ShoppingCenterlianxi\.idea\
     文件         489  2020-05-18 19:46  ShoppingCenterlianxi\.idea\$PRODUCT_WORKSPACE_FILE$
     文件         617  2020-05-31 15:33  ShoppingCenterlianxi\.idea\compiler.xml
     目录           0  2020-05-31 15:33  ShoppingCenterlianxi\.idea\dataSources\
     文件         984  2020-05-19 17:40  ShoppingCenterlianxi\.idea\dataSources.local.xml
     文件         499  2020-05-19 17:40  ShoppingCenterlianxi\.idea\dataSources.xml
     目录           0  2020-05-19 17:40  ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\
     文件       49211  2020-05-31 15:33  ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6.xml
     目录           0  2020-05-19 17:40  ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\storage_v2\
     目录           0  2020-05-19 17:40  ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\storage_v2\_src_\
     目录           0  2020-05-19 17:40  ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\storage_v2\_src_\schema\
     文件          76  2020-05-19 17:40  ShoppingCenterlianxi\.idea\dataSources\571f009f-d48a-4417-95b2-3ebc1d76a2d6\storage_v2\_src_\schema\information_schema.FNRwLQ.meta
     目录           0  2020-05-18 20:21  ShoppingCenterlianxi\.idea\EasyCodeConfig\
     文件        1251  2020-05-27 22:44  ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_address.json
     文件        1999  2020-05-18 20:21  ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_goods_info.json
     文件         978  2020-05-18 20:21  ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_goods_type.json
     文件        2118  2020-05-18 20:21  ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_order.json
     文件        1844  2020-05-18 20:21  ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_order_detail.json
     文件        1377  2020-05-18 20:21  ShoppingCenterlianxi\.idea\EasyCodeConfig\shoppingcenterlianxi-t_user.json
     文件         177  2020-05-18 20:31  ShoppingCenterlianxi\.idea\encodings.xml
     文件         656  2020-05-18 20:31  ShoppingCenterlianxi\.idea\misc.xml
     文件        8915  2020-05-20 21:27  ShoppingCenterlianxi\.idea\uiDesigner.xml
     文件       17332  2020-05-31 17:34  ShoppingCenterlianxi\.idea\workspace.xml
     文件       11015  2020-05-30 20:22  ShoppingCenterlianxi\pom.xml
     文件     4810241  2020-05-31 17:24  ShoppingCenterlianxi\qf.log
     文件      130714  2020-05-24 16:05  ShoppingCenterlianxi\qf.log.2020-05-24
     文件     1661237  2020-05-25 22:52  ShoppingCenterlianxi\qf.log.2020-05-25
     文件     3189750  2020-05-26 22:30  ShoppingCenterlianxi\qf.log.2020-05-26
     文件     4569624  2020-05-27 22:13  ShoppingCenterlianxi\qf.log.2020-05-27
     文件     1544858  2020-05-28 21:41  ShoppingCenterlianxi\qf.log.2020-05-28
............此处省略1495个文件信息

评论

共有 条评论