fix: 交易记录,新增定位字段。
This commit is contained in:
@@ -22,6 +22,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="transferRecordId" column="transfer_record_id" />
|
||||
<result property="currentBalance" column="current_balance" />
|
||||
<result property="childCategory" column="child_category" />
|
||||
<result property="locationName" column="location_name" />
|
||||
<result property="locationAddress" column="location_address" />
|
||||
<result property="longitude" column="longitude" />
|
||||
<result property="latitude" column="latitude" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAccountsDealRecordVo">
|
||||
@@ -42,6 +46,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.deal_category,
|
||||
a.current_balance,
|
||||
a.child_category,
|
||||
a.location_name,
|
||||
a.location_address,
|
||||
a.longitude,
|
||||
a.latitude,
|
||||
CONCAT(a2."name", '(', right(a2.code, 4), ')') as account_name
|
||||
from
|
||||
accounts_deal_record a
|
||||
@@ -106,6 +114,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="transferRecordId != null and transferRecordId != ''">transfer_record_id,</if>
|
||||
<if test="currentBalance != null">current_balance,</if>
|
||||
<if test="childCategory != null">child_category,</if>
|
||||
<if test="locationName != null">location_name,</if>
|
||||
<if test="locationAddress != null">location_address,</if>
|
||||
<if test="longitude != null">longitude,</if>
|
||||
<if test="latitude != null">latitude,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
@@ -124,6 +136,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="transferRecordId != null and transferRecordId != ''">#{transferRecordId},</if>
|
||||
<if test="currentBalance != null">#{currentBalance},</if>
|
||||
<if test="childCategory != null">#{childCategory},</if>
|
||||
<if test="locationName != null">#{locationName},</if>
|
||||
<if test="locationAddress != null">#{locationAddress},</if>
|
||||
<if test="longitude != null">#{longitude},</if>
|
||||
<if test="latitude != null">#{latitude},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@@ -145,6 +161,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="transferRecordId != null and transferRecordId != ''">transfer_record_id = #{transferRecordId},</if>
|
||||
<if test="currentBalance != null ">current_balance = #{currentBalance},</if>
|
||||
<if test="childCategory != null ">child_category = #{childCategory},</if>
|
||||
<if test="locationName != null">location_name = #{locationName},</if>
|
||||
<if test="locationAddress != null">location_address = #{locationAddress},</if>
|
||||
<if test="longitude != null">longitude = #{longitude},</if>
|
||||
<if test="latitude != null">latitude = #{latitude},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user