修改--AR返回数据添加workId字段
This commit is contained in:
parent
08b5f6ea86
commit
9868967d8e
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user