|
|
@@ -10,10 +10,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="integralConsume" column="integral_consume" />
|
|
|
<result property="integralRefund" column="integral_refund" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
+ <result property="logType" column="log_type" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsIntegralCountVo">
|
|
|
- select id, consumption_date, integral_consume, integral_refund, create_time from fs_integral_count
|
|
|
+ select id, consumption_date, integral_consume, integral_refund, create_time,log_type from fs_integral_count
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsIntegralCountList" parameterType="FsIntegralCount" resultMap="FsIntegralCountResult">
|
|
|
@@ -22,6 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="consumptionDate != null "> and consumption_date = #{consumptionDate}</if>
|
|
|
<if test="integralConsume != null and integralConsume != ''"> and integral_consume = #{integralConsume}</if>
|
|
|
<if test="integralRefund != null and integralRefund != ''"> and integral_refund = #{integralRefund}</if>
|
|
|
+ <if test="logType != null and logType != ''"> and log_type = #{logType}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
@@ -38,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="integralConsume != null">integral_consume,</if>
|
|
|
<if test="integralRefund != null">integral_refund,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
+ <if test="logType != null">log_type,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
@@ -45,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="integralConsume != null">#{integralConsume},</if>
|
|
|
<if test="integralRefund != null">#{integralRefund},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="logType != null">#{logType},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -55,6 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="integralConsume != null">integral_consume = #{integralConsume},</if>
|
|
|
<if test="integralRefund != null">integral_refund = #{integralRefund},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="logType != null">logType = #{logType},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|