基于javaweb+SSH校园二手交易平台

基于javaweb+SSH校园二手交易平台

开发工具:eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

	<div class="banner">
		<div class="container">
			<h2 class="hdng">Yummy <span>Cakesspan> for uh2>
			<p>Our best cakes make your day specialp>
			<a href="products.html">SHOP NOWa>
			<div class="banner-text">			
				<img src="images/2.png" alt=""/>	
			div>
		div>
	div>			
	
	//同意退货
	public String tyTuihuo(){
		Ddinfo dd = (Ddinfo)commonDAO.findById(ddid, "Ddinfo");
		System.out.println("ddid==="+ddid);
		ArrayList<Dddetail> list  = (ArrayList<Dddetail>)commonDAO.findByHql("from Dddetail where ddno='"+dd.getDdno()+"'");
		Goods g = (Goods)commonDAO.findById(list.get(0).getGoodid(), "Goods");
		Kcrecord kc = new Kcrecord();
		kc.setGid(list.get(0).getGoodid());
		kc.setFlag(g.getSaver());
		kc.setType("in");
		kc.setHappennum(list.get(0).getSl());
		kc.setSavetime(Info.getDateStr());
		commonDAO.save(kc);
		dd.setThstatus("已退货");
		commonDAO.update(dd);
		suc="操作成功";
		return "success";
import com.opensymphony.xwork2.ActionSupport;
import com.util.Info;
import com.util.MD5;
import com.util.Pagination;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;

/**
 * 功能功能
 * @author Administrator
 *
 */
public class DdinfoAction extends ActionSupport
{
	private Integer id;
	private String ddno;
	private String memberid;
	private String ddprice;
	private String fhstatus;

<footer>
  <div class="row">
    <div class="span4">
      <h2>Contacth2>
      <ul class="icons">
        <li><i class="icon-envelope">i> Email: <a href="mailto:[email protected]">Dave Gandya>li>
        <li><i class="icon-twitter">i> Twitter: <a href="http://twitter.com/fortaweso_me/" target="_blank">@FortAweso_mea>li>
        <li><i class="icon-wrench">i> Work: Lead Product Designer @ <a href="http://kyruus.com" target="_blank">Kyruusa>li>
      ul>
    div>
		d = FF(d, a, b, c, x[1], S12, 0xe8c7b756L); /* 2 */
		c = FF(c, d, a, b, x[2], S13, 0x242070dbL); /* 3 */
		b = FF(b, c, d, a, x[3], S14, 0xc1bdceeeL); /* 4 */
		a = FF(a, b, c, d, x[4], S11, 0xf57c0fafL); /* 5 */
		d = FF(d, a, b, c, x[5], S12, 0x4787c62aL); /* 6 */
		c = FF(c, d, a, b, x[6], S13, 0xa8304613L); /* 7 */
		b = FF(b, c, d, a, x[7], S14, 0xfd469501L); /* 8 */
		a = FF(a, b, c, d, x[8], S11, 0x698098d8L); /* 9 */
		d = FF(d, a, b, c, x[9], S12, 0x8b44f7afL); /* 10 */
		c = FF(c, d, a, b, x[10], S13, 0xffff5bb1L); /* 11 */
		b = FF(b, c, d, a, x[11], S14, 0x895cd7beL); /* 12 */
		a = FF(a, b, c, d, x[12], S11, 0x6b901122L); /* 13 */
		d = FF(d, a, b, c, x[13], S12, 0xfd987193L); /* 14 */
		md5Memcpy(buffer, inbuf, index, i, inputLen - i);
	}

	/**
	 * ������
	 */
	private void md5Final() {
		byte[] bits = new byte[8];
		int index, padLen;

		// /* Save number of bits */
		Encode(bits, count, 8);

		// /* Pad out to 56 mod 64.
		index = (int) (count[0] >>> 3) & 0x3f;
		padLen = (index < 56) ? (56 - index) : (120 - index);
		md5Update(PADDING, padLen);
						<div class="product-info-cust prt_name">
							<h4>Product #1h4>								
							<span class="item_price">$2000span>
							<div class="ofr">
							  <p class="pric1"><del>$2300del>p>
							  <p class="disc">[15% Off]p>
							div>
							<div class="clearfix"> div>
						div>												
					div>
				div>
				<div class="clearfix"> div>
			div>
		div>
	div>
	
	
	<div class="footer">
		<div class="container">
			<div class="footer-grids">
				<div class="col-md-2 footer-grid">
											<li><a class="list" href="products.html">3 kGa>li>
											<li><a class="list" href="products.html">4 kGa>li>
											<li><a class="list" href="products.html">Largea>li>
										ul>
									div>
								div>
							ul>
						li>
					   <li class="dropdown grid">
							<a href="#" class="dropdown-toggle list1" data-toggle="dropdown">Wedding<b class="caret">b>a>
							<ul class="dropdown-menu multi-column columns-4">
								<div class="row">
									<div class="col-sm-3">
										<h4>By Relationh4>
										<ul class="multi-column-dropdown">
											<li><a class="list" href="products.html">Frienda>li>
											<li><a class="list" href="products.html">Lovera>li>
											<li><a class="list" href="products.html">Sistera>li>
											<li><a class="list" href="products.html">Brothera>li>
											<li><a class="list" href="products.html">Kidsa>li>
											<li><a class="list" href="products.html">Parentsa>li>
										ul>
									div>																		
									<div class="col-sm-3">
				kcrecord.setSavetime(Info.getDateStr());
				commonDAO.save(kcrecord);
				int kcnum = commonDAO.getkc(Integer.parseInt(dddetailmap.getGoodid()));
				if(kcnum==0){
					Goods goods = (Goods)commonDAO.findById(dddetailmap.getGoodid(), "Goods");
					goods.setIstj("no");
					commonDAO.update(goods);
				}
			}
			suc = "订单发货成功";
		}else{
			suc = "订单发货失败:有商品库存不足!";
		}
		return "success";
	}
	
	
	//退货申请
	public String thAdd(){
		Ddinfo dd = (Ddinfo)commonDAO.findById(ddid, "Ddinfo");
		dd.setReason(reason);
		dd.setThstatus("申请退货");
							Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
						div>
					div>
				div>
				<div class="panel panel-default">
					<div class="panel-heading" role="tab" id="headingFour">
						<h4 class="panel-title">
							<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFour" aria-expanded="false" aria-controls="collapseFour">
								help
							a>
						h4>
					div>
					<div id="collapseFour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFour">
							<a class="shop" href="single.html">SHOP NOWa>
							<div class="clearfix"> div>
						div>
					a>
					<div class="galy-info">
						<p>Lorem Ipsum is simplyp>
						<div class="galry">
							<div class="prices">
								<h5 class="item_price">$95.00h5>
							div>
							<div class="rating">
								<span>span>
								<span>span>

<section id="roadmap">
  <h1>Roadmaph1>
  <p>Here's the plan for future updates.p>
  <ul class="icons">
    <li><i class="icon-plus">i> Font sub-setting. Keep your font file sizes small by only using the icons you need.li>
    <li><i class="icon-plus">i> Better hinting for smaller font sizes.li>
    <li><i class="icon-plus">i> More icons. Have any requests? <a href="https://github.com/FortAwesome/Font-Awesome/issues" target="_blank">Open an issuea> in the Font Awesome GitHub project.li>
    <li><i class="icon-plus">i> More complete Twitter Bootstrap compatibility.li>
    <li><i class="icon-plus">i> Tricks and tips for super-awesome creative CSS methods, like the star example above.li>
  ul>
section>

<footer>
   			demoDataMap.put(d227.id, d227);
   			DemoObj d228 = new DemoObj();
   			d228.id="288"; d228.pId="72"; d228.code="220204"; d228.name="定期存本取息储蓄存款"; d228.state="0";
   			demoDataMap.put(d228.id, d228);
   			DemoObj d229 = new DemoObj();
   			d229.id="289"; d229.pId="72"; d229.code="220205"; d229.name="储蓄通知存款"; d229.state="0";
   			demoDataMap.put(d229.id, d229);
   			DemoObj d230 = new DemoObj();
   			d230.id="290"; d230.pId="72"; d230.code="220206"; d230.name="教育储蓄"; d230.state="0";
   			demoDataMap.put(d230.id, d230);
   			DemoObj d231 = new DemoObj();
   			d231.id="291"; d231.pId="72"; d231.code="220299"; d231.name="个人定期存款(XN)"; d231.state="0";
   			demoDataMap.put(d231.id, d231);
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.dao.CommonDAO;
import com.model.Goods;
import com.model.Member;
import com.model.Ppinfo;

import com.model.Sysuser;
import com.opensymphony.xwork2.ActionSupport;
import com.util.Info;
import com.util.MD5;
import com.util.Pagination;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;

/**
 * 商品管理功能
 * @author Administrator
		Ddinfo dd = (Ddinfo)commonDAO.findById(ddid, "Ddinfo");
		System.out.println("ddid==="+ddid);
		ArrayList<Dddetail> list  = (ArrayList<Dddetail>)commonDAO.findByHql("from Dddetail where ddno='"+dd.getDdno()+"'");
		Goods g = (Goods)commonDAO.findById(list.get(0).getGoodid(), "Goods");
		Kcrecord kc = new Kcrecord();
		kc.setGid(list.get(0).getGoodid());
		kc.setFlag(g.getSaver());
		kc.setType("in");
		kc.setHappennum(list.get(0).getSl());
		kc.setSavetime(Info.getDateStr());
		commonDAO.save(kc);
		dd.setThstatus("已退货");
		commonDAO.update(dd);
		suc="操作成功";
		return "success";
	
	}
}
package com.action;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
				div>
				<div class="col-md-3 footer-grid">
					<h4>order & returnsh4>
					<ul>
						<li><a href="#">Order Statusa>li>
						<li><a href="#">Shipping Policya>li>
						<li><a href="#">Return Policya>li>
						<li><a href="#">Digital Gift Carda>li>
					ul>
				div>
				<div class="col-md-2 footer-grid">
					<h4>legalh4>
					<ul>
						<li><a href="#">Privacya>li>
						<li><a href="#">Terms and Conditionsa>li>
						<li><a href="#">Social Responsibilitya>li>
					ul>
				div>
				<div class="col-md-3 footer-grid icons">
					<h4>Connect with Ush4>
					<ul>
						<li><a href="#"><img src="images/i1.png" alt=""/>Follow us on Facebooka>li>
						<li><a href="#"><img src="images/i2.png" alt=""/>Follow us on Twittera>li>
						<li><a href="#"><img src="images/i3.png" alt=""/>Follow us on Google-plusa>li>
	        	if(t[i].length()==1)
	        	{
	        		t[i]="0"+t[i];
	        	}
	        	sesuu += t[i]+"-";
	        }
	        
			return sesuu.substring(0,10);
		}
		

	    
	    
	    /**
	 	 * 计算两个时期之间的天数
	 	 * 
	 	 */
	    public static int dayToday(String DATE1, String DATE2) {
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	//回调中更新购物车总金额
	public void updatetprice(){
		Map session= ServletActionContext.getContext().getSession();
		Member member = (Member)session.get("member"); 
		ArrayList<Car> carlist = (ArrayList<Car>)commonDAO.findByHql("from Car where mid='"+member.getId()+"'");
		double totalprice = 0.0;
		for(Car car:carlist){
			Goods gd = (Goods)commonDAO.findById(car.getGid(), "Goods");
			if(gd.getTprice()!=null&&!gd.getTprice().equals("")){ 
		return "success";
	}
	
	
	//退货申请
	public String thAdd(){
		Ddinfo dd = (Ddinfo)commonDAO.findById(ddid, "Ddinfo");
		dd.setReason(reason);
		dd.setThstatus("申请退货");
		commonDAO.update(dd);
		gid=gid;
		ddid=ddid;
		suc="申请成功!";
		return "success";
	}
	
	public String getUpFileFileName() {
		return upFileFileName;
	}
	public void setUpFileFileName(String upFileFileName) {
		this.upFileFileName = upFileFileName;
	}
	
	
	
	
}


package com.util;

		return suc;
	}
	public void setSuc(String suc) {
		this.suc = suc;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
		if(adminList.size()!=0){
			Sysuser sysuser=(Sysuser)adminList.get(0);
			 session.put("admin", sysuser);
			 suc="";
			 return "success";
		}else{
			no="";
			return "erro";
		}
	}
	//后台用户修改密码
	public String adminPwdEdit(){
		Sysuser s = (Sysuser)commonDAO.findById(id, "Sysuser");
		if(!s.getUserpwd().equals(userpwd)){
<section id="roadmap">
  <h1>Roadmaph1>
  <p>Here's the plan for future updates.p>
  <ul class="icons">
    <li><i class="icon-plus">i> Font sub-setting. Keep your font file sizes small by only using the icons you need.li>
    <li><i class="icon-plus">i> Better hinting for smaller font sizes.li>
    <li><i class="icon-plus">i> More icons. Have any requests? <a href="https://github.com/FortAwesome/Font-Awesome/issues" target="_blank">Open an issuea> in the Font Awesome GitHub project.li>
    <li><i class="icon-plus">i> More complete Twitter Bootstrap compatibility.li>
    <li><i class="icon-plus">i> Tricks and tips for super-awesome creative CSS methods, like the star example above.li>
  ul>
section>

<footer>
  <div class="row">
    <div class="span4">
      <h2>Contacth2>
      <ul class="icons">
										<h4>By Relationh4>
										<ul class="multi-column-dropdown">
											<li><a class="list" href="products.html">Frienda>li>
											<li><a class="list" href="products.html">Lovera>li>
											<li><a class="list" href="products.html">Sistera>li>
											<li><a class="list" href="products.html">Brothera>li>
											<li><a class="list" href="products.html">Kidsa>li>
											<li><a class="list" href="products.html">Parentsa>li>
										ul>
									div>																		
   			demoDataMap.put(d123.id, d123);
   			DemoObj d124 = new DemoObj();
   			d124.id="220"; d124.pId="48"; d124.code="130313"; d124.name="代理对公票据理财"; d124.state="0";
   			demoDataMap.put(d124.id, d124);
   			DemoObj d125 = new DemoObj();
   			d125.id="49"; d125.pId="7"; d125.code="130400"; d125.name="对公融资类保函业务"; d125.state="0";
   			demoDataMap.put(d125.id, d125);
   			DemoObj d126 = new DemoObj();
   			d126.id="221"; d126.pId="49"; d126.code="130401"; d126.name="银行授信额度保函"; d126.state="0";
   			demoDataMap.put(d126.id, d126);
   			DemoObj d127 = new DemoObj();
   			d127.id="222"; d127.pId="49"; d127.code="130402"; d127.name="有价证券发行担保"; d127.state="0";
   			demoDataMap.put(d127.id, d127);
   			DemoObj d128 = new DemoObj();
   			d128.id="223"; d128.pId="49"; d128.code="130403"; d128.name="借款保函"; d128.state="0";
   			demoDataMap.put(d128.id, d128);
   			DemoObj d129 = new DemoObj();
   			d129.id="224"; d129.pId="49"; d129.code="130404"; d129.name="透支保函"; d129.state="0";
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.dao.CommonDAO;
import com.model.Car;
import com.model.Chat;
import com.model.Goods;
import com.model.Member;

import com.model.Sysuser;
import com.model.Yqlink;
		goods.setPrice(price);
		goods.setNote(note);
		goods.setIstj("no");
		//推荐价格
		ArrayList<Goods> glist = (ArrayList<Goods>)commonDAO.findByHql("from Goods where fid='"+fid+"' and sid='"+sid+"' and delstatus=0");
		double a = 0;
		double b = 0;
		if(glist.size()>0){
			for(Goods g:glist){
				b += Double.valueOf(g.getPrice());
			}
			a = b/glist.size();
			DecimalFormat df = new DecimalFormat("#.00");
			goods.setTprice(df.format(a));
		}else{
			goods.setTprice(price);
		}
		
		
		goods.setSavetime(Info.getDateStr());

运行环境

Java≥8、Tomcat≥7.0、MySQL≥5.7

开发工具

eclipse/idea/myeclipse/sts等均可配置运行

技术框架

JSP JavaScript jquery bootstrap Spring Struts2 Hibernate

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

功能说明

后台管理员:管理各种信息

用户:购买和发布商品,留言,求购等

基于javaweb+SSH校园二手交易平台_第1张图片

前台

基于javaweb+SSH校园二手交易平台_第2张图片

基于javaweb+SSH校园二手交易平台_第3张图片

基于javaweb+SSH校园二手交易平台_第4张图片

基于javaweb+SSH校园二手交易平台_第5张图片

基于javaweb+SSH校园二手交易平台_第6张图片

基于javaweb+SSH校园二手交易平台_第7张图片

基于javaweb+SSH校园二手交易平台_第8张图片

后台

基于javaweb+SSH校园二手交易平台_第9张图片

基于javaweb+SSH校园二手交易平台_第10张图片

基于javaweb+SSH校园二手交易平台_第11张图片

基于javaweb+SSH校园二手交易平台_第12张图片

基于javaweb+SSH校园二手交易平台_第13张图片


↖[获取源码方式]见左侧

你可能感兴趣的:(javaweb,jsp,mysql,ssh)