fix: 交易记录,新增定位字段。
This commit is contained in:
@@ -74,6 +74,26 @@ public class AccountsDealRecord extends BaseEntity
|
|||||||
@Excel(name = "交易子类别")
|
@Excel(name = "交易子类别")
|
||||||
private String childCategory;
|
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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
@@ -93,6 +113,10 @@ public class AccountsDealRecord extends BaseEntity
|
|||||||
.append("transferRecordId", getTransferRecordId())
|
.append("transferRecordId", getTransferRecordId())
|
||||||
.append("currentBalance", getCurrentBalance())
|
.append("currentBalance", getCurrentBalance())
|
||||||
.append("childCategory", getChildCategory())
|
.append("childCategory", getChildCategory())
|
||||||
|
.append("locationName", getLocationName())
|
||||||
|
.append("locationAddress", getLocationAddress())
|
||||||
|
.append("longitude", getLongitude())
|
||||||
|
.append("latitude", getLatitude())
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="transferRecordId" column="transfer_record_id" />
|
<result property="transferRecordId" column="transfer_record_id" />
|
||||||
<result property="currentBalance" column="current_balance" />
|
<result property="currentBalance" column="current_balance" />
|
||||||
<result property="childCategory" column="child_category" />
|
<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>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectAccountsDealRecordVo">
|
<sql id="selectAccountsDealRecordVo">
|
||||||
@@ -42,6 +46,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
a.deal_category,
|
a.deal_category,
|
||||||
a.current_balance,
|
a.current_balance,
|
||||||
a.child_category,
|
a.child_category,
|
||||||
|
a.location_name,
|
||||||
|
a.location_address,
|
||||||
|
a.longitude,
|
||||||
|
a.latitude,
|
||||||
CONCAT(a2."name", '(', right(a2.code, 4), ')') as account_name
|
CONCAT(a2."name", '(', right(a2.code, 4), ')') as account_name
|
||||||
from
|
from
|
||||||
accounts_deal_record a
|
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="transferRecordId != null and transferRecordId != ''">transfer_record_id,</if>
|
||||||
<if test="currentBalance != null">current_balance,</if>
|
<if test="currentBalance != null">current_balance,</if>
|
||||||
<if test="childCategory != null">child_category,</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>
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">#{id},</if>
|
<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="transferRecordId != null and transferRecordId != ''">#{transferRecordId},</if>
|
||||||
<if test="currentBalance != null">#{currentBalance},</if>
|
<if test="currentBalance != null">#{currentBalance},</if>
|
||||||
<if test="childCategory != null">#{childCategory},</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>
|
</trim>
|
||||||
</insert>
|
</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="transferRecordId != null and transferRecordId != ''">transfer_record_id = #{transferRecordId},</if>
|
||||||
<if test="currentBalance != null ">current_balance = #{currentBalance},</if>
|
<if test="currentBalance != null ">current_balance = #{currentBalance},</if>
|
||||||
<if test="childCategory != null ">child_category = #{childCategory},</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>
|
</trim>
|
||||||
where id = #{id}
|
where id = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
|||||||
Reference in New Issue
Block a user