Commit 350a889e authored by lisong's avatar lisong

添加排序

parent 20294f64
...@@ -1464,14 +1464,15 @@ ...@@ -1464,14 +1464,15 @@
</select> </select>
<select id="selectRoutePointList" resultType="com.yeejoin.amos.patrol.dao.entity.Point"> <select id="selectRoutePointList" resultType="com.yeejoin.amos.patrol.dao.entity.Point">
SELECT * from p_point SELECT * from p_point
WHERE route_id is null WHERE route_id is null and is_delete = 0
<if test="name != null and name != ''"> <if test="name != null and name != ''">
AND name like concat('%', #{name}, '%') AND name like concat('%', #{name}, '%')
</if> </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
AND point_no like concat('%', #{pointNo}, '%') AND point_no like concat('%', #{pointNo}, '%')
</if> </if>
LIMIT #{number}, #{size} ORDER BY create_date
LIMIT #{number}, #{size}
</select> </select>
<select id="countRoutePointList" resultType="java.lang.Integer"> <select id="countRoutePointList" resultType="java.lang.Integer">
SELECT count(1) from p_point SELECT count(1) from p_point
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment