修改msg 信息统一处理
This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
<result column="biz_code" jdbcType="VARCHAR" property="bizCode" />
|
||||
<result column="biz_name" jdbcType="VARCHAR" property="bizName" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, shop_user_id, amount, balance, biz_code, biz_name, create_time
|
||||
id, shop_user_id, amount, balance, biz_code, biz_name, create_time, type
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
@@ -26,10 +27,10 @@
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopUserFlow">
|
||||
insert into tb_shop_user_flow (id, shop_user_id, amount,
|
||||
balance, biz_code, biz_name,
|
||||
create_time)
|
||||
create_time, type)
|
||||
values (#{id,jdbcType=INTEGER}, #{shopUserId,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL},
|
||||
#{balance,jdbcType=DECIMAL}, #{bizCode,jdbcType=VARCHAR}, #{bizName,jdbcType=VARCHAR},
|
||||
#{createTime,jdbcType=TIMESTAMP})
|
||||
#{createTime,jdbcType=TIMESTAMP}, #{type,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopUserFlow">
|
||||
insert into tb_shop_user_flow
|
||||
@@ -55,6 +56,9 @@
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@@ -78,6 +82,9 @@
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
#{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbShopUserFlow">
|
||||
@@ -101,6 +108,9 @@
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type = #{type,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
@@ -111,17 +121,19 @@
|
||||
balance = #{balance,jdbcType=DECIMAL},
|
||||
biz_code = #{bizCode,jdbcType=VARCHAR},
|
||||
biz_name = #{bizName,jdbcType=VARCHAR},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP}
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
type = #{type,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="selectByMemberAccountFlow" resultType="java.util.Map">
|
||||
|
||||
SELECT
|
||||
f.*,
|
||||
u.`name`
|
||||
f.*,
|
||||
u.`name`
|
||||
FROM
|
||||
tb_shop_user_flow f
|
||||
LEFT JOIN tb_shop_user u ON f.shop_user_id = u.id
|
||||
tb_shop_user_flow f
|
||||
LEFT JOIN tb_shop_user u ON f.shop_user_id = u.id
|
||||
where 1=1
|
||||
<if test="memberId != null and memberId!=''">
|
||||
and u.id = #{memberId}
|
||||
|
||||
Reference in New Issue
Block a user