지붕재 선택 보완

This commit is contained in:
hyojun.choi 2024-08-14 15:59:44 +09:00
parent 963f0b05b8
commit ed52b50052
2 changed files with 9 additions and 7 deletions

View File

@ -12,5 +12,6 @@ import lombok.Setter;
public class TrestleResponse {
private Integer id;
private String name;
private Integer manufacturerId;
private String manufacturerName;
}

View File

@ -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>