房屋排序问题修改 --renpc

This commit is contained in:
Renpc-kilig 2023-11-22 10:04:20 +08:00
parent 507f00db63
commit 579f8ac24b

View File

@ -187,8 +187,7 @@
<!-- 新增房院管理 --> <!-- 新增房院管理 -->
<insert id="save" parameterType="map"> <insert id="save" parameterType="map">
INSERT INTO house_house( INSERT INTO house_house(house_id,
house_id,
street, street,
street_name, street_name,
community, community,
@ -239,9 +238,8 @@
gmt_create, gmt_create,
modifier, modifier,
gmt_modified, gmt_modified,
is_delete is_delete)
) VALUES( VALUES (#{houseId},
#{houseId},
#{street}, #{street},
#{streetName}, #{streetName},
#{community}, #{community},
@ -292,8 +290,7 @@
#{gmtCreate}, #{gmtCreate},
#{modifier}, #{modifier},
#{gmtModified}, #{gmtModified},
#{isDelete} #{isDelete})
)
</insert> </insert>
<!-- 删除房院管理 --> <!-- 删除房院管理 -->
@ -796,7 +793,7 @@
hp.population_info_id = #{populationInfoId} hp.population_info_id = #{populationInfoId}
) )
</if> </if>
ORDER BY affiliation_unit, affiliation_floors, house_num ASC ORDER BY (affiliation_unit + 0), (affiliation_floors + 0), (house_num + 0) ASC
</select> </select>
<!-- 房院管理列表 --> <!-- 房院管理列表 -->
@ -965,12 +962,9 @@
<!-- 房院管理统计 --> <!-- 房院管理统计 -->
<select id="count" parameterType="map" resultType="Integer"> <select id="count" parameterType="map" resultType="Integer">
SELECT SELECT COUNT(*)
COUNT(*) FROM house_house t1
FROM WHERE t1.is_delete = 0
house_house t1
WHERE
t1.is_delete = 0
</select> </select>
<!-- 以房找人列表 --> <!-- 以房找人列表 -->
@ -1081,9 +1075,7 @@
t1.creator, t1.creator,
t1.gmt_create t1.gmt_create
ORDER BY ORDER BY
t1.affiliation_unit, (t1.affiliation_unit + 0), (t1.affiliation_floors + 0), (t1.house_num + 0) ASC
t1.affiliation_floors,
t1.house_num ASC
</select> </select>
</mapper> </mapper>