資源簡介
該程序使用SSH框架進行開發,運行程序需要下載微信小程序模擬器,數據庫采用MySQL,編程語言采用Java,用戶可以登錄后,在微信模擬器中進行購物,以及商品瀏覽,自己也可以上架商品,并且模擬了訂單支付。程序中有某些Jar包需要自己手動下載,進行配置,代碼是沒有問題的。
代碼片段和文件信息
package?com.ideabobo.action;
import?java.util.HashMap;
import?java.util.Map;
import?javax.annotation.Resource;
import?org.springframework.stereotype.Controller;
import?com.google.gson.Gson;
import?com.ideabobo.model.Bill;
import?com.ideabobo.service.BillService;
import?com.ideabobo.util.IdeaAction;
import?com.ideabobo.util.Page;
@Controller
public?class?BillAction?extends?IdeaAction?{
@Resource
private?BillService?billService;
private?static?final?long?serialVersionUID?=?-3218238026025256103L;
private?Bill?bill;
public?Bill?getBill()?{
return?bill;
}
public?void?setBill(Bill?bill)?{
this.bill?=?bill;
}
public?String?bill(){
return?SUCCESS;
}
public?void?getList(){
String?billname?=?request.getParameter(“sgname“);
String?sort?=?request.getParameter(“sort“);
String?order?=?request.getParameter(“order“);
Page?page?=?new?Page();
Map?paramsMap?=?new?HashMap();
????????String?roletype?=?(String)?session.get(“roletype“);
????????if(roletype.equals(“3“)){
????????????String?sid?=?(String)?session.get(“sid“);
????????????paramsMap.put(“sid“sid);
????????}
paramsMap.put(“billname“?billname);
paramsMap.put(“sort“?“order?by?“+sort+“?“+order);
String?pageNo?=?(String)?this.request.getParameter(“page“);
String?pageSizes?=?(String)?this.request.getParameter(“rows“);
if?(pageNo?==?null)?{
page.setPageSize(10);
page.setPageNo(1);
}?else?{
page.setPageSize(Integer.parseInt(pageSizes));
page.setPageNo(Integer.parseInt(pageNo));
}
page?=?billService.findByPage(page?paramsMap);
Gson?json?=?new?Gson();
Mapject>?map?=?new?HashMapject>();
map.put(“total“?page.getTotal());
map.put(“rows“?page.getList());
render(json.toJson(map));
}
public?void?add(){
String?action?=?request.getParameter(“action“);
if(bill?!=?null){
if(action.equals(“add“)){
billService.save(bill);
render(“操作成功!“);
}else?{
String?id?=?request.getParameter(“id“);
bill.setId(Integer.parseInt(id));
billService.update(bill);
render(“操作成功!“);
}
}
}
public?void?deleteItem(){
String?id?=?request.getParameter(“id“);
billService.delete(Integer.parseInt(id));
render(“操作成功“);
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1299??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.classpath
?????文件???????1346??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.project
?????文件????????522??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\.jsdtscope
?????文件?????????80??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\com.genuitec.eclipse.core.prefs
?????文件???????1009??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\com.genuitec.eclipse.j2eedt.core.prefs
?????文件?????????57??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\org.eclipse.core.resources.prefs
?????文件????????364??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\org.eclipse.jdt.core.prefs
?????文件????????489??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\org.eclipse.wst.common.component
?????文件????????412??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件?????????49??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件??????????6??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????4161??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\beans.xm
?????文件???????2321??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\BillAction.java
?????文件???????2239??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\DingzuoAction.java
?????文件???????6282??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\GoodAction.java
?????文件???????1411??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\IndexAction.java
?????文件???????4151??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\NoticeAction.java
?????文件???????2187??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\PostsAction.java
?????文件???????2215??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\ReplayAction.java
?????文件???????4719??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\ShopAction.java
?????文件???????3028??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\UserAction.java
?????文件???????2135??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\VipAction.java
?????文件??????23659??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\action\WehallAction.java
?????文件???????3015??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\model\Bill.hbm.xm
?????文件???????3074??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\model\Bill.java
?????文件???????1967??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\model\Dingzuo.hbm.xm
?????文件???????2538??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\model\Dingzuo.java
?????文件???????2797??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\model\Good.hbm.xm
?????文件???????3248??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\model\Good.java
?????文件???????2065??2019-05-03?08:22??二手交易閑魚聊天關注微信小程序代碼\SecondShop3ChatJifen4\src\com\ideabobo\model\Message.hbm.xm
............此處省略1581個文件信息
- 上一篇:Android studio 安卓通訊錄開發
- 下一篇:Mybatis一鍵生成器
評論
共有 條評論