지붕재 선택 보완
This commit is contained in:
parent
963f0b05b8
commit
ed52b50052
@ -12,5 +12,6 @@ import lombok.Setter;
|
|||||||
public class TrestleResponse {
|
public class TrestleResponse {
|
||||||
private Integer id;
|
private Integer id;
|
||||||
private String name;
|
private String name;
|
||||||
|
private Integer manufacturerId;
|
||||||
private String manufacturerName;
|
private String manufacturerName;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,14 +4,15 @@
|
|||||||
<mapper namespace="com.interplug.qcast.biz.trestle.TrestleMapper">
|
<mapper namespace="com.interplug.qcast.biz.trestle.TrestleMapper">
|
||||||
<select id="getTrestlesByRoofMaterialId" parameterType="integer"
|
<select id="getTrestlesByRoofMaterialId" parameterType="integer"
|
||||||
resultType="com.interplug.qcast.biz.trestle.dto.TrestleResponse">
|
resultType="com.interplug.qcast.biz.trestle.dto.TrestleResponse">
|
||||||
select a.TRESTLE_ID as id
|
select a.trestle_id as id
|
||||||
, b.name as name
|
, b.name as name
|
||||||
|
, c.id as manufacturerId
|
||||||
, c.name as manufacturerName
|
, c.name as manufacturerName
|
||||||
from TB_INSTALLABLE_TRESTLE a
|
from tb_installable_trestle a
|
||||||
join TB_TRESTLE b
|
join tb_trestle b
|
||||||
on a.TRESTLE_ID = b.ID
|
on a.trestle_id = b.id
|
||||||
join TB_MANUFACTURER c
|
join tb_manufacturer c
|
||||||
on b.MANUFACTURER_ID = c.ID
|
on b.manufacturer_id = c.id
|
||||||
where a.ROOF_MATERIAL_ID = #{roofMaterialId}
|
where a.roof_material_id = #{roofMaterialId}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
x
Reference in New Issue
Block a user