Files
wx-cashier-service/src/main/resources/mapper/TbPurchaseNoticeMapper.xml
wangw d391f136bf 验证码
个人中心-菜单页
首页接口
预约到店(店铺列表)
通用商品列表
登录 退出登录
商品详情(缺少评价部分)
订单页 列表 详情
2024-04-29 10:22:32 +08:00

43 lines
1.9 KiB
XML

<?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.chaozhanggui.system.cashierservice.dao.TbPurchaseNoticeMapper">
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbPurchaseNotice" id="TbPurchaseNoticeMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="couponId" column="coupon_id" jdbcType="INTEGER"/>
<result property="dateUsed" column="date_used" jdbcType="VARCHAR"/>
<result property="availableTime" column="available_time" jdbcType="VARCHAR"/>
<result property="bookingType" column="booking_type" jdbcType="VARCHAR"/>
<result property="refundPolicy" column="refund_policy" jdbcType="VARCHAR"/>
<result property="usageRules" column="usage_rules" jdbcType="VARCHAR"/>
<result property="invoiceInfo" column="invoice_info" jdbcType="VARCHAR"/>
<result property="groupPurInfo" column="group_pur_info" jdbcType="VARCHAR"/>
<result property="marketPriceInfo" column="market_price_Info" jdbcType="VARCHAR"/>
<result property="discountInfo" column="discount_Info" jdbcType="VARCHAR"/>
<result property="platformTips" column="platform_tips" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id
, coupon_id, date_used, available_time, booking_type, refund_policy, usage_rules, invoice_info, group_pur_info, market_price_Info, discount_Info, platform_tips </sql>
<select id="queryById" resultMap="TbPurchaseNoticeMap">
select
<include refid="Base_Column_List"/>
from tb_purchase_notice
where id = #{id}
</select>
<!--查询单个-->
<select id="queryByCouponId" resultMap="TbPurchaseNoticeMap">
select
<include refid="Base_Column_List"/>
from tb_purchase_notice
where coupon_id = #{couponId}
</select>
</mapper>