소스 검색

<!--把户主放第一位-->

shiqian 3 년 전
부모
커밋
0e9a8b6efe
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      boman-web-core/src/main/resources/mapper/VaccineInfoMapper.xml

+ 2 - 1
boman-web-core/src/main/resources/mapper/VaccineInfoMapper.xml

@@ -388,7 +388,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         select vi.id, vi.user_name, vi.phone_num, vi.id_card, vi.gender, vi.province, vi.city, vi.region, vi.now_in
         , vi.house_type, vi.update_by, vi.code, vi.rlr, vi.yhzgx
         from vaccine_info vi
-        where vi.is_del = 'N' and code = #{code}
+        <!--把户主放第一位-->
+        where vi.is_del = 'N' and code = #{code} order by house_type desc;
     </select>
 
     <select id="listByRlry" resultMap="VaccineInfoResult">