收藏 分销(赏)

一元购项目框架.docx

上传人:人****来 文档编号:3371357 上传时间:2024-07-03 格式:DOCX 页数:126 大小:40.71KB
下载 相关 举报
一元购项目框架.docx_第1页
第1页 / 共126页
一元购项目框架.docx_第2页
第2页 / 共126页
一元购项目框架.docx_第3页
第3页 / 共126页
一元购项目框架.docx_第4页
第4页 / 共126页
一元购项目框架.docx_第5页
第5页 / 共126页
点击查看更多>>
资源描述

1、 = !- - !- - = = !- - =ControllerRequestMapping(/view)public class ViewController Resourceprivate ShowService showService;Resourceprivate TRoottypeService tRoottypeService;/类型业务类Resourceprivate TPeriodsService tPeriodsService;/期数业务类public void Type(Model model)/获得重要类型集合List btRoottypeList=tRoottypeS

2、ervice.getbTRoottype();/获得子类型集合List stRoottypesList=tRoottypeService.getsTRoottype();model.addAttribute(btRoottypeList,btRoottypeList);model.addAttribute(stRoottypeList,stRoottypesList);/晒单分享RequestMapping(currentPageNo/shareShow)public String shareShow(PathVariable Integer currentPageNo,Model model

3、)int pageSize = 20;PageSupport page = showService.getShowluckPage(currentPageNo, pageSize);page.setCurrentPageNo(currentPageNo);page.setPageSize(pageSize);List list = page.getList();for (Object object : list) TShowluck ts = (TShowluck)object;String uimg = ts.gettUser().getUimg();System.out.println(b

4、efore+uimg);if(null=uimg|=uimg)ts.gettUser().setUimg(defaultUserFace.png);page.setList(list);ts.gettPeriod().getGid();this.Type(model);model.addAttribute(page, page);return view/new20;/晒单分享详细页面RequestMapping(/showid/shareDetail)public String shareDetail(PathVariable Integer showid,Model model)TShowl

5、uck showluck = showService.findShowluckBy(showid);List showlucks = showService.getShowluckList();if(null=showluck.gettUser().getUimg()|=showluck.gettUser().getUimg()showluck.gettUser().setUimg(defaultUserFace.png);TPeriods nowTperiods=tPeriodsService.findNowPeriods(showluck.gettPeriod().getGid();mod

6、el.addAttribute(nowTperiods, nowTperiods);model.addAttribute(showlucks, showlucks);model.addAttribute(showluck, showluck);this.Type(model);model.addAttribute(url, Url.url);return view/shareShow;/顾客个人主页面RequestMapping(/sphone/userInfo)public String userInfo(PathVariable String sphone,Model model,Http

7、ServletRequest request)List ods = showService.getOrderdetailListBy(sphone);String message = TA还没有购置任何商品;TUser user = showService.getUserBy(sphone);if(null=user.getUimg()|=user.getUimg()user.setUimg(defaultUserFace.png);String userPhone = user.getSphone();String trueName = user.getTrueName();String u

8、img = user.getUimg();model.addAttribute(userPhone, userPhone);model.addAttribute(trueName, trueName);model.addAttribute(uimg, uimg);if(ods.size()0)model.addAttribute(ods, ods);elsemodel.addAttribute(message, message);this.Type(model);model.addAttribute(url, Url.url);return user/user;/顾客购置记录页面Request

9、Mapping(/sphone/userBuy)public String userBuy(PathVariable String sphone,Model model,HttpServletRequest request)List ods = showService.getOrderdetailListBy(sphone);for (TOrderdetails tOrder : ods) System.out.println(tOrder.gettPeriods().getUid();TUser winner = showService.findUserBy(tOrder.gettPerio

10、ds().getUid();tOrder.gettPeriods().settUser(winner);String message = TA还没有购置任何商品;TUser user = showService.getUserBy(sphone);if(null=user.getUimg()|=user.getUimg()user.setUimg(defaultUserFace.png);String userPhone = user.getSphone();String trueName = user.getTrueName();String uimg = user.getUimg();mo

11、del.addAttribute(userPhone, userPhone);model.addAttribute(trueName, trueName);model.addAttribute(uimg, uimg);if(ods.size()0)model.addAttribute(ods, ods);elsemodel.addAttribute(message, message);this.Type(model);model.addAttribute(url, Url.url);return user/userBuy;/顾客获奖记录userRaffle页面RequestMapping(/s

12、phone/userRaffle)public String userRaffle(PathVariable String sphone,Model model,HttpServletRequest request)TUser winner = showService.getUserBy(sphone);System.out.println(+winner.getTrueName()+ +winner.getUid();List periods = showService.getUserPrizeBy(winner.getUid();for (TPeriods tp : periods) Sy

13、stem.out.println(+tp.gettGood().getPics().get(0).getPicUrl()+ +tp.getPic()+ +tp.getPeriods();String message = TA还没有获得任何商品;TUser user = showService.getUserBy(sphone);if(null=user.getUimg()|=user.getUimg()user.setUimg(defaultUserFace.png);String userPhone = user.getSphone();String trueName = user.getT

14、rueName();String uimg = user.getUimg();model.addAttribute(userPhone, userPhone);model.addAttribute(trueName, trueName);model.addAttribute(uimg, uimg);if(periods.size()0)model.addAttribute(periods, periods);elsemodel.addAttribute(message, message);this.Type(model);model.addAttribute(url, Url.url);return user/userRaffle;/顾客晒单页面RequestMapping(/sphone/userPost)public String userPost(PathVariable String sphone,Model model,HttpServletRequest request)List tShows

展开阅读全文
部分上传会员的收益排行 01、路***(¥15400+),02、曲****(¥15300+),
03、wei****016(¥13200+),04、大***流(¥12600+),
05、Fis****915(¥4200+),06、h****i(¥4100+),
07、Q**(¥3400+),08、自******点(¥2400+),
09、h*****x(¥1400+),10、c****e(¥1100+),
11、be*****ha(¥800+),12、13********8(¥800+)。
相似文档                                   自信AI助手自信AI助手
百度文库年卡

猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 包罗万象 > 大杂烩

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服