weiximei 5 년 전
부모
커밋
d26edaa531
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/main/resources/mapper/TaBuildingImgMapper.xml

+ 1
- 1
src/main/resources/mapper/TaBuildingImgMapper.xml 파일 보기

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