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.
28 lines
1.3 KiB
XML
28 lines
1.3 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.glxp.api.dao.inout.IoStatOrderDao">
|
|
<select id="filterList" resultType="com.glxp.api.res.inout.IoStatOrderResponse">
|
|
select io_stat_order.*, ad.name deptName, aw.name invName
|
|
from io_stat_order
|
|
left join auth_dept ad on io_stat_order.deptCode = ad.code
|
|
left join auth_warehouse aw on io_stat_order.invCode = aw.code
|
|
<where>
|
|
<if test="type != null and type != ''">
|
|
and type = #{type}
|
|
</if>
|
|
<if test="invCode != null and invCode != ''">
|
|
and invCode = #{invCode}
|
|
</if>
|
|
<if test="recordKey != null and recordKey != ''">
|
|
and recordKey like concat('%', #{recordKey}, '%')
|
|
</if>
|
|
<if test="startTime != null and startTime != ''">
|
|
and date_format(date, '%Y-%m-%d') >= date_format(#{startTime}, '%Y-%m-%d')
|
|
</if>
|
|
<if test="endTime != null and endTime != ''">
|
|
and date_format(date, '%Y-%m-%d') <= date_format(#{endTime}, '%Y-%m-%d')
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|