|
|
|
|
3
|
<mapper namespace="com.huiju.estateagents.mapper.TaBuildingImgMapper">
|
3
|
<mapper namespace="com.huiju.estateagents.mapper.TaBuildingImgMapper">
|
4
|
<select id="getBuildingImgByApartment" resultType="com.huiju.estateagents.entity.TaBuildingImg" >
|
4
|
<select id="getBuildingImgByApartment" resultType="com.huiju.estateagents.entity.TaBuildingImg" >
|
5
|
select a.* from ta_building_img a inner join ta_apartment_img b on a.img_id = b.img_id
|
5
|
select a.* from ta_building_img a inner join ta_apartment_img b on a.img_id = b.img_id
|
6
|
- where a.status = 1 and b.status= 1 and b.apartment_id = #{id}
|
|
|
|
|
6
|
+ where a.status = 1 and b.status= 1 and b.apartment_id = #{id} order by a.order_no asc
|
7
|
</select>
|
7
|
</select>
|
8
|
|
8
|
|
9
|
<delete id="delBuildingImgByApartment" >
|
9
|
<delete id="delBuildingImgByApartment" >
|