From 0612e7e4104f41c3f8b683073e08cdbb65dad44a Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 29 十月 2019 13:58:20 +0800 Subject: [PATCH] 红包相关 --- fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml index a712d6b..78909bf 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/msg/MsgMoneyDetailMapper.xml @@ -18,6 +18,7 @@ <result column="mm_read" property="read" jdbcType="BOOLEAN" /> <result column="mm_order_type" property="orderType" jdbcType="INTEGER" /> <result column="mm_desc" property="desc" jdbcType="VARCHAR" /> + <result column="mm_content" property="content" jdbcType="VARCHAR" /> <association property="user" column="mm_uid" javaType="com.yeshi.fanli.entity.bus.user.UserInfo"> <id column="mm_uid" property="id" jdbcType="BIGINT" /> @@ -27,7 +28,7 @@ <association property="alipayAccountValid" column="mm_source_id_alipayvalid" select="com.yeshi.fanli.dao.mybatis.AlipayAccountValidNormalHistoryMapper.selectByPrimaryKey" /> </resultMap> - <sql id="Base_Column_List">mm_id,mm_uid,mm_type,mm_order_count,mm_goods_count,mm_order_id,mm_source_id,mm_money,mm_balance,mm_state_desc,mm_beizhu,mm_create_time,mm_update_time,mm_read,mm_order_type,mm_desc + <sql id="Base_Column_List">mm_id,mm_uid,mm_type,mm_order_count,mm_goods_count,mm_order_id,mm_source_id,mm_money,mm_balance,mm_state_desc,mm_beizhu,mm_create_time,mm_update_time,mm_read,mm_order_type,mm_desc,mm_content </sql> <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long"> @@ -58,9 +59,9 @@ </delete> <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.msg.MsgMoneyDetail" useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_msg_money - (mm_id,mm_uid,mm_type,mm_order_count,mm_goods_count,mm_order_id,mm_source_id,mm_money,mm_balance,mm_state_desc,mm_beizhu,mm_create_time,mm_update_time,mm_read,mm_order_type,mm_desc) + (mm_id,mm_uid,mm_type,mm_order_count,mm_goods_count,mm_order_id,mm_source_id,mm_money,mm_balance,mm_state_desc,mm_beizhu,mm_create_time,mm_update_time,mm_read,mm_order_type,mm_desc,mm_content) values - (#{id,jdbcType=BIGINT},#{user.id,jdbcType=BIGINT},#{msgType,jdbcType=VARCHAR},#{orderCount,jdbcType=INTEGER},#{goodsCount,jdbcType=INTEGER},#{orderId,jdbcType=VARCHAR},#{extract.id,jdbcType=BIGINT},#{money,jdbcType=DECIMAL},#{balance,jdbcType=DECIMAL},#{stateDesc,jdbcType=VARCHAR},#{beiZhu,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP},#{read,jdbcType=BOOLEAN},#{orderType,jdbcType=INTEGER},#{desc,jdbcType=VARCHAR}) + (#{id,jdbcType=BIGINT},#{user.id,jdbcType=BIGINT},#{msgType,jdbcType=VARCHAR},#{orderCount,jdbcType=INTEGER},#{goodsCount,jdbcType=INTEGER},#{orderId,jdbcType=VARCHAR},#{extract.id,jdbcType=BIGINT},#{money,jdbcType=DECIMAL},#{balance,jdbcType=DECIMAL},#{stateDesc,jdbcType=VARCHAR},#{beiZhu,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP},#{read,jdbcType=BOOLEAN},#{orderType,jdbcType=INTEGER},#{desc,jdbcType=VARCHAR},#{content,jdbcType=VARCHAR}) </insert> <insert id="insertSelective" parameterType="com.yeshi.fanli.entity.bus.msg.MsgMoneyDetail" useGeneratedKeys="true" keyProperty="id"> @@ -83,6 +84,7 @@ <if test="read != null">mm_read,</if> <if test="orderType != null">mm_order_type,</if> <if test="desc != null">mm_desc,</if> + <if test="content != null">mm_content,</if> </trim> values <trim prefix="(" suffix=")" suffixOverrides=","> @@ -103,6 +105,7 @@ <if test="read != null">#{read,jdbcType=BOOLEAN},</if> <if test="orderType != null">#{orderType,jdbcType=INTEGER}</if> <if test="desc != null">#{desc,jdbcType=VARCHAR},</if> + <if test="content != null">#{content,jdbcType=VARCHAR},</if> </trim> </insert> <update id="updateByPrimaryKey" parameterType="com.yeshi.fanli.entity.bus.msg.MsgMoneyDetail">update @@ -119,7 +122,8 @@ #{createTime,jdbcType=TIMESTAMP},mm_update_time = #{updateTime,jdbcType=TIMESTAMP},mm_read = #{read,jdbcType=BOOLEAN} ,mm_order_type =#{orderType,jdbcType=INTEGER}, - mm_desc = #{desc,jdbcType=VARCHAR} where mm_id = + mm_desc = #{desc,jdbcType=VARCHAR}, + mm_content = #{content,jdbcType=VARCHAR} where mm_id = #{id,jdbcType=BIGINT} </update> <update id="updateByPrimaryKeySelective" parameterType="com.yeshi.fanli.entity.bus.msg.MsgMoneyDetail"> @@ -142,6 +146,7 @@ <if test="read != null">mm_read=#{read,jdbcType=BOOLEAN},</if> <if test="orderType !=null">mm_order_type =#{orderType,jdbcType=INTEGER},</if> <if test="desc != null">mm_desc=#{desc,jdbcType=VARCHAR},</if> + <if test="content != null">mm_content=#{content,jdbcType=VARCHAR},</if> </set> where mm_id = #{id,jdbcType=BIGINT} </update> -- Gitblit v1.8.0