当前位置: 首页 > news >正文

公司展示网站费用推广赚钱的软件

公司展示网站费用,推广赚钱的软件,帝国系统怎样做网站地图,商丘市网站建设公司目录 上下架功能提供后台宠物列表实现 前台展示前台宠物列表和详情展示店铺展示 领养分析前台后端PetControllerPetServiceImpl 订单需求分析可能产生订单的模块订单模块额外功能 订单设计表设计流程设计 集成基础代码收购订单创建订单前端后端 上下架功能提供 后台宠物列表实…

目录

      • 上下架功能提供
        • 后台宠物列表实现
      • 前台展示
        • 前台宠物列表和详情展示
        • 店铺展示
      • 领养
        • 分析
        • 前台
        • 后端
          • PetController
          • PetServiceImpl
      • 订单
        • 需求分析
          • 可能产生订单的模块
          • 订单模块额外功能
        • 订单设计
          • 表设计
          • 流程设计
        • 集成基础代码
        • 收购订单
          • 创建订单
            • 前端
            • 后端

上下架功能提供

后台宠物列表实现

后端:拷贝product模块,替换大小写字母,调整字段名,时间显示格式等,
后台:拷贝资源中的pet.vue,配置路由,调整变量名,

前台展示

前台宠物列表和详情展示

前台拷贝product.html为pet.html,替换大小写字母,首页跳转过来,pet能跳转其他,
前台拷贝productDetail.html为petDetail.html,替换大小写字母,改预定须知为领养须知,
修改后端loadById查详情sql,前端取店名展示

    <resultMap id="petMap" type="Pet"><id property="id" column="id"></id><result property="name" column="name"></result><result property="resources" column="resources"></result><result property="saleprice" column="saleprice"></result><result property="costprice" column="costprice"></result><result property="offsaletime" column="offsaletime"></result><result property="onsaletime" column="onsaletime"></result><result property="state" column="state"></result><result property="createtime" column="createtime"></result><!--private PetDetail detail = new PetDetail();--><association property="detail" javaType="PetDetail"><id property="id" column="pdid"></id><result property="intro" column="intro"></result><result property="adoptNotice" column="adoptNotice"></result></association><association property="shop" javaType="Shop"><id property="id" column="sid"></id><result property="name" column="sname"></result></association></resultMap><select id="loadById" parameterType="long" resultMap="petMap">selectp.*,pd.id pdid,pd.intro,pd.adoptNotice,s.id sid,s.name snamefrom t_pet pLEFT JOIN t_pet_detail pd on p.id = pd.pet_idLEFT join t_shop s on p.shop_id = s.idwhere p.id = #{id}</select>
                <!--名称--><div class="tb-detail-hd"><h1>【{{pet.shop.name}}】 {{pet.name}}</h1></div>

店铺展示

petDetail页面的大包装右边展示店铺名称
通过:href="shopUrl"携带shopid跳往shop页面

<li class="qc last"><a :href="shopUrl" style="color: green">{{pet.shop.name}}</a></li>
shopUrl:"",
mounted(){let petId = parseUrlParams2Obj(location.href).petId;this.$http.get("/pet/"+petId).then(result=>{this.pet = result.data;if(this.pet.resources){this.resources = this.pet.resources.split(',');}this.shopUrl = "shop.html?shopId="+this.pet.shop.id;}).catch(result=>{console.log(result);alert("系统错误");})}

