多返回点位

This commit is contained in:
guoshengxiong 2024-08-07 18:18:20 +08:00
parent ae25863731
commit ba00f9419a
2 changed files with 15 additions and 1 deletions

View File

@ -189,5 +189,17 @@ public class CheckingPointInfo implements Serializable {
@TableField(exist = false)
@ApiModelProperty(value = "合作单位")
private java.lang.String enterpriseName;
/**
* 经度
*/
@TableField(exist = false)
@ApiModelProperty("经度")
private Double longitude;
/**
* 维度
*/
@TableField(exist = false)
@ApiModelProperty("维度")
private Double latitude;
}

View File

@ -16,7 +16,9 @@
xcrt.item_name,
(SELECT group_concat(nu.enterprise_name)
FROM enterprise_info nu
WHERE find_in_set(nu.id, cp.enterprise_id)) as enterprise_name
WHERE find_in_set(nu.id, cp.enterprise_id)) as enterprise_name,
cp.latitude,
cp.longitude
from checking_point_info t
join checking_point cp on t.checking_point_id = cp.id
left join system_user su on t.checking_point_user_id = su.user_id