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