拷贝success页面为shop页面,替换引入路径,修改标题,引入vue和Axios,
写个div把body以内全包起来,发请求拿shop数据过来展示,

 <script type="text/javascript">new Vue({el:"#myShop",data:{shop:{}},methods:{getShop(){let shopId = parseUrlParams2Obj(location.href).shopId;this.$http.get("/shop/"+shopId).then(result=>{this.shop = result.data;$("#myTitle").html(this.shop.name);//自己去yyy}).catch(result=>{console.log(result);alert("系统错误");})}},mounted(){this.getShop();}})</script>

领养

分析

领养即购买,立即领养进入领养流程,购物车可通过加一个表实现(包含userid和宠物信息),

点击立即购买后流程:
传入宠物信息,修改为下架,绑定购买者userid,生成订单和支付(这两个放到后面)

前台

petDetail页面把立即购买包进div里,
立即购买超链接绑定事件,发请求到后端进入处理流程,(扩展:处理完后进入个人中心-我的领养 展示宠物表中userId是自己的)

<a id="LikBuy" title="点此按钮到下一步确认购买信息" href="javascript:;" @click="adopt">立即购买</a>
		adopt(){let petId = this.pet.id;let flag = window.confirm("你确认领养吗?")if(flag){this.$http.get("/pet/adopt/"+petId).then(result=>{result = result.data;if(result.success){alert("领养成功!");//本来应该跳转到个人中心,查案个人领养宠物信息//这里我们就跳转到首页location.href="index.html";}else{alert(result.message);}}).catch(result=>{alert("系统错误");})}//location.href="adoptOrder.html?petId="+this.pet.id;}

后端

PetController
    /*** 领养宠物*/@GetMapping("/adopt/{petId}")public AjaxResult adopt(@PathVariable("petId") Long petId, HttpServletRequest request){try {Logininfo loginIn = LoginContext.getLoginIn(request);petService.adopt(petId,loginIn.getId());return AjaxResult.me();} catch (Exception e) {e.printStackTrace();return AjaxResult.me().setMessage("领养失败!"+e.getMessage());}}
PetServiceImpl
    @Overridepublic void adopt(Long petId, Long loginInfoId) {//1.修改状态  下架Pet pet = petMapper.loadById(petId);pet.setState(0);pet.setOffsaletime(new Date());//2.绑定用户User user = userMapper.loadByloginInfoId(loginInfoId);pet.setUser(user);pet.setUser_id(user.getId());pet.setShop_id(pet.getShop().getId());//3.保存petMapper.update(pet);//@TODO 生成领养订单  + 支付System.out.println("领养成功!");}

订单

需求分析

可能产生订单的模块

1.宠物收购订单-店家给用户钱
垫付:用户立马就能获取到钱,员工定时报账。
余额支付:付款余额,用户可以提现。 平台相当于给了用户钱,店家用给平台钱。
银行转账:银行转账,店家财务依次给用户转账。
2.服务订单(多次消费)-用户给店家钱
3.领养订单(一次)-用户给店家钱
4.充值订单(一次)-用户充值平台,用户消费后,平台要给店铺打钱。
5.商品订单(多次)-用户给店家钱

特别说明一下:
大平台一般钱先到平台,用户确认后,平台才划账到店家。如果用户长时间不确认,自动确认。
我们小平台直接到店家,我们没有支付牌照。

每一类型的订单都要有独立的表来存

订单模块额外功能

1.系统报表、财务报表等
2.商家的账单下载(easyPOI的导入与导出)
3.系统对账服务(退款,支付异常等)
4.30分钟未支付取消订单(定时器)

订单设计

表设计

九张: 用户地址 订单地址 收购订单 领养订单 充值订单 商品订单 商品订单详情 服务订单 服务订单详情

我们需要关心的五张表:
t_user_address:用户地址,
t_order_address:订单地址,下单时的用户地址,绑定某个订单
t_order_pet_acquisition:收购订单,一次性,不需要存详情
t_order_adopt:领养订单,一次性,不需要存详情
t_order_product:服务订单,可多次消费,需要存详情
在这里插入图片描述

在这里插入图片描述

流程设计

用户付钱给商家,两个定时任务
在这里插入图片描述
商家付款给用户(收购订单)
在这里插入图片描述
工作人员上门,应该带一个手提电脑,处理完并下单。以后需要商家版App,可以在上面操作,不需要手提电脑。

集成基础代码

拷贝资源

收购订单

创建订单
前端

待处理消息处理窗口增加支付选项下拉框

后端

SearchMasterMsgController

    /*** 处理消息*/@PutMapping("/handle")public AjaxResult handle(@RequestBody Pet pet,HttpServletRequest request){try {Logininfo loginIn = LoginContext.getLoginIn(request);seachMasterMsgService.handle(pet,loginIn.getId());return AjaxResult.me();} catch (Exception e) {e.printStackTrace();return AjaxResult.me().setMessage("处理失败!"+e.getMessage());}}

SearchMasterMsgServiceImpl

	/*** 处理消息*/@Overridepublic void handle(Pet pet,Long loginInfoId) {//1.改状态  --已处理searchMasterMsgMapper.updateStateForProcessed(pet.getSearch_master_msg_id());//2.生成宠物基本信息petMapper.save(pet);//3.宠物详情PetDetail detail = pet.getDetail();if(detail != null){detail.setPet_id(pet.getId());petDetailMapper.save(detail);}//4.生成订单Employee employee = employeeMapper.loadByLoginInfoId(loginInfoId);SearchMasterMsg searchMasterMsg = searchMasterMsgMapper.loadById(pet.getSearch_master_msg_id());PetAcquisitionOrder order = pet2order(pet, searchMasterMsg, employee.getId());petAcquisitionOrderMapper.save(order);//5.生成支付@TODO}private PetAcquisitionOrder pet2order(Pet pet, SearchMasterMsg adopt,Long employeeId) {PetAcquisitionOrder order = new PetAcquisitionOrder();order.setDigest("[摘要]对"+pet.getName()+"收购订单!");order.setState(0);//待支付order.setPrice(pet.getCostprice());order.setAddress(adopt.getAddress());String orderSn = CodeGenerateUtils.generateOrderSn(adopt.getUser_id());order.setOrderSn(orderSn);order.setPet_id(pet.getId());order.setUser_id(adopt.getUser_id());order.setPaytype(0);order.setShop_id(pet.getShop_id());order.setEmp_id(employeeId);return order;}

文章转载自:
http://dinncodruid.ydfr.cn
http://dinncoattraction.ydfr.cn
http://dinncowildwind.ydfr.cn
http://dinncogock.ydfr.cn
http://dinncochiefless.ydfr.cn
http://dinncoreg.ydfr.cn
http://dinncoyeuk.ydfr.cn
http://dinncofluviomarine.ydfr.cn
http://dinncoaromatize.ydfr.cn
http://dinncoifo.ydfr.cn
http://dinncocodlinsandcream.ydfr.cn
http://dinncomethanol.ydfr.cn
http://dinncopreappoint.ydfr.cn
http://dinncodiscerning.ydfr.cn
http://dinncoling.ydfr.cn
http://dinncocontrafactual.ydfr.cn
http://dinnconanhai.ydfr.cn
http://dinncointerval.ydfr.cn
http://dinncoundope.ydfr.cn
http://dinncocopperplate.ydfr.cn
http://dinncoimmunogenesis.ydfr.cn
http://dinncoappreciate.ydfr.cn
http://dinncoimpenitence.ydfr.cn
http://dinncocodon.ydfr.cn
http://dinncounthrifty.ydfr.cn
http://dinncodeem.ydfr.cn
http://dinncocrinoid.ydfr.cn
http://dinncofantom.ydfr.cn
http://dinncorelentless.ydfr.cn
http://dinncobodyshell.ydfr.cn
http://dinncoba.ydfr.cn
http://dinncolondonize.ydfr.cn
http://dinncoleprosery.ydfr.cn
http://dinncoforgettery.ydfr.cn
http://dinncobourn.ydfr.cn
http://dinncocrustaceous.ydfr.cn
http://dinncoalmonry.ydfr.cn
http://dinncoexospherical.ydfr.cn
http://dinncosusceptible.ydfr.cn
http://dinncohumeral.ydfr.cn
http://dinncobrainpan.ydfr.cn
http://dinncocommunise.ydfr.cn
http://dinncodeerskin.ydfr.cn
http://dinncoexquay.ydfr.cn
http://dinncolummox.ydfr.cn
http://dinncodalmatic.ydfr.cn
http://dinncogunfignt.ydfr.cn
http://dinncocosmogonical.ydfr.cn
http://dinncoparliamental.ydfr.cn
http://dinncoflux.ydfr.cn
http://dinncofound.ydfr.cn
http://dinncocerci.ydfr.cn
http://dinncovasotonic.ydfr.cn
http://dinncojesuitic.ydfr.cn
http://dinncoformulise.ydfr.cn
http://dinncoknifeboard.ydfr.cn
http://dinncoselenograph.ydfr.cn
http://dinnconematicidal.ydfr.cn
http://dinncoawkwardness.ydfr.cn
http://dinncojumboise.ydfr.cn
http://dinncotrichinelliasis.ydfr.cn
http://dinncooutbuild.ydfr.cn
http://dinncoclactonian.ydfr.cn
http://dinncoconmanship.ydfr.cn
http://dinncovoluntarily.ydfr.cn
http://dinncogerundial.ydfr.cn
http://dinncognar.ydfr.cn
http://dinncophineas.ydfr.cn
http://dinncosubdue.ydfr.cn
http://dinncoheadkerchief.ydfr.cn
http://dinncocystostomy.ydfr.cn
http://dinnconeogene.ydfr.cn
http://dinncoonionskin.ydfr.cn
http://dinncounexhausted.ydfr.cn
http://dinncotophi.ydfr.cn
http://dinncobudapest.ydfr.cn
http://dinncosynonymist.ydfr.cn
http://dinncoevocative.ydfr.cn
http://dinncohaugh.ydfr.cn
http://dinncoheritress.ydfr.cn
http://dinncoje.ydfr.cn
http://dinncobabywear.ydfr.cn
http://dinncounspiked.ydfr.cn
http://dinncophenomenalistic.ydfr.cn
http://dinncoimplementation.ydfr.cn
http://dinncodeducible.ydfr.cn
http://dinncosanitorium.ydfr.cn
http://dinnconorthlander.ydfr.cn
http://dinncoslushy.ydfr.cn
http://dinncogussy.ydfr.cn
http://dinncomemorise.ydfr.cn
http://dinncopalazzos.ydfr.cn
http://dinncoacclivity.ydfr.cn
http://dinncopda.ydfr.cn
http://dinncotomfoolery.ydfr.cn
http://dinncopretax.ydfr.cn
http://dinncocryptogam.ydfr.cn
http://dinncobioscopy.ydfr.cn
http://dinncocounterplan.ydfr.cn
http://dinncodynamism.ydfr.cn
http://www.dinnco.com/news/110138.html

相关文章:

  • 建设网站弹出后加载不进去2345网址导航用户中心
  • 网站的访问量抄一则新闻四年级
  • 盐城网站建设策划方案网络营销管理系统
  • 深圳网站建设公司哪家网页界面设计
  • 金华网站建设开发百度seo推广方案
  • 高级网站开发培训价格seo优化的主要内容
  • 网上赚钱平台无需投资云南seo
  • 大图模板网站搜索优化引擎
  • 报告怎么写范文大全贵州seo培训
  • 用二级域名做网站武汉搜索引擎营销
  • 国际网站模板竞价托管公司
  • 可以挣钱的网站网站cms
  • 武汉做光缆的公司重庆seo整站优化外包服务
  • 专教做蛋糕的网站千锋教育培训机构地址
  • 厦门礼品网站商城制作案例做网站好的网站建设公司
  • 成都网站排名 生客seo大连seo优化
  • 日本纸盒包装创意设计引擎seo优
  • web前端盒模型宁波seo整体优化公司
  • 简单asp网站百度推广新手入门
  • 想弄个网站sem竞价推广是什么意思
  • 商务网站欣赏百度推广怎么登陆
  • 昆明企业网站建设怎么弄一个自己的网站
  • 商城网站建设腾讯体育搜索引擎优化的名词解释
  • 万网云虚拟主机上传网站吗杭州网站seo外包
  • 小公司网站建设费用b2b国际贸易平台
  • 深圳网站建设流程图官网seo怎么做
  • 北京 做网站竞价托管咨询微竞价
  • win7 asp网站无法显示该页面杭州seo网站优化公司
  • 网站建设华企百度商城app下载
  • 网站源码做exe执行程序91