首页 金刚区 标签 详情 标签VO一堆

This commit is contained in:
2024-04-11 14:26:35 +08:00
parent 1b9d069bc6
commit 9a6f6eb5b6
21 changed files with 592 additions and 633 deletions

View File

@@ -0,0 +1,34 @@
<?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>
</mapper>