Forráskód Böngészése

将变更记录表的小订单id改为来源id

LiRong 1 hete%!(EXTRA string=óta)
szülő
commit
343b983d7e

+ 3 - 3
leromro-core/src/main/java/com/leromro/core/domain/VolunteerAccountChange.java

@@ -62,9 +62,9 @@ public class VolunteerAccountChange extends BaseEntity
     private BigDecimal afterBalance;
 
     /** 变更后可提现金额 */
-    @TableField("second_order_id")
-    @ApiModelProperty("小订单id")
-    private Long secondOrderId;
+    @TableField("source_id")
+    @ApiModelProperty("变更来源id")
+    private Long source_id;
 
 
 }

+ 8 - 10
leromro-core/src/main/resources/mapper/core/VolunteerAccountChangeMapper.xml

@@ -11,16 +11,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="changeMoney"    column="change_money"    />
         <result property="beforeBalance"    column="before_balance"    />
         <result property="afterBalance"    column="after_balance"    />
+        <result property="sourceId"    column="source_id"    />
         <result property="createBy"    column="create_by"    />
         <result property="createTime"    column="create_time"    />
         <result property="updateBy"    column="update_by"    />
         <result property="updateTime"    column="update_time"    />
         <result property="remark"    column="remark"    />
-        <result property="secondOrderId"    column="second_order_id"    />
+        <result property="sourceId"    column="source_id"    />
     </resultMap>
 
     <sql id="selectVolunteerAccountChangeVo">
-        select volunteer_account_change_id, change_type, source_type, change_money, before_balance, after_balance, second_order_id, create_by, create_time, update_by, update_time, remark from l_volunteer_account_change
+        select volunteer_account_change_id, change_type, source_type, change_money, before_balance, after_balance, source_id, create_by, create_time, update_by, update_time, remark from l_volunteer_account_change
     </sql>
 
     <select id="selectVolunteerAccountChangeList" parameterType="VolunteerAccountChange" resultMap="VolunteerAccountChangeResult">
@@ -44,7 +45,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             resultType="com.leromro.core.domain.vo.VolunteerAccountChangeVO"
             parameterType="com.leromro.core.domain.VolunteerAccountChange">
         select lvac.* from l_volunteer_account_change lvac
-
         <where>
             <if test="volunteerId != null and volunteerId != ''">and lvac.volunteer_id = #{volunteerId}</if>
             <if test="createTime != null ">
@@ -52,8 +52,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 AND lvac.create_time &lt; DATE_ADD(#{createTime}, INTERVAL 1 DAY)
             </if>
         </where>
-
-
     </select>
 
     <insert id="insertVolunteerAccountChange" parameterType="VolunteerAccountChange" useGeneratedKeys="true" keyProperty="volunteerAccountChangeId">
@@ -64,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="changeMoney != null">change_money,</if>
             <if test="beforeBalance != null">before_balance,</if>
             <if test="afterBalance != null">after_balance,</if>
-            <if test="secondOrderId != null">second_order_id,</if>
+            <if test="sourceId != null">source_id,</if>
             <if test="createBy != null">create_by,</if>
             <if test="createTime != null">create_time,</if>
             <if test="updateBy != null">update_by,</if>
@@ -77,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="changeMoney != null">#{changeMoney},</if>
             <if test="beforeBalance != null">#{beforeBalance},</if>
             <if test="afterBalance != null">#{afterBalance},</if>
-            <if test="secondOrderId != null">#{secondOrderId},</if>
+            <if test="sourceId != null">#{sourceId},</if>
             <if test="createBy != null">#{createBy},</if>
             <if test="createTime != null">#{createTime},</if>
             <if test="updateBy != null">#{updateBy},</if>
@@ -95,7 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="changeMoney != null">change_money = #{changeMoney},</if>
             <if test="beforeBalance != null">before_balance = #{beforeBalance},</if>
             <if test="afterBalance != null">after_balance = #{afterBalance},</if>
-            <if test="secondOrderId != null">second_order_id = #{secondOrderId},</if>
+            <if test="secondOrderId != null">source_id = #{sourceId},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
             <if test="createTime != null">create_time = #{createTime},</if>
             <if test="updateBy != null">update_by = #{updateBy},</if>
@@ -117,7 +115,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </delete>
     <insert id="insertList" parameterType="java.util.List">
         INSERT INTO l_volunteer_account_change
-        (volunteer_id, change_type, source_type, change_money, before_balance, after_balance,second_order_id, create_time)
+        (volunteer_id, change_type, source_type, change_money, before_balance, after_balance,source_id, create_time)
         VALUES
         <foreach collection="list" item="item" separator=",">
             (
@@ -127,7 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             #{item.changeMoney},
             #{item.beforeBalance},
             #{item.afterBalance},
-            #{item.secondOrderId},
+            #{item.sourceId},
             #{item.createTime}
             )
         </foreach>