You've already forked FrameTour-BE
添加景区账号的登陆功能
添加“上传人脸、现场支付、事后支付、退款、点击购买”操作的数据记录
This commit is contained in:
@ -32,6 +32,7 @@
|
||||
<result column="videoUrl" property="videoUrl"/>
|
||||
<result column="imgUrl" property="imgUrl"/>
|
||||
<result column="sourceType" property="sourceType"/>
|
||||
<result column="createTime" property="createTime"/>
|
||||
</collection>
|
||||
</resultMap>
|
||||
<resultMap id="AppBaseResultMap" type="com.ycwl.basic.model.pc.order.resp.OrderAppRespVO">
|
||||
@ -66,7 +67,8 @@
|
||||
if(oi.goods_type='1',t.name,(select count(1) from order_item oi2 where oi2.order_id=oi.order_id)) as goodsName,
|
||||
if(oi.goods_type='1',vd.video_url,sr.video_url) videoUrl,
|
||||
if(oi.goods_type='2',sr.url,null) imgUrl,
|
||||
if(oi.goods_type='2',sr.type,null) sourceType
|
||||
if(oi.goods_type='2',sr.type,null) sourceType,
|
||||
if(oi.goods_type='1',vd.create_time,sr.create_time) createTime
|
||||
from order_item oi
|
||||
left join source sr on oi.goods_type='2' and oi.goods_id = sr.id
|
||||
left join video vd on oi.goods_type='1' and oi.goods_id = vd.id
|
||||
|
@ -45,7 +45,7 @@
|
||||
where scenic_id = #{scenicId} and is_super = 1
|
||||
</select>
|
||||
<select id="getByAccount" resultType="com.ycwl.basic.model.pc.scenic.entity.ScenicAccountEntity">
|
||||
select id, scenic_id, is_super, name, account, password, create_time, update_time
|
||||
select id, scenic_id, is_super, name, account, password, status,create_time, update_time
|
||||
from scenic_account
|
||||
where account = #{account}
|
||||
</select>
|
||||
|
@ -1,6 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ycwl.basic.mapper.StatisticsMapper">
|
||||
<insert id="addStatisticsRecord">
|
||||
insert into statistics(id,member_id,type,create_time,morph_id,scenic_id)
|
||||
value (#{id},#{memberId},#{type},#{createTime},#{morphId},#{scenicId})
|
||||
|
||||
</insert>
|
||||
<select id="countOrderAmount" resultType="java.math.BigDecimal">
|
||||
select ifnull(sum(pay_price),0) as payPrice
|
||||
from `order`
|
||||
|
Reference in New Issue
Block a user