优惠券重写
This commit is contained in:
@@ -1,87 +1,82 @@
|
||||
<?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.TbShopInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbShopInfo">
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="account" jdbcType="VARCHAR" property="account"/>
|
||||
<result column="shop_code" jdbcType="VARCHAR" property="shopCode"/>
|
||||
<result column="sub_title" jdbcType="VARCHAR" property="subTitle"/>
|
||||
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId"/>
|
||||
<result column="shop_name" jdbcType="VARCHAR" property="shopName"/>
|
||||
<result column="chain_name" jdbcType="VARCHAR" property="chainName"/>
|
||||
<result column="back_img" jdbcType="VARCHAR" property="backImg"/>
|
||||
<result column="front_img" jdbcType="VARCHAR" property="frontImg"/>
|
||||
<result column="contact_name" jdbcType="VARCHAR" property="contactName"/>
|
||||
<result column="phone" jdbcType="VARCHAR" property="phone"/>
|
||||
<result column="logo" jdbcType="VARCHAR" property="logo"/>
|
||||
<result column="is_deposit" jdbcType="TINYINT" property="isDeposit"/>
|
||||
<result column="is_supply" jdbcType="TINYINT" property="isSupply"/>
|
||||
<result column="cover_img" jdbcType="VARCHAR" property="coverImg"/>
|
||||
<result column="share_img" jdbcType="VARCHAR" property="shareImg"/>
|
||||
<result column="detail" jdbcType="VARCHAR" property="detail"/>
|
||||
<result column="lat" jdbcType="VARCHAR" property="lat"/>
|
||||
<result column="lng" jdbcType="VARCHAR" property="lng"/>
|
||||
<result column="mch_id" jdbcType="VARCHAR" property="mchId"/>
|
||||
<result column="register_type" jdbcType="VARCHAR" property="registerType"/>
|
||||
<result column="is_wx_ma_independent" jdbcType="TINYINT" property="isWxMaIndependent"/>
|
||||
<result column="address" jdbcType="VARCHAR" property="address"/>
|
||||
<result column="city" jdbcType="VARCHAR" property="city"/>
|
||||
<result column="type" jdbcType="VARCHAR" property="type"/>
|
||||
<result column="industry" jdbcType="VARCHAR" property="industry"/>
|
||||
<result column="industry_name" jdbcType="VARCHAR" property="industryName"/>
|
||||
<result column="business_start_day" jdbcType="VARCHAR" property="businessStartDay"/>
|
||||
<result column="business_end_day" jdbcType="VARCHAR" property="businessEndDay"/>
|
||||
<result column="business_time" jdbcType="VARCHAR" property="businessTime"/>
|
||||
<result column="post_time" jdbcType="VARCHAR" property="postTime"/>
|
||||
<result column="post_amount_line" jdbcType="DECIMAL" property="postAmountLine"/>
|
||||
<result column="on_sale" jdbcType="TINYINT" property="onSale"/>
|
||||
<result column="settle_type" jdbcType="TINYINT" property="settleType"/>
|
||||
<result column="settle_time" jdbcType="VARCHAR" property="settleTime"/>
|
||||
<result column="enter_at" jdbcType="INTEGER" property="enterAt"/>
|
||||
<result column="expire_at" jdbcType="BIGINT" property="expireAt"/>
|
||||
<result column="status" jdbcType="TINYINT" property="status"/>
|
||||
<result column="average" jdbcType="REAL" property="average"/>
|
||||
<result column="order_wait_pay_minute" jdbcType="INTEGER" property="orderWaitPayMinute"/>
|
||||
<result column="support_device_number" jdbcType="INTEGER" property="supportDeviceNumber"/>
|
||||
<result column="distribute_level" jdbcType="TINYINT" property="distributeLevel"/>
|
||||
<result column="created_at" jdbcType="BIGINT" property="createdAt"/>
|
||||
<result column="updated_at" jdbcType="BIGINT" property="updatedAt"/>
|
||||
<result column="proxy_id" jdbcType="VARCHAR" property="proxyId"/>
|
||||
<result column="is_open_yhq" jdbcType="VARCHAR" property="isOpenYhq"/>
|
||||
<result column="is_use_vip" jdbcType="VARCHAR" property="isUseVip"/>
|
||||
<result column="provinces" jdbcType="VARCHAR" property="provinces"/>
|
||||
<result column="cities" jdbcType="VARCHAR" property="cities"/>
|
||||
<result column="districts" jdbcType="VARCHAR" property="districts"/>
|
||||
|
||||
<result column="is_custom" jdbcType="VARCHAR" property="isCustom" />
|
||||
<result column="is_table_fee" jdbcType="TINYINT" property="isTableFee" />
|
||||
<result column="table_fee" jdbcType="DECIMAL" property="tableFee" />
|
||||
<result column="eat_model" jdbcType="VARCHAR" property="eatModel" />
|
||||
<result column="small_qrcode" jdbcType="VARCHAR" property="smallQrcode" />
|
||||
<result column="payment_qrcode" jdbcType="VARCHAR" property="paymentQrcode" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs"
|
||||
type="com.chaozhanggui.system.cashierservice.entity.TbShopInfo">
|
||||
<result column="view" jdbcType="LONGVARCHAR" property="view"/>
|
||||
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbShopInfo" id="BaseResultMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="account" column="account" jdbcType="VARCHAR"/>
|
||||
<result property="shopCode" column="shop_code" jdbcType="VARCHAR"/>
|
||||
<result property="subTitle" column="sub_title" jdbcType="VARCHAR"/>
|
||||
<result property="merchantId" column="merchant_id" jdbcType="VARCHAR"/>
|
||||
<result property="shopName" column="shop_name" jdbcType="VARCHAR"/>
|
||||
<result property="chainName" column="chain_name" jdbcType="VARCHAR"/>
|
||||
<result property="backImg" column="back_img" jdbcType="VARCHAR"/>
|
||||
<result property="frontImg" column="front_img" jdbcType="VARCHAR"/>
|
||||
<result property="contactName" column="contact_name" jdbcType="VARCHAR"/>
|
||||
<result property="phone" column="phone" jdbcType="VARCHAR"/>
|
||||
<result property="logo" column="logo" jdbcType="VARCHAR"/>
|
||||
<result property="isDeposit" column="is_deposit" jdbcType="INTEGER"/>
|
||||
<result property="isSupply" column="is_supply" jdbcType="INTEGER"/>
|
||||
<result property="coverImg" column="cover_img" jdbcType="VARCHAR"/>
|
||||
<result property="shareImg" column="share_img" jdbcType="VARCHAR"/>
|
||||
<result property="view" column="view" jdbcType="VARCHAR"/>
|
||||
<result property="detail" column="detail" jdbcType="VARCHAR"/>
|
||||
<result property="lat" column="lat" jdbcType="VARCHAR"/>
|
||||
<result property="lng" column="lng" jdbcType="VARCHAR"/>
|
||||
<result property="mchId" column="mch_id" jdbcType="VARCHAR"/>
|
||||
<result property="registerType" column="register_type" jdbcType="VARCHAR"/>
|
||||
<result property="isWxMaIndependent" column="is_wx_ma_independent" jdbcType="INTEGER"/>
|
||||
<result property="address" column="address" jdbcType="VARCHAR"/>
|
||||
<result property="city" column="city" jdbcType="VARCHAR"/>
|
||||
<result property="type" column="type" jdbcType="VARCHAR"/>
|
||||
<result property="industry" column="industry" jdbcType="VARCHAR"/>
|
||||
<result property="industryName" column="industry_name" jdbcType="VARCHAR"/>
|
||||
<result property="businessStartDay" column="business_start_day" jdbcType="VARCHAR"/>
|
||||
<result property="businessEndDay" column="business_end_day" jdbcType="VARCHAR"/>
|
||||
<result property="businessTime" column="business_time" jdbcType="VARCHAR"/>
|
||||
<result property="postTime" column="post_time" jdbcType="VARCHAR"/>
|
||||
<result property="postAmountLine" column="post_amount_line" jdbcType="NUMERIC"/>
|
||||
<result property="onSale" column="on_sale" jdbcType="INTEGER"/>
|
||||
<result property="settleType" column="settle_type" jdbcType="INTEGER"/>
|
||||
<result property="settleTime" column="settle_time" jdbcType="VARCHAR"/>
|
||||
<result property="enterAt" column="enter_at" jdbcType="INTEGER"/>
|
||||
<result property="expireAt" column="expire_at" jdbcType="INTEGER"/>
|
||||
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||
<result property="average" column="average" jdbcType="VARCHAR"/>
|
||||
<result property="orderWaitPayMinute" column="order_wait_pay_minute" jdbcType="INTEGER"/>
|
||||
<result property="supportDeviceNumber" column="support_device_number" jdbcType="INTEGER"/>
|
||||
<result property="distributeLevel" column="distribute_level" jdbcType="INTEGER"/>
|
||||
<result property="createdAt" column="created_at" jdbcType="INTEGER"/>
|
||||
<result property="updatedAt" column="updated_at" jdbcType="INTEGER"/>
|
||||
<result property="proxyId" column="proxy_id" jdbcType="VARCHAR"/>
|
||||
<result property="profiles" column="profiles" jdbcType="VARCHAR"/>
|
||||
<result property="shopQrcode" column="shop_qrcode" jdbcType="VARCHAR"/>
|
||||
<result property="tag" column="tag" jdbcType="VARCHAR"/>
|
||||
<result property="isOpenYhq" column="is_open_yhq" jdbcType="VARCHAR"/>
|
||||
<result property="isUseVip" column="is_use_vip" jdbcType="INTEGER"/>
|
||||
<result property="provinces" column="provinces" jdbcType="VARCHAR"/>
|
||||
<result property="cities" column="cities" jdbcType="VARCHAR"/>
|
||||
<result property="districts" column="districts" jdbcType="VARCHAR"/>
|
||||
<result property="isCustom" column="is_custom" jdbcType="VARCHAR"/>
|
||||
<result property="isReturn" column="is_return" jdbcType="VARCHAR"/>
|
||||
<result property="isMemberIn" column="is_member_in" jdbcType="VARCHAR"/>
|
||||
<result property="isMemberReturn" column="is_member_return" jdbcType="VARCHAR"/>
|
||||
<result property="isTableFee" column="is_table_fee" jdbcType="INTEGER"/>
|
||||
<result property="isMemberPrice" column="is_member_price" jdbcType="INTEGER"/>
|
||||
<result property="consumeColony" column="consume_colony" jdbcType="VARCHAR"/>
|
||||
<result property="tableFee" column="table_fee" jdbcType="NUMERIC"/>
|
||||
<result property="eatModel" column="eat_model" jdbcType="VARCHAR"/>
|
||||
<result property="smallQrcode" column="small_qrcode" jdbcType="VARCHAR"/>
|
||||
<result property="paymentQrcode" column="payment_qrcode" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id
|
||||
, account, shop_code, sub_title, merchant_id, shop_name, chain_name, back_img,
|
||||
front_img, contact_name, phone, logo, is_deposit, is_supply, cover_img, share_img,
|
||||
detail, lat, lng, mch_id, register_type, is_wx_ma_independent, address, city, type,
|
||||
industry, industry_name, business_start_day,business_end_day,business_time, post_time, post_amount_line, on_sale, settle_type,
|
||||
settle_time, enter_at, expire_at, status, average, order_wait_pay_minute, support_device_number,
|
||||
distribute_level, created_at, updated_at, proxy_id, shop_qrcode, tag,is_open_yhq,is_use_vip,provinces,cities,districts,is_custom,
|
||||
is_table_fee,table_fee,eat_model,small_qrcode,payment_qrcode
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
view
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
|
||||
, account, shop_code, sub_title, merchant_id, shop_name, chain_name, back_img, front_img, contact_name, phone, logo, is_deposit, is_supply, cover_img, share_img, view, detail, lat, lng, mch_id, register_type, is_wx_ma_independent, address, city, type, industry, industry_name, business_start_day, business_end_day, business_time, post_time, post_amount_line, on_sale, settle_type, settle_time, enter_at, expire_at, status, average, order_wait_pay_minute, support_device_number, distribute_level, created_at, updated_at, proxy_id, profiles, shop_qrcode, tag, is_open_yhq, is_use_vip, provinces, cities, districts, is_custom, is_return, is_member_in, is_member_return, is_table_fee, is_member_price, consume_colony, table_fee, eat_model, small_qrcode, payment_qrcode </sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from tb_shop_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
@@ -114,544 +109,6 @@
|
||||
</select>
|
||||
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete
|
||||
from tb_shop_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopInfo">
|
||||
insert into tb_shop_info (id, account, shop_code,
|
||||
sub_title, merchant_id, shop_name,
|
||||
chain_name, back_img, front_img,
|
||||
contact_name, phone, logo,
|
||||
is_deposit, is_supply, cover_img,
|
||||
share_img, detail, lat,
|
||||
lng, mch_id, register_type,
|
||||
is_wx_ma_independent, address, city,
|
||||
type, industry, industry_name,
|
||||
business_time, post_time, post_amount_line,
|
||||
on_sale, settle_type, settle_time,
|
||||
enter_at, expire_at, status,
|
||||
average, order_wait_pay_minute, support_device_number,
|
||||
distribute_level, created_at, updated_at,
|
||||
proxy_id, view)
|
||||
values (#{id,jdbcType=INTEGER}, #{account,jdbcType=VARCHAR}, #{shopCode,jdbcType=VARCHAR},
|
||||
#{subTitle,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{shopName,jdbcType=VARCHAR},
|
||||
#{chainName,jdbcType=VARCHAR}, #{backImg,jdbcType=VARCHAR}, #{frontImg,jdbcType=VARCHAR},
|
||||
#{contactName,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR},
|
||||
#{isDeposit,jdbcType=TINYINT}, #{isSupply,jdbcType=TINYINT}, #{coverImg,jdbcType=VARCHAR},
|
||||
#{shareImg,jdbcType=VARCHAR}, #{detail,jdbcType=VARCHAR}, #{lat,jdbcType=VARCHAR},
|
||||
#{lng,jdbcType=VARCHAR}, #{mchId,jdbcType=VARCHAR}, #{registerType,jdbcType=VARCHAR},
|
||||
#{isWxMaIndependent,jdbcType=TINYINT}, #{address,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR},
|
||||
#{type,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR}, #{industryName,jdbcType=VARCHAR},
|
||||
#{businessTime,jdbcType=VARCHAR}, #{postTime,jdbcType=VARCHAR}, #{postAmountLine,jdbcType=DECIMAL},
|
||||
#{onSale,jdbcType=TINYINT}, #{settleType,jdbcType=TINYINT}, #{settleTime,jdbcType=VARCHAR},
|
||||
#{enterAt,jdbcType=INTEGER}, #{expireAt,jdbcType=BIGINT}, #{status,jdbcType=TINYINT},
|
||||
#{average,jdbcType=REAL}, #{orderWaitPayMinute,jdbcType=INTEGER},
|
||||
#{supportDeviceNumber,jdbcType=INTEGER},
|
||||
#{distributeLevel,jdbcType=TINYINT}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT},
|
||||
#{proxyId,jdbcType=VARCHAR}, #{view,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopInfo">
|
||||
insert into tb_shop_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="account != null">
|
||||
account,
|
||||
</if>
|
||||
<if test="shopCode != null">
|
||||
shop_code,
|
||||
</if>
|
||||
<if test="subTitle != null">
|
||||
sub_title,
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
merchant_id,
|
||||
</if>
|
||||
<if test="shopName != null">
|
||||
shop_name,
|
||||
</if>
|
||||
<if test="chainName != null">
|
||||
chain_name,
|
||||
</if>
|
||||
<if test="backImg != null">
|
||||
back_img,
|
||||
</if>
|
||||
<if test="frontImg != null">
|
||||
front_img,
|
||||
</if>
|
||||
<if test="contactName != null">
|
||||
contact_name,
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
phone,
|
||||
</if>
|
||||
<if test="logo != null">
|
||||
logo,
|
||||
</if>
|
||||
<if test="isDeposit != null">
|
||||
is_deposit,
|
||||
</if>
|
||||
<if test="isSupply != null">
|
||||
is_supply,
|
||||
</if>
|
||||
<if test="coverImg != null">
|
||||
cover_img,
|
||||
</if>
|
||||
<if test="shareImg != null">
|
||||
share_img,
|
||||
</if>
|
||||
<if test="detail != null">
|
||||
detail,
|
||||
</if>
|
||||
<if test="lat != null">
|
||||
lat,
|
||||
</if>
|
||||
<if test="lng != null">
|
||||
lng,
|
||||
</if>
|
||||
<if test="mchId != null">
|
||||
mch_id,
|
||||
</if>
|
||||
<if test="registerType != null">
|
||||
register_type,
|
||||
</if>
|
||||
<if test="isWxMaIndependent != null">
|
||||
is_wx_ma_independent,
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address,
|
||||
</if>
|
||||
<if test="city != null">
|
||||
city,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
</if>
|
||||
<if test="industry != null">
|
||||
industry,
|
||||
</if>
|
||||
<if test="industryName != null">
|
||||
industry_name,
|
||||
</if>
|
||||
<if test="businessTime != null">
|
||||
business_time,
|
||||
</if>
|
||||
<if test="postTime != null">
|
||||
post_time,
|
||||
</if>
|
||||
<if test="postAmountLine != null">
|
||||
post_amount_line,
|
||||
</if>
|
||||
<if test="onSale != null">
|
||||
on_sale,
|
||||
</if>
|
||||
<if test="settleType != null">
|
||||
settle_type,
|
||||
</if>
|
||||
<if test="settleTime != null">
|
||||
settle_time,
|
||||
</if>
|
||||
<if test="enterAt != null">
|
||||
enter_at,
|
||||
</if>
|
||||
<if test="expireAt != null">
|
||||
expire_at,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="average != null">
|
||||
average,
|
||||
</if>
|
||||
<if test="orderWaitPayMinute != null">
|
||||
order_wait_pay_minute,
|
||||
</if>
|
||||
<if test="supportDeviceNumber != null">
|
||||
support_device_number,
|
||||
</if>
|
||||
<if test="distributeLevel != null">
|
||||
distribute_level,
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
created_at,
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
updated_at,
|
||||
</if>
|
||||
<if test="proxyId != null">
|
||||
proxy_id,
|
||||
</if>
|
||||
<if test="view != null">
|
||||
view,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="account != null">
|
||||
#{account,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="shopCode != null">
|
||||
#{shopCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="subTitle != null">
|
||||
#{subTitle,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
#{merchantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="shopName != null">
|
||||
#{shopName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="chainName != null">
|
||||
#{chainName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="backImg != null">
|
||||
#{backImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="frontImg != null">
|
||||
#{frontImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="contactName != null">
|
||||
#{contactName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
#{phone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="logo != null">
|
||||
#{logo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isDeposit != null">
|
||||
#{isDeposit,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="isSupply != null">
|
||||
#{isSupply,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="coverImg != null">
|
||||
#{coverImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="shareImg != null">
|
||||
#{shareImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="detail != null">
|
||||
#{detail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lat != null">
|
||||
#{lat,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lng != null">
|
||||
#{lng,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mchId != null">
|
||||
#{mchId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registerType != null">
|
||||
#{registerType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isWxMaIndependent != null">
|
||||
#{isWxMaIndependent,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
#{address,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="city != null">
|
||||
#{city,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="industry != null">
|
||||
#{industry,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="industryName != null">
|
||||
#{industryName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessTime != null">
|
||||
#{businessTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="postTime != null">
|
||||
#{postTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="postAmountLine != null">
|
||||
#{postAmountLine,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="onSale != null">
|
||||
#{onSale,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="settleType != null">
|
||||
#{settleType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="settleTime != null">
|
||||
#{settleTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="enterAt != null">
|
||||
#{enterAt,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="expireAt != null">
|
||||
#{expireAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="average != null">
|
||||
#{average,jdbcType=REAL},
|
||||
</if>
|
||||
<if test="orderWaitPayMinute != null">
|
||||
#{orderWaitPayMinute,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="supportDeviceNumber != null">
|
||||
#{supportDeviceNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="distributeLevel != null">
|
||||
#{distributeLevel,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
#{createdAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
#{updatedAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="proxyId != null">
|
||||
#{proxyId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="view != null">
|
||||
#{view,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopInfo">
|
||||
update tb_shop_info
|
||||
<set>
|
||||
<if test="account != null">
|
||||
account = #{account,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="shopCode != null">
|
||||
shop_code = #{shopCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="subTitle != null">
|
||||
sub_title = #{subTitle,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="shopName != null">
|
||||
shop_name = #{shopName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="chainName != null">
|
||||
chain_name = #{chainName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="backImg != null">
|
||||
back_img = #{backImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="frontImg != null">
|
||||
front_img = #{frontImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="contactName != null">
|
||||
contact_name = #{contactName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
phone = #{phone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="logo != null">
|
||||
logo = #{logo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isDeposit != null">
|
||||
is_deposit = #{isDeposit,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="isSupply != null">
|
||||
is_supply = #{isSupply,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="coverImg != null">
|
||||
cover_img = #{coverImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="shareImg != null">
|
||||
share_img = #{shareImg,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="detail != null">
|
||||
detail = #{detail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lat != null">
|
||||
lat = #{lat,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="lng != null">
|
||||
lng = #{lng,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="mchId != null">
|
||||
mch_id = #{mchId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registerType != null">
|
||||
register_type = #{registerType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isWxMaIndependent != null">
|
||||
is_wx_ma_independent = #{isWxMaIndependent,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="city != null">
|
||||
city = #{city,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="industry != null">
|
||||
industry = #{industry,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="industryName != null">
|
||||
industry_name = #{industryName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessTime != null">
|
||||
business_time = #{businessTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="postTime != null">
|
||||
post_time = #{postTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="postAmountLine != null">
|
||||
post_amount_line = #{postAmountLine,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="onSale != null">
|
||||
on_sale = #{onSale,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="settleType != null">
|
||||
settle_type = #{settleType,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="settleTime != null">
|
||||
settle_time = #{settleTime,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="enterAt != null">
|
||||
enter_at = #{enterAt,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="expireAt != null">
|
||||
expire_at = #{expireAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="average != null">
|
||||
average = #{average,jdbcType=REAL},
|
||||
</if>
|
||||
<if test="orderWaitPayMinute != null">
|
||||
order_wait_pay_minute = #{orderWaitPayMinute,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="supportDeviceNumber != null">
|
||||
support_device_number = #{supportDeviceNumber,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="distributeLevel != null">
|
||||
distribute_level = #{distributeLevel,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
created_at = #{createdAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="updatedAt != null">
|
||||
updated_at = #{updatedAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="proxyId != null">
|
||||
proxy_id = #{proxyId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="view != null">
|
||||
view = #{view,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopInfo">
|
||||
update tb_shop_info
|
||||
set account = #{account,jdbcType=VARCHAR},
|
||||
shop_code = #{shopCode,jdbcType=VARCHAR},
|
||||
sub_title = #{subTitle,jdbcType=VARCHAR},
|
||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||
shop_name = #{shopName,jdbcType=VARCHAR},
|
||||
chain_name = #{chainName,jdbcType=VARCHAR},
|
||||
back_img = #{backImg,jdbcType=VARCHAR},
|
||||
front_img = #{frontImg,jdbcType=VARCHAR},
|
||||
contact_name = #{contactName,jdbcType=VARCHAR},
|
||||
phone = #{phone,jdbcType=VARCHAR},
|
||||
logo = #{logo,jdbcType=VARCHAR},
|
||||
is_deposit = #{isDeposit,jdbcType=TINYINT},
|
||||
is_supply = #{isSupply,jdbcType=TINYINT},
|
||||
cover_img = #{coverImg,jdbcType=VARCHAR},
|
||||
share_img = #{shareImg,jdbcType=VARCHAR},
|
||||
detail = #{detail,jdbcType=VARCHAR},
|
||||
lat = #{lat,jdbcType=VARCHAR},
|
||||
lng = #{lng,jdbcType=VARCHAR},
|
||||
mch_id = #{mchId,jdbcType=VARCHAR},
|
||||
register_type = #{registerType,jdbcType=VARCHAR},
|
||||
is_wx_ma_independent = #{isWxMaIndependent,jdbcType=TINYINT},
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
city = #{city,jdbcType=VARCHAR},
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
industry = #{industry,jdbcType=VARCHAR},
|
||||
industry_name = #{industryName,jdbcType=VARCHAR},
|
||||
business_time = #{businessTime,jdbcType=VARCHAR},
|
||||
post_time = #{postTime,jdbcType=VARCHAR},
|
||||
post_amount_line = #{postAmountLine,jdbcType=DECIMAL},
|
||||
on_sale = #{onSale,jdbcType=TINYINT},
|
||||
settle_type = #{settleType,jdbcType=TINYINT},
|
||||
settle_time = #{settleTime,jdbcType=VARCHAR},
|
||||
enter_at = #{enterAt,jdbcType=INTEGER},
|
||||
expire_at = #{expireAt,jdbcType=BIGINT},
|
||||
status = #{status,jdbcType=TINYINT},
|
||||
average = #{average,jdbcType=REAL},
|
||||
order_wait_pay_minute = #{orderWaitPayMinute,jdbcType=INTEGER},
|
||||
support_device_number = #{supportDeviceNumber,jdbcType=INTEGER},
|
||||
distribute_level = #{distributeLevel,jdbcType=TINYINT},
|
||||
created_at = #{createdAt,jdbcType=BIGINT},
|
||||
updated_at = #{updatedAt,jdbcType=BIGINT},
|
||||
proxy_id = #{proxyId,jdbcType=VARCHAR},
|
||||
view = #{view,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopInfo">
|
||||
update tb_shop_info
|
||||
set account = #{account,jdbcType=VARCHAR},
|
||||
shop_code = #{shopCode,jdbcType=VARCHAR},
|
||||
sub_title = #{subTitle,jdbcType=VARCHAR},
|
||||
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
||||
shop_name = #{shopName,jdbcType=VARCHAR},
|
||||
chain_name = #{chainName,jdbcType=VARCHAR},
|
||||
back_img = #{backImg,jdbcType=VARCHAR},
|
||||
front_img = #{frontImg,jdbcType=VARCHAR},
|
||||
contact_name = #{contactName,jdbcType=VARCHAR},
|
||||
phone = #{phone,jdbcType=VARCHAR},
|
||||
logo = #{logo,jdbcType=VARCHAR},
|
||||
is_deposit = #{isDeposit,jdbcType=TINYINT},
|
||||
is_supply = #{isSupply,jdbcType=TINYINT},
|
||||
cover_img = #{coverImg,jdbcType=VARCHAR},
|
||||
share_img = #{shareImg,jdbcType=VARCHAR},
|
||||
detail = #{detail,jdbcType=VARCHAR},
|
||||
lat = #{lat,jdbcType=VARCHAR},
|
||||
lng = #{lng,jdbcType=VARCHAR},
|
||||
mch_id = #{mchId,jdbcType=VARCHAR},
|
||||
register_type = #{registerType,jdbcType=VARCHAR},
|
||||
is_wx_ma_independent = #{isWxMaIndependent,jdbcType=TINYINT},
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
city = #{city,jdbcType=VARCHAR},
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
industry = #{industry,jdbcType=VARCHAR},
|
||||
industry_name = #{industryName,jdbcType=VARCHAR},
|
||||
business_time = #{businessTime,jdbcType=VARCHAR},
|
||||
post_time = #{postTime,jdbcType=VARCHAR},
|
||||
post_amount_line = #{postAmountLine,jdbcType=DECIMAL},
|
||||
on_sale = #{onSale,jdbcType=TINYINT},
|
||||
settle_type = #{settleType,jdbcType=TINYINT},
|
||||
settle_time = #{settleTime,jdbcType=VARCHAR},
|
||||
enter_at = #{enterAt,jdbcType=INTEGER},
|
||||
expire_at = #{expireAt,jdbcType=BIGINT},
|
||||
status = #{status,jdbcType=TINYINT},
|
||||
average = #{average,jdbcType=REAL},
|
||||
order_wait_pay_minute = #{orderWaitPayMinute,jdbcType=INTEGER},
|
||||
support_device_number = #{supportDeviceNumber,jdbcType=INTEGER},
|
||||
distribute_level = #{distributeLevel,jdbcType=TINYINT},
|
||||
created_at = #{createdAt,jdbcType=BIGINT},
|
||||
updated_at = #{updatedAt,jdbcType=BIGINT},
|
||||
proxy_id = #{proxyId,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="selectByQrCode" resultMap="BaseResultMap">
|
||||
|
||||
SELECT i.*
|
||||
@@ -693,12 +150,12 @@
|
||||
<select id="selectByIds" resultType="com.chaozhanggui.system.cashierservice.entity.TbShopInfo">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from tb_shop_info
|
||||
where id IN
|
||||
<foreach collection="list" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
</mapper>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user