修改--AR返回数据添加workId字段

This commit is contained in:
haotian 2025-04-21 09:52:53 +08:00
parent 08b5f6ea86
commit 9868967d8e
2 changed files with 12 additions and 1 deletions

View File

@ -10,6 +10,7 @@ public class ShowSysSourceARListDto {
private String workAddress;
private String workName;
private String detail;
private Long workId;
public Long getSourceId() {
return sourceId;
@ -75,5 +76,14 @@ public class ShowSysSourceARListDto {
this.detail = detail;
}
public Long getWorkId() {
return workId;
}
public void setWorkId(Long workId) {
this.workId = workId;
}
}

View File

@ -78,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="workAddress" column="work_address" />
<result property="workName" column="work_name" />
<result property="detail" column="detail" />
<result property="workId" column="work_id"/>
</resultMap>
<resultMap id="SourceCoordinateDtoResult" type="SourceCoordinateDto">
@ -186,7 +187,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="getARSource" resultMap="ShowSysSourceARListDtoResult">
select s.source_id, s.c_x, s.c_y, s.source_status, s.part, s.work_address, w.work_name, w.detail
select s.source_id, s.c_x, s.c_y, s.source_status, s.part, s.work_address, w.work_name, w.detail, s.work_id
from sys_source s
left join user_work w
on s.work_id = w.work_id