You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.zhehekeji.web.mapper.OrderMapper">
|
|
|
|
|
|
|
|
|
|
<select id="list" parameterType="com.zhehekeji.web.pojo.OrderSearch" resultType="com.zhehekeji.web.pojo.OrderVO">
|
|
|
|
|
select t.*
|
|
|
|
|
from `order` t
|
|
|
|
|
<where>
|
|
|
|
|
<if test="req.orderNum != null and req.orderNum != ''">
|
|
|
|
|
and t.order_num = #{req.orderNum}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="req.startTimestamp != null and req.endTimestamp != null">
|
|
|
|
|
and t.start_time >= #{req.startTimestamp} and t.start_time <= #{req.endTimestamp}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="req.streetId != null and req.streetId != ''">
|
|
|
|
|
and t.street_id = #{req.streetId}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by t.id desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|