多余内容删除

充值会员优惠券赠送
店铺信息增加字段
This commit is contained in:
2024-10-24 16:53:37 +08:00
parent 0831cb5ace
commit cbdbe16cd0
66 changed files with 2370 additions and 5240 deletions

View File

@@ -1,199 +0,0 @@
<?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.CodeColumnConfigMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
<id column="column_id" jdbcType="BIGINT" property="columnId" />
<result column="table_name" jdbcType="VARCHAR" property="tableName" />
<result column="column_name" jdbcType="VARCHAR" property="columnName" />
<result column="column_type" jdbcType="VARCHAR" property="columnType" />
<result column="dict_name" jdbcType="VARCHAR" property="dictName" />
<result column="extra" jdbcType="VARCHAR" property="extra" />
<result column="form_show" jdbcType="BIT" property="formShow" />
<result column="form_type" jdbcType="VARCHAR" property="formType" />
<result column="key_type" jdbcType="VARCHAR" property="keyType" />
<result column="list_show" jdbcType="BIT" property="listShow" />
<result column="not_null" jdbcType="BIT" property="notNull" />
<result column="query_type" jdbcType="VARCHAR" property="queryType" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="date_annotation" jdbcType="VARCHAR" property="dateAnnotation" />
</resultMap>
<sql id="Base_Column_List">
column_id, table_name, column_name, column_type, dict_name, extra, form_show, form_type,
key_type, list_show, not_null, query_type, remark, date_annotation
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from code_column_config
where column_id = #{columnId,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from code_column_config
where column_id = #{columnId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
insert into code_column_config (column_id, table_name, column_name,
column_type, dict_name, extra,
form_show, form_type, key_type,
list_show, not_null, query_type,
remark, date_annotation)
values (#{columnId,jdbcType=BIGINT}, #{tableName,jdbcType=VARCHAR}, #{columnName,jdbcType=VARCHAR},
#{columnType,jdbcType=VARCHAR}, #{dictName,jdbcType=VARCHAR}, #{extra,jdbcType=VARCHAR},
#{formShow,jdbcType=BIT}, #{formType,jdbcType=VARCHAR}, #{keyType,jdbcType=VARCHAR},
#{listShow,jdbcType=BIT}, #{notNull,jdbcType=BIT}, #{queryType,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR}, #{dateAnnotation,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
insert into code_column_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="columnId != null">
column_id,
</if>
<if test="tableName != null">
table_name,
</if>
<if test="columnName != null">
column_name,
</if>
<if test="columnType != null">
column_type,
</if>
<if test="dictName != null">
dict_name,
</if>
<if test="extra != null">
extra,
</if>
<if test="formShow != null">
form_show,
</if>
<if test="formType != null">
form_type,
</if>
<if test="keyType != null">
key_type,
</if>
<if test="listShow != null">
list_show,
</if>
<if test="notNull != null">
not_null,
</if>
<if test="queryType != null">
query_type,
</if>
<if test="remark != null">
remark,
</if>
<if test="dateAnnotation != null">
date_annotation,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="columnId != null">
#{columnId,jdbcType=BIGINT},
</if>
<if test="tableName != null">
#{tableName,jdbcType=VARCHAR},
</if>
<if test="columnName != null">
#{columnName,jdbcType=VARCHAR},
</if>
<if test="columnType != null">
#{columnType,jdbcType=VARCHAR},
</if>
<if test="dictName != null">
#{dictName,jdbcType=VARCHAR},
</if>
<if test="extra != null">
#{extra,jdbcType=VARCHAR},
</if>
<if test="formShow != null">
#{formShow,jdbcType=BIT},
</if>
<if test="formType != null">
#{formType,jdbcType=VARCHAR},
</if>
<if test="keyType != null">
#{keyType,jdbcType=VARCHAR},
</if>
<if test="listShow != null">
#{listShow,jdbcType=BIT},
</if>
<if test="notNull != null">
#{notNull,jdbcType=BIT},
</if>
<if test="queryType != null">
#{queryType,jdbcType=VARCHAR},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="dateAnnotation != null">
#{dateAnnotation,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
update code_column_config
<set>
<if test="tableName != null">
table_name = #{tableName,jdbcType=VARCHAR},
</if>
<if test="columnName != null">
column_name = #{columnName,jdbcType=VARCHAR},
</if>
<if test="columnType != null">
column_type = #{columnType,jdbcType=VARCHAR},
</if>
<if test="dictName != null">
dict_name = #{dictName,jdbcType=VARCHAR},
</if>
<if test="extra != null">
extra = #{extra,jdbcType=VARCHAR},
</if>
<if test="formShow != null">
form_show = #{formShow,jdbcType=BIT},
</if>
<if test="formType != null">
form_type = #{formType,jdbcType=VARCHAR},
</if>
<if test="keyType != null">
key_type = #{keyType,jdbcType=VARCHAR},
</if>
<if test="listShow != null">
list_show = #{listShow,jdbcType=BIT},
</if>
<if test="notNull != null">
not_null = #{notNull,jdbcType=BIT},
</if>
<if test="queryType != null">
query_type = #{queryType,jdbcType=VARCHAR},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="dateAnnotation != null">
date_annotation = #{dateAnnotation,jdbcType=VARCHAR},
</if>
</set>
where column_id = #{columnId,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeColumnConfig">
update code_column_config
set table_name = #{tableName,jdbcType=VARCHAR},
column_name = #{columnName,jdbcType=VARCHAR},
column_type = #{columnType,jdbcType=VARCHAR},
dict_name = #{dictName,jdbcType=VARCHAR},
extra = #{extra,jdbcType=VARCHAR},
form_show = #{formShow,jdbcType=BIT},
form_type = #{formType,jdbcType=VARCHAR},
key_type = #{keyType,jdbcType=VARCHAR},
list_show = #{listShow,jdbcType=BIT},
not_null = #{notNull,jdbcType=BIT},
query_type = #{queryType,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
date_annotation = #{dateAnnotation,jdbcType=VARCHAR}
where column_id = #{columnId,jdbcType=BIGINT}
</update>
</mapper>

View File

@@ -1,153 +0,0 @@
<?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.CodeGenConfigMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.CodeGenConfig">
<id column="config_id" jdbcType="BIGINT" property="configId" />
<result column="table_name" jdbcType="VARCHAR" property="tableName" />
<result column="author" jdbcType="VARCHAR" property="author" />
<result column="cover" jdbcType="BIT" property="cover" />
<result column="module_name" jdbcType="VARCHAR" property="moduleName" />
<result column="pack" jdbcType="VARCHAR" property="pack" />
<result column="path" jdbcType="VARCHAR" property="path" />
<result column="api_path" jdbcType="VARCHAR" property="apiPath" />
<result column="prefix" jdbcType="VARCHAR" property="prefix" />
<result column="api_alias" jdbcType="VARCHAR" property="apiAlias" />
</resultMap>
<sql id="Base_Column_List">
config_id, table_name, author, cover, module_name, pack, path, api_path, prefix,
api_alias
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from code_gen_config
where config_id = #{configId,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from code_gen_config
where config_id = #{configId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeGenConfig">
insert into code_gen_config (config_id, table_name, author,
cover, module_name, pack,
path, api_path, prefix,
api_alias)
values (#{configId,jdbcType=BIGINT}, #{tableName,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR},
#{cover,jdbcType=BIT}, #{moduleName,jdbcType=VARCHAR}, #{pack,jdbcType=VARCHAR},
#{path,jdbcType=VARCHAR}, #{apiPath,jdbcType=VARCHAR}, #{prefix,jdbcType=VARCHAR},
#{apiAlias,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeGenConfig">
insert into code_gen_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="configId != null">
config_id,
</if>
<if test="tableName != null">
table_name,
</if>
<if test="author != null">
author,
</if>
<if test="cover != null">
cover,
</if>
<if test="moduleName != null">
module_name,
</if>
<if test="pack != null">
pack,
</if>
<if test="path != null">
path,
</if>
<if test="apiPath != null">
api_path,
</if>
<if test="prefix != null">
prefix,
</if>
<if test="apiAlias != null">
api_alias,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="configId != null">
#{configId,jdbcType=BIGINT},
</if>
<if test="tableName != null">
#{tableName,jdbcType=VARCHAR},
</if>
<if test="author != null">
#{author,jdbcType=VARCHAR},
</if>
<if test="cover != null">
#{cover,jdbcType=BIT},
</if>
<if test="moduleName != null">
#{moduleName,jdbcType=VARCHAR},
</if>
<if test="pack != null">
#{pack,jdbcType=VARCHAR},
</if>
<if test="path != null">
#{path,jdbcType=VARCHAR},
</if>
<if test="apiPath != null">
#{apiPath,jdbcType=VARCHAR},
</if>
<if test="prefix != null">
#{prefix,jdbcType=VARCHAR},
</if>
<if test="apiAlias != null">
#{apiAlias,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeGenConfig">
update code_gen_config
<set>
<if test="tableName != null">
table_name = #{tableName,jdbcType=VARCHAR},
</if>
<if test="author != null">
author = #{author,jdbcType=VARCHAR},
</if>
<if test="cover != null">
cover = #{cover,jdbcType=BIT},
</if>
<if test="moduleName != null">
module_name = #{moduleName,jdbcType=VARCHAR},
</if>
<if test="pack != null">
pack = #{pack,jdbcType=VARCHAR},
</if>
<if test="path != null">
path = #{path,jdbcType=VARCHAR},
</if>
<if test="apiPath != null">
api_path = #{apiPath,jdbcType=VARCHAR},
</if>
<if test="prefix != null">
prefix = #{prefix,jdbcType=VARCHAR},
</if>
<if test="apiAlias != null">
api_alias = #{apiAlias,jdbcType=VARCHAR},
</if>
</set>
where config_id = #{configId,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.CodeGenConfig">
update code_gen_config
set table_name = #{tableName,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
cover = #{cover,jdbcType=BIT},
module_name = #{moduleName,jdbcType=VARCHAR},
pack = #{pack,jdbcType=VARCHAR},
path = #{path,jdbcType=VARCHAR},
api_path = #{apiPath,jdbcType=VARCHAR},
prefix = #{prefix,jdbcType=VARCHAR},
api_alias = #{apiAlias,jdbcType=VARCHAR}
where config_id = #{configId,jdbcType=BIGINT}
</update>
</mapper>

View File

@@ -1,177 +0,0 @@
<?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.MntAppMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.MntApp">
<id column="app_id" jdbcType="BIGINT" property="appId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="upload_path" jdbcType="VARCHAR" property="uploadPath" />
<result column="deploy_path" jdbcType="VARCHAR" property="deployPath" />
<result column="backup_path" jdbcType="VARCHAR" property="backupPath" />
<result column="port" jdbcType="INTEGER" property="port" />
<result column="start_script" jdbcType="VARCHAR" property="startScript" />
<result column="deploy_script" jdbcType="VARCHAR" property="deployScript" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
app_id, name, upload_path, deploy_path, backup_path, port, start_script, deploy_script,
create_by, update_by, create_time, update_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from mnt_app
where app_id = #{appId,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from mnt_app
where app_id = #{appId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.MntApp">
insert into mnt_app (app_id, name, upload_path,
deploy_path, backup_path, port,
start_script, deploy_script, create_by,
update_by, create_time, update_time
)
values (#{appId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{uploadPath,jdbcType=VARCHAR},
#{deployPath,jdbcType=VARCHAR}, #{backupPath,jdbcType=VARCHAR}, #{port,jdbcType=INTEGER},
#{startScript,jdbcType=VARCHAR}, #{deployScript,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntApp">
insert into mnt_app
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="appId != null">
app_id,
</if>
<if test="name != null">
name,
</if>
<if test="uploadPath != null">
upload_path,
</if>
<if test="deployPath != null">
deploy_path,
</if>
<if test="backupPath != null">
backup_path,
</if>
<if test="port != null">
port,
</if>
<if test="startScript != null">
start_script,
</if>
<if test="deployScript != null">
deploy_script,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="appId != null">
#{appId,jdbcType=BIGINT},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="uploadPath != null">
#{uploadPath,jdbcType=VARCHAR},
</if>
<if test="deployPath != null">
#{deployPath,jdbcType=VARCHAR},
</if>
<if test="backupPath != null">
#{backupPath,jdbcType=VARCHAR},
</if>
<if test="port != null">
#{port,jdbcType=INTEGER},
</if>
<if test="startScript != null">
#{startScript,jdbcType=VARCHAR},
</if>
<if test="deployScript != null">
#{deployScript,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntApp">
update mnt_app
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="uploadPath != null">
upload_path = #{uploadPath,jdbcType=VARCHAR},
</if>
<if test="deployPath != null">
deploy_path = #{deployPath,jdbcType=VARCHAR},
</if>
<if test="backupPath != null">
backup_path = #{backupPath,jdbcType=VARCHAR},
</if>
<if test="port != null">
port = #{port,jdbcType=INTEGER},
</if>
<if test="startScript != null">
start_script = #{startScript,jdbcType=VARCHAR},
</if>
<if test="deployScript != null">
deploy_script = #{deployScript,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where app_id = #{appId,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.MntApp">
update mnt_app
set name = #{name,jdbcType=VARCHAR},
upload_path = #{uploadPath,jdbcType=VARCHAR},
deploy_path = #{deployPath,jdbcType=VARCHAR},
backup_path = #{backupPath,jdbcType=VARCHAR},
port = #{port,jdbcType=INTEGER},
start_script = #{startScript,jdbcType=VARCHAR},
deploy_script = #{deployScript,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where app_id = #{appId,jdbcType=BIGINT}
</update>
</mapper>

View File

@@ -1,141 +0,0 @@
<?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.MntDatabaseMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.MntDatabase">
<id column="db_id" jdbcType="VARCHAR" property="dbId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="jdbc_url" jdbcType="VARCHAR" property="jdbcUrl" />
<result column="user_name" jdbcType="VARCHAR" property="userName" />
<result column="pwd" jdbcType="VARCHAR" property="pwd" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
db_id, name, jdbc_url, user_name, pwd, create_by, update_by, create_time, update_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from mnt_database
where db_id = #{dbId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from mnt_database
where db_id = #{dbId,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDatabase">
insert into mnt_database (db_id, name, jdbc_url,
user_name, pwd, create_by,
update_by, create_time, update_time
)
values (#{dbId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{jdbcUrl,jdbcType=VARCHAR},
#{userName,jdbcType=VARCHAR}, #{pwd,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDatabase">
insert into mnt_database
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="dbId != null">
db_id,
</if>
<if test="name != null">
name,
</if>
<if test="jdbcUrl != null">
jdbc_url,
</if>
<if test="userName != null">
user_name,
</if>
<if test="pwd != null">
pwd,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dbId != null">
#{dbId,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="jdbcUrl != null">
#{jdbcUrl,jdbcType=VARCHAR},
</if>
<if test="userName != null">
#{userName,jdbcType=VARCHAR},
</if>
<if test="pwd != null">
#{pwd,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDatabase">
update mnt_database
<set>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="jdbcUrl != null">
jdbc_url = #{jdbcUrl,jdbcType=VARCHAR},
</if>
<if test="userName != null">
user_name = #{userName,jdbcType=VARCHAR},
</if>
<if test="pwd != null">
pwd = #{pwd,jdbcType=VARCHAR},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where db_id = #{dbId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDatabase">
update mnt_database
set name = #{name,jdbcType=VARCHAR},
jdbc_url = #{jdbcUrl,jdbcType=VARCHAR},
user_name = #{userName,jdbcType=VARCHAR},
pwd = #{pwd,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where db_id = #{dbId,jdbcType=VARCHAR}
</update>
</mapper>

View File

@@ -1,106 +0,0 @@
<?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.MntDeployHistoryMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.MntDeployHistory">
<id column="history_id" jdbcType="VARCHAR" property="historyId" />
<result column="app_name" jdbcType="VARCHAR" property="appName" />
<result column="deploy_date" jdbcType="TIMESTAMP" property="deployDate" />
<result column="deploy_user" jdbcType="VARCHAR" property="deployUser" />
<result column="ip" jdbcType="VARCHAR" property="ip" />
<result column="deploy_id" jdbcType="BIGINT" property="deployId" />
</resultMap>
<sql id="Base_Column_List">
history_id, app_name, deploy_date, deploy_user, ip, deploy_id
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from mnt_deploy_history
where history_id = #{historyId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from mnt_deploy_history
where history_id = #{historyId,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeployHistory">
insert into mnt_deploy_history (history_id, app_name, deploy_date,
deploy_user, ip, deploy_id
)
values (#{historyId,jdbcType=VARCHAR}, #{appName,jdbcType=VARCHAR}, #{deployDate,jdbcType=TIMESTAMP},
#{deployUser,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{deployId,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeployHistory">
insert into mnt_deploy_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="historyId != null">
history_id,
</if>
<if test="appName != null">
app_name,
</if>
<if test="deployDate != null">
deploy_date,
</if>
<if test="deployUser != null">
deploy_user,
</if>
<if test="ip != null">
ip,
</if>
<if test="deployId != null">
deploy_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="historyId != null">
#{historyId,jdbcType=VARCHAR},
</if>
<if test="appName != null">
#{appName,jdbcType=VARCHAR},
</if>
<if test="deployDate != null">
#{deployDate,jdbcType=TIMESTAMP},
</if>
<if test="deployUser != null">
#{deployUser,jdbcType=VARCHAR},
</if>
<if test="ip != null">
#{ip,jdbcType=VARCHAR},
</if>
<if test="deployId != null">
#{deployId,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeployHistory">
update mnt_deploy_history
<set>
<if test="appName != null">
app_name = #{appName,jdbcType=VARCHAR},
</if>
<if test="deployDate != null">
deploy_date = #{deployDate,jdbcType=TIMESTAMP},
</if>
<if test="deployUser != null">
deploy_user = #{deployUser,jdbcType=VARCHAR},
</if>
<if test="ip != null">
ip = #{ip,jdbcType=VARCHAR},
</if>
<if test="deployId != null">
deploy_id = #{deployId,jdbcType=BIGINT},
</if>
</set>
where history_id = #{historyId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeployHistory">
update mnt_deploy_history
set app_name = #{appName,jdbcType=VARCHAR},
deploy_date = #{deployDate,jdbcType=TIMESTAMP},
deploy_user = #{deployUser,jdbcType=VARCHAR},
ip = #{ip,jdbcType=VARCHAR},
deploy_id = #{deployId,jdbcType=BIGINT}
where history_id = #{historyId,jdbcType=VARCHAR}
</update>
</mapper>

View File

@@ -1,106 +0,0 @@
<?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.MntDeployMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
<id column="deploy_id" jdbcType="BIGINT" property="deployId" />
<result column="app_id" jdbcType="BIGINT" property="appId" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
deploy_id, app_id, create_by, update_by, create_time, update_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from mnt_deploy
where deploy_id = #{deployId,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from mnt_deploy
where deploy_id = #{deployId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
insert into mnt_deploy (deploy_id, app_id, create_by,
update_by, create_time, update_time
)
values (#{deployId,jdbcType=BIGINT}, #{appId,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
insert into mnt_deploy
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deployId != null">
deploy_id,
</if>
<if test="appId != null">
app_id,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deployId != null">
#{deployId,jdbcType=BIGINT},
</if>
<if test="appId != null">
#{appId,jdbcType=BIGINT},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
update mnt_deploy
<set>
<if test="appId != null">
app_id = #{appId,jdbcType=BIGINT},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where deploy_id = #{deployId,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeploy">
update mnt_deploy
set app_id = #{appId,jdbcType=BIGINT},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where deploy_id = #{deployId,jdbcType=BIGINT}
</update>
</mapper>

View File

@@ -1,36 +0,0 @@
<?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.MntDeployServerMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.MntDeployServerKey">
<id column="deploy_id" jdbcType="BIGINT" property="deployId" />
<id column="server_id" jdbcType="BIGINT" property="serverId" />
</resultMap>
<delete id="deleteByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeployServerKey">
delete from mnt_deploy_server
where deploy_id = #{deployId,jdbcType=BIGINT}
and server_id = #{serverId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeployServerKey">
insert into mnt_deploy_server (deploy_id, server_id)
values (#{deployId,jdbcType=BIGINT}, #{serverId,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntDeployServerKey">
insert into mnt_deploy_server
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deployId != null">
deploy_id,
</if>
<if test="serverId != null">
server_id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deployId != null">
#{deployId,jdbcType=BIGINT},
</if>
<if test="serverId != null">
#{serverId,jdbcType=BIGINT},
</if>
</trim>
</insert>
</mapper>

View File

@@ -1,153 +0,0 @@
<?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.MntServerMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.MntServer">
<id column="server_id" jdbcType="BIGINT" property="serverId" />
<result column="account" jdbcType="VARCHAR" property="account" />
<result column="ip" jdbcType="VARCHAR" property="ip" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="port" jdbcType="INTEGER" property="port" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<sql id="Base_Column_List">
server_id, account, ip, name, password, port, create_by, update_by, create_time,
update_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from mnt_server
where server_id = #{serverId,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from mnt_server
where server_id = #{serverId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.MntServer">
insert into mnt_server (server_id, account, ip,
name, password, port,
create_by, update_by, create_time,
update_time)
values (#{serverId,jdbcType=BIGINT}, #{account,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR},
#{name,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{port,jdbcType=INTEGER},
#{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntServer">
insert into mnt_server
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="serverId != null">
server_id,
</if>
<if test="account != null">
account,
</if>
<if test="ip != null">
ip,
</if>
<if test="name != null">
name,
</if>
<if test="password != null">
password,
</if>
<if test="port != null">
port,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="serverId != null">
#{serverId,jdbcType=BIGINT},
</if>
<if test="account != null">
#{account,jdbcType=VARCHAR},
</if>
<if test="ip != null">
#{ip,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="password != null">
#{password,jdbcType=VARCHAR},
</if>
<if test="port != null">
#{port,jdbcType=INTEGER},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.MntServer">
update mnt_server
<set>
<if test="account != null">
account = #{account,jdbcType=VARCHAR},
</if>
<if test="ip != null">
ip = #{ip,jdbcType=VARCHAR},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="password != null">
password = #{password,jdbcType=VARCHAR},
</if>
<if test="port != null">
port = #{port,jdbcType=INTEGER},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where server_id = #{serverId,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.MntServer">
update mnt_server
set account = #{account,jdbcType=VARCHAR},
ip = #{ip,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
port = #{port,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where server_id = #{serverId,jdbcType=BIGINT}
</update>
</mapper>

View File

@@ -0,0 +1,194 @@
<?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.TbActivateInRecordMapper">
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbActivateInRecord" id="TbActivateInRecordMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="vipUserId" column="vip_user_id" jdbcType="INTEGER"/>
<result property="couponId" column="coupon_id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="type" column="type" jdbcType="INTEGER"/>
<result property="proId" column="pro_id" jdbcType="INTEGER"/>
<result property="fullAmount" column="full_amount" jdbcType="INTEGER"/>
<result property="discountAmount" column="discount_amount" jdbcType="INTEGER"/>
<result property="num" column="num" jdbcType="INTEGER"/>
<result property="overNum" column="over_num" jdbcType="INTEGER"/>
<result property="shopId" column="shop_id" jdbcType="INTEGER"/>
<result property="sourceActId" column="source_act_id" jdbcType="INTEGER"/>
<result property="sourceFlowId" column="source_flow_id" jdbcType="INTEGER"/>
<result property="useStartTime" column="use_start_time" jdbcType="TIMESTAMP"/>
<result property="useEndTime" column="use_end_time" jdbcType="TIMESTAMP"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
<result property="couponJson" column="coupon_json" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id
, vip_user_id, coupon_id, name, type, pro_id, full_amount, discount_amount, num, over_num, shop_id, source_act_id, source_flow_id, use_start_time, use_end_time, create_time, update_time, coupon_json </sql>
<!--查询单个-->
<select id="queryById" resultMap="TbActivateInRecordMap">
select
<include refid="Base_Column_List"/>
from tb_activate_in_record
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAll" resultMap="TbActivateInRecordMap">
select
<include refid="Base_Column_List"/>
from tb_activate_in_record
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="vipUserId != null">
and vip_user_id = #{vipUserId}
</if>
<if test="couponId != null">
and coupon_id = #{couponId}
</if>
<if test="name != null and name != ''">
and name = #{name}
</if>
<if test="type != null">
and type = #{type}
</if>
<if test="proId != null">
and pro_id = #{proId}
</if>
<if test="fullAmount != null">
and full_amount = #{fullAmount}
</if>
<if test="discountAmount != null">
and discount_amount = #{discountAmount}
</if>
<if test="num != null">
and num = #{num}
</if>
<if test="overNum != null">
and over_num = #{overNum}
</if>
<if test="shopId != null">
and shop_id = #{shopId}
</if>
<if test="sourceActId != null">
and source_act_id = #{sourceActId}
</if>
<if test="sourceFlowId != null">
and source_flow_id = #{sourceFlowId}
</if>
<if test="useStartTime != null">
and use_start_time = #{useStartTime}
</if>
<if test="useEndTime != null">
and use_end_time = #{useEndTime}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
<if test="couponJson != null and couponJson != ''">
and coupon_json = #{couponJson}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into tb_activate_in_record(vip_user_id, coupon_id, name, type, pro_id, full_amount, discount_amount, num,
over_num, shop_id, source_act_id, source_flow_id, use_start_time,
use_end_time, create_time, update_time, coupon_json)
values (#{vipUserId}, #{couponId}, #{name}, #{type}, #{proId}, #{fullAmount}, #{discountAmount}, #{num},
#{overNum}, #{shopId}, #{sourceActId}, #{sourceFlowId}, #{useStartTime}, #{useEndTime}, #{createTime},
#{updateTime}, #{couponJson})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tb_activate_in_record(vip_user_id, coupon_id, name, type, pro_id, full_amount, discount_amount, num,
over_num, shop_id, source_act_id, source_flow_id, use_start_time, use_end_time, create_time, update_time,
coupon_json)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.vipUserId}, #{entity.couponId}, #{entity.name}, #{entity.type}, #{entity.proId},
#{entity.fullAmount}, #{entity.discountAmount}, #{entity.num}, #{entity.overNum}, #{entity.shopId},
#{entity.sourceActId}, #{entity.sourceFlowId}, #{entity.useStartTime}, #{entity.useEndTime},
#{entity.createTime}, #{entity.updateTime}, #{entity.couponJson})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tb_activate_in_record
<set>
<if test="vipUserId != null">
vip_user_id = #{vipUserId},
</if>
<if test="couponId != null">
coupon_id = #{couponId},
</if>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="type != null">
type = #{type},
</if>
<if test="proId != null">
pro_id = #{proId},
</if>
<if test="fullAmount != null">
full_amount = #{fullAmount},
</if>
<if test="discountAmount != null">
discount_amount = #{discountAmount},
</if>
<if test="num != null">
num = #{num},
</if>
<if test="overNum != null">
over_num = #{overNum},
</if>
<if test="shopId != null">
shop_id = #{shopId},
</if>
<if test="sourceActId != null">
source_act_id = #{sourceActId},
</if>
<if test="sourceFlowId != null">
source_flow_id = #{sourceFlowId},
</if>
<if test="useStartTime != null">
use_start_time = #{useStartTime},
</if>
<if test="useEndTime != null">
use_end_time = #{useEndTime},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
<if test="couponJson != null and couponJson != ''">
coupon_json = #{couponJson},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tb_activate_in_record
where id = #{id}
</delete>
</mapper>

View File

@@ -1,127 +1,133 @@
<?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.TbActivateMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbActivate">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="shop_id" jdbcType="INTEGER" property="shopId" />
<result column="min_num" jdbcType="INTEGER" property="minNum" />
<result column="max_num" jdbcType="INTEGER" property="maxNum" />
<result column="handsel_num" jdbcType="DECIMAL" property="handselNum" />
<result column="handsel_type" jdbcType="VARCHAR" property="handselType" />
<result column="is_del" jdbcType="VARCHAR" property="isDel" />
</resultMap>
<sql id="Base_Column_List">
id, shop_id, min_num, max_num, handsel_num, handsel_type, is_del
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_activate
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_activate
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbActivate">
insert into tb_activate (id, shop_id, min_num,
max_num, handsel_num, handsel_type,
is_del)
values (#{id,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER}, #{minNum,jdbcType=INTEGER},
#{maxNum,jdbcType=INTEGER}, #{handselNum,jdbcType=DECIMAL}, #{handselType,jdbcType=VARCHAR},
#{isDel,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbActivate">
insert into tb_activate
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="minNum != null">
min_num,
</if>
<if test="maxNum != null">
max_num,
</if>
<if test="handselNum != null">
handsel_num,
</if>
<if test="handselType != null">
handsel_type,
</if>
<if test="isDel != null">
is_del,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="shopId != null">
#{shopId,jdbcType=INTEGER},
</if>
<if test="minNum != null">
#{minNum,jdbcType=INTEGER},
</if>
<if test="maxNum != null">
#{maxNum,jdbcType=INTEGER},
</if>
<if test="handselNum != null">
#{handselNum,jdbcType=DECIMAL},
</if>
<if test="handselType != null">
#{handselType,jdbcType=VARCHAR},
</if>
<if test="isDel != null">
#{isDel,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbActivate">
update tb_activate
<set>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=INTEGER},
</if>
<if test="minNum != null">
min_num = #{minNum,jdbcType=INTEGER},
</if>
<if test="maxNum != null">
max_num = #{maxNum,jdbcType=INTEGER},
</if>
<if test="handselNum != null">
handsel_num = #{handselNum,jdbcType=DECIMAL},
</if>
<if test="handselType != null">
handsel_type = #{handselType,jdbcType=VARCHAR},
</if>
<if test="isDel != null">
is_del = #{isDel,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbActivate">
update tb_activate
set shop_id = #{shopId,jdbcType=INTEGER},
min_num = #{minNum,jdbcType=INTEGER},
max_num = #{maxNum,jdbcType=INTEGER},
handsel_num = #{handselNum,jdbcType=DECIMAL},
handsel_type = #{handselType,jdbcType=VARCHAR},
is_del = #{isDel,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectByAmount" resultMap="BaseResultMap">
select *
from tb_activate
where shop_id = #{shopId}
and is_del = 0
and min_num &lt;= #{amount}
and max_num &gt;= #{amount}
ORDER BY max_num desc limit 1
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbActivate" id="TbActivateMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="shopId" column="shop_id" jdbcType="INTEGER"/>
<result property="amount" column="amount" jdbcType="INTEGER"/>
<result property="giftAmount" column="gift_amount" jdbcType="INTEGER"/>
<result property="isUseCoupon" column="is_use_coupon" jdbcType="INTEGER"/>
<result property="couponId" column="coupon_id" jdbcType="INTEGER"/>
<result property="num" column="num" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id
, shop_id, amount, gift_amount, is_use_coupon, coupon_id, num, create_time, update_time </sql>
<select id="selectByAmount" resultMap="TbActivateMap">
select *
from tb_activate
where shop_id = #{shopId}
and amount = #{amount}
ORDER BY amount desc
limit 1
</select>
</mapper>
<!--查询单个-->
<select id="queryById" resultMap="TbActivateMap">
select
<include refid="Base_Column_List"/>
from tb_activate
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAll" resultMap="TbActivateMap">
select
<include refid="Base_Column_List"/>
from tb_activate
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="shopId != null">
and shop_id = #{shopId}
</if>
<if test="amount != null">
and amount = #{amount}
</if>
<if test="giftAmount != null">
and gift_amount = #{giftAmount}
</if>
<if test="isUseCoupon != null">
and is_use_coupon = #{isUseCoupon}
</if>
<if test="couponId != null">
and coupon_id = #{couponId}
</if>
<if test="num != null">
and num = #{num}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into tb_activate(shop_id, amount, gift_amount, is_use_coupon, coupon_id, num, create_time, update_time)
values (#{shopId}, #{amount}, #{giftAmount}, #{isUseCoupon}, #{couponId}, #{num}, #{createTime}, #{updateTime})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tb_activate(shop_id, amount, gift_amount, is_use_coupon, coupon_id, num, create_time, update_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.shopId}, #{entity.amount}, #{entity.giftAmount}, #{entity.isUseCoupon}, #{entity.couponId},
#{entity.num}, #{entity.createTime}, #{entity.updateTime})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tb_activate
<set>
<if test="shopId != null">
shop_id = #{shopId},
</if>
<if test="amount != null">
amount = #{amount},
</if>
<if test="giftAmount != null">
gift_amount = #{giftAmount},
</if>
<if test="isUseCoupon != null">
is_use_coupon = #{isUseCoupon},
</if>
<if test="couponId != null">
coupon_id = #{couponId},
</if>
<if test="num != null">
num = #{num},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tb_activate
where id = #{id}
</delete>
</mapper>

View File

@@ -0,0 +1,140 @@
<?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.TbActivateOutRecordMapper">
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbActivateOutRecord" id="TbActivateOutRecordMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="shopId" column="shop_id" jdbcType="INTEGER"/>
<result property="orderId" column="order_id" jdbcType="VARCHAR"/>
<result property="giveId" column="give_id" jdbcType="INTEGER"/>
<result property="vipUserId" column="vip_user_id" jdbcType="INTEGER"/>
<result property="type" column="type" jdbcType="INTEGER"/>
<result property="useNum" column="use_num" jdbcType="INTEGER"/>
<result property="refNum" column="ref_num" jdbcType="INTEGER"/>
<result property="status" column="status" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id
, shop_id, order_id, give_id, vip_user_id, type, use_num, ref_num, status, create_time, update_time </sql>
<!--查询单个-->
<select id="queryById" resultMap="TbActivateOutRecordMap">
select
<include refid="Base_Column_List"/>
from tb_activate_out_record
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAll" resultMap="TbActivateOutRecordMap">
select
<include refid="Base_Column_List"/>
from tb_activate_out_record
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="shopId != null">
and shop_id = #{shopId}
</if>
<if test="orderId != null and orderId != ''">
and order_id = #{orderId}
</if>
<if test="giveId != null">
and give_id = #{giveId}
</if>
<if test="vipUserId != null">
and vip_user_id = #{vipUserId}
</if>
<if test="type != null">
and type = #{type}
</if>
<if test="useNum != null">
and use_num = #{useNum}
</if>
<if test="refNum != null">
and ref_num = #{refNum}
</if>
<if test="status != null and status != ''">
and status = #{status}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into tb_activate_out_record(shop_id, order_id, give_id, vip_user_id, type, use_num, ref_num, status,
create_time, update_time)
values (#{shopId}, #{orderId}, #{giveId}, #{vipUserId}, #{type}, #{useNum}, #{refNum}, #{status}, #{createTime},
#{updateTime})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tb_activate_out_record(shop_id, order_id, give_id, vip_user_id, type, use_num, ref_num, status,
create_time, update_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.shopId}, #{entity.orderId}, #{entity.giveId}, #{entity.vipUserId}, #{entity.type},
#{entity.useNum}, #{entity.refNum}, #{entity.status}, #{entity.createTime}, #{entity.updateTime})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tb_activate_out_record
<set>
<if test="shopId != null">
shop_id = #{shopId},
</if>
<if test="orderId != null and orderId != ''">
order_id = #{orderId},
</if>
<if test="giveId != null">
give_id = #{giveId},
</if>
<if test="vipUserId != null">
vip_user_id = #{vipUserId},
</if>
<if test="type != null">
type = #{type},
</if>
<if test="useNum != null">
use_num = #{useNum},
</if>
<if test="refNum != null">
ref_num = #{refNum},
</if>
<if test="status != null and status != ''">
status = #{status},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tb_activate_out_record
where id = #{id}
</delete>
</mapper>

View File

@@ -0,0 +1,109 @@
<?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.TbCouponProductMapper">
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbCouponProduct" id="TbCouponProductMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="couponId" column="coupon_id" jdbcType="INTEGER"/>
<result property="productId" column="product_id" jdbcType="INTEGER"/>
<result property="num" column="num" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id
, coupon_id, product_id, num, create_time, update_time </sql>
<!--查询单个-->
<select id="queryById" resultMap="TbCouponProductMap">
select
<include refid="Base_Column_List"/>
from tb_coupon_product
where id = #{id}
</select>
<select id="queryAllByCouponId" resultMap="TbCouponProductMap">
select
<include refid="Base_Column_List"/>
from tb_coupon_product
where
coupon_id = #{couponId}
</select>
<!--查询指定行数据-->
<select id="queryAll" resultMap="TbCouponProductMap">
select
<include refid="Base_Column_List"/>
from tb_coupon_product
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="couponId != null">
and coupon_id = #{couponId}
</if>
<if test="productId != null">
and product_id = #{productId}
</if>
<if test="num != null">
and num = #{num}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into tb_coupon_product(coupon_id, product_id, num, create_time, update_time)
values (#{couponId}, #{productId}, #{num}, #{createTime}, #{updateTime})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tb_coupon_product(coupon_id, product_id, num, create_time, update_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.couponId}, #{entity.productId}, #{entity.num}, #{entity.createTime}, #{entity.updateTime})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tb_coupon_product
<set>
<if test="couponId != null">
coupon_id = #{couponId},
</if>
<if test="productId != null">
product_id = #{productId},
</if>
<if test="num != null">
num = #{num},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tb_coupon_product
where id = #{id}
</delete>
</mapper>

View File

@@ -1,106 +0,0 @@
<?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.TbDeviceOperateInfoMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbDeviceOperateInfo">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="deviceNo" jdbcType="VARCHAR" property="deviceno" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
</resultMap>
<sql id="Base_Column_List">
id, deviceNo, type, shop_id, createTime, remark
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_device_operate_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_device_operate_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbDeviceOperateInfo">
insert into tb_device_operate_info (id, deviceNo, type,
shop_id, createTime, remark
)
values (#{id,jdbcType=INTEGER}, #{deviceno,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
#{shopId,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbDeviceOperateInfo">
insert into tb_device_operate_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="deviceno != null">
deviceNo,
</if>
<if test="type != null">
type,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="createtime != null">
createTime,
</if>
<if test="remark != null">
remark,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="deviceno != null">
#{deviceno,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
#{shopId,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbDeviceOperateInfo">
update tb_device_operate_info
<set>
<if test="deviceno != null">
deviceNo = #{deviceno,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
createTime = #{createtime,jdbcType=TIMESTAMP},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbDeviceOperateInfo">
update tb_device_operate_info
set deviceNo = #{deviceno,jdbcType=VARCHAR},
type = #{type,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@@ -1,198 +0,0 @@
<?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.TbPlussDeviceGoodsMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="deviceLogo" jdbcType="VARCHAR" property="devicelogo" />
<result column="introDesc" jdbcType="VARCHAR" property="introdesc" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="status" jdbcType="INTEGER" property="status" />
<result column="tagId" jdbcType="INTEGER" property="tagid" />
<result column="depositFlag" jdbcType="VARCHAR" property="depositflag" />
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
<result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods">
<result column="detail" jdbcType="LONGVARCHAR" property="detail" />
</resultMap>
<sql id="Base_Column_List">
id, code, name, deviceLogo, introDesc, sort, status, tagId, depositFlag, createTime,
updateTime
</sql>
<sql id="Blob_Column_List">
detail
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tb_pluss_device_goods
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_pluss_device_goods
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods">
insert into tb_pluss_device_goods (id, code, name,
deviceLogo, introDesc, sort,
status, tagId, depositFlag,
createTime, updateTime, detail
)
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{devicelogo,jdbcType=VARCHAR}, #{introdesc,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{tagid,jdbcType=INTEGER}, #{depositflag,jdbcType=VARCHAR},
#{createtime,jdbcType=TIMESTAMP}, #{updatetime,jdbcType=TIMESTAMP}, #{detail,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods">
insert into tb_pluss_device_goods
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="code != null">
code,
</if>
<if test="name != null">
name,
</if>
<if test="devicelogo != null">
deviceLogo,
</if>
<if test="introdesc != null">
introDesc,
</if>
<if test="sort != null">
sort,
</if>
<if test="status != null">
status,
</if>
<if test="tagid != null">
tagId,
</if>
<if test="depositflag != null">
depositFlag,
</if>
<if test="createtime != null">
createTime,
</if>
<if test="updatetime != null">
updateTime,
</if>
<if test="detail != null">
detail,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="name != null">
#{name,jdbcType=VARCHAR},
</if>
<if test="devicelogo != null">
#{devicelogo,jdbcType=VARCHAR},
</if>
<if test="introdesc != null">
#{introdesc,jdbcType=VARCHAR},
</if>
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
#{status,jdbcType=INTEGER},
</if>
<if test="tagid != null">
#{tagid,jdbcType=INTEGER},
</if>
<if test="depositflag != null">
#{depositflag,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
#{updatetime,jdbcType=TIMESTAMP},
</if>
<if test="detail != null">
#{detail,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods">
update tb_pluss_device_goods
<set>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="name != null">
name = #{name,jdbcType=VARCHAR},
</if>
<if test="devicelogo != null">
deviceLogo = #{devicelogo,jdbcType=VARCHAR},
</if>
<if test="introdesc != null">
introDesc = #{introdesc,jdbcType=VARCHAR},
</if>
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="status != null">
status = #{status,jdbcType=INTEGER},
</if>
<if test="tagid != null">
tagId = #{tagid,jdbcType=INTEGER},
</if>
<if test="depositflag != null">
depositFlag = #{depositflag,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
createTime = #{createtime,jdbcType=TIMESTAMP},
</if>
<if test="updatetime != null">
updateTime = #{updatetime,jdbcType=TIMESTAMP},
</if>
<if test="detail != null">
detail = #{detail,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods">
update tb_pluss_device_goods
set code = #{code,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
deviceLogo = #{devicelogo,jdbcType=VARCHAR},
introDesc = #{introdesc,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
tagId = #{tagid,jdbcType=INTEGER},
depositFlag = #{depositflag,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP},
updateTime = #{updatetime,jdbcType=TIMESTAMP},
detail = #{detail,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbPlussDeviceGoods">
update tb_pluss_device_goods
set code = #{code,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
deviceLogo = #{devicelogo,jdbcType=VARCHAR},
introDesc = #{introdesc,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
tagId = #{tagid,jdbcType=INTEGER},
depositFlag = #{depositflag,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP},
updateTime = #{updatetime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@@ -1,271 +0,0 @@
<?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.TbReceiptSalesMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbReceiptSales">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="logo" jdbcType="VARCHAR" property="logo" />
<result column="show_contact_info" jdbcType="BIT" property="showContactInfo" />
<result column="show_member" jdbcType="BIT" property="showMember" />
<result column="show_member_code" jdbcType="BIT" property="showMemberCode" />
<result column="show_member_score" jdbcType="BIT" property="showMemberScore" />
<result column="show_member_wallet" jdbcType="BIT" property="showMemberWallet" />
<result column="footer_remark" jdbcType="VARCHAR" property="footerRemark" />
<result column="show_cash_charge" jdbcType="BIT" property="showCashCharge" />
<result column="show_serial_no" jdbcType="BIT" property="showSerialNo" />
<result column="big_serial_no" jdbcType="BIT" property="bigSerialNo" />
<result column="header_text" jdbcType="VARCHAR" property="headerText" />
<result column="header_text_align" jdbcType="VARCHAR" property="headerTextAlign" />
<result column="footer_text" jdbcType="VARCHAR" property="footerText" />
<result column="footer_text_align" jdbcType="VARCHAR" property="footerTextAlign" />
<result column="footer_image" jdbcType="VARCHAR" property="footerImage" />
<result column="pre_print" jdbcType="VARCHAR" property="prePrint" />
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
</resultMap>
<sql id="Base_Column_List">
id, title, logo, show_contact_info, show_member, show_member_code, show_member_score,
show_member_wallet, footer_remark, show_cash_charge, show_serial_no, big_serial_no,
header_text, header_text_align, footer_text, footer_text_align, footer_image, pre_print,
created_at, updated_at
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_receipt_sales
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_receipt_sales
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbReceiptSales">
insert into tb_receipt_sales (id, title, logo,
show_contact_info, show_member, show_member_code,
show_member_score, show_member_wallet, footer_remark,
show_cash_charge, show_serial_no, big_serial_no,
header_text, header_text_align, footer_text,
footer_text_align, footer_image, pre_print,
created_at, updated_at)
values (#{id,jdbcType=INTEGER}, #{title,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR},
#{showContactInfo,jdbcType=BIT}, #{showMember,jdbcType=BIT}, #{showMemberCode,jdbcType=BIT},
#{showMemberScore,jdbcType=BIT}, #{showMemberWallet,jdbcType=BIT}, #{footerRemark,jdbcType=VARCHAR},
#{showCashCharge,jdbcType=BIT}, #{showSerialNo,jdbcType=BIT}, #{bigSerialNo,jdbcType=BIT},
#{headerText,jdbcType=VARCHAR}, #{headerTextAlign,jdbcType=VARCHAR}, #{footerText,jdbcType=VARCHAR},
#{footerTextAlign,jdbcType=VARCHAR}, #{footerImage,jdbcType=VARCHAR}, #{prePrint,jdbcType=VARCHAR},
#{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbReceiptSales">
insert into tb_receipt_sales
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="title != null">
title,
</if>
<if test="logo != null">
logo,
</if>
<if test="showContactInfo != null">
show_contact_info,
</if>
<if test="showMember != null">
show_member,
</if>
<if test="showMemberCode != null">
show_member_code,
</if>
<if test="showMemberScore != null">
show_member_score,
</if>
<if test="showMemberWallet != null">
show_member_wallet,
</if>
<if test="footerRemark != null">
footer_remark,
</if>
<if test="showCashCharge != null">
show_cash_charge,
</if>
<if test="showSerialNo != null">
show_serial_no,
</if>
<if test="bigSerialNo != null">
big_serial_no,
</if>
<if test="headerText != null">
header_text,
</if>
<if test="headerTextAlign != null">
header_text_align,
</if>
<if test="footerText != null">
footer_text,
</if>
<if test="footerTextAlign != null">
footer_text_align,
</if>
<if test="footerImage != null">
footer_image,
</if>
<if test="prePrint != null">
pre_print,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="logo != null">
#{logo,jdbcType=VARCHAR},
</if>
<if test="showContactInfo != null">
#{showContactInfo,jdbcType=BIT},
</if>
<if test="showMember != null">
#{showMember,jdbcType=BIT},
</if>
<if test="showMemberCode != null">
#{showMemberCode,jdbcType=BIT},
</if>
<if test="showMemberScore != null">
#{showMemberScore,jdbcType=BIT},
</if>
<if test="showMemberWallet != null">
#{showMemberWallet,jdbcType=BIT},
</if>
<if test="footerRemark != null">
#{footerRemark,jdbcType=VARCHAR},
</if>
<if test="showCashCharge != null">
#{showCashCharge,jdbcType=BIT},
</if>
<if test="showSerialNo != null">
#{showSerialNo,jdbcType=BIT},
</if>
<if test="bigSerialNo != null">
#{bigSerialNo,jdbcType=BIT},
</if>
<if test="headerText != null">
#{headerText,jdbcType=VARCHAR},
</if>
<if test="headerTextAlign != null">
#{headerTextAlign,jdbcType=VARCHAR},
</if>
<if test="footerText != null">
#{footerText,jdbcType=VARCHAR},
</if>
<if test="footerTextAlign != null">
#{footerTextAlign,jdbcType=VARCHAR},
</if>
<if test="footerImage != null">
#{footerImage,jdbcType=VARCHAR},
</if>
<if test="prePrint != null">
#{prePrint,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbReceiptSales">
update tb_receipt_sales
<set>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="logo != null">
logo = #{logo,jdbcType=VARCHAR},
</if>
<if test="showContactInfo != null">
show_contact_info = #{showContactInfo,jdbcType=BIT},
</if>
<if test="showMember != null">
show_member = #{showMember,jdbcType=BIT},
</if>
<if test="showMemberCode != null">
show_member_code = #{showMemberCode,jdbcType=BIT},
</if>
<if test="showMemberScore != null">
show_member_score = #{showMemberScore,jdbcType=BIT},
</if>
<if test="showMemberWallet != null">
show_member_wallet = #{showMemberWallet,jdbcType=BIT},
</if>
<if test="footerRemark != null">
footer_remark = #{footerRemark,jdbcType=VARCHAR},
</if>
<if test="showCashCharge != null">
show_cash_charge = #{showCashCharge,jdbcType=BIT},
</if>
<if test="showSerialNo != null">
show_serial_no = #{showSerialNo,jdbcType=BIT},
</if>
<if test="bigSerialNo != null">
big_serial_no = #{bigSerialNo,jdbcType=BIT},
</if>
<if test="headerText != null">
header_text = #{headerText,jdbcType=VARCHAR},
</if>
<if test="headerTextAlign != null">
header_text_align = #{headerTextAlign,jdbcType=VARCHAR},
</if>
<if test="footerText != null">
footer_text = #{footerText,jdbcType=VARCHAR},
</if>
<if test="footerTextAlign != null">
footer_text_align = #{footerTextAlign,jdbcType=VARCHAR},
</if>
<if test="footerImage != null">
footer_image = #{footerImage,jdbcType=VARCHAR},
</if>
<if test="prePrint != null">
pre_print = #{prePrint,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbReceiptSales">
update tb_receipt_sales
set title = #{title,jdbcType=VARCHAR},
logo = #{logo,jdbcType=VARCHAR},
show_contact_info = #{showContactInfo,jdbcType=BIT},
show_member = #{showMember,jdbcType=BIT},
show_member_code = #{showMemberCode,jdbcType=BIT},
show_member_score = #{showMemberScore,jdbcType=BIT},
show_member_wallet = #{showMemberWallet,jdbcType=BIT},
footer_remark = #{footerRemark,jdbcType=VARCHAR},
show_cash_charge = #{showCashCharge,jdbcType=BIT},
show_serial_no = #{showSerialNo,jdbcType=BIT},
big_serial_no = #{bigSerialNo,jdbcType=BIT},
header_text = #{headerText,jdbcType=VARCHAR},
header_text_align = #{headerTextAlign,jdbcType=VARCHAR},
footer_text = #{footerText,jdbcType=VARCHAR},
footer_text_align = #{footerTextAlign,jdbcType=VARCHAR},
footer_image = #{footerImage,jdbcType=VARCHAR},
pre_print = #{prePrint,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=BIGINT}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@@ -1,199 +0,0 @@
<?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.TbRenewalsPayLogMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="pay_type" jdbcType="VARCHAR" property="payType" />
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
<result column="order_id" jdbcType="VARCHAR" property="orderId" />
<result column="open_id" jdbcType="VARCHAR" property="openId" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="transaction_id" jdbcType="VARCHAR" property="transactionId" />
<result column="amount" jdbcType="DECIMAL" property="amount" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="attach" jdbcType="VARCHAR" property="attach" />
<result column="expired_at" jdbcType="BIGINT" property="expiredAt" />
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
</resultMap>
<sql id="Base_Column_List">
id, pay_type, shop_id, order_id, open_id, user_id, transaction_id, amount, status,
remark, attach, expired_at, created_at, updated_at
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from tb_renewals_pay_log
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_renewals_pay_log
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
insert into tb_renewals_pay_log (id, pay_type, shop_id,
order_id, open_id, user_id,
transaction_id, amount, status,
remark, attach, expired_at,
created_at, updated_at)
values (#{id,jdbcType=INTEGER}, #{payType,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR},
#{orderId,jdbcType=VARCHAR}, #{openId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR},
#{transactionId,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{status,jdbcType=TINYINT},
#{remark,jdbcType=VARCHAR}, #{attach,jdbcType=VARCHAR}, #{expiredAt,jdbcType=BIGINT},
#{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
insert into tb_renewals_pay_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="payType != null">
pay_type,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="orderId != null">
order_id,
</if>
<if test="openId != null">
open_id,
</if>
<if test="userId != null">
user_id,
</if>
<if test="transactionId != null">
transaction_id,
</if>
<if test="amount != null">
amount,
</if>
<if test="status != null">
status,
</if>
<if test="remark != null">
remark,
</if>
<if test="attach != null">
attach,
</if>
<if test="expiredAt != null">
expired_at,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="payType != null">
#{payType,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
#{shopId,jdbcType=VARCHAR},
</if>
<if test="orderId != null">
#{orderId,jdbcType=VARCHAR},
</if>
<if test="openId != null">
#{openId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="transactionId != null">
#{transactionId,jdbcType=VARCHAR},
</if>
<if test="amount != null">
#{amount,jdbcType=DECIMAL},
</if>
<if test="status != null">
#{status,jdbcType=TINYINT},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="attach != null">
#{attach,jdbcType=VARCHAR},
</if>
<if test="expiredAt != null">
#{expiredAt,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
update tb_renewals_pay_log
<set>
<if test="payType != null">
pay_type = #{payType,jdbcType=VARCHAR},
</if>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="orderId != null">
order_id = #{orderId,jdbcType=VARCHAR},
</if>
<if test="openId != null">
open_id = #{openId,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="transactionId != null">
transaction_id = #{transactionId,jdbcType=VARCHAR},
</if>
<if test="amount != null">
amount = #{amount,jdbcType=DECIMAL},
</if>
<if test="status != null">
status = #{status,jdbcType=TINYINT},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="attach != null">
attach = #{attach,jdbcType=VARCHAR},
</if>
<if test="expiredAt != null">
expired_at = #{expiredAt,jdbcType=BIGINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbRenewalsPayLog">
update tb_renewals_pay_log
set pay_type = #{payType,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
order_id = #{orderId,jdbcType=VARCHAR},
open_id = #{openId,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
transaction_id = #{transactionId,jdbcType=VARCHAR},
amount = #{amount,jdbcType=DECIMAL},
status = #{status,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR},
attach = #{attach,jdbcType=VARCHAR},
expired_at = #{expiredAt,jdbcType=BIGINT},
created_at = #{createdAt,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=BIGINT}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@@ -1,143 +0,0 @@
<?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.TbShopCashSpreadMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbShopCashSpread">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.system.cashierservice.entity.TbShopCashSpreadWithBLOBs">
<result column="sale_receipt" jdbcType="LONGVARCHAR" property="saleReceipt" />
<result column="triplicate_receipt" jdbcType="LONGVARCHAR" property="triplicateReceipt" />
<result column="screen_config" jdbcType="LONGVARCHAR" property="screenConfig" />
<result column="tag_config" jdbcType="LONGVARCHAR" property="tagConfig" />
<result column="scale_config" jdbcType="LONGVARCHAR" property="scaleConfig" />
</resultMap>
<sql id="Base_Column_List">
id, created_at, updated_at
</sql>
<sql id="Blob_Column_List">
sale_receipt, triplicate_receipt, screen_config, tag_config, scale_config
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tb_shop_cash_spread
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_shop_cash_spread
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCashSpreadWithBLOBs">
insert into tb_shop_cash_spread (id, created_at, updated_at,
sale_receipt, triplicate_receipt,
screen_config, tag_config, scale_config
)
values (#{id,jdbcType=INTEGER}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT},
#{saleReceipt,jdbcType=LONGVARCHAR}, #{triplicateReceipt,jdbcType=LONGVARCHAR},
#{screenConfig,jdbcType=LONGVARCHAR}, #{tagConfig,jdbcType=LONGVARCHAR}, #{scaleConfig,jdbcType=LONGVARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCashSpreadWithBLOBs">
insert into tb_shop_cash_spread
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="saleReceipt != null">
sale_receipt,
</if>
<if test="triplicateReceipt != null">
triplicate_receipt,
</if>
<if test="screenConfig != null">
screen_config,
</if>
<if test="tagConfig != null">
tag_config,
</if>
<if test="scaleConfig != null">
scale_config,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=BIGINT},
</if>
<if test="saleReceipt != null">
#{saleReceipt,jdbcType=LONGVARCHAR},
</if>
<if test="triplicateReceipt != null">
#{triplicateReceipt,jdbcType=LONGVARCHAR},
</if>
<if test="screenConfig != null">
#{screenConfig,jdbcType=LONGVARCHAR},
</if>
<if test="tagConfig != null">
#{tagConfig,jdbcType=LONGVARCHAR},
</if>
<if test="scaleConfig != null">
#{scaleConfig,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCashSpreadWithBLOBs">
update tb_shop_cash_spread
<set>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=BIGINT},
</if>
<if test="saleReceipt != null">
sale_receipt = #{saleReceipt,jdbcType=LONGVARCHAR},
</if>
<if test="triplicateReceipt != null">
triplicate_receipt = #{triplicateReceipt,jdbcType=LONGVARCHAR},
</if>
<if test="screenConfig != null">
screen_config = #{screenConfig,jdbcType=LONGVARCHAR},
</if>
<if test="tagConfig != null">
tag_config = #{tagConfig,jdbcType=LONGVARCHAR},
</if>
<if test="scaleConfig != null">
scale_config = #{scaleConfig,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCashSpreadWithBLOBs">
update tb_shop_cash_spread
set created_at = #{createdAt,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=BIGINT},
sale_receipt = #{saleReceipt,jdbcType=LONGVARCHAR},
triplicate_receipt = #{triplicateReceipt,jdbcType=LONGVARCHAR},
screen_config = #{screenConfig,jdbcType=LONGVARCHAR},
tag_config = #{tagConfig,jdbcType=LONGVARCHAR},
scale_config = #{scaleConfig,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCashSpread">
update tb_shop_cash_spread
set created_at = #{createdAt,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=BIGINT}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@@ -0,0 +1,232 @@
<?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.TbShopCouponMapper">
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbShopCoupon" id="TbShopCouponMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="shopId" column="shop_id" jdbcType="VARCHAR"/>
<result property="title" column="title" jdbcType="VARCHAR"/>
<result property="type" column="type" jdbcType="INTEGER"/>
<result property="fullAmount" column="full_amount" jdbcType="INTEGER"/>
<result property="discountAmount" column="discount_amount" jdbcType="INTEGER"/>
<result property="description" column="description" jdbcType="VARCHAR"/>
<result property="number" column="number" jdbcType="INTEGER"/>
<result property="leftNumber" column="left_number" jdbcType="INTEGER"/>
<result property="validityType" column="validity_type" jdbcType="VARCHAR"/>
<result property="validDays" column="valid_days" jdbcType="INTEGER"/>
<result property="daysToTakeEffect" column="days_to_take_effect" jdbcType="INTEGER"/>
<result property="validStartTime" column="valid_start_time" jdbcType="TIMESTAMP"/>
<result property="validEndTime" column="valid_end_time" jdbcType="TIMESTAMP"/>
<result property="userDays" column="user_days" jdbcType="VARCHAR"/>
<result property="useTimeType" column="use_time_type" jdbcType="VARCHAR"/>
<result property="useStartTime" column="use_start_time" jdbcType="VARCHAR"/>
<result property="useEndTime" column="use_end_time" jdbcType="VARCHAR"/>
<result property="useNumber" column="use_number" jdbcType="INTEGER"/>
<result property="editor" column="editor" jdbcType="VARCHAR"/>
<result property="status" column="status" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id
, shop_id, title, type, full_amount, discount_amount, description, number, left_number, validity_type, valid_days, days_to_take_effect, valid_start_time, valid_end_time, user_days, use_time_type, use_start_time, use_end_time, use_number, editor, status, create_time, update_time </sql>
<!--查询单个-->
<select id="queryById" resultMap="TbShopCouponMap">
select
<include refid="Base_Column_List"/>
from tb_shop_coupon
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAll" resultMap="TbShopCouponMap">
select
<include refid="Base_Column_List"/>
from tb_shop_coupon
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="shopId != null and shopId != ''">
and shop_id = #{shopId}
</if>
<if test="title != null and title != ''">
and title = #{title}
</if>
<if test="type != null">
and type = #{type}
</if>
<if test="fullAmount != null">
and full_amount = #{fullAmount}
</if>
<if test="discountAmount != null">
and discount_amount = #{discountAmount}
</if>
<if test="description != null and description != ''">
and description = #{description}
</if>
<if test="number != null">
and number = #{number}
</if>
<if test="leftNumber != null">
and left_number = #{leftNumber}
</if>
<if test="validityType != null and validityType != ''">
and validity_type = #{validityType}
</if>
<if test="validDays != null">
and valid_days = #{validDays}
</if>
<if test="daysToTakeEffect != null">
and days_to_take_effect = #{daysToTakeEffect}
</if>
<if test="validStartTime != null">
and valid_start_time = #{validStartTime}
</if>
<if test="validEndTime != null">
and valid_end_time = #{validEndTime}
</if>
<if test="userDays != null and userDays != ''">
and user_days = #{userDays}
</if>
<if test="useTimeType != null and useTimeType != ''">
and use_time_type = #{useTimeType}
</if>
<if test="useStartTime != null">
and use_start_time = #{useStartTime}
</if>
<if test="useEndTime != null">
and use_end_time = #{useEndTime}
</if>
<if test="useNumber != null">
and use_number = #{useNumber}
</if>
<if test="editor != null and editor != ''">
and editor = #{editor}
</if>
<if test="status != null">
and status = #{status}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into tb_shop_coupon(shop_id, title, type, full_amount, discount_amount, description, number, left_number,
validity_type, valid_days, days_to_take_effect, valid_start_time, valid_end_time,
user_days, use_time_type, use_start_time, use_end_time, use_number, editor, status,
create_time, update_time)
values (#{shopId}, #{title}, #{type}, #{fullAmount}, #{discountAmount}, #{description}, #{number},
#{leftNumber}, #{validityType}, #{validDays}, #{daysToTakeEffect}, #{validStartTime}, #{validEndTime},
#{userDays}, #{useTimeType}, #{useStartTime}, #{useEndTime}, #{useNumber}, #{editor}, #{status},
#{createTime}, #{updateTime})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tb_shop_coupon(shop_id, title, type, full_amount, discount_amount, description, number, left_number,
validity_type, valid_days, days_to_take_effect, valid_start_time, valid_end_time, user_days, use_time_type,
use_start_time, use_end_time, use_number, editor, status, create_time, update_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.shopId}, #{entity.title}, #{entity.type}, #{entity.fullAmount}, #{entity.discountAmount},
#{entity.description}, #{entity.number}, #{entity.leftNumber}, #{entity.validityType}, #{entity.validDays},
#{entity.daysToTakeEffect}, #{entity.validStartTime}, #{entity.validEndTime}, #{entity.userDays},
#{entity.useTimeType}, #{entity.useStartTime}, #{entity.useEndTime}, #{entity.useNumber}, #{entity.editor},
#{entity.status}, #{entity.createTime}, #{entity.updateTime})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tb_shop_coupon
<set>
<if test="shopId != null and shopId != ''">
shop_id = #{shopId},
</if>
<if test="title != null and title != ''">
title = #{title},
</if>
<if test="type != null">
type = #{type},
</if>
<if test="fullAmount != null">
full_amount = #{fullAmount},
</if>
<if test="discountAmount != null">
discount_amount = #{discountAmount},
</if>
<if test="description != null and description != ''">
description = #{description},
</if>
<if test="number != null">
number = #{number},
</if>
<if test="leftNumber != null">
left_number = #{leftNumber},
</if>
<if test="validityType != null and validityType != ''">
validity_type = #{validityType},
</if>
<if test="validDays != null">
valid_days = #{validDays},
</if>
<if test="daysToTakeEffect != null">
days_to_take_effect = #{daysToTakeEffect},
</if>
<if test="validStartTime != null">
valid_start_time = #{validStartTime},
</if>
<if test="validEndTime != null">
valid_end_time = #{validEndTime},
</if>
<if test="userDays != null and userDays != ''">
user_days = #{userDays},
</if>
<if test="useTimeType != null and useTimeType != ''">
use_time_type = #{useTimeType},
</if>
<if test="useStartTime != null">
use_start_time = #{useStartTime},
</if>
<if test="useEndTime != null">
use_end_time = #{useEndTime},
</if>
<if test="useNumber != null">
use_number = #{useNumber},
</if>
<if test="editor != null and editor != ''">
editor = #{editor},
</if>
<if test="status != null">
status = #{status},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tb_shop_coupon
where id = #{id}
</delete>
</mapper>

View File

@@ -1,325 +0,0 @@
<?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.TbShopCurrencyMapper">
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbShopCurrency">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
<result column="prepare_amount" jdbcType="DECIMAL" property="prepareAmount" />
<result column="currency" jdbcType="VARCHAR" property="currency" />
<result column="decimals_digits" jdbcType="TINYINT" property="decimalsDigits" />
<result column="discount_round" jdbcType="VARCHAR" property="discountRound" />
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
<result column="small_change" jdbcType="TINYINT" property="smallChange" />
<result column="enable_custom_discount" jdbcType="TINYINT" property="enableCustomDiscount" />
<result column="max_discount" jdbcType="DECIMAL" property="maxDiscount" />
<result column="max_percent" jdbcType="DOUBLE" property="maxPercent" />
<result column="biz_duration" jdbcType="VARCHAR" property="bizDuration" />
<result column="allow_web_pay" jdbcType="TINYINT" property="allowWebPay" />
<result column="is_auto_to_zero" jdbcType="TINYINT" property="isAutoToZero" />
<result column="is_include_tax_price" jdbcType="TINYINT" property="isIncludeTaxPrice" />
<result column="tax_number" jdbcType="VARCHAR" property="taxNumber" />
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
<result column="auto_lock_screen" jdbcType="TINYINT" property="autoLockScreen" />
<result column="voice_notification" jdbcType="TINYINT" property="voiceNotification" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
<result column="discount_configs" jdbcType="LONGVARCHAR" property="discountConfigs" />
<result column="service_charge" jdbcType="LONGVARCHAR" property="serviceCharge" />
</resultMap>
<sql id="Base_Column_List">
id, shop_id, prepare_amount, currency, decimals_digits, discount_round, merchant_id,
small_change, enable_custom_discount, max_discount, max_percent, biz_duration, allow_web_pay,
is_auto_to_zero, is_include_tax_price, tax_number, created_at, updated_at, auto_lock_screen,
voice_notification
</sql>
<sql id="Blob_Column_List">
discount_configs, service_charge
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tb_shop_currency
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from tb_shop_currency
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
insert into tb_shop_currency (id, shop_id, prepare_amount,
currency, decimals_digits, discount_round,
merchant_id, small_change, enable_custom_discount,
max_discount, max_percent, biz_duration,
allow_web_pay, is_auto_to_zero, is_include_tax_price,
tax_number, created_at, updated_at,
auto_lock_screen, voice_notification, discount_configs,
service_charge)
values (#{id,jdbcType=INTEGER}, #{shopId,jdbcType=VARCHAR}, #{prepareAmount,jdbcType=DECIMAL},
#{currency,jdbcType=VARCHAR}, #{decimalsDigits,jdbcType=TINYINT}, #{discountRound,jdbcType=VARCHAR},
#{merchantId,jdbcType=VARCHAR}, #{smallChange,jdbcType=TINYINT}, #{enableCustomDiscount,jdbcType=TINYINT},
#{maxDiscount,jdbcType=DECIMAL}, #{maxPercent,jdbcType=DOUBLE}, #{bizDuration,jdbcType=VARCHAR},
#{allowWebPay,jdbcType=TINYINT}, #{isAutoToZero,jdbcType=TINYINT}, #{isIncludeTaxPrice,jdbcType=TINYINT},
#{taxNumber,jdbcType=VARCHAR}, #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT},
#{autoLockScreen,jdbcType=TINYINT}, #{voiceNotification,jdbcType=TINYINT}, #{discountConfigs,jdbcType=LONGVARCHAR},
#{serviceCharge,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
insert into tb_shop_currency
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="shopId != null">
shop_id,
</if>
<if test="prepareAmount != null">
prepare_amount,
</if>
<if test="currency != null">
currency,
</if>
<if test="decimalsDigits != null">
decimals_digits,
</if>
<if test="discountRound != null">
discount_round,
</if>
<if test="merchantId != null">
merchant_id,
</if>
<if test="smallChange != null">
small_change,
</if>
<if test="enableCustomDiscount != null">
enable_custom_discount,
</if>
<if test="maxDiscount != null">
max_discount,
</if>
<if test="maxPercent != null">
max_percent,
</if>
<if test="bizDuration != null">
biz_duration,
</if>
<if test="allowWebPay != null">
allow_web_pay,
</if>
<if test="isAutoToZero != null">
is_auto_to_zero,
</if>
<if test="isIncludeTaxPrice != null">
is_include_tax_price,
</if>
<if test="taxNumber != null">
tax_number,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="autoLockScreen != null">
auto_lock_screen,
</if>
<if test="voiceNotification != null">
voice_notification,
</if>
<if test="discountConfigs != null">
discount_configs,
</if>
<if test="serviceCharge != null">
service_charge,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="shopId != null">
#{shopId,jdbcType=VARCHAR},
</if>
<if test="prepareAmount != null">
#{prepareAmount,jdbcType=DECIMAL},
</if>
<if test="currency != null">
#{currency,jdbcType=VARCHAR},
</if>
<if test="decimalsDigits != null">
#{decimalsDigits,jdbcType=TINYINT},
</if>
<if test="discountRound != null">
#{discountRound,jdbcType=VARCHAR},
</if>
<if test="merchantId != null">
#{merchantId,jdbcType=VARCHAR},
</if>
<if test="smallChange != null">
#{smallChange,jdbcType=TINYINT},
</if>
<if test="enableCustomDiscount != null">
#{enableCustomDiscount,jdbcType=TINYINT},
</if>
<if test="maxDiscount != null">
#{maxDiscount,jdbcType=DECIMAL},
</if>
<if test="maxPercent != null">
#{maxPercent,jdbcType=DOUBLE},
</if>
<if test="bizDuration != null">
#{bizDuration,jdbcType=VARCHAR},
</if>
<if test="allowWebPay != null">
#{allowWebPay,jdbcType=TINYINT},
</if>
<if test="isAutoToZero != null">
#{isAutoToZero,jdbcType=TINYINT},
</if>
<if test="isIncludeTaxPrice != null">
#{isIncludeTaxPrice,jdbcType=TINYINT},
</if>
<if test="taxNumber != null">
#{taxNumber,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=BIGINT},
</if>
<if test="autoLockScreen != null">
#{autoLockScreen,jdbcType=TINYINT},
</if>
<if test="voiceNotification != null">
#{voiceNotification,jdbcType=TINYINT},
</if>
<if test="discountConfigs != null">
#{discountConfigs,jdbcType=LONGVARCHAR},
</if>
<if test="serviceCharge != null">
#{serviceCharge,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
update tb_shop_currency
<set>
<if test="shopId != null">
shop_id = #{shopId,jdbcType=VARCHAR},
</if>
<if test="prepareAmount != null">
prepare_amount = #{prepareAmount,jdbcType=DECIMAL},
</if>
<if test="currency != null">
currency = #{currency,jdbcType=VARCHAR},
</if>
<if test="decimalsDigits != null">
decimals_digits = #{decimalsDigits,jdbcType=TINYINT},
</if>
<if test="discountRound != null">
discount_round = #{discountRound,jdbcType=VARCHAR},
</if>
<if test="merchantId != null">
merchant_id = #{merchantId,jdbcType=VARCHAR},
</if>
<if test="smallChange != null">
small_change = #{smallChange,jdbcType=TINYINT},
</if>
<if test="enableCustomDiscount != null">
enable_custom_discount = #{enableCustomDiscount,jdbcType=TINYINT},
</if>
<if test="maxDiscount != null">
max_discount = #{maxDiscount,jdbcType=DECIMAL},
</if>
<if test="maxPercent != null">
max_percent = #{maxPercent,jdbcType=DOUBLE},
</if>
<if test="bizDuration != null">
biz_duration = #{bizDuration,jdbcType=VARCHAR},
</if>
<if test="allowWebPay != null">
allow_web_pay = #{allowWebPay,jdbcType=TINYINT},
</if>
<if test="isAutoToZero != null">
is_auto_to_zero = #{isAutoToZero,jdbcType=TINYINT},
</if>
<if test="isIncludeTaxPrice != null">
is_include_tax_price = #{isIncludeTaxPrice,jdbcType=TINYINT},
</if>
<if test="taxNumber != null">
tax_number = #{taxNumber,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=BIGINT},
</if>
<if test="autoLockScreen != null">
auto_lock_screen = #{autoLockScreen,jdbcType=TINYINT},
</if>
<if test="voiceNotification != null">
voice_notification = #{voiceNotification,jdbcType=TINYINT},
</if>
<if test="discountConfigs != null">
discount_configs = #{discountConfigs,jdbcType=LONGVARCHAR},
</if>
<if test="serviceCharge != null">
service_charge = #{serviceCharge,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrencyWithBLOBs">
update tb_shop_currency
set shop_id = #{shopId,jdbcType=VARCHAR},
prepare_amount = #{prepareAmount,jdbcType=DECIMAL},
currency = #{currency,jdbcType=VARCHAR},
decimals_digits = #{decimalsDigits,jdbcType=TINYINT},
discount_round = #{discountRound,jdbcType=VARCHAR},
merchant_id = #{merchantId,jdbcType=VARCHAR},
small_change = #{smallChange,jdbcType=TINYINT},
enable_custom_discount = #{enableCustomDiscount,jdbcType=TINYINT},
max_discount = #{maxDiscount,jdbcType=DECIMAL},
max_percent = #{maxPercent,jdbcType=DOUBLE},
biz_duration = #{bizDuration,jdbcType=VARCHAR},
allow_web_pay = #{allowWebPay,jdbcType=TINYINT},
is_auto_to_zero = #{isAutoToZero,jdbcType=TINYINT},
is_include_tax_price = #{isIncludeTaxPrice,jdbcType=TINYINT},
tax_number = #{taxNumber,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=BIGINT},
auto_lock_screen = #{autoLockScreen,jdbcType=TINYINT},
voice_notification = #{voiceNotification,jdbcType=TINYINT},
discount_configs = #{discountConfigs,jdbcType=LONGVARCHAR},
service_charge = #{serviceCharge,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopCurrency">
update tb_shop_currency
set shop_id = #{shopId,jdbcType=VARCHAR},
prepare_amount = #{prepareAmount,jdbcType=DECIMAL},
currency = #{currency,jdbcType=VARCHAR},
decimals_digits = #{decimalsDigits,jdbcType=TINYINT},
discount_round = #{discountRound,jdbcType=VARCHAR},
merchant_id = #{merchantId,jdbcType=VARCHAR},
small_change = #{smallChange,jdbcType=TINYINT},
enable_custom_discount = #{enableCustomDiscount,jdbcType=TINYINT},
max_discount = #{maxDiscount,jdbcType=DECIMAL},
max_percent = #{maxPercent,jdbcType=DOUBLE},
biz_duration = #{bizDuration,jdbcType=VARCHAR},
allow_web_pay = #{allowWebPay,jdbcType=TINYINT},
is_auto_to_zero = #{isAutoToZero,jdbcType=TINYINT},
is_include_tax_price = #{isIncludeTaxPrice,jdbcType=TINYINT},
tax_number = #{taxNumber,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=BIGINT},
auto_lock_screen = #{autoLockScreen,jdbcType=TINYINT},
voice_notification = #{voiceNotification,jdbcType=TINYINT}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@@ -1,637 +1,110 @@
<?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_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_custom" jdbcType="VARCHAR" property="isCustom" />
<result column="is_return" jdbcType="VARCHAR" property="isReturn" />
<result column="is_member_in" jdbcType="VARCHAR" property="isMemberIn" />
<result column="is_member_return" jdbcType="VARCHAR" property="isMemberReturn" />
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbShopInfo" id="TbShopInfoMap">
<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="VARCHAR"/>
<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="VARCHAR"/>
<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>
<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>
<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_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,is_custom,is_return,is_member_in,is_member_return,
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">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from tb_shop_info
where id = #{id,jdbcType=INTEGER}
</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>
<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, 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="selectAll" resultMap="BaseResultMap">
select * from tb_shop_info
<!--查询单个-->
<select id="selectByPrimaryKey" resultMap="TbShopInfoMap">
select
<include refid="Base_Column_List"/>
from tb_shop_info
where id = #{id}
</select>
<select id="selectAllByCreateTime" resultMap="BaseResultMap">
<!--查询指定行数据-->
<select id="selectAll" resultMap="TbShopInfoMap">
select
<include refid="Base_Column_List"/>
from tb_shop_info
</select>
<select id="selectAllByCreateTime" resultMap="TbShopInfoMap">
SELECT
*
FROM
tb_shop_info t
WHERE
(
FROM_UNIXTIME( t.created_at / 1000 ) BETWEEN NOW() - INTERVAL 15 MINUTE
AND NOW())
OR (
FROM_UNIXTIME( t.updated_at / 1000 ) BETWEEN NOW() - INTERVAL 15 MINUTE
AND NOW());
</select>
</mapper>
SELECT
*
FROM
tb_shop_info t
WHERE
(
FROM_UNIXTIME( t.created_at / 1000 ) BETWEEN NOW() - INTERVAL 15 MINUTE
AND NOW())
OR (
FROM_UNIXTIME( t.updated_at / 1000 ) BETWEEN NOW() - INTERVAL 15 MINUTE
AND NOW());
</select>
</mapper>