多余内容删除
This commit is contained in:
@@ -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>
|
||||
@@ -1,318 +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.TbDeviceStockMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbDeviceStock">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||
<result column="snNo" jdbcType="VARCHAR" property="snno" />
|
||||
<result column="orderNo" jdbcType="VARCHAR" property="orderno" />
|
||||
<result column="price" jdbcType="DECIMAL" property="price" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="groupNo" jdbcType="VARCHAR" property="groupno" />
|
||||
<result column="buyMercName" jdbcType="VARCHAR" property="buymercname" />
|
||||
<result column="buyMercId" jdbcType="VARCHAR" property="buymercid" />
|
||||
<result column="actMercName" jdbcType="VARCHAR" property="actmercname" />
|
||||
<result column="actMercId" jdbcType="VARCHAR" property="actmercid" />
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
|
||||
<result column="createBy" jdbcType="VARCHAR" property="createby" />
|
||||
<result column="delFlag" jdbcType="VARCHAR" property="delflag" />
|
||||
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
|
||||
<result column="deviceNo" jdbcType="VARCHAR" property="deviceno" />
|
||||
<result column="belongUserId" jdbcType="INTEGER" property="belonguserid" />
|
||||
<result column="extractUserId" jdbcType="INTEGER" property="extractuserid" />
|
||||
<result column="roleCode" jdbcType="VARCHAR" property="rolecode" />
|
||||
<result column="inStockTime" jdbcType="TIMESTAMP" property="instocktime" />
|
||||
<result column="transferStatus" jdbcType="VARCHAR" property="transferstatus" />
|
||||
<result column="bindTime" jdbcType="TIMESTAMP" property="bindtime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, code, snNo, orderNo, price, type, groupNo, buyMercName, buyMercId, actMercName,
|
||||
actMercId, status, createTime, createBy, delFlag, remarks, updateTime, deviceNo,
|
||||
belongUserId, extractUserId, roleCode, inStockTime, transferStatus, bindTime
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_device_stock
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_device_stock
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbDeviceStock">
|
||||
insert into tb_device_stock (id, code, snNo,
|
||||
orderNo, price, type,
|
||||
groupNo, buyMercName, buyMercId,
|
||||
actMercName, actMercId, status,
|
||||
createTime, createBy, delFlag,
|
||||
remarks, updateTime, deviceNo,
|
||||
belongUserId, extractUserId, roleCode,
|
||||
inStockTime, transferStatus, bindTime
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{snno,jdbcType=VARCHAR},
|
||||
#{orderno,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{type,jdbcType=VARCHAR},
|
||||
#{groupno,jdbcType=VARCHAR}, #{buymercname,jdbcType=VARCHAR}, #{buymercid,jdbcType=VARCHAR},
|
||||
#{actmercname,jdbcType=VARCHAR}, #{actmercid,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
|
||||
#{createtime,jdbcType=TIMESTAMP}, #{createby,jdbcType=VARCHAR}, #{delflag,jdbcType=VARCHAR},
|
||||
#{remarks,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, #{deviceno,jdbcType=VARCHAR},
|
||||
#{belonguserid,jdbcType=INTEGER}, #{extractuserid,jdbcType=INTEGER}, #{rolecode,jdbcType=VARCHAR},
|
||||
#{instocktime,jdbcType=TIMESTAMP}, #{transferstatus,jdbcType=VARCHAR}, #{bindtime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbDeviceStock">
|
||||
insert into tb_device_stock
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="code != null">
|
||||
code,
|
||||
</if>
|
||||
<if test="snno != null">
|
||||
snNo,
|
||||
</if>
|
||||
<if test="orderno != null">
|
||||
orderNo,
|
||||
</if>
|
||||
<if test="price != null">
|
||||
price,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
</if>
|
||||
<if test="groupno != null">
|
||||
groupNo,
|
||||
</if>
|
||||
<if test="buymercname != null">
|
||||
buyMercName,
|
||||
</if>
|
||||
<if test="buymercid != null">
|
||||
buyMercId,
|
||||
</if>
|
||||
<if test="actmercname != null">
|
||||
actMercName,
|
||||
</if>
|
||||
<if test="actmercid != null">
|
||||
actMercId,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="createtime != null">
|
||||
createTime,
|
||||
</if>
|
||||
<if test="createby != null">
|
||||
createBy,
|
||||
</if>
|
||||
<if test="delflag != null">
|
||||
delFlag,
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
remarks,
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
updateTime,
|
||||
</if>
|
||||
<if test="deviceno != null">
|
||||
deviceNo,
|
||||
</if>
|
||||
<if test="belonguserid != null">
|
||||
belongUserId,
|
||||
</if>
|
||||
<if test="extractuserid != null">
|
||||
extractUserId,
|
||||
</if>
|
||||
<if test="rolecode != null">
|
||||
roleCode,
|
||||
</if>
|
||||
<if test="instocktime != null">
|
||||
inStockTime,
|
||||
</if>
|
||||
<if test="transferstatus != null">
|
||||
transferStatus,
|
||||
</if>
|
||||
<if test="bindtime != null">
|
||||
bindTime,
|
||||
</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="snno != null">
|
||||
#{snno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderno != null">
|
||||
#{orderno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="price != null">
|
||||
#{price,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="groupno != null">
|
||||
#{groupno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="buymercname != null">
|
||||
#{buymercname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="buymercid != null">
|
||||
#{buymercid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="actmercname != null">
|
||||
#{actmercname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="actmercid != null">
|
||||
#{actmercid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createtime != null">
|
||||
#{createtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createby != null">
|
||||
#{createby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="delflag != null">
|
||||
#{delflag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
#{remarks,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
#{updatetime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="deviceno != null">
|
||||
#{deviceno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="belonguserid != null">
|
||||
#{belonguserid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="extractuserid != null">
|
||||
#{extractuserid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="rolecode != null">
|
||||
#{rolecode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="instocktime != null">
|
||||
#{instocktime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="transferstatus != null">
|
||||
#{transferstatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bindtime != null">
|
||||
#{bindtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbDeviceStock">
|
||||
update tb_device_stock
|
||||
<set>
|
||||
<if test="code != null">
|
||||
code = #{code,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="snno != null">
|
||||
snNo = #{snno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderno != null">
|
||||
orderNo = #{orderno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="price != null">
|
||||
price = #{price,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="groupno != null">
|
||||
groupNo = #{groupno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="buymercname != null">
|
||||
buyMercName = #{buymercname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="buymercid != null">
|
||||
buyMercId = #{buymercid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="actmercname != null">
|
||||
actMercName = #{actmercname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="actmercid != null">
|
||||
actMercId = #{actmercid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createtime != null">
|
||||
createTime = #{createtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createby != null">
|
||||
createBy = #{createby,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="delflag != null">
|
||||
delFlag = #{delflag,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
remarks = #{remarks,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
updateTime = #{updatetime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="deviceno != null">
|
||||
deviceNo = #{deviceno,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="belonguserid != null">
|
||||
belongUserId = #{belonguserid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="extractuserid != null">
|
||||
extractUserId = #{extractuserid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="rolecode != null">
|
||||
roleCode = #{rolecode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="instocktime != null">
|
||||
inStockTime = #{instocktime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="transferstatus != null">
|
||||
transferStatus = #{transferstatus,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="bindtime != null">
|
||||
bindTime = #{bindtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbDeviceStock">
|
||||
update tb_device_stock
|
||||
set code = #{code,jdbcType=VARCHAR},
|
||||
snNo = #{snno,jdbcType=VARCHAR},
|
||||
orderNo = #{orderno,jdbcType=VARCHAR},
|
||||
price = #{price,jdbcType=DECIMAL},
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
groupNo = #{groupno,jdbcType=VARCHAR},
|
||||
buyMercName = #{buymercname,jdbcType=VARCHAR},
|
||||
buyMercId = #{buymercid,jdbcType=VARCHAR},
|
||||
actMercName = #{actmercname,jdbcType=VARCHAR},
|
||||
actMercId = #{actmercid,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
createTime = #{createtime,jdbcType=TIMESTAMP},
|
||||
createBy = #{createby,jdbcType=VARCHAR},
|
||||
delFlag = #{delflag,jdbcType=VARCHAR},
|
||||
remarks = #{remarks,jdbcType=VARCHAR},
|
||||
updateTime = #{updatetime,jdbcType=TIMESTAMP},
|
||||
deviceNo = #{deviceno,jdbcType=VARCHAR},
|
||||
belongUserId = #{belonguserid,jdbcType=INTEGER},
|
||||
extractUserId = #{extractuserid,jdbcType=INTEGER},
|
||||
roleCode = #{rolecode,jdbcType=VARCHAR},
|
||||
inStockTime = #{instocktime,jdbcType=TIMESTAMP},
|
||||
transferStatus = #{transferstatus,jdbcType=VARCHAR},
|
||||
bindTime = #{bindtime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -1,93 +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.TbIntegralFlowMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbIntegralFlow">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="num" jdbcType="DECIMAL" property="num" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, user_id, num, create_time, update_time
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_integral_flow
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_integral_flow
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbIntegralFlow">
|
||||
insert into tb_integral_flow (id, user_id, num,
|
||||
create_time, update_time)
|
||||
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{num,jdbcType=DECIMAL},
|
||||
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbIntegralFlow">
|
||||
insert into tb_integral_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="num != null">
|
||||
num,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="num != null">
|
||||
#{num,jdbcType=DECIMAL},
|
||||
</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.TbIntegralFlow">
|
||||
update tb_integral_flow
|
||||
<set>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="num != null">
|
||||
num = #{num,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbIntegralFlow">
|
||||
update tb_integral_flow
|
||||
set user_id = #{userId,jdbcType=VARCHAR},
|
||||
num = #{num,jdbcType=DECIMAL},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -1,109 +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.TbIntegralMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbIntegral">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="num" jdbcType="DECIMAL" property="num" />
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, user_id, num, status, create_time, update_time
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_integral
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectAllByUserId" resultType="com.chaozhanggui.system.cashierservice.entity.TbIntegral">
|
||||
select * from tb_integral where user_id = #{userId} and status = 'CREATE'
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_integral
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbIntegral">
|
||||
insert into tb_integral (id, user_id, num,
|
||||
status, create_time, update_time
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{num,jdbcType=DECIMAL},
|
||||
#{status,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbIntegral">
|
||||
insert into tb_integral
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="num != null">
|
||||
num,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="num != null">
|
||||
#{num,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,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.TbIntegral">
|
||||
update tb_integral
|
||||
<set>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="num != null">
|
||||
num = #{num,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,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 id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbIntegral">
|
||||
update tb_integral
|
||||
set user_id = #{userId,jdbcType=VARCHAR},
|
||||
num = #{num,jdbcType=DECIMAL},
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -1,54 +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.TbMerchantCouponMapper">
|
||||
|
||||
<resultMap type="com.chaozhanggui.system.cashierservice.entity.TbMerchantCoupon" id="TbMerchantCouponMap">
|
||||
<result property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||
<result property="title" column="title" jdbcType="VARCHAR"/>
|
||||
<result property="templateId" column="template_id" jdbcType="VARCHAR"/>
|
||||
<result property="shopId" column="shop_id" jdbcType="VARCHAR"/>
|
||||
<result property="shopSnap" column="shop_snap" jdbcType="VARCHAR"/>
|
||||
<result property="fromTime" column="from_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="toTime" column="to_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="limitNumber" column="limit_number" jdbcType="VARCHAR"/>
|
||||
<result property="useNumber" column="use_number" jdbcType="VARCHAR"/>
|
||||
<result property="number" column="number" jdbcType="INTEGER"/>
|
||||
<result property="leftNumber" column="left_number" jdbcType="VARCHAR"/>
|
||||
<result property="amount" column="amount" jdbcType="NUMERIC"/>
|
||||
<result property="limitAmount" column="limit_amount" jdbcType="NUMERIC"/>
|
||||
<result property="isShow" column="is_show" jdbcType="INTEGER"/>
|
||||
<result property="pic" column="pic" jdbcType="VARCHAR"/>
|
||||
<result property="type" column="type" jdbcType="INTEGER"/>
|
||||
<result property="ratio" column="ratio" jdbcType="NUMERIC"/>
|
||||
<result property="maxRatioAmount" column="max_ratio_amount" jdbcType="NUMERIC"/>
|
||||
<result property="track" column="track" jdbcType="VARCHAR"/>
|
||||
<result property="classType" column="class_type" jdbcType="VARCHAR"/>
|
||||
<result property="effectType" column="effect_type" jdbcType="INTEGER"/>
|
||||
<result property="effectDays" column="effect_days" jdbcType="INTEGER"/>
|
||||
<result property="relationIds" column="relation_ids" jdbcType="VARCHAR"/>
|
||||
<result property="relationList" column="relation_list" jdbcType="VARCHAR"/>
|
||||
<result property="editor" column="editor" jdbcType="VARCHAR"/>
|
||||
<result property="note" column="note" jdbcType="VARCHAR"/>
|
||||
<result property="createdAt" column="created_at" jdbcType="INTEGER"/>
|
||||
<result property="updatedAt" column="updated_at" jdbcType="INTEGER"/>
|
||||
<result property="furnishMeal" column="furnish_meal" jdbcType="INTEGER"/>
|
||||
<result property="furnishExpress" column="furnish_express" jdbcType="INTEGER"/>
|
||||
<result property="furnishDraw" column="furnish_draw" jdbcType="INTEGER"/>
|
||||
<result property="furnishVir" column="furnish_vir" jdbcType="INTEGER"/>
|
||||
<result property="disableDistribute" column="disable_distribute" jdbcType="INTEGER"/>
|
||||
<result property="merchantId" column="merchant_id" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="TbMerchantCouponMap">
|
||||
select
|
||||
id, status, title, template_id, shop_id, shop_snap, from_time, to_time, limit_number,use_number, number, left_number, amount, limit_amount, is_show, pic, type, ratio, max_ratio_amount, track, class_type, effect_type, effect_days, relation_ids, relation_list, editor, note, created_at, updated_at, furnish_meal, furnish_express, furnish_draw, furnish_vir, disable_distribute, merchant_id
|
||||
from tb_merchant_coupon
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -1,71 +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.TbParamsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbParams">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="integral_ratio" jdbcType="DECIMAL" property="integralRatio" />
|
||||
<result column="trade_ratio" jdbcType="DECIMAL" property="tradeRatio" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, integral_ratio, trade_ratio
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_params
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_params
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbParams">
|
||||
insert into tb_params (id, integral_ratio, trade_ratio
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{integralRatio,jdbcType=DECIMAL}, #{tradeRatio,jdbcType=DECIMAL}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbParams">
|
||||
insert into tb_params
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="integralRatio != null">
|
||||
integral_ratio,
|
||||
</if>
|
||||
<if test="tradeRatio != null">
|
||||
trade_ratio,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="integralRatio != null">
|
||||
#{integralRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="tradeRatio != null">
|
||||
#{tradeRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbParams">
|
||||
update tb_params
|
||||
<set>
|
||||
<if test="integralRatio != null">
|
||||
integral_ratio = #{integralRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="tradeRatio != null">
|
||||
trade_ratio = #{tradeRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbParams">
|
||||
update tb_params
|
||||
set integral_ratio = #{integralRatio,jdbcType=DECIMAL},
|
||||
trade_ratio = #{tradeRatio,jdbcType=DECIMAL}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -1,125 +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.TbReleaseFlowMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbReleaseFlow">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="num" jdbcType="DECIMAL" property="num" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="from_source" jdbcType="VARCHAR" property="fromSource" />
|
||||
<result column="operation_type" jdbcType="VARCHAR" property="operationType" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, user_id, num, type, remark, from_source, create_time,operation_type
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_release_flow
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectByUserId" resultType="com.chaozhanggui.system.cashierservice.entity.TbReleaseFlow"
|
||||
parameterType="java.lang.String">
|
||||
select * from tb_release_flow where user_id = #{userId}
|
||||
</select>
|
||||
<select id="selectAll" resultType="com.chaozhanggui.system.cashierservice.entity.TbReleaseFlow">
|
||||
select trf.*,tui.nick_name as nickName,tui.mini_app_open_id as openId from tb_release_flow trf left join tb_user_info tui on trf.user_id = tui.id
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_release_flow
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbReleaseFlow">
|
||||
insert into tb_release_flow (id, user_id, num,
|
||||
type, remark, from_source,
|
||||
create_time,operation_type)
|
||||
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{num,jdbcType=DECIMAL},
|
||||
#{type,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{fromSource,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP}, #{operationType,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbReleaseFlow">
|
||||
insert into tb_release_flow
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="num != null">
|
||||
num,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="fromSource != null">
|
||||
from_source,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="num != null">
|
||||
#{num,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fromSource != null">
|
||||
#{fromSource,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbReleaseFlow">
|
||||
update tb_release_flow
|
||||
<set>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="num != null">
|
||||
num = #{num,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fromSource != null">
|
||||
from_source = #{fromSource,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbReleaseFlow">
|
||||
update tb_release_flow
|
||||
set user_id = #{userId,jdbcType=VARCHAR},
|
||||
num = #{num,jdbcType=DECIMAL},
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
from_source = #{fromSource,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -436,9 +436,6 @@
|
||||
<select id="selectByOpenId" resultType="com.chaozhanggui.system.cashierservice.entity.TbShopUser">
|
||||
select * from tb_shop_user where mini_open_id = #{openId}
|
||||
</select>
|
||||
<select id="selectParams" resultType="com.chaozhanggui.system.cashierservice.entity.TbParams">
|
||||
select * from tb_params where id = 1
|
||||
</select>
|
||||
|
||||
<select id="selectByUserId" resultType="com.chaozhanggui.system.cashierservice.entity.vo.ShopUserListVo">
|
||||
SELECT
|
||||
|
||||
@@ -1,154 +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.TbSplitAccountsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbSplitAccounts">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="merchant_id" jdbcType="INTEGER" property="merchantId" />
|
||||
<result column="shop_id" jdbcType="INTEGER" property="shopId" />
|
||||
<result column="coupons_price" jdbcType="DECIMAL" property="couponsPrice" />
|
||||
<result column="conpons_amount" jdbcType="DECIMAL" property="conponsAmount" />
|
||||
<result column="is_split" jdbcType="VARCHAR" property="isSplit" />
|
||||
<result column="order_amount" jdbcType="DECIMAL" property="orderAmount" />
|
||||
<result column="origin_amount" jdbcType="DECIMAL" property="originAmount" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="split_time" jdbcType="TIMESTAMP" property="splitTime" />
|
||||
<result column="trade_day" jdbcType="VARCHAR" property="tradeDay" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, merchant_id, shop_id, coupons_price, conpons_amount, is_split, order_amount,
|
||||
create_time, split_time, trade_day,origin_amount
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_split_accounts
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_split_accounts
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbSplitAccounts">
|
||||
insert into tb_split_accounts (id, merchant_id, shop_id,
|
||||
coupons_price, conpons_amount, is_split,
|
||||
order_amount, create_time, split_time,
|
||||
trade_day,origin_amount)
|
||||
values (#{id,jdbcType=INTEGER}, #{merchantId,jdbcType=INTEGER}, #{shopId,jdbcType=INTEGER},
|
||||
#{couponsPrice,jdbcType=DECIMAL}, #{conponsAmount,jdbcType=DECIMAL}, #{isSplit,jdbcType=VARCHAR},
|
||||
#{orderAmount,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{splitTime,jdbcType=TIMESTAMP},
|
||||
#{tradeDay,jdbcType=VARCHAR},#{originAmount,jdbcType=DECIMAL})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbSplitAccounts">
|
||||
insert into tb_split_accounts
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
merchant_id,
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
shop_id,
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
coupons_price,
|
||||
</if>
|
||||
<if test="conponsAmount != null">
|
||||
conpons_amount,
|
||||
</if>
|
||||
<if test="isSplit != null">
|
||||
is_split,
|
||||
</if>
|
||||
<if test="orderAmount != null">
|
||||
order_amount,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="splitTime != null">
|
||||
split_time,
|
||||
</if>
|
||||
<if test="tradeDay != null">
|
||||
trade_day,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="merchantId != null">
|
||||
#{merchantId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
#{shopId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
#{couponsPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="conponsAmount != null">
|
||||
#{conponsAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="isSplit != null">
|
||||
#{isSplit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderAmount != null">
|
||||
#{orderAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="splitTime != null">
|
||||
#{splitTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="tradeDay != null">
|
||||
#{tradeDay,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbSplitAccounts">
|
||||
update tb_split_accounts
|
||||
<set>
|
||||
<if test="merchantId != null">
|
||||
merchant_id = #{merchantId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
shop_id = #{shopId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
coupons_price = #{couponsPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="conponsAmount != null">
|
||||
conpons_amount = #{conponsAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="isSplit != null">
|
||||
is_split = #{isSplit,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderAmount != null">
|
||||
order_amount = #{orderAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="splitTime != null">
|
||||
split_time = #{splitTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="tradeDay != null">
|
||||
trade_day = #{tradeDay,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbSplitAccounts">
|
||||
update tb_split_accounts
|
||||
set merchant_id = #{merchantId,jdbcType=INTEGER},
|
||||
shop_id = #{shopId,jdbcType=INTEGER},
|
||||
coupons_price = #{couponsPrice,jdbcType=DECIMAL},
|
||||
conpons_amount = #{conponsAmount,jdbcType=DECIMAL},
|
||||
is_split = #{isSplit,jdbcType=VARCHAR},
|
||||
order_amount = #{orderAmount,jdbcType=DECIMAL},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
split_time = #{splitTime,jdbcType=TIMESTAMP},
|
||||
trade_day = #{tradeDay,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -1,135 +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.TbSystemCouponsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbSystemCoupons">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="coupons_price" jdbcType="DECIMAL" property="couponsPrice" />
|
||||
<result column="coupons_amount" jdbcType="DECIMAL" property="couponsAmount" />
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
<result column="type_name" jdbcType="VARCHAR" property="typeName" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, name, coupons_price, coupons_amount, status, create_time, update_time, end_time,type_name
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_system_coupons
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectAll" resultType="com.chaozhanggui.system.cashierservice.entity.TbSystemCoupons">
|
||||
select * from tb_system_coupons where status = '0' and name = #{type}
|
||||
</select>
|
||||
<select id="selectByAmount" resultType="java.lang.Integer" parameterType="java.math.BigDecimal">
|
||||
select ifnull(count(*),0) from tb_system_coupons where status = '0' and coupons_amount >= #{orderNum}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_system_coupons
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbSystemCoupons">
|
||||
insert into tb_system_coupons (id, name, coupons_price,
|
||||
coupons_amount, status, create_time,
|
||||
update_time, end_time,type_name)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{couponsPrice,jdbcType=DECIMAL},
|
||||
#{couponsAmount,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||||
#{updateTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{typeName,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbSystemCoupons">
|
||||
insert into tb_system_coupons
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
coupons_price,
|
||||
</if>
|
||||
<if test="couponsAmount != null">
|
||||
coupons_amount,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
end_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
#{couponsPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="couponsAmount != null">
|
||||
#{couponsAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
#{endTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbSystemCoupons">
|
||||
update tb_system_coupons
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
coupons_price = #{couponsPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="couponsAmount != null">
|
||||
coupons_amount = #{couponsAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
end_time = #{endTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbSystemCoupons">
|
||||
update tb_system_coupons
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
coupons_price = #{couponsPrice,jdbcType=DECIMAL},
|
||||
coupons_amount = #{couponsAmount,jdbcType=DECIMAL},
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
end_time = #{endTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -1,173 +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.TbUserCouponsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="detail" jdbcType="VARCHAR" property="detail" />
|
||||
<result column="coupons_price" jdbcType="DECIMAL" property="couponsPrice" />
|
||||
<result column="coupons_amount" jdbcType="DECIMAL" property="couponsAmount" />
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
<result column="is_double" jdbcType="VARCHAR" property="isDouble" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, user_id, detail, coupons_price, coupons_amount, status, create_time, update_time, end_time,is_double
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_user_coupons
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
|
||||
<select id="queryAllSelective" resultMap="BaseResultMap">
|
||||
select
|
||||
detail,coupons_price as couponsPrice,coupons_amount as couponsAmount,status,1 as num,0 as type
|
||||
from tb_user_coupons
|
||||
<where>
|
||||
<if test="userId != null and userId != ''">
|
||||
and user_id = #{userId}
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
and status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectByUserId" resultType="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons">
|
||||
select * from tb_user_coupons where user_id = #{userId}
|
||||
<if test="status != null and status != ''">
|
||||
and status = #{status}
|
||||
</if>
|
||||
|
||||
<if test="amount != null and amount != ''">
|
||||
and coupons_amount <= #{amount}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
<select id="selectByOrderId" resultType="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons">
|
||||
select * from tb_user_coupons where order_id = #{orderId}
|
||||
</select>
|
||||
<select id="selectByUserIdAndAmount" resultType="java.lang.Integer">
|
||||
select ifnull(count(*),0) from tb_user_coupons where user_id = #{userId} and status = '0' and coupons_amount >= #{orderNum}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_user_coupons
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into tb_user_coupons (id, user_id, detail, coupons_price,
|
||||
coupons_amount, status, create_time,
|
||||
update_time, end_time,is_double)
|
||||
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{detail,jdbcType=VARCHAR}, #{couponsPrice,jdbcType=DECIMAL},
|
||||
#{couponsAmount,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||||
#{updateTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{isDouble,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons">
|
||||
insert into tb_user_coupons
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="detail != null">
|
||||
detail,
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
coupons_price,
|
||||
</if>
|
||||
<if test="couponsAmount != null">
|
||||
coupons_amount,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
end_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="detail != null">
|
||||
#{detail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
#{couponsPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="couponsAmount != null">
|
||||
#{couponsAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
#{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
#{endTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons">
|
||||
update tb_user_coupons
|
||||
<set>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="detail != null">
|
||||
detail = #{detail,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="couponsPrice != null">
|
||||
coupons_price = #{couponsPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="couponsAmount != null">
|
||||
coupons_amount = #{couponsAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updateTime != null">
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
end_time = #{endTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbUserCoupons">
|
||||
update tb_user_coupons
|
||||
set user_id = #{userId,jdbcType=VARCHAR},
|
||||
coupons_price = #{couponsPrice,jdbcType=DECIMAL},
|
||||
detail = #{detail,jdbcType=VARCHAR},
|
||||
coupons_amount = #{couponsAmount,jdbcType=DECIMAL},
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
||||
end_time = #{endTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -1,97 +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.TbWiningParamsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbWiningParams">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="min_price" jdbcType="DECIMAL" property="minPrice" />
|
||||
<result column="max_price" jdbcType="DECIMAL" property="maxPrice" />
|
||||
<result column="wining_num" jdbcType="INTEGER" property="winingNum" />
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
<result column="wining_user_num" jdbcType="INTEGER" property="winingUserNum" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, min_price, max_price, wining_num, wining_user_num,status
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_wining_params
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectAll" resultType="com.chaozhanggui.system.cashierservice.entity.TbWiningParams">
|
||||
select * from tb_wining_params where status = 'true'
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_wining_params
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbWiningParams">
|
||||
insert into tb_wining_params (id, min_price, max_price,
|
||||
wining_num, wining_user_num)
|
||||
values (#{id,jdbcType=INTEGER}, #{minPrice,jdbcType=DECIMAL}, #{maxPrice,jdbcType=DECIMAL},
|
||||
#{winingNum,jdbcType=INTEGER}, #{winingUserNum,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbWiningParams">
|
||||
insert into tb_wining_params
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="minPrice != null">
|
||||
min_price,
|
||||
</if>
|
||||
<if test="maxPrice != null">
|
||||
max_price,
|
||||
</if>
|
||||
<if test="winingNum != null">
|
||||
wining_num,
|
||||
</if>
|
||||
<if test="winingUserNum != null">
|
||||
wining_user_num,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="minPrice != null">
|
||||
#{minPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="maxPrice != null">
|
||||
#{maxPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="winingNum != null">
|
||||
#{winingNum,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="winingUserNum != null">
|
||||
#{winingUserNum,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbWiningParams">
|
||||
update tb_wining_params
|
||||
<set>
|
||||
<if test="minPrice != null">
|
||||
min_price = #{minPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="maxPrice != null">
|
||||
max_price = #{maxPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="winingNum != null">
|
||||
wining_num = #{winingNum,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="winingUserNum != null">
|
||||
wining_user_num = #{winingUserNum,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbWiningParams">
|
||||
update tb_wining_params
|
||||
set min_price = #{minPrice,jdbcType=DECIMAL},
|
||||
max_price = #{maxPrice,jdbcType=DECIMAL},
|
||||
wining_num = #{winingNum,jdbcType=INTEGER},
|
||||
wining_user_num = #{winingUserNum,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -1,180 +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.TbWiningUserMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbWiningUser">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="user_name" jdbcType="VARCHAR" property="userName" />
|
||||
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
||||
<result column="order_amount" jdbcType="DECIMAL" property="orderAmount" />
|
||||
<result column="is_user" jdbcType="VARCHAR" property="isUser" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="is_refund" jdbcType="VARCHAR" property="isRefund" />
|
||||
<result column="refund_amount" jdbcType="DECIMAL" property="refundAmount" />
|
||||
<result column="refund_no" jdbcType="VARCHAR" property="refundNo" />
|
||||
<result column="refund_pay_type" jdbcType="VARCHAR" property="refundPayType" />
|
||||
<result column="trade_day" jdbcType="VARCHAR" property="tradeDay" />
|
||||
<result column="refund_time" jdbcType="TIMESTAMP" property="refundTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, user_name, order_no, order_amount, is_user, create_time, is_refund, refund_amount,
|
||||
refund_no, refund_pay_type, trade_day, refund_time
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_wining_user
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_wining_user
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbWiningUser">
|
||||
insert into tb_wining_user (id, user_name, order_no,
|
||||
order_amount, is_user, create_time,
|
||||
is_refund, refund_amount, refund_no,
|
||||
refund_pay_type, trade_day, refund_time
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{userName,jdbcType=VARCHAR}, #{orderNo,jdbcType=VARCHAR},
|
||||
#{orderAmount,jdbcType=DECIMAL}, #{isUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||||
#{isRefund,jdbcType=VARCHAR}, #{refundAmount,jdbcType=DECIMAL}, #{refundNo,jdbcType=VARCHAR},
|
||||
#{refundPayType,jdbcType=VARCHAR}, #{tradeDay,jdbcType=VARCHAR}, #{refundTime,jdbcType=TIMESTAMP}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbWiningUser">
|
||||
insert into tb_wining_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="userName != null">
|
||||
user_name,
|
||||
</if>
|
||||
<if test="orderNo != null">
|
||||
order_no,
|
||||
</if>
|
||||
<if test="orderAmount != null">
|
||||
order_amount,
|
||||
</if>
|
||||
<if test="isUser != null">
|
||||
is_user,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="isRefund != null">
|
||||
is_refund,
|
||||
</if>
|
||||
<if test="refundAmount != null">
|
||||
refund_amount,
|
||||
</if>
|
||||
<if test="refundNo != null">
|
||||
refund_no,
|
||||
</if>
|
||||
<if test="refundPayType != null">
|
||||
refund_pay_type,
|
||||
</if>
|
||||
<if test="tradeDay != null">
|
||||
trade_day,
|
||||
</if>
|
||||
<if test="refundTime != null">
|
||||
refund_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="userName != null">
|
||||
#{userName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderNo != null">
|
||||
#{orderNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderAmount != null">
|
||||
#{orderAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="isUser != null">
|
||||
#{isUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="isRefund != null">
|
||||
#{isRefund,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="refundAmount != null">
|
||||
#{refundAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="refundNo != null">
|
||||
#{refundNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="refundPayType != null">
|
||||
#{refundPayType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tradeDay != null">
|
||||
#{tradeDay,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="refundTime != null">
|
||||
#{refundTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbWiningUser">
|
||||
update tb_wining_user
|
||||
<set>
|
||||
<if test="userName != null">
|
||||
user_name = #{userName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderNo != null">
|
||||
order_no = #{orderNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderAmount != null">
|
||||
order_amount = #{orderAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="isUser != null">
|
||||
is_user = #{isUser,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="isRefund != null">
|
||||
is_refund = #{isRefund,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="refundAmount != null">
|
||||
refund_amount = #{refundAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="refundNo != null">
|
||||
refund_no = #{refundNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="refundPayType != null">
|
||||
refund_pay_type = #{refundPayType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tradeDay != null">
|
||||
trade_day = #{tradeDay,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="refundTime != null">
|
||||
refund_time = #{refundTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbWiningUser">
|
||||
update tb_wining_user
|
||||
set user_name = #{userName,jdbcType=VARCHAR},
|
||||
order_no = #{orderNo,jdbcType=VARCHAR},
|
||||
order_amount = #{orderAmount,jdbcType=DECIMAL},
|
||||
is_user = #{isUser,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
is_refund = #{isRefund,jdbcType=VARCHAR},
|
||||
refund_amount = #{refundAmount,jdbcType=DECIMAL},
|
||||
refund_no = #{refundNo,jdbcType=VARCHAR},
|
||||
refund_pay_type = #{refundPayType,jdbcType=VARCHAR},
|
||||
trade_day = #{tradeDay,jdbcType=VARCHAR},
|
||||
refund_time = #{refundTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<select id="selectAllByTrade" resultType="com.chaozhanggui.system.cashierservice.entity.TbWiningUser">
|
||||
select * from tb_wining_user where trade_day = #{day}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,96 +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.TbYhqParamsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbYhqParams">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="min_price" jdbcType="DECIMAL" property="minPrice" />
|
||||
<result column="max_price" jdbcType="DECIMAL" property="maxPrice" />
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, name, min_price, max_price, status
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_yhq_params
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectAll" resultType="com.chaozhanggui.system.cashierservice.entity.TbYhqParams">
|
||||
select * from tb_yhq_params where status = '1' order by id asc
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_yhq_params
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbYhqParams">
|
||||
insert into tb_yhq_params (id, name, min_price,
|
||||
max_price, status)
|
||||
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{minPrice,jdbcType=DECIMAL},
|
||||
#{maxPrice,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbYhqParams">
|
||||
insert into tb_yhq_params
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="minPrice != null">
|
||||
min_price,
|
||||
</if>
|
||||
<if test="maxPrice != null">
|
||||
max_price,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="minPrice != null">
|
||||
#{minPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="maxPrice != null">
|
||||
#{maxPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbYhqParams">
|
||||
update tb_yhq_params
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="minPrice != null">
|
||||
min_price = #{minPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="maxPrice != null">
|
||||
max_price = #{maxPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbYhqParams">
|
||||
update tb_yhq_params
|
||||
set name = #{name,jdbcType=VARCHAR},
|
||||
min_price = #{minPrice,jdbcType=DECIMAL},
|
||||
max_price = #{maxPrice,jdbcType=DECIMAL},
|
||||
status = #{status,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
@@ -1,305 +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.ViewOrderMapper">
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.ViewOrder">
|
||||
<result column="ali_paid_amount" jdbcType="DECIMAL" property="aliPaidAmount" />
|
||||
<result column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="amount" jdbcType="DECIMAL" property="amount" />
|
||||
<result column="bank_paid_amount" jdbcType="DECIMAL" property="bankPaidAmount" />
|
||||
<result column="billing_id" jdbcType="VARCHAR" property="billingId" />
|
||||
<result column="cash_paid_amount" jdbcType="DECIMAL" property="cashPaidAmount" />
|
||||
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
|
||||
<result column="deduct_score" jdbcType="INTEGER" property="deductScore" />
|
||||
<result column="deposit_paid_amount" jdbcType="DECIMAL" property="depositPaidAmount" />
|
||||
<result column="discount_amount" jdbcType="DECIMAL" property="discountAmount" />
|
||||
<result column="freight_amount" jdbcType="DECIMAL" property="freightAmount" />
|
||||
<result column="is_master" jdbcType="TINYINT" property="isMaster" />
|
||||
<result column="is_vip" jdbcType="TINYINT" property="isVip" />
|
||||
<result column="master_id" jdbcType="VARCHAR" property="masterId" />
|
||||
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
|
||||
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
||||
<result column="order_type" jdbcType="VARCHAR" property="orderType" />
|
||||
<result column="other_paid_amount" jdbcType="DECIMAL" property="otherPaidAmount" />
|
||||
<result column="paid_time" jdbcType="BIGINT" property="paidTime" />
|
||||
<result column="pay_amount" jdbcType="DECIMAL" property="payAmount" />
|
||||
<result column="product_score" jdbcType="INTEGER" property="productScore" />
|
||||
<result column="product_type" jdbcType="VARCHAR" property="productType" />
|
||||
<result column="ref_order_id" jdbcType="VARCHAR" property="refOrderId" />
|
||||
<result column="refund_able" jdbcType="TINYINT" property="refundAble" />
|
||||
<result column="refund_amount" jdbcType="DECIMAL" property="refundAmount" />
|
||||
<result column="send_type" jdbcType="VARCHAR" property="sendType" />
|
||||
<result column="settlement_amount" jdbcType="DECIMAL" property="settlementAmount" />
|
||||
<result column="shop_id" jdbcType="VARCHAR" property="shopId" />
|
||||
<result column="small_change" jdbcType="DECIMAL" property="smallChange" />
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
<result column="table_id" jdbcType="VARCHAR" property="tableId" />
|
||||
<result column="table_party" jdbcType="VARCHAR" property="tableParty" />
|
||||
<result column="terminal_snap" jdbcType="VARCHAR" property="terminalSnap" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="virtual_paid_amount" jdbcType="DECIMAL" property="virtualPaidAmount" />
|
||||
<result column="wx_paid_amount" jdbcType="DECIMAL" property="wxPaidAmount" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.chaozhanggui.system.cashierservice.entity.ViewOrder">
|
||||
<result column="cart_list" jdbcType="LONGVARCHAR" property="cartList" />
|
||||
</resultMap>
|
||||
<sql id="Blob_Column_List">
|
||||
cart_list
|
||||
</sql>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.ViewOrder">
|
||||
insert into view_order (ali_paid_amount, id, amount,
|
||||
bank_paid_amount, billing_id, cash_paid_amount,
|
||||
created_at, deduct_score, deposit_paid_amount,
|
||||
discount_amount, freight_amount, is_master,
|
||||
is_vip, master_id, member_id,
|
||||
order_no, order_type, other_paid_amount,
|
||||
paid_time, pay_amount, product_score,
|
||||
product_type, ref_order_id, refund_able,
|
||||
refund_amount, send_type, settlement_amount,
|
||||
shop_id, small_change, status,
|
||||
table_id, table_party, terminal_snap,
|
||||
user_id, virtual_paid_amount, wx_paid_amount,
|
||||
cart_list)
|
||||
values (#{aliPaidAmount,jdbcType=DECIMAL}, #{id,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL},
|
||||
#{bankPaidAmount,jdbcType=DECIMAL}, #{billingId,jdbcType=VARCHAR}, #{cashPaidAmount,jdbcType=DECIMAL},
|
||||
#{createdAt,jdbcType=BIGINT}, #{deductScore,jdbcType=INTEGER}, #{depositPaidAmount,jdbcType=DECIMAL},
|
||||
#{discountAmount,jdbcType=DECIMAL}, #{freightAmount,jdbcType=DECIMAL}, #{isMaster,jdbcType=TINYINT},
|
||||
#{isVip,jdbcType=TINYINT}, #{masterId,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR},
|
||||
#{orderNo,jdbcType=VARCHAR}, #{orderType,jdbcType=VARCHAR}, #{otherPaidAmount,jdbcType=DECIMAL},
|
||||
#{paidTime,jdbcType=BIGINT}, #{payAmount,jdbcType=DECIMAL}, #{productScore,jdbcType=INTEGER},
|
||||
#{productType,jdbcType=VARCHAR}, #{refOrderId,jdbcType=VARCHAR}, #{refundAble,jdbcType=TINYINT},
|
||||
#{refundAmount,jdbcType=DECIMAL}, #{sendType,jdbcType=VARCHAR}, #{settlementAmount,jdbcType=DECIMAL},
|
||||
#{shopId,jdbcType=VARCHAR}, #{smallChange,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR},
|
||||
#{tableId,jdbcType=VARCHAR}, #{tableParty,jdbcType=VARCHAR}, #{terminalSnap,jdbcType=VARCHAR},
|
||||
#{userId,jdbcType=VARCHAR}, #{virtualPaidAmount,jdbcType=DECIMAL}, #{wxPaidAmount,jdbcType=DECIMAL},
|
||||
#{cartList,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.ViewOrder">
|
||||
insert into view_order
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="aliPaidAmount != null">
|
||||
ali_paid_amount,
|
||||
</if>
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="amount != null">
|
||||
amount,
|
||||
</if>
|
||||
<if test="bankPaidAmount != null">
|
||||
bank_paid_amount,
|
||||
</if>
|
||||
<if test="billingId != null">
|
||||
billing_id,
|
||||
</if>
|
||||
<if test="cashPaidAmount != null">
|
||||
cash_paid_amount,
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
created_at,
|
||||
</if>
|
||||
<if test="deductScore != null">
|
||||
deduct_score,
|
||||
</if>
|
||||
<if test="depositPaidAmount != null">
|
||||
deposit_paid_amount,
|
||||
</if>
|
||||
<if test="discountAmount != null">
|
||||
discount_amount,
|
||||
</if>
|
||||
<if test="freightAmount != null">
|
||||
freight_amount,
|
||||
</if>
|
||||
<if test="isMaster != null">
|
||||
is_master,
|
||||
</if>
|
||||
<if test="isVip != null">
|
||||
is_vip,
|
||||
</if>
|
||||
<if test="masterId != null">
|
||||
master_id,
|
||||
</if>
|
||||
<if test="memberId != null">
|
||||
member_id,
|
||||
</if>
|
||||
<if test="orderNo != null">
|
||||
order_no,
|
||||
</if>
|
||||
<if test="orderType != null">
|
||||
order_type,
|
||||
</if>
|
||||
<if test="otherPaidAmount != null">
|
||||
other_paid_amount,
|
||||
</if>
|
||||
<if test="paidTime != null">
|
||||
paid_time,
|
||||
</if>
|
||||
<if test="payAmount != null">
|
||||
pay_amount,
|
||||
</if>
|
||||
<if test="productScore != null">
|
||||
product_score,
|
||||
</if>
|
||||
<if test="productType != null">
|
||||
product_type,
|
||||
</if>
|
||||
<if test="refOrderId != null">
|
||||
ref_order_id,
|
||||
</if>
|
||||
<if test="refundAble != null">
|
||||
refund_able,
|
||||
</if>
|
||||
<if test="refundAmount != null">
|
||||
refund_amount,
|
||||
</if>
|
||||
<if test="sendType != null">
|
||||
send_type,
|
||||
</if>
|
||||
<if test="settlementAmount != null">
|
||||
settlement_amount,
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
shop_id,
|
||||
</if>
|
||||
<if test="smallChange != null">
|
||||
small_change,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
<if test="tableId != null">
|
||||
table_id,
|
||||
</if>
|
||||
<if test="tableParty != null">
|
||||
table_party,
|
||||
</if>
|
||||
<if test="terminalSnap != null">
|
||||
terminal_snap,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="virtualPaidAmount != null">
|
||||
virtual_paid_amount,
|
||||
</if>
|
||||
<if test="wxPaidAmount != null">
|
||||
wx_paid_amount,
|
||||
</if>
|
||||
<if test="cartList != null">
|
||||
cart_list,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="aliPaidAmount != null">
|
||||
#{aliPaidAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="amount != null">
|
||||
#{amount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="bankPaidAmount != null">
|
||||
#{bankPaidAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="billingId != null">
|
||||
#{billingId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="cashPaidAmount != null">
|
||||
#{cashPaidAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="createdAt != null">
|
||||
#{createdAt,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="deductScore != null">
|
||||
#{deductScore,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="depositPaidAmount != null">
|
||||
#{depositPaidAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="discountAmount != null">
|
||||
#{discountAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="freightAmount != null">
|
||||
#{freightAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="isMaster != null">
|
||||
#{isMaster,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="isVip != null">
|
||||
#{isVip,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="masterId != null">
|
||||
#{masterId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memberId != null">
|
||||
#{memberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderNo != null">
|
||||
#{orderNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderType != null">
|
||||
#{orderType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="otherPaidAmount != null">
|
||||
#{otherPaidAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="paidTime != null">
|
||||
#{paidTime,jdbcType=BIGINT},
|
||||
</if>
|
||||
<if test="payAmount != null">
|
||||
#{payAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="productScore != null">
|
||||
#{productScore,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="productType != null">
|
||||
#{productType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="refOrderId != null">
|
||||
#{refOrderId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="refundAble != null">
|
||||
#{refundAble,jdbcType=TINYINT},
|
||||
</if>
|
||||
<if test="refundAmount != null">
|
||||
#{refundAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="sendType != null">
|
||||
#{sendType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="settlementAmount != null">
|
||||
#{settlementAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
#{shopId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="smallChange != null">
|
||||
#{smallChange,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tableId != null">
|
||||
#{tableId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tableParty != null">
|
||||
#{tableParty,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="terminalSnap != null">
|
||||
#{terminalSnap,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="virtualPaidAmount != null">
|
||||
#{virtualPaidAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="wxPaidAmount != null">
|
||||
#{wxPaidAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="cartList != null">
|
||||
#{cartList,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user