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

55 lines
3.5 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.TbMerchantCouponMapper">
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbMerchantCoupon" id="TbMerchantCouponMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="status" column="status" jdbcType="INTEGER"/>
<result property="title" column="title" jdbcType="VARCHAR"/>
<result property="templateId" column="template_id" jdbcType="VARCHAR"/>
<result property="shopId" column="shop_id" jdbcType="VARCHAR"/>
<result property="shopSnap" column="shop_snap" jdbcType="VARCHAR"/>
<result property="fromTime" column="from_time" jdbcType="TIMESTAMP"/>
<result property="toTime" column="to_time" jdbcType="TIMESTAMP"/>
<result property="limitNumber" column="limit_number" jdbcType="VARCHAR"/>
<result property="useNumber" column="use_number" jdbcType="VARCHAR"/>
<result property="number" column="number" jdbcType="INTEGER"/>
<result property="leftNumber" column="left_number" jdbcType="VARCHAR"/>
<result property="amount" column="amount" jdbcType="NUMERIC"/>
<result property="limitAmount" column="limit_amount" jdbcType="NUMERIC"/>
<result property="isShow" column="is_show" jdbcType="INTEGER"/>
<result property="pic" column="pic" jdbcType="VARCHAR"/>
<result property="type" column="type" jdbcType="INTEGER"/>
<result property="ratio" column="ratio" jdbcType="NUMERIC"/>
<result property="maxRatioAmount" column="max_ratio_amount" jdbcType="NUMERIC"/>
<result property="track" column="track" jdbcType="VARCHAR"/>
<result property="classType" column="class_type" jdbcType="VARCHAR"/>
<result property="effectType" column="effect_type" jdbcType="INTEGER"/>
<result property="effectDays" column="effect_days" jdbcType="INTEGER"/>
<result property="relationIds" column="relation_ids" jdbcType="VARCHAR"/>
<result property="relationList" column="relation_list" jdbcType="VARCHAR"/>
<result property="editor" column="editor" jdbcType="VARCHAR"/>
<result property="note" column="note" jdbcType="VARCHAR"/>
<result property="createdAt" column="created_at" jdbcType="INTEGER"/>
<result property="updatedAt" column="updated_at" jdbcType="INTEGER"/>
<result property="furnishMeal" column="furnish_meal" jdbcType="INTEGER"/>
<result property="furnishExpress" column="furnish_express" jdbcType="INTEGER"/>
<result property="furnishDraw" column="furnish_draw" jdbcType="INTEGER"/>
<result property="furnishVir" column="furnish_vir" jdbcType="INTEGER"/>
<result property="disableDistribute" column="disable_distribute" jdbcType="INTEGER"/>
<result property="merchantId" column="merchant_id" jdbcType="VARCHAR"/>
</resultMap>
<!--查询单个-->
<select id="queryById" resultMap="TbMerchantCouponMap">
select
id, status, title, template_id, shop_id, shop_snap, from_time, to_time, limit_number,use_number, number, left_number, amount, limit_amount, is_show, pic, type, ratio, max_ratio_amount, track, class_type, effect_type, effect_days, relation_ids, relation_list, editor, note, created_at, updated_at, furnish_meal, furnish_express, furnish_draw, furnish_vir, disable_distribute, merchant_id
from tb_merchant_coupon
where id = #{id}
</select>
</mapper>