weiximei 5 years ago
parent
commit
d26edaa531
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main/resources/mapper/TaBuildingImgMapper.xml

+ 1
- 1
src/main/resources/mapper/TaBuildingImgMapper.xml View File

@@ -3,7 +3,7 @@
3 3
 <mapper namespace="com.huiju.estateagents.mapper.TaBuildingImgMapper">
4 4
     <select id="getBuildingImgByApartment" resultType="com.huiju.estateagents.entity.TaBuildingImg" >
5 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 7
     </select>
8 8
 
9 9
     <delete id="delBuildingImgByApartment" >