团购卷卷码表
原订单列表逻辑 店铺营业时间 团购卷订单 团购卷卷码表 资源管理 字典管理 通用门店 个人中心 支付
This commit is contained in:
@@ -5,18 +5,20 @@
|
||||
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbGroupOrderInfo" id="TbGroupOrderInfoMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="orderNo" column="order_no" jdbcType="VARCHAR"/>
|
||||
<result property="merchantId" column="merchant_id" jdbcType="INTEGER"/>
|
||||
<result property="shopId" column="shop_id" jdbcType="INTEGER"/>
|
||||
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
||||
<result property="proId" column="pro_id" jdbcType="INTEGER"/>
|
||||
<result property="proName" column="pro_name" jdbcType="VARCHAR"/>
|
||||
<result property="proImg" column="pro_img" jdbcType="VARCHAR"/>
|
||||
<result property="couponNo" column="coupon_no" jdbcType="VARCHAR"/>
|
||||
<result property="couponUrl" column="coupon_url" jdbcType="VARCHAR"/>
|
||||
<result property="proName" column="pro_name" jdbcType="VARCHAR"/>
|
||||
<result property="expDate" column="exp_date" jdbcType="TIMESTAMP"/>
|
||||
<result property="orderType" column="order_type" jdbcType="VARCHAR"/>
|
||||
<result property="payType" column="pay_type" jdbcType="VARCHAR"/>
|
||||
<result property="orderAmount" column="order_amount" jdbcType="NUMERIC"/>
|
||||
<result property="saveAmount" column="save_amount" jdbcType="NUMERIC"/>
|
||||
<result property="payAmount" column="pay_amount" jdbcType="NUMERIC"/>
|
||||
<result property="refundAmount" column="refund_amount" jdbcType="NUMERIC"/>
|
||||
<result property="refundNumber" column="refund_number" jdbcType="INTEGER"/>
|
||||
<result property="number" column="number" jdbcType="INTEGER"/>
|
||||
<result property="status" column="status" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
@@ -24,18 +26,20 @@
|
||||
<result property="payTime" column="pay_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="refundAble" column="refund_able" jdbcType="INTEGER"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="verifier" column="verifier" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="payOrderNo" column="pay_order_no" jdbcType="VARCHAR"/>
|
||||
<result property="tradeDay" column="trade_day" jdbcType="TIMESTAMP"/>
|
||||
<result property="source" column="source" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id
|
||||
, order_no, shop_id, user_id, pro_id, pro_name,pro_img, coupon_no, coupon_url, exp_date, order_type, order_amount, save_amount, pay_amount, number, status, remark, phone, pay_time, refund_able, create_time, update_time, pay_order_no, trade_day, source </sql>
|
||||
, order_no, merchant_id, shop_id, user_id, pro_id, pro_img, pro_name, exp_date, order_type, pay_type, order_amount, save_amount, pay_amount, refund_amount, refund_number, number, status, remark, phone, pay_time, refund_able, create_time, verifier, update_time, pay_order_no, trade_day, source </sql>
|
||||
<sql id="List_Column">
|
||||
id
|
||||
, order_no, pro_name,pro_img,coupon_url,order_amount, pay_amount, number, status </sql>
|
||||
, order_no, pro_name,pro_img,order_amount, pay_amount, number, status </sql>
|
||||
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="TbGroupOrderInfoMap">
|
||||
@@ -46,6 +50,14 @@
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectByPayOrderNo" resultMap="TbGroupOrderInfoMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
|
||||
from tb_group_order_info
|
||||
where pay_order_no = #{payOrderNO}
|
||||
</select>
|
||||
|
||||
<!--查询指定行数据-->
|
||||
<select id="queryAll" resultType="com.chaozhanggui.system.cashierservice.entity.vo.GroupOrderListVo">
|
||||
select
|
||||
@@ -66,28 +78,31 @@
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into tb_group_order_info(order_no, shop_id, user_id, pro_id, pro_name, pro_img, coupon_no, coupon_url,
|
||||
exp_date, order_type, order_amount, save_amount, pay_amount, number, status,
|
||||
insert into tb_group_order_info(order_no, merchant_id, shop_id, user_id, pro_id, pro_name, pro_img,
|
||||
exp_date, order_type, pay_type, order_amount, save_amount, pay_amount, number,
|
||||
refund_number, status,
|
||||
remark, phone, pay_time, refund_able, create_time, update_time, pay_order_no,
|
||||
trade_day, source)
|
||||
values (#{orderNo}, #{shopId}, #{userId}, #{proId}, #{proName}, #{proImg}, #{couponNo}, #{couponUrl},
|
||||
#{expDate}, #{orderType}, #{orderAmount}, #{saveAmount}, #{payAmount}, #{number}, #{status}, #{remark},
|
||||
values (#{orderNo}, #{merchantId}, #{shopId}, #{userId}, #{proId}, #{proName}, #{proImg},
|
||||
#{expDate}, #{orderType}, #{payType}, #{orderAmount}, #{saveAmount}, #{payAmount}, #{number},
|
||||
#{refundNumber}, #{status}, #{remark},
|
||||
#{phone}, #{payTime}, #{refundAble}, #{createTime}, #{updateTime}, #{payOrderNo}, #{tradeDay},
|
||||
#{source})
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into tb_group_order_info(order_no, shop_id, user_id, pro_id, pro_name, pro_img, coupon_no, coupon_url,
|
||||
exp_date, order_type, order_amount, save_amount, pay_amount, number, status, remark, phone, pay_time,
|
||||
insert into tb_group_order_info(order_no,merchant_id, shop_id, user_id, pro_id, pro_name, pro_img,
|
||||
exp_date, order_type, pay_type, order_amount, save_amount, pay_amount, number, status, remark, phone, pay_time,
|
||||
refund_able, create_time, update_time, pay_order_no, trade_day, source)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.orderNo}, #{entity.shopId}, #{entity.userId}, #{entity.proId}, #{entity.proName},#{entity.proImg}
|
||||
#{entity.couponNo}, #{entity.couponUrl}, #{entity.expDate}, #{entity.orderType},
|
||||
#{entity.orderAmount}, #{entity.saveAmount}, #{entity.payAmount}, #{entity.number}, #{entity.status},
|
||||
(#{entity.orderNo},#{entity.merchantId} #{entity.shopId}, #{entity.userId}, #{entity.proId},
|
||||
#{entity.proName},#{entity.proImg},
|
||||
#{entity.expDate}, #{entity.orderType},
|
||||
#{entity.payType}, #{entity.orderAmount}, #{entity.saveAmount}, #{entity.payAmount}, #{entity.number},
|
||||
#{entity.status},
|
||||
#{entity.remark}, #{entity.phone}, #{entity.payTime}, #{entity.refundAble}, #{entity.createTime},
|
||||
#{entity.updateTime}, #{entity.payOrderNo}, #{entity.tradeDay}, #{entity.source})
|
||||
</foreach>
|
||||
@@ -100,6 +115,9 @@
|
||||
<if test="orderNo != null and orderNo != ''">
|
||||
order_no = #{orderNo},
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
merchant_id = #{merchantId},
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
shop_id = #{shopId},
|
||||
</if>
|
||||
@@ -115,18 +133,15 @@
|
||||
<if test="proImg != null and proImg != ''">
|
||||
pro_img = #{proImg},
|
||||
</if>
|
||||
<if test="couponNo != null and couponNo != ''">
|
||||
coupon_no = #{couponNo},
|
||||
</if>
|
||||
<if test="couponUrl != null and couponUrl != ''">
|
||||
coupon_url = #{couponUrl},
|
||||
</if>
|
||||
<if test="expDate != null">
|
||||
exp_date = #{expDate},
|
||||
</if>
|
||||
<if test="orderType != null and orderType != ''">
|
||||
order_type = #{orderType},
|
||||
</if>
|
||||
<if test="payType != null and payType != ''">
|
||||
pay_type = #{payType},
|
||||
</if>
|
||||
<if test="orderAmount != null">
|
||||
order_amount = #{orderAmount},
|
||||
</if>
|
||||
@@ -172,13 +187,5 @@
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="deleteById">
|
||||
delete
|
||||
from tb_group_order_info
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user