验证码
个人中心-菜单页 首页接口 预约到店(店铺列表) 通用商品列表 登录 退出登录 商品详情(缺少评价部分)
This commit is contained in:
@@ -2,8 +2,19 @@
|
||||
<!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.SysDictDetailMapper">
|
||||
|
||||
<select id="selectByAll" resultType="com.chaozhanggui.system.cashierservice.entity.SysDict">
|
||||
select * from sys_dict
|
||||
<select id="selectHot" resultType="com.chaozhanggui.system.cashierservice.entity.SysDict">
|
||||
select *
|
||||
from sys_dict
|
||||
where type = 'hot'
|
||||
</select>
|
||||
|
||||
<select id="selectByType" resultType="com.chaozhanggui.system.cashierservice.entity.SysDict">
|
||||
select *
|
||||
from sys_dict
|
||||
where type = 'common'
|
||||
<if test="type != null and type !=''">
|
||||
or type = #{type}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectByDictId" resultType="com.chaozhanggui.system.cashierservice.entity.SysDictDetail">
|
||||
|
||||
26
src/main/resources/mapper/TbCouponCategoryMapper.xml
Normal file
26
src/main/resources/mapper/TbCouponCategoryMapper.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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.TbCouponCategoryMapper">
|
||||
|
||||
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbCouponCategory" id="TbCouponCategoryMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id
|
||||
, name, create_time, update_time, status </sql>
|
||||
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="TbCouponCategoryMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
|
||||
from tb_coupon_category
|
||||
where id = #{id}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<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"/>
|
||||
@@ -42,232 +43,11 @@
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="TbMerchantCouponMap">
|
||||
select
|
||||
id, status, title, template_id, shop_id, shop_snap, from_time, to_time, limit_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
|
||||
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>
|
||||
|
||||
<!--查询指定行数据-->
|
||||
<select id="queryAllByLimit" resultMap="TbMerchantCouponMap">
|
||||
select
|
||||
id, status, title, template_id, shop_id, shop_snap, from_time, to_time, limit_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>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
and status = #{status}
|
||||
</if>
|
||||
<if test="title != null and title != ''">
|
||||
and title = #{title}
|
||||
</if>
|
||||
<if test="templateId != null and templateId != ''">
|
||||
and template_id = #{templateId}
|
||||
</if>
|
||||
<if test="shopId != null and shopId != ''">
|
||||
and shop_id = #{shopId}
|
||||
</if>
|
||||
<if test="shopSnap != null and shopSnap != ''">
|
||||
and shop_snap = #{shopSnap}
|
||||
</if>
|
||||
<if test="fromTime != null">
|
||||
and from_time = #{fromTime}
|
||||
</if>
|
||||
<if test="toTime != null">
|
||||
and to_time = #{toTime}
|
||||
</if>
|
||||
<if test="limitNumber != null and limitNumber != ''">
|
||||
and limit_number = #{limitNumber}
|
||||
</if>
|
||||
<if test="number != null">
|
||||
and number = #{number}
|
||||
</if>
|
||||
<if test="leftNumber != null and leftNumber != ''">
|
||||
and left_number = #{leftNumber}
|
||||
</if>
|
||||
<if test="amount != null">
|
||||
and amount = #{amount}
|
||||
</if>
|
||||
<if test="limitAmount != null">
|
||||
and limit_amount = #{limitAmount}
|
||||
</if>
|
||||
<if test="isShow != null">
|
||||
and is_show = #{isShow}
|
||||
</if>
|
||||
<if test="pic != null and pic != ''">
|
||||
and pic = #{pic}
|
||||
</if>
|
||||
<if test="type != null">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="ratio != null">
|
||||
and ratio = #{ratio}
|
||||
</if>
|
||||
<if test="maxRatioAmount != null">
|
||||
and max_ratio_amount = #{maxRatioAmount}
|
||||
</if>
|
||||
<if test="track != null and track != ''">
|
||||
and track = #{track}
|
||||
</if>
|
||||
<if test="classType != null and classType != ''">
|
||||
and class_type = #{classType}
|
||||
</if>
|
||||
<if test="effectType != null">
|
||||
and effect_type = #{effectType}
|
||||
</if>
|
||||
<if test="effectDays != null">
|
||||
and effect_days = #{effectDays}
|
||||
</if>
|
||||
<if test="relationIds != null and relationIds != ''">
|
||||
and relation_ids = #{relationIds}
|
||||
</if>
|
||||
<if test="relationList != null and relationList != ''">
|
||||
and relation_list = #{relationList}
|
||||
</if>
|
||||
<if test="editor != null and editor != ''">
|
||||
and editor = #{editor}
|
||||
</if>
|
||||
<if test="note != null and note != ''">
|
||||
and note = #{note}
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
and created_at = #{createdAt}
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
and updated_at = #{updatedAt}
|
||||
</if>
|
||||
<if test="furnishMeal != null">
|
||||
and furnish_meal = #{furnishMeal}
|
||||
</if>
|
||||
<if test="furnishExpress != null">
|
||||
and furnish_express = #{furnishExpress}
|
||||
</if>
|
||||
<if test="furnishDraw != null">
|
||||
and furnish_draw = #{furnishDraw}
|
||||
</if>
|
||||
<if test="furnishVir != null">
|
||||
and furnish_vir = #{furnishVir}
|
||||
</if>
|
||||
<if test="disableDistribute != null">
|
||||
and disable_distribute = #{disableDistribute}
|
||||
</if>
|
||||
<if test="merchantId != null and merchantId != ''">
|
||||
and merchant_id = #{merchantId}
|
||||
</if>
|
||||
</where>
|
||||
limit #{pageable.offset}, #{pageable.pageSize}
|
||||
</select>
|
||||
|
||||
<!--统计总行数-->
|
||||
<select id="count" resultType="java.lang.Long">
|
||||
select count(1)
|
||||
from tb_merchant_coupon
|
||||
<where>
|
||||
<if test="id != null">
|
||||
and id = #{id}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
and status = #{status}
|
||||
</if>
|
||||
<if test="title != null and title != ''">
|
||||
and title = #{title}
|
||||
</if>
|
||||
<if test="templateId != null and templateId != ''">
|
||||
and template_id = #{templateId}
|
||||
</if>
|
||||
<if test="shopId != null and shopId != ''">
|
||||
and shop_id = #{shopId}
|
||||
</if>
|
||||
<if test="shopSnap != null and shopSnap != ''">
|
||||
and shop_snap = #{shopSnap}
|
||||
</if>
|
||||
<if test="fromTime != null">
|
||||
and from_time = #{fromTime}
|
||||
</if>
|
||||
<if test="toTime != null">
|
||||
and to_time = #{toTime}
|
||||
</if>
|
||||
<if test="limitNumber != null and limitNumber != ''">
|
||||
and limit_number = #{limitNumber}
|
||||
</if>
|
||||
<if test="number != null">
|
||||
and number = #{number}
|
||||
</if>
|
||||
<if test="leftNumber != null and leftNumber != ''">
|
||||
and left_number = #{leftNumber}
|
||||
</if>
|
||||
<if test="amount != null">
|
||||
and amount = #{amount}
|
||||
</if>
|
||||
<if test="limitAmount != null">
|
||||
and limit_amount = #{limitAmount}
|
||||
</if>
|
||||
<if test="isShow != null">
|
||||
and is_show = #{isShow}
|
||||
</if>
|
||||
<if test="pic != null and pic != ''">
|
||||
and pic = #{pic}
|
||||
</if>
|
||||
<if test="type != null">
|
||||
and type = #{type}
|
||||
</if>
|
||||
<if test="ratio != null">
|
||||
and ratio = #{ratio}
|
||||
</if>
|
||||
<if test="maxRatioAmount != null">
|
||||
and max_ratio_amount = #{maxRatioAmount}
|
||||
</if>
|
||||
<if test="track != null and track != ''">
|
||||
and track = #{track}
|
||||
</if>
|
||||
<if test="classType != null and classType != ''">
|
||||
and class_type = #{classType}
|
||||
</if>
|
||||
<if test="effectType != null">
|
||||
and effect_type = #{effectType}
|
||||
</if>
|
||||
<if test="effectDays != null">
|
||||
and effect_days = #{effectDays}
|
||||
</if>
|
||||
<if test="relationIds != null and relationIds != ''">
|
||||
and relation_ids = #{relationIds}
|
||||
</if>
|
||||
<if test="relationList != null and relationList != ''">
|
||||
and relation_list = #{relationList}
|
||||
</if>
|
||||
<if test="editor != null and editor != ''">
|
||||
and editor = #{editor}
|
||||
</if>
|
||||
<if test="note != null and note != ''">
|
||||
and note = #{note}
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
and created_at = #{createdAt}
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
and updated_at = #{updatedAt}
|
||||
</if>
|
||||
<if test="furnishMeal != null">
|
||||
and furnish_meal = #{furnishMeal}
|
||||
</if>
|
||||
<if test="furnishExpress != null">
|
||||
and furnish_express = #{furnishExpress}
|
||||
</if>
|
||||
<if test="furnishDraw != null">
|
||||
and furnish_draw = #{furnishDraw}
|
||||
</if>
|
||||
<if test="furnishVir != null">
|
||||
and furnish_vir = #{furnishVir}
|
||||
</if>
|
||||
<if test="disableDistribute != null">
|
||||
and disable_distribute = #{disableDistribute}
|
||||
</if>
|
||||
<if test="merchantId != null and merchantId != ''">
|
||||
and merchant_id = #{merchantId}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="queryAllByPage" resultType="com.chaozhanggui.system.cashierservice.entity.vo.CouAndShopVo">
|
||||
SELECT
|
||||
cou.id as id,
|
||||
@@ -285,7 +65,11 @@
|
||||
<where>
|
||||
cou.class_type = 'product'
|
||||
AND cou.`status` = 1
|
||||
AND cou.type = 2
|
||||
AND info.cities =#{cities}
|
||||
<if test="type != null and type != ''">
|
||||
AND category_id like concat('%',#{type,jdbcType=VARCHAR},'%')
|
||||
</if>
|
||||
<if test="rightTopLng != null and rightTopLng != '' and leftBottomLng != null and leftBottomLng != ''">
|
||||
AND info.lng BETWEEN #{leftBottomLng} AND #{rightTopLng}
|
||||
AND info.lat BETWEEN #{leftBottomLat} AND #{rightTopLat}
|
||||
@@ -293,189 +77,21 @@
|
||||
</where>
|
||||
|
||||
<choose>
|
||||
<when test="order == '1'">
|
||||
<when test="orderBy == '1'">
|
||||
ORDER BY (ABS(info.lat - #{lat}) + ABS(info.lng - #{lng})) ASC
|
||||
</when>
|
||||
<when test="order == '2'">
|
||||
<when test="orderBy == '2'">
|
||||
ORDER BY cou.number ASC
|
||||
</when>
|
||||
<when test="order == '3'">
|
||||
<when test="orderBy == '3'">
|
||||
ORDER BY cou.amount ASC
|
||||
</when>
|
||||
<otherwise>
|
||||
ORDER BY cou.id ASC
|
||||
ORDER BY cou.id desc
|
||||
</otherwise>
|
||||
</choose>
|
||||
limit #{pageable}, #{sizeable}
|
||||
</select>
|
||||
|
||||
<!--新增所有列-->
|
||||
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into tb_merchant_coupon(status, title, template_id, shop_id, shop_snap, from_time, to_time, limit_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)
|
||||
values (#{status}, #{title}, #{templateId}, #{shopId}, #{shopSnap}, #{fromTime}, #{toTime}, #{limitNumber}, #{number}, #{leftNumber}, #{amount}, #{limitAmount}, #{isShow}, #{pic}, #{type}, #{ratio}, #{maxRatioAmount}, #{track}, #{classType}, #{effectType}, #{effectDays}, #{relationIds}, #{relationList}, #{editor}, #{note}, #{createdAt}, #{updatedAt}, #{furnishMeal}, #{furnishExpress}, #{furnishDraw}, #{furnishVir}, #{disableDistribute}, #{merchantId})
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into tb_merchant_coupon(status, title, template_id, shop_id, shop_snap, from_time, to_time, limit_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)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.status}, #{entity.title}, #{entity.templateId}, #{entity.shopId}, #{entity.shopSnap}, #{entity.fromTime}, #{entity.toTime}, #{entity.limitNumber}, #{entity.number}, #{entity.leftNumber}, #{entity.amount}, #{entity.limitAmount}, #{entity.isShow}, #{entity.pic}, #{entity.type}, #{entity.ratio}, #{entity.maxRatioAmount}, #{entity.track}, #{entity.classType}, #{entity.effectType}, #{entity.effectDays}, #{entity.relationIds}, #{entity.relationList}, #{entity.editor}, #{entity.note}, #{entity.createdAt}, #{entity.updatedAt}, #{entity.furnishMeal}, #{entity.furnishExpress}, #{entity.furnishDraw}, #{entity.furnishVir}, #{entity.disableDistribute}, #{entity.merchantId})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into tb_merchant_coupon(status, title, template_id, shop_id, shop_snap, from_time, to_time, limit_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)
|
||||
values
|
||||
<foreach collection="entities" item="entity" separator=",">
|
||||
(#{entity.status}, #{entity.title}, #{entity.templateId}, #{entity.shopId}, #{entity.shopSnap}, #{entity.fromTime}, #{entity.toTime}, #{entity.limitNumber}, #{entity.number}, #{entity.leftNumber}, #{entity.amount}, #{entity.limitAmount}, #{entity.isShow}, #{entity.pic}, #{entity.type}, #{entity.ratio}, #{entity.maxRatioAmount}, #{entity.track}, #{entity.classType}, #{entity.effectType}, #{entity.effectDays}, #{entity.relationIds}, #{entity.relationList}, #{entity.editor}, #{entity.note}, #{entity.createdAt}, #{entity.updatedAt}, #{entity.furnishMeal}, #{entity.furnishExpress}, #{entity.furnishDraw}, #{entity.furnishVir}, #{entity.disableDistribute}, #{entity.merchantId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
status = values(status),
|
||||
title = values(title),
|
||||
template_id = values(template_id),
|
||||
shop_id = values(shop_id),
|
||||
shop_snap = values(shop_snap),
|
||||
from_time = values(from_time),
|
||||
to_time = values(to_time),
|
||||
limit_number = values(limit_number),
|
||||
number = values(number),
|
||||
left_number = values(left_number),
|
||||
amount = values(amount),
|
||||
limit_amount = values(limit_amount),
|
||||
is_show = values(is_show),
|
||||
pic = values(pic),
|
||||
type = values(type),
|
||||
ratio = values(ratio),
|
||||
max_ratio_amount = values(max_ratio_amount),
|
||||
track = values(track),
|
||||
class_type = values(class_type),
|
||||
effect_type = values(effect_type),
|
||||
effect_days = values(effect_days),
|
||||
relation_ids = values(relation_ids),
|
||||
relation_list = values(relation_list),
|
||||
editor = values(editor),
|
||||
note = values(note),
|
||||
created_at = values(created_at),
|
||||
updated_at = values(updated_at),
|
||||
furnish_meal = values(furnish_meal),
|
||||
furnish_express = values(furnish_express),
|
||||
furnish_draw = values(furnish_draw),
|
||||
furnish_vir = values(furnish_vir),
|
||||
disable_distribute = values(disable_distribute),
|
||||
merchant_id = values(merchant_id)
|
||||
</insert>
|
||||
|
||||
<!--通过主键修改数据-->
|
||||
<update id="update">
|
||||
update tb_merchant_coupon
|
||||
<set>
|
||||
<if test="status != null">
|
||||
status = #{status},
|
||||
</if>
|
||||
<if test="title != null and title != ''">
|
||||
title = #{title},
|
||||
</if>
|
||||
<if test="templateId != null and templateId != ''">
|
||||
template_id = #{templateId},
|
||||
</if>
|
||||
<if test="shopId != null and shopId != ''">
|
||||
shop_id = #{shopId},
|
||||
</if>
|
||||
<if test="shopSnap != null and shopSnap != ''">
|
||||
shop_snap = #{shopSnap},
|
||||
</if>
|
||||
<if test="fromTime != null">
|
||||
from_time = #{fromTime},
|
||||
</if>
|
||||
<if test="toTime != null">
|
||||
to_time = #{toTime},
|
||||
</if>
|
||||
<if test="limitNumber != null and limitNumber != ''">
|
||||
limit_number = #{limitNumber},
|
||||
</if>
|
||||
<if test="number != null">
|
||||
number = #{number},
|
||||
</if>
|
||||
<if test="leftNumber != null and leftNumber != ''">
|
||||
left_number = #{leftNumber},
|
||||
</if>
|
||||
<if test="amount != null">
|
||||
amount = #{amount},
|
||||
</if>
|
||||
<if test="limitAmount != null">
|
||||
limit_amount = #{limitAmount},
|
||||
</if>
|
||||
<if test="isShow != null">
|
||||
is_show = #{isShow},
|
||||
</if>
|
||||
<if test="pic != null and pic != ''">
|
||||
pic = #{pic},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type = #{type},
|
||||
</if>
|
||||
<if test="ratio != null">
|
||||
ratio = #{ratio},
|
||||
</if>
|
||||
<if test="maxRatioAmount != null">
|
||||
max_ratio_amount = #{maxRatioAmount},
|
||||
</if>
|
||||
<if test="track != null and track != ''">
|
||||
track = #{track},
|
||||
</if>
|
||||
<if test="classType != null and classType != ''">
|
||||
class_type = #{classType},
|
||||
</if>
|
||||
<if test="effectType != null">
|
||||
effect_type = #{effectType},
|
||||
</if>
|
||||
<if test="effectDays != null">
|
||||
effect_days = #{effectDays},
|
||||
</if>
|
||||
<if test="relationIds != null and relationIds != ''">
|
||||
relation_ids = #{relationIds},
|
||||
</if>
|
||||
<if test="relationList != null and relationList != ''">
|
||||
relation_list = #{relationList},
|
||||
</if>
|
||||
<if test="editor != null and editor != ''">
|
||||
editor = #{editor},
|
||||
</if>
|
||||
<if test="note != null and note != ''">
|
||||
note = #{note},
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
created_at = #{createdAt},
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
updated_at = #{updatedAt},
|
||||
</if>
|
||||
<if test="furnishMeal != null">
|
||||
furnish_meal = #{furnishMeal},
|
||||
</if>
|
||||
<if test="furnishExpress != null">
|
||||
furnish_express = #{furnishExpress},
|
||||
</if>
|
||||
<if test="furnishDraw != null">
|
||||
furnish_draw = #{furnishDraw},
|
||||
</if>
|
||||
<if test="furnishVir != null">
|
||||
furnish_vir = #{furnishVir},
|
||||
</if>
|
||||
<if test="disableDistribute != null">
|
||||
disable_distribute = #{disableDistribute},
|
||||
</if>
|
||||
<if test="merchantId != null and merchantId != ''">
|
||||
merchant_id = #{merchantId},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!--通过主键删除-->
|
||||
<delete id="deleteById">
|
||||
delete from tb_merchant_coupon where id = #{id}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
@@ -22,12 +22,12 @@
|
||||
, 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 id="queryByCouponId" resultMap="TbPurchaseNoticeMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
|
||||
from tb_purchase_notice
|
||||
where id = #{id}
|
||||
where coupon_id = #{couponId}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -598,7 +598,7 @@
|
||||
</select>
|
||||
|
||||
<select id="selectByPhone" resultMap="BaseResultMap">
|
||||
select * from tb_user_info where telephone=#{phone} AND source_path='APP' AND user_id is null
|
||||
select * from tb_user_info where telephone=#{phone}
|
||||
</select>
|
||||
<select id="selectAll" resultType="com.chaozhanggui.system.cashierservice.entity.TbUserInfo">
|
||||
select * from tb_user_info
|
||||
|
||||
Reference in New Issue
Block a user