This commit is contained in:
2026-03-20 11:00:19 +08:00
parent 676ab34c1b
commit e334c57736
2 changed files with 65 additions and 2 deletions

View File

@@ -49,6 +49,8 @@
<result property="xmNo" column="xm_no"/>
<result property="xmMs" column="xm_ms"/>
<result property="wlMs" column="wl_ms"/>
<result property="wlNo" column="wl_no"/>
<result property="sapNo" column="sap_no"/>
<result property="gysMc" column="gys_mc"/>
</resultMap>
@@ -141,6 +143,8 @@
ri.xm_no,
ri.xm_ms,
ri.wl_ms,
ri.wl_no,
ri.sap_no,
ri.gys_mc,
wi1.warehouse_name AS from_cangku_name,
wi2.warehouse_name AS to_cangku_name
@@ -163,9 +167,21 @@
<if test="xmNo != null and xmNo != ''">
AND ri.xm_no = #{xmNo}
</if>
<if test="wlNo != null and wlNo != ''">
AND ri.wl_no = #{wlNo}
</if>
<if test="sapNo != null and sapNo != ''">
AND ri.sap_no = #{sapNo}
</if>
<if test="moveReason != null and moveReason != ''">
AND mr.move_reason LIKE concat('%', #{moveReason}, '%')
</if>
<if test="startDate != null">
AND mr.moved_at &gt;= #{startDate}
</if>
<if test="endDate != null">
AND mr.moved_at &lt;= #{endDate}
</if>
</where>
ORDER BY mr.create_time DESC
</select>