fix: 交易记录,新增定位字段。

This commit is contained in:
tianyongbao
2026-06-17 20:58:29 +08:00
parent 846cd3141e
commit 050c844508
2 changed files with 44 additions and 0 deletions

View File

@@ -74,6 +74,26 @@ public class AccountsDealRecord extends BaseEntity
@Excel(name = "交易子类别")
private String childCategory;
/** 地点名称 */
@ApiModelProperty(value="地点名称")
@Excel(name = "地点名称")
private String locationName;
/** 地点地址 */
@ApiModelProperty(value="地点地址")
@Excel(name = "地点地址")
private String locationAddress;
/** 经度 */
@ApiModelProperty(value="经度")
@Excel(name = "经度")
private Double longitude;
/** 纬度 */
@ApiModelProperty(value="纬度")
@Excel(name = "纬度")
private Double latitude;
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@@ -93,6 +113,10 @@ public class AccountsDealRecord extends BaseEntity
.append("transferRecordId", getTransferRecordId())
.append("currentBalance", getCurrentBalance())
.append("childCategory", getChildCategory())
.append("locationName", getLocationName())
.append("locationAddress", getLocationAddress())
.append("longitude", getLongitude())
.append("latitude", getLatitude())
.toString();
}
}

View File

@@ -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>