综合查询-设备订单详情
This commit is contained in:
parent
c4ebd6a1d3
commit
d5170bf548
|
|
@ -340,6 +340,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN sys_dept sd ON moi.buyer_company = sd.dept_id
|
LEFT JOIN sys_dept sd ON moi.buyer_company = sd.dept_id
|
||||||
WHERE
|
WHERE
|
||||||
md.ma_id = #{maId}
|
md.ma_id = #{maId}
|
||||||
|
<if test="orderCode != null and orderCode != ''">
|
||||||
|
AND moi.`code` like concat( '%',#{orderCode},'%' )
|
||||||
|
</if>
|
||||||
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
||||||
|
AND ((md.rent_begin_time BETWEEN #{startTime} AND #{endTime})
|
||||||
|
OR (md.rent_end_time BETWEEN #{startTime} AND #{endTime})
|
||||||
|
OR (md.rent_begin_time < #{startTime} AND md.rent_end_time > #{endTime}))
|
||||||
|
</if>
|
||||||
ORDER BY
|
ORDER BY
|
||||||
moi.order_time DESC
|
moi.order_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue