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.
32 lines
1.4 KiB
XML
32 lines
1.4 KiB
XML
<?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 like concat('%', #{req.orderNum},'%')
|
|
</if>
|
|
<if test="req.taskId != null and req.taskId != ''">
|
|
and t.task_WMS_Id like concat('%', #{req.taskId},'%')
|
|
</if>
|
|
<if test="req.subtag != null and req.subtag != ''">
|
|
and t.subtag like concat('%', #{req.subtag},'%')
|
|
</if>
|
|
<if test="req.trayCode != null and req.trayCode != ''">
|
|
and t.wms_Code like concat('%', #{req.trayCode},'%')
|
|
</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 req.streetId != 0">
|
|
and t.street_id = #{req.streetId}
|
|
</if>
|
|
</where>
|
|
order by t.id desc
|
|
</select>
|
|
|
|
</mapper>
|