资源简介


资源截图

代码片段和文件信息

package ata.wx.shopping.busbean;

import ata.wx.shopping.factory.DAOFactory;
import ata.wx.shopping.vo.UserAccount;
import ata.wx.shopping.util.*;
public class UserBankOBean {
//充值
//更新bank的时候自动在useraccount上加上数量

                                                     //username是用户在网站的用户名     //这个money是用户要充的钱的数量
public static void addMoney(String cardnameString passwordString usernamedouble addmoney){
try {
String moneyLogId=GetIdTime.getLogid();
String time=GetIdTime.getTime();
//这个钱是充值前银行账户有多少钱
double money1=DAOFactory.getBankDAOInstance().select(cardname).getMoney();
double money2=money1-addmoney;
DAOFactory.getBankDAOInstance().update(cardname password money2);
//得到用户账户充值钱所拥有的钱
UserAccount useraccount=DAOFactory.getUserAccountDAOInstance().selectUserAccount(username);
double usermoney1=useraccount.getMoney();
//充值后用户的总钱数
double usermoney2=usermoney1+addmoney;
DAOFactory.getUserAccountDAOInstance().updateUserAccount(username usermoney2);
//增加充值记录
DAOFactory.getMoneyLogDAOInstance().insert(moneyLogId username addmoney time);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-12-10 12:13  Yutcproject\
     文件         870  2020-10-27 08:09  Yutcproject\.classpath
     文件         911  2020-10-22 18:06  Yutcproject\.project
     目录           0  2020-12-10 12:13  Yutcproject\.settings\
     文件         567  2020-10-22 18:06  Yutcproject\.settings\.jsdtscope
     文件         364  2020-10-22 18:06  Yutcproject\.settings\org.eclipse.jdt.core.prefs
     文件         485  2020-10-22 18:06  Yutcproject\.settings\org.eclipse.wst.common.component
     文件         305  2020-10-22 18:06  Yutcproject\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2020-10-22 18:06  Yutcproject\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2020-10-22 18:06  Yutcproject\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\meta-INF\
     文件          39  2008-02-20 13:31  Yutcproject\WebContent\meta-INF\MANIFEST.MF
     文件        2247  2008-02-20 13:31  Yutcproject\WebContent\MyJsp.jsp
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\WEB-INF\
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\WEB-INF\classes\
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\WEB-INF\classes\ata\
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\WEB-INF\classes\ata\wx\
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\busbean\
     文件        1885  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\busbean\UserBankOBean.class
     文件        2449  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\busbean\UserFormOBean.class
     文件        1331  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\busbean\UserOBean.class
     目录           0  2020-12-10 12:36  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\dao\
     文件         684  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\dao\AdminDAO.class
     文件         416  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\dao\BankDAO.class
     文件         525  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\dao\MoneyLogDAO.class
     文件         878  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\dao\ProductDAO.class
     文件         557  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\dao\UserAccountDAO.class
     文件        1153  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\dao\UserDAO.class
     文件         682  2008-03-06 19:35  Yutcproject\WebContent\WEB-INF\classes\ata\wx\shopping\dao\UserFormDAO.class
............此处省略363个文件信息

评论

共有 条评论