移库
This commit is contained in:
@@ -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 >= #{startDate}
|
||||
</if>
|
||||
<if test="endDate != null">
|
||||
AND mr.moved_at <= #{endDate}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY mr.create_time DESC
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user