資源簡介
完整的項目 詳細 需求設計什么都有 太大上傳不了完整的 分卷上傳 這是第一部分
代碼片段和文件信息
package?org.agent.action;
import?java.text.DateFormat;
import?java.text.ParseException;
import?java.text.SimpleDateFormat;
import?java.util.ArrayList;
import?java.util.Date;
import?java.util.List;
import?net.sf.json.JSONArray;
import?org.agent.common.Constants;
import?org.agent.common.PageSupport;
import?org.agent.common.SQLTools;
import?org.agent.pojo.Account;
import?org.agent.pojo.AccountDetail;
import?org.agent.pojo.Logs;
import?org.agent.pojo.SystemConfig;
import?org.agent.pojo.User;
import?org.agent.service.account.AccountService;
import?org.agent.service.accountdetail.AccountDetailService;
import?org.apache.log4j.Logger;
import?org.springframework.beans.factory.annotation.Autowired;
public?class?AccountAction?extends?baseAction?{
private?static?final?long?serialVersionUID?=?1233435286650997451L;
private?Logger?logger?=?Logger.getLogger(AccountAction.class);
private?List?userList;
private?User?user;
private?Account?account;
private?List?accountConfigList;
private?AccountDetail?accountDetail;
private?List?accountDetailList;
@Autowired
AccountService?accountService;
@Autowired
AccountDetailService?accountDetailService;
private?String?userCode;
private?String?userId;
public?String?getUserCode()?{
return?userCode;
}
public?void?setUserCode(String?userCode)?{
this.userCode?=?userCode;
}
public?String?getUserId()?{
return?userId;
}
public?void?setUserId(String?userId)?{
this.userId?=?userId;
}
public?void?searchUser(){
try?{
//user.userCode=han
user.setUserCode(“%“+SQLTools.transfer(user.getUserCode())+“%“);
user.setIsStart(1);
userList?=?this.searchUser(userList?user);
if(null?==?userList){
userList?=?new?ArrayList();
}
logger.error(“--->“?+?userList.size());
this.getOut().write((JSONArray.fromobject(userList)).toString());
this.closeOut(this.getOut());
}?catch?(Exception?e)?{
//?TODO?Auto-generated?catch?block
e.printStackTrace();
}
}
public?String?caiwu(){
accountConfigList?=?Constants.accountConfigList;
return?SUCCESS;
}
public?void?opeaccount(){
logger.error(“userid?:?“?+?account.getUserId());
logger.error(“money?:“?+?account.getMoney());
try{
Account?dbAccount?=?accountService.getAccount(account);
if(null?!=?dbAccount){
//init?accountDetail
/*
DetailType?//流水類型
DetailTypeName?//流水類型名稱
Money?//l流水金額
accountMoney?//賬戶余額
Memo?//備注
DetailDatetime??//流水產生時間
?*/
Date?date?=?new?Date();
accountDetail.setAccountMoney(dbAccount.getMoney().add(account.getMoney()));
accountDetail.setMoney(account.getMoney());
accountDetail.setUserId(dbAccount.getUserId());
accountDetail.setDetailDateTime(date);
if(accountDetail.getMemo()?==?null)
accountDetail.setMemo(““);
logger.error(“------>“?+?accountDetail.getDetailTypeName());
logger.error(“------>“?+?accountDetail.getMemo());
logger.error(“------>“?+?accountDetail.getDetail
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???36428182??2014-05-16?17:23??項目_AS代理商管理系統\01代碼源文件\war包\AgentSystem.war
?????文件?????151861??2016-11-25?16:08??項目_AS代理商管理系統\01代碼源文件\數據庫腳本\agentsystemdb.sql
?????文件?????151861??2016-11-25?16:08??項目_AS代理商管理系統\01代碼源文件\數據庫腳本\agentsystemdb.~sql
?????文件????????567??2013-10-14?23:23??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.classpath
?????文件????????306??2014-04-28?10:32??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.myme
?????文件???????1754??2013-10-14?23:23??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.project
?????文件????????488??2013-10-14?23:23??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.jsdtscope
?????文件???????1564??2014-05-13?18:26??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\entries
?????文件????????488??2014-05-06?14:57??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\text-ba
?????文件????????191??2014-05-13?18:26??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\text-ba
?????文件????????236??2014-05-13?17:18??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\text-ba
?????文件????????387??2014-05-06?14:57??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\text-ba
?????文件????????626??2014-05-06?14:57??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\text-ba
?????文件????????245??2014-05-06?14:58??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\text-ba
?????文件?????????49??2014-05-06?14:57??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\text-ba
?????文件??????????6??2014-05-06?14:58??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\.svn\text-ba
?????文件????????191??2014-05-13?18:26??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\com.genuitec.eclipse.core.prefs
?????文件????????236??2014-05-13?17:13??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\org.eclipse.core.resources.prefs
?????文件????????387??2013-10-14?23:23??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\org.eclipse.jdt.core.prefs
?????文件????????626??2013-10-14?23:23??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\org.eclipse.wst.common.component
?????文件????????245??2013-10-14?23:23??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2013-10-14?23:23??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2013-10-14?23:23??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件????????733??2014-05-06?14:58??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.svn\entries
?????文件????????567??2014-05-06?14:57??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.svn\text-ba
?????文件????????306??2014-05-06?14:58??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.svn\text-ba
?????文件???????1754??2014-05-06?14:58??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\.svn\text-ba
?????文件????????941??2014-05-15?11:48??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\doc\.svn\entries
?????文件???????5627??2014-05-06?14:57??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\doc\.svn\text-ba
?????文件?????155136??2014-05-15?11:48??項目_AS代理商管理系統\01代碼源文件\源代碼\AgentSystem\doc\.svn\text-ba
............此處省略951個文件信息
評論
共有 條評論