• 大小: 693KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-23
  • 语言: 数据库
  • 标签: mysql  

资源简介

用mysql和myeclipse运行实现 也可以在Tomcat下运行实现

资源截图

代码片段和文件信息

package com.shop.app;

import java.util.List;
import java.util.Map;

import com.shop.common.DaoFactory;

public class GoodsApp {
private DaoFactory factory=new DaoFactory();

public List getBookList(){
String sql=“select a.bida.btitlea.bauthora.bmarket_pricea.bmember_priceb.bcclass_namea.bremark from books abclass b where a.bclassid=b.bcid“;
return this.factory.query(sql);
}

public Map getPointBook(Integer pid){
String sql=“select a.bida.btitlea.bauthora.bmarket_pricea.bmember_pricea.bremarkb.bcclass_name from books abclass b where a.bclassid=b.bcid and a.bid=?“;
List list=this.factory.query(sqlnew object[]{pid});
if(list.size()>0)
return list.get(0);
else
return null;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        433  2010-06-23 19:30  Shopping5_1\.classpath

     文件        299  2011-04-09 18:44  Shopping5_1\.mymetadata

     文件       1227  2010-06-23 19:35  Shopping5_1\.project

     文件       4296  2010-07-03 21:42  Shopping5_1\db\shopnew.sql

     文件        755  2010-06-23 19:30  Shopping5_1\src\com\shop\app\GoodsApp.java

     文件        898  2010-06-23 19:30  Shopping5_1\src\com\shop\app\LoginApp.java

     文件        900  2010-06-30 23:13  Shopping5_1\src\com\shop\app\OrderFormApp.java

     文件       1554  2010-08-28 23:17  Shopping5_1\src\com\shop\beans\BookBean.java

     文件       3805  2011-04-09 18:25  Shopping5_1\src\com\shop\common\DaoFactory.java

     文件       1009  2010-06-23 19:30  Shopping5_1\src\com\shop\common\Request.java

     文件       1951  2010-07-03 07:48  Shopping5_1\WebRoot\addCar.jsp

     文件        818  2010-06-23 19:30  Shopping5_1\WebRoot\book-info.jsp

     文件       3824  2010-07-03 07:16  Shopping5_1\WebRoot\car.jsp

     文件       1003  2010-07-03 07:29  Shopping5_1\WebRoot\change-all-count.jsp

     文件       5625  2010-09-30 07:54  Shopping5_1\WebRoot\create_order_form.jsp

     文件       4358  2010-06-23 19:30  Shopping5_1\WebRoot\images\button.png

    ..A.SH.      4608  2010-08-28 10:15  Shopping5_1\WebRoot\images\Thumbs.db

     文件       2208  2010-07-02 22:01  Shopping5_1\WebRoot\index.jsp

     文件        452  2010-06-23 19:30  Shopping5_1\WebRoot\login-out.jsp

     文件        836  2010-06-30 21:40  Shopping5_1\WebRoot\login-validate.jsp

     文件       1127  2010-06-23 19:30  Shopping5_1\WebRoot\login.jsp

     文件         39  2010-06-23 19:30  Shopping5_1\WebRoot\meta-INF\MANIFEST.MF

     文件        679  2010-07-03 07:32  Shopping5_1\WebRoot\remove-proc.jsp

     文件       1522  2010-12-14 10:13  Shopping5_1\WebRoot\save-order-form.jsp

     文件       1410  2010-07-01 10:58  Shopping5_1\WebRoot\style.css

     文件       1384  2011-04-09 18:45  Shopping5_1\WebRoot\WEB-INF\classes\com\shop\app\GoodsApp.class

     文件       1650  2011-04-09 18:45  Shopping5_1\WebRoot\WEB-INF\classes\com\shop\app\LoginApp.class

     文件       1558  2011-04-09 18:45  Shopping5_1\WebRoot\WEB-INF\classes\com\shop\app\OrderFormApp.class

     文件       2185  2011-04-09 18:45  Shopping5_1\WebRoot\WEB-INF\classes\com\shop\beans\BookBean.class

     文件       5302  2011-04-09 18:45  Shopping5_1\WebRoot\WEB-INF\classes\com\shop\common\DaoFactory.class

............此处省略26个文件信息

评论

共有 条评论