综合查询-设备订单详情

This commit is contained in:
liang.chao 2024-12-18 16:14:34 +08:00
parent c4ebd6a1d3
commit d5170bf548
1 changed files with 8 additions and 0 deletions

View File

@ -340,6 +340,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_dept sd ON moi.buyer_company = sd.dept_id
WHERE
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 &lt; #{startTime} AND md.rent_end_time > #{endTime}))
</if>
ORDER BY
moi.order_time DESC
</select>