吉安感知网项目-后端
linwei
2026-06-09 beb202f8cb7c5699173cac358dd167dcb7901b26
feat(workorder): 添加事件地理信息和附件类型字段

- 在 GdClueEventListVO 中新增 geojson 和 attachmentType 字段
- 更新 GdClueEventMapper.xml 映射文件添加新字段映射
- 修改查询语句增加 geojson 和 attachment_type 字段返回
2 files modified
10 ■■■■■ changed files
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/mapper/GdClueEventMapper.xml 4 ●●●● patch | view | raw | blame | history
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/vo/GdClueEventListVO.java 6 ●●●●● patch | view | raw | blame | history
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/mapper/GdClueEventMapper.xml
@@ -55,6 +55,8 @@
        <result column="id" property="id"/>
        <result column="event_image_url" property="eventImageUrl"/>
        <result column="create_time" property="createTime"/>
        <result column="geojson" property="geojson"/>
        <result column="attachment_type" property="attachmentType"/>
    </resultMap>
    <resultMap id="gdClueEventCountVoResultMap" type="org.sxkj.gd.workorder.vo.GdClueEventCountVO">
@@ -96,6 +98,8 @@
    <select id="selectGdClueEventSimpleList" resultMap="gdClueEventListVoResultMap">
        select ce.id as id,
        tr.result_url as event_image_url,
        tr.geojson as geojson,
        tr.attachment_type as attachmentType,
        ce.create_time as create_time
        from ja_gd_clue_event ce
        left join ja_gd_task_result tr on tr.id::VARCHAR = ce.result_id::VARCHAR and tr.is_deleted = 0
drone-service/drone-gd/src/main/java/org/sxkj/gd/workorder/vo/GdClueEventListVO.java
@@ -43,4 +43,10 @@
    @ApiModelProperty(value = "事件生成时间")
    private Date createTime;
    @ApiModelProperty(value = "事件geojson")
    private String geojson;
    @ApiModelProperty(value = "事件附件类型")
    private String attachmentType;
}