|
@@ -24,10 +24,11 @@
|
|
|
<result property="tripvalue" column="tripvalue" jdbcType="INTEGER"/>
|
|
|
<result property="realtimeSplit" column="realtimeSplit" jdbcType="INTEGER"/>
|
|
|
<result property="status" column="status" jdbcType="CHAR"/>
|
|
|
- <result property="totalIncome" column="totalIncome" jdbcType="INTEGER"/>
|
|
|
- <result property="totalSplit" column="totalSplit" jdbcType="INTEGER"/>
|
|
|
- <result property="totalCashOut" column="totalCashOut" jdbcType="INTEGER"/>
|
|
|
- <result property="totalRefund" column="totalRefund" jdbcType="INTEGER"/>
|
|
|
+ <result property="accountingIncome" column="accountingIncome" jdbcType="INTEGER"/>
|
|
|
+ <result property="splitIncome" column="splitIncome" jdbcType="INTEGER"/>
|
|
|
+ <result property="accountingRefund" column="accountingRefund" jdbcType="INTEGER"/>
|
|
|
+ <result property="splitRefund" column="splitRefund" jdbcType="INTEGER"/>
|
|
|
+ <result property="cashOut" column="cashOut" jdbcType="INTEGER"/>
|
|
|
<result property="balance" column="balance" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -38,8 +39,8 @@
|
|
|
account,accountName,accountType,
|
|
|
relation,apiv3,certPath,
|
|
|
tripartite,tripvalue,realtimeSplit,
|
|
|
- status,totalIncome,totalSplit,
|
|
|
- totalCashOut,totalRefund,balance
|
|
|
+ status,accountingIncome,splitIncome,
|
|
|
+ accountingRefund,splitRefund,cashOut,balance
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
@@ -86,8 +87,8 @@
|
|
|
,account,accountName,accountType
|
|
|
,relation,apiv3,certPath
|
|
|
,tripartite,tripvalue,realtimeSplit
|
|
|
- ,status,totalIncome,totalSplit
|
|
|
- ,totalCashOut,totalRefund,balance
|
|
|
+ ,status,accountingIncome,splitIncome
|
|
|
+ ,accountingRefund,splitRefund,cashOut,balance
|
|
|
)
|
|
|
values (#{id,jdbcType=INTEGER},#{name,jdbcType=CHAR},#{address,jdbcType=VARCHAR}
|
|
|
,#{type,jdbcType=CHAR},#{lat,jdbcType=DOUBLE},#{lng,jdbcType=DOUBLE}
|
|
@@ -95,8 +96,8 @@
|
|
|
,#{account,jdbcType=VARCHAR},#{accountName,jdbcType=VARCHAR},#{accountType,jdbcType=CHAR}
|
|
|
,#{relation,jdbcType=CHAR},#{apiv3,jdbcType=VARCHAR},#{certPath,jdbcType=VARCHAR}
|
|
|
,#{tripartite,jdbcType=CHAR},#{tripvalue,jdbcType=INTEGER},#{realtimeSplit,jdbcType=INTEGER}
|
|
|
- ,#{status,jdbcType=CHAR},#{totalIncome,jdbcType=INTEGER},#{totalSplit,jdbcType=INTEGER}
|
|
|
- ,#{totalCashOut,jdbcType=INTEGER},#{totalRefund,jdbcType=INTEGER},#{balance,jdbcType=INTEGER}
|
|
|
+ ,#{status,jdbcType=CHAR},#{accountingIncome,jdbcType=INTEGER},#{splitIncome,jdbcType=INTEGER}
|
|
|
+ ,#{accountingRefund,jdbcType=INTEGER},#{splitRefund,jdbcType=INTEGER},#{cashOut,jdbcType=INTEGER},#{balance,jdbcType=INTEGER}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.mofangchuxing.aska.dao.domain.AskaRetails" useGeneratedKeys="true">
|
|
@@ -121,10 +122,6 @@
|
|
|
<if test="tripvalue != null">tripvalue,</if>
|
|
|
<if test="realtimeSplit != null">realtimeSplit,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
- <if test="totalIncome != null">totalIncome,</if>
|
|
|
- <if test="totalSplit != null">totalSplit,</if>
|
|
|
- <if test="totalCashOut != null">totalCashOut,</if>
|
|
|
- <if test="totalRefund != null">totalRefund,</if>
|
|
|
<if test="balance != null">balance,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
@@ -147,10 +144,6 @@
|
|
|
<if test="tripvalue != null">#{tripvalue,jdbcType=INTEGER},</if>
|
|
|
<if test="realtimeSplit != null">#{realtimeSplit,jdbcType=INTEGER},</if>
|
|
|
<if test="status != null">#{status,jdbcType=CHAR},</if>
|
|
|
- <if test="totalIncome != null">#{totalIncome,jdbcType=INTEGER},</if>
|
|
|
- <if test="totalSplit != null">#{totalSplit,jdbcType=INTEGER},</if>
|
|
|
- <if test="totalCashOut != null">#{totalCashOut,jdbcType=INTEGER},</if>
|
|
|
- <if test="totalRefund != null">#{totalRefund,jdbcType=INTEGER},</if>
|
|
|
<if test="balance != null">#{balance,jdbcType=INTEGER},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
@@ -211,17 +204,20 @@
|
|
|
<if test="status != null">
|
|
|
status = #{status,jdbcType=CHAR},
|
|
|
</if>
|
|
|
- <if test="totalIncome != null">
|
|
|
- totalIncome = #{totalIncome,jdbcType=INTEGER},
|
|
|
+ <if test="accountingIncome != null">
|
|
|
+ accountingIncome = #{accountingIncome,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="totalSplit != null">
|
|
|
- totalSplit = #{totalSplit,jdbcType=INTEGER},
|
|
|
+ <if test="splitIncome != null">
|
|
|
+ splitIncome = #{splitIncome,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="totalCashOut != null">
|
|
|
- totalCashOut = #{totalCashOut,jdbcType=INTEGER},
|
|
|
+ <if test="accountingRefund != null">
|
|
|
+ accountingRefund = #{accountingRefund,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
- <if test="totalRefund != null">
|
|
|
- totalRefund = #{totalRefund,jdbcType=INTEGER},
|
|
|
+ <if test="splitRefund != null">
|
|
|
+ splitRefund = #{splitRefund,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="cashOut != null">
|
|
|
+ cashOut = #{cashOut,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="balance != null">
|
|
|
balance = #{balance,jdbcType=INTEGER},
|
|
@@ -250,10 +246,11 @@
|
|
|
tripvalue = #{tripvalue,jdbcType=INTEGER},
|
|
|
realtimeSplit = #{realtimeSplit,jdbcType=INTEGER},
|
|
|
status = #{status,jdbcType=CHAR},
|
|
|
- totalIncome = #{totalIncome,jdbcType=INTEGER},
|
|
|
- totalSplit = #{totalSplit,jdbcType=INTEGER},
|
|
|
- totalCashOut = #{totalCashOut,jdbcType=INTEGER},
|
|
|
- totalRefund = #{totalRefund,jdbcType=INTEGER},
|
|
|
+ accountingIncome = #{accountingIncome,jdbcType=INTEGER},
|
|
|
+ splitIncome = #{splitIncome,jdbcType=INTEGER},
|
|
|
+ accountingRefund = #{accountingRefund,jdbcType=INTEGER},
|
|
|
+ splitRefund = #{splitRefund,jdbcType=INTEGER},
|
|
|
+ cashOut = #{cashOut,jdbcType=INTEGER},
|
|
|
balance = #{balance,jdbcType=INTEGER}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|