重命名软件包
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.common.utils;
|
package com.landaiqing.common.utils;
|
||||||
import java.util.Base64;
|
import java.util.Base64;
|
||||||
/**
|
/**
|
||||||
* 基于JDK1.8实现的BASE64编码
|
* 基于JDK1.8实现的BASE64编码
|
@@ -6,7 +6,7 @@
|
|||||||
* @date 2018年5月24日
|
* @date 2018年5月24日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.common.utils;
|
package com.landaiqing.common.utils;
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.common.utils;
|
package com.landaiqing.common.utils;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.net.Inet4Address;
|
import java.net.Inet4Address;
|
||||||
import java.net.UnknownHostException;
|
import java.net.UnknownHostException;
|
||||||
@@ -9,7 +9,8 @@ import javax.mail.Session;
|
|||||||
import javax.mail.Transport;
|
import javax.mail.Transport;
|
||||||
import javax.mail.internet.InternetAddress;
|
import javax.mail.internet.InternetAddress;
|
||||||
import javax.mail.internet.MimeMessage;
|
import javax.mail.internet.MimeMessage;
|
||||||
import ah.com.domain.User;
|
import com.landaiqing.domain.User;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 基于JDK实现邮件发送
|
* 基于JDK实现邮件发送
|
||||||
* 主要是实现激活码的发送
|
* 主要是实现激活码的发送
|
@@ -6,7 +6,7 @@
|
|||||||
* @date 2018年5月29日
|
* @date 2018年5月29日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.common.utils;
|
package com.landaiqing.common.utils;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.common.utils;
|
package com.landaiqing.common.utils;
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
import java.security.MessageDigest;
|
import java.security.MessageDigest;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.common.utils;
|
package com.landaiqing.common.utils;
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.security.MessageDigest;
|
import java.security.MessageDigest;
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.common.utils;
|
package com.landaiqing.common.utils;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.common.utils;
|
package com.landaiqing.common.utils;
|
||||||
//字符串的各种校验
|
//字符串的各种校验
|
||||||
public class StrUtils {
|
public class StrUtils {
|
||||||
|
|
@@ -6,7 +6,7 @@
|
|||||||
* @date 2018年5月24日
|
* @date 2018年5月24日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.common.vo;
|
package com.landaiqing.common.vo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Title: ResultBean.java
|
* @Title: ResultBean.java
|
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.common.vo;
|
package com.landaiqing.common.vo;
|
||||||
public class ViewCart {
|
public class ViewCart {
|
||||||
private String name;
|
private String name;
|
||||||
private double price;
|
private double price;
|
@@ -1,8 +1,8 @@
|
|||||||
package ah.com.common.vo;
|
package com.landaiqing.common.vo;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import ah.com.domain.Goods;
|
import com.landaiqing.domain.Goods;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copyright: Copyright (c) 2018
|
* Copyright: Copyright (c) 2018
|
@@ -6,7 +6,7 @@
|
|||||||
* @date 2018年5月31日
|
* @date 2018年5月31日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.common.vo;
|
package com.landaiqing.common.vo;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
public class ViewOrder {
|
public class ViewOrder {
|
||||||
private String id;
|
private String id;
|
@@ -6,7 +6,7 @@
|
|||||||
* @date 2018年5月31日
|
* @date 2018年5月31日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.common.vo;
|
package com.landaiqing.common.vo;
|
||||||
public class ViewOrderDetail {
|
public class ViewOrderDetail {
|
||||||
private String name;
|
private String name;
|
||||||
private double price;
|
private double price;
|
@@ -1,13 +1,13 @@
|
|||||||
package ah.com.controller;
|
package com.landaiqing.controller;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpSession;
|
import javax.servlet.http.HttpSession;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import ah.com.domain.Cart;
|
import com.landaiqing.domain.Cart;
|
||||||
import ah.com.domain.Goods;
|
import com.landaiqing.domain.Goods;
|
||||||
import ah.com.service.CartService;
|
import com.landaiqing.service.CartService;
|
||||||
@Controller
|
@Controller
|
||||||
public class CartController {
|
public class CartController {
|
||||||
@Autowired
|
@Autowired
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.controller;
|
package com.landaiqing.controller;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.controller;
|
package com.landaiqing.controller;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -10,10 +10,10 @@ import org.springframework.ui.Model;
|
|||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
import ah.com.common.utils.FileUtils;
|
import com.landaiqing.common.utils.FileUtils;
|
||||||
import ah.com.domain.Goods;
|
import com.landaiqing.domain.Goods;
|
||||||
import ah.com.service.GoodsService;
|
import com.landaiqing.service.GoodsService;
|
||||||
import ah.com.service.GoodsTypeService;
|
import com.landaiqing.service.GoodsTypeService;
|
||||||
@Controller
|
@Controller
|
||||||
public class GoodsController {
|
public class GoodsController {
|
||||||
@Autowired
|
@Autowired
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.controller;
|
package com.landaiqing.controller;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -6,8 +6,8 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import ah.com.domain.GoodsType;
|
import com.landaiqing.domain.GoodsType;
|
||||||
import ah.com.service.GoodsTypeService;
|
import com.landaiqing.service.GoodsTypeService;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class GoodsTypeController {
|
public class GoodsTypeController {
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.controller;
|
package com.landaiqing.controller;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
@@ -7,15 +7,15 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import ah.com.common.utils.RandomUtils;
|
import com.landaiqing.common.utils.RandomUtils;
|
||||||
import ah.com.common.vo.ViewCart;
|
import com.landaiqing.common.vo.ViewCart;
|
||||||
import ah.com.domain.Cart;
|
import com.landaiqing.domain.Cart;
|
||||||
import ah.com.domain.CartDetail;
|
import com.landaiqing.domain.CartDetail;
|
||||||
import ah.com.domain.Goods;
|
import com.landaiqing.domain.Goods;
|
||||||
import ah.com.domain.User;
|
import com.landaiqing.domain.User;
|
||||||
import ah.com.service.CartService;
|
import com.landaiqing.service.CartService;
|
||||||
import ah.com.service.OrderService;
|
import com.landaiqing.service.OrderService;
|
||||||
import ah.com.service.UserAddressService;
|
import com.landaiqing.service.UserAddressService;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class OrderController {
|
public class OrderController {
|
@@ -1,12 +1,12 @@
|
|||||||
package ah.com.controller;
|
package com.landaiqing.controller;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import ah.com.domain.User;
|
import com.landaiqing.domain.User;
|
||||||
import ah.com.domain.UserAddress;
|
import com.landaiqing.domain.UserAddress;
|
||||||
import ah.com.service.UserAddressService;
|
import com.landaiqing.service.UserAddressService;
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class UserAddressController {
|
public class UserAddressController {
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.controller;
|
package com.landaiqing.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
@@ -8,15 +8,14 @@ import org.springframework.stereotype.Controller;
|
|||||||
import org.springframework.ui.Model;
|
import org.springframework.ui.Model;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.ResponseBody;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
import ah.com.common.utils.EmailUtils;
|
import com.landaiqing.common.utils.MD5Utils;
|
||||||
import ah.com.common.utils.MD5Utils;
|
import com.landaiqing.common.utils.RandomUtils;
|
||||||
import ah.com.common.utils.RandomUtils;
|
import com.landaiqing.common.utils.StrUtils;
|
||||||
import ah.com.common.utils.StrUtils;
|
import com.landaiqing.common.vo.ResultBean;
|
||||||
import ah.com.common.vo.ResultBean;
|
import com.landaiqing.domain.Cart;
|
||||||
import ah.com.domain.Cart;
|
import com.landaiqing.domain.User;
|
||||||
import ah.com.domain.User;
|
import com.landaiqing.service.CartService;
|
||||||
import ah.com.service.CartService;
|
import com.landaiqing.service.UserService;
|
||||||
import ah.com.service.UserService;
|
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
public class UserController {
|
public class UserController {
|
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.dao;
|
package com.landaiqing.dao;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.apache.ibatis.annotations.Delete;
|
import org.apache.ibatis.annotations.Delete;
|
||||||
import org.apache.ibatis.annotations.Insert;
|
import org.apache.ibatis.annotations.Insert;
|
||||||
@@ -9,9 +9,9 @@ import org.apache.ibatis.annotations.Param;
|
|||||||
import org.apache.ibatis.annotations.ResultType;
|
import org.apache.ibatis.annotations.ResultType;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
import org.apache.ibatis.annotations.Update;
|
import org.apache.ibatis.annotations.Update;
|
||||||
import ah.com.common.vo.ViewCart;
|
import com.landaiqing.common.vo.ViewCart;
|
||||||
import ah.com.domain.Cart;
|
import com.landaiqing.domain.Cart;
|
||||||
import ah.com.domain.CartDetail;
|
import com.landaiqing.domain.CartDetail;
|
||||||
public interface CartDao {
|
public interface CartDao {
|
||||||
//新增-创建购物车
|
//新增-创建购物车
|
||||||
@Insert("insert into t_cart(uid,money) values(#{uid},0)")
|
@Insert("insert into t_cart(uid,money) values(#{uid},0)")
|
@@ -1,14 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.dao;
|
package com.landaiqing.dao;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.landaiqing.domain.Goods;
|
||||||
import org.apache.ibatis.annotations.Delete;
|
import org.apache.ibatis.annotations.Delete;
|
||||||
import org.apache.ibatis.annotations.Insert;
|
import org.apache.ibatis.annotations.Insert;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.ResultType;
|
import org.apache.ibatis.annotations.ResultType;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
import ah.com.domain.Goods;
|
|
||||||
public interface GoodsDao {
|
public interface GoodsDao {
|
||||||
//新增
|
//新增
|
||||||
@Insert("insert into t_goods(name,price,pubdate,typeName,intro,picture,flag,star) values(#{name},#{price},#{pubdate},#{typeName},#{intro},#{picture},1,#{star})")
|
@Insert("insert into t_goods(name,price,pubdate,typeName,intro,picture,flag,star) values(#{name},#{price},#{pubdate},#{typeName},#{intro},#{picture},1,#{star})")
|
@@ -1,14 +1,14 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.dao;
|
package com.landaiqing.dao;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.apache.ibatis.annotations.Delete;
|
import org.apache.ibatis.annotations.Delete;
|
||||||
import org.apache.ibatis.annotations.Insert;
|
import org.apache.ibatis.annotations.Insert;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.ResultType;
|
import org.apache.ibatis.annotations.ResultType;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
import ah.com.domain.GoodsType;
|
import com.landaiqing.domain.GoodsType;
|
||||||
public interface GoodsTypeDao {
|
public interface GoodsTypeDao {
|
||||||
//新增
|
//新增
|
||||||
@Insert("insert into t_goodstype(name,level,parentName,flag) values(#{name},#{level},#{parentName},1)")
|
@Insert("insert into t_goodstype(name,level,parentName,flag) values(#{name},#{level},#{parentName},1)")
|
@@ -6,7 +6,7 @@
|
|||||||
* @date 2018年5月31日
|
* @date 2018年5月31日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.dao;
|
package com.landaiqing.dao;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.apache.ibatis.annotations.Delete;
|
import org.apache.ibatis.annotations.Delete;
|
||||||
import org.apache.ibatis.annotations.Insert;
|
import org.apache.ibatis.annotations.Insert;
|
||||||
@@ -14,10 +14,10 @@ import org.apache.ibatis.annotations.Param;
|
|||||||
import org.apache.ibatis.annotations.ResultType;
|
import org.apache.ibatis.annotations.ResultType;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
import org.apache.ibatis.annotations.Update;
|
import org.apache.ibatis.annotations.Update;
|
||||||
import ah.com.common.vo.ViewOrder;
|
import com.landaiqing.common.vo.ViewOrder;
|
||||||
import ah.com.common.vo.ViewOrderDetail;
|
import com.landaiqing.common.vo.ViewOrderDetail;
|
||||||
import ah.com.domain.Order;
|
import com.landaiqing.domain.Order;
|
||||||
import ah.com.domain.OrderDetail;
|
import com.landaiqing.domain.OrderDetail;
|
||||||
public interface OrderDao {
|
public interface OrderDao {
|
||||||
//新增 订单详情
|
//新增 订单详情
|
||||||
@Insert("insert into t_orderdetail(oid,gid,money,num) values(#{oid},#{gid},#{money},#{num})")
|
@Insert("insert into t_orderdetail(oid,gid,money,num) values(#{oid},#{gid},#{money},#{num})")
|
@@ -6,15 +6,17 @@
|
|||||||
* @date 2018年5月31日
|
* @date 2018年5月31日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.dao;
|
package com.landaiqing.dao;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.landaiqing.domain.UserAddress;
|
||||||
import org.apache.ibatis.annotations.Delete;
|
import org.apache.ibatis.annotations.Delete;
|
||||||
import org.apache.ibatis.annotations.Insert;
|
import org.apache.ibatis.annotations.Insert;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.ResultType;
|
import org.apache.ibatis.annotations.ResultType;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
import org.apache.ibatis.annotations.Update;
|
import org.apache.ibatis.annotations.Update;
|
||||||
import ah.com.domain.UserAddress;
|
|
||||||
public interface UserAddressDao {
|
public interface UserAddressDao {
|
||||||
//新增
|
//新增
|
||||||
@Insert("insert into t_useraddress(name,phone,detail,uid,flag ) values(#{name},#{phone},#{detail},#{uid},1)")
|
@Insert("insert into t_useraddress(name,phone,detail,uid,flag ) values(#{name},#{phone},#{detail},#{uid},1)")
|
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.dao;
|
package com.landaiqing.dao;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.apache.ibatis.annotations.Delete;
|
import org.apache.ibatis.annotations.Delete;
|
||||||
import org.apache.ibatis.annotations.Insert;
|
import org.apache.ibatis.annotations.Insert;
|
||||||
@@ -9,7 +9,7 @@ import org.apache.ibatis.annotations.Param;
|
|||||||
import org.apache.ibatis.annotations.ResultType;
|
import org.apache.ibatis.annotations.ResultType;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
import org.apache.ibatis.annotations.Update;
|
import org.apache.ibatis.annotations.Update;
|
||||||
import ah.com.domain.User;
|
import com.landaiqing.domain.User;
|
||||||
public interface UserDao {
|
public interface UserDao {
|
||||||
//新增
|
//新增
|
||||||
@Insert("insert into t_user(role ,username,password,email,gender,createtime ,flag ,activatecode) values(1,#{username},#{password},#{email},#{gender},now(),1,#{activatecode})")
|
@Insert("insert into t_user(role ,username,password,email,gender,createtime ,flag ,activatecode) values(1,#{username},#{password},#{email},#{gender},now(),1,#{activatecode})")
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package ah.com.domain;
|
package com.landaiqing.domain;
|
||||||
public class Cart {
|
public class Cart {
|
||||||
private int id;
|
private int id;
|
||||||
private int uid;
|
private int uid;
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.domain;
|
package com.landaiqing.domain;
|
||||||
public class CartDetail {
|
public class CartDetail {
|
||||||
private int id;
|
private int id;
|
||||||
private int cid;
|
private int cid;
|
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.domain;
|
package com.landaiqing.domain;
|
||||||
public class Goods {
|
public class Goods {
|
||||||
private int id;
|
private int id;
|
||||||
private String name;
|
private String name;
|
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.domain;
|
package com.landaiqing.domain;
|
||||||
public class GoodsType {
|
public class GoodsType {
|
||||||
private int id;
|
private int id;
|
||||||
private String name;
|
private String name;
|
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.domain;
|
package com.landaiqing.domain;
|
||||||
public class Order {
|
public class Order {
|
||||||
private String id;
|
private String id;
|
||||||
private int uid;
|
private int uid;
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package ah.com.domain;
|
package com.landaiqing.domain;
|
||||||
public class OrderDetail {
|
public class OrderDetail {
|
||||||
private int id;
|
private int id;
|
||||||
private String oid;
|
private String oid;
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
package ah.com.domain;
|
package com.landaiqing.domain;
|
||||||
public class User {
|
public class User {
|
||||||
private int id;
|
private int id;
|
||||||
private String username;
|
private String username;
|
@@ -1,4 +1,4 @@
|
|||||||
package ah.com.domain;
|
package com.landaiqing.domain;
|
||||||
public class UserAddress {
|
public class UserAddress {
|
||||||
private int id;
|
private int id;
|
||||||
private String name;
|
private String name;
|
@@ -1,10 +1,10 @@
|
|||||||
|
|
||||||
package ah.com.service;
|
package com.landaiqing.service;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import ah.com.common.vo.ViewCart;
|
import com.landaiqing.common.vo.ViewCart;
|
||||||
import ah.com.domain.Cart;
|
import com.landaiqing.domain.Cart;
|
||||||
import ah.com.domain.Goods;
|
import com.landaiqing.domain.Goods;
|
||||||
public interface CartService {
|
public interface CartService {
|
||||||
// 创建购物车
|
// 创建购物车
|
||||||
public boolean createCart(Cart cart);
|
public boolean createCart(Cart cart);
|
@@ -1,9 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.service;
|
package com.landaiqing.service;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import ah.com.domain.Goods;
|
import com.landaiqing.domain.Goods;
|
||||||
public interface GoodsService {
|
public interface GoodsService {
|
||||||
// 新增
|
// 新增
|
||||||
boolean save(Goods goods);
|
boolean save(Goods goods);
|
@@ -1,6 +1,6 @@
|
|||||||
package ah.com.service;
|
package com.landaiqing.service;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import ah.com.domain.GoodsType;
|
import com.landaiqing.domain.GoodsType;
|
||||||
public interface GoodsTypeService {
|
public interface GoodsTypeService {
|
||||||
//新增
|
//新增
|
||||||
boolean save(GoodsType gt);
|
boolean save(GoodsType gt);
|
@@ -6,11 +6,11 @@
|
|||||||
* @date 2018年5月31日
|
* @date 2018年5月31日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.service;
|
package com.landaiqing.service;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import ah.com.common.vo.ViewOrder;
|
import com.landaiqing.common.vo.ViewOrder;
|
||||||
import ah.com.domain.CartDetail;
|
import com.landaiqing.domain.CartDetail;
|
||||||
import ah.com.domain.Order;
|
import com.landaiqing.domain.Order;
|
||||||
public interface OrderService {
|
public interface OrderService {
|
||||||
//下单
|
//下单
|
||||||
public boolean save(String oid, int uid, int uaid);
|
public boolean save(String oid, int uid, int uaid);
|
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.service;
|
package com.landaiqing.service;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import ah.com.domain.UserAddress;
|
import com.landaiqing.domain.UserAddress;
|
||||||
public interface UserAddressService {
|
public interface UserAddressService {
|
||||||
// 新增
|
// 新增
|
||||||
public boolean insert(UserAddress ua);
|
public boolean insert(UserAddress ua);
|
@@ -1,9 +1,9 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.service;
|
package com.landaiqing.service;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import ah.com.domain.User;
|
import com.landaiqing.domain.User;
|
||||||
public interface UserService {
|
public interface UserService {
|
||||||
//新增
|
//新增
|
||||||
boolean save(User user);
|
boolean save(User user);
|
@@ -1,16 +1,17 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.service.impl;
|
package com.landaiqing.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.landaiqing.dao.CartDao;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import ah.com.common.vo.ViewCart;
|
import com.landaiqing.common.vo.ViewCart;
|
||||||
import ah.com.dao.CartDao;
|
import com.landaiqing.domain.Cart;
|
||||||
import ah.com.domain.Cart;
|
import com.landaiqing.domain.CartDetail;
|
||||||
import ah.com.domain.CartDetail;
|
import com.landaiqing.domain.Goods;
|
||||||
import ah.com.domain.Goods;
|
import com.landaiqing.service.CartService;
|
||||||
import ah.com.service.CartService;
|
|
||||||
@Service
|
@Service
|
||||||
public class CartServiceImpl implements CartService{
|
public class CartServiceImpl implements CartService{
|
||||||
@Autowired
|
@Autowired
|
@@ -1,14 +1,14 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.service.impl;
|
package com.landaiqing.service.impl;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import ah.com.dao.GoodsDao;
|
import com.landaiqing.dao.GoodsDao;
|
||||||
import ah.com.domain.Goods;
|
import com.landaiqing.domain.Goods;
|
||||||
import ah.com.service.GoodsService;
|
import com.landaiqing.service.GoodsService;
|
||||||
@Service
|
@Service
|
||||||
public class GoodsServiceImpl implements GoodsService{
|
public class GoodsServiceImpl implements GoodsService{
|
||||||
@Autowired
|
@Autowired
|
@@ -1,13 +1,14 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.service.impl;
|
package com.landaiqing.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.landaiqing.dao.GoodsTypeDao;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import ah.com.dao.GoodsTypeDao;
|
import com.landaiqing.domain.GoodsType;
|
||||||
import ah.com.domain.GoodsType;
|
import com.landaiqing.service.GoodsTypeService;
|
||||||
import ah.com.service.GoodsTypeService;
|
|
||||||
@Service
|
@Service
|
||||||
public class GoodsTypeServiceImpl implements GoodsTypeService {
|
public class GoodsTypeServiceImpl implements GoodsTypeService {
|
||||||
@Autowired
|
@Autowired
|
@@ -6,17 +6,18 @@
|
|||||||
* @date 2018年5月31日
|
* @date 2018年5月31日
|
||||||
* @version V1.0
|
* @version V1.0
|
||||||
*/
|
*/
|
||||||
package ah.com.service.impl;
|
package com.landaiqing.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.landaiqing.dao.CartDao;
|
||||||
|
import com.landaiqing.dao.OrderDao;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import ah.com.common.vo.ViewOrder;
|
import com.landaiqing.common.vo.ViewOrder;
|
||||||
import ah.com.dao.CartDao;
|
import com.landaiqing.domain.CartDetail;
|
||||||
import ah.com.dao.OrderDao;
|
import com.landaiqing.domain.Order;
|
||||||
import ah.com.domain.CartDetail;
|
import com.landaiqing.domain.OrderDetail;
|
||||||
import ah.com.domain.Order;
|
import com.landaiqing.service.OrderService;
|
||||||
import ah.com.domain.OrderDetail;
|
|
||||||
import ah.com.service.OrderService;
|
|
||||||
@Service
|
@Service
|
||||||
public class OrderServiceImpl implements OrderService{
|
public class OrderServiceImpl implements OrderService{
|
||||||
@Autowired
|
@Autowired
|
@@ -1,10 +1,10 @@
|
|||||||
package ah.com.service.impl;
|
package com.landaiqing.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import ah.com.dao.UserAddressDao;
|
import com.landaiqing.dao.UserAddressDao;
|
||||||
import ah.com.domain.UserAddress;
|
import com.landaiqing.domain.UserAddress;
|
||||||
import ah.com.service.UserAddressService;
|
import com.landaiqing.service.UserAddressService;
|
||||||
@Service
|
@Service
|
||||||
public class UserAddressServiceImpl implements UserAddressService{
|
public class UserAddressServiceImpl implements UserAddressService{
|
||||||
@Autowired
|
@Autowired
|
@@ -1,16 +1,17 @@
|
|||||||
/**
|
/**
|
||||||
* @author Feri
|
* @author Feri
|
||||||
*/
|
*/
|
||||||
package ah.com.service.impl;
|
package com.landaiqing.service.impl;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.landaiqing.dao.UserDao;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import ah.com.common.utils.Base64Utils;
|
import com.landaiqing.common.utils.Base64Utils;
|
||||||
import ah.com.common.utils.MD5Utils;
|
import com.landaiqing.common.utils.MD5Utils;
|
||||||
import ah.com.common.utils.StrUtils;
|
import com.landaiqing.common.utils.StrUtils;
|
||||||
import ah.com.dao.UserDao;
|
import com.landaiqing.domain.User;
|
||||||
import ah.com.domain.User;
|
import com.landaiqing.service.UserService;
|
||||||
import ah.com.service.UserService;
|
|
||||||
@Service
|
@Service
|
||||||
public class UserServiceImpl implements UserService{
|
public class UserServiceImpl implements UserService{
|
||||||
@Autowired
|
@Autowired
|
@@ -9,7 +9,7 @@
|
|||||||
http://www.springframework.org/schema/context/spring-context.xsd
|
http://www.springframework.org/schema/context/spring-context.xsd
|
||||||
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd">
|
||||||
<!-- 扫描Controller -->
|
<!-- 扫描Controller -->
|
||||||
<context:component-scan base-package="ah.com.controller" />
|
<context:component-scan base-package="com.landaiqing.controller" />
|
||||||
<!-- 配置视图解析器 -->
|
<!-- 配置视图解析器 -->
|
||||||
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
|
||||||
<property name="suffix" value=".jsp" />
|
<property name="suffix" value=".jsp" />
|
||||||
|
Reference in New Issue
Block a user