Browse Source

feat(mapper): 添加运输单号查询条件支持

- 在 SoScheduledListMapper.xml 中新增 transNo 查询条件
- 当 transNo 参数不为空时添加 AND a.TransNo = #{transNo} 条件
- 保持与其他查询条件的兼容性
master
常熟吴彦祖 3 weeks ago
parent
commit
ddfb267475
  1. 3
      src/main/resources/mapper/production/SoScheduledListMapper.xml

3
src/main/resources/mapper/production/SoScheduledListMapper.xml

@ -74,6 +74,9 @@
and a.need_inspect_flag='Y' and a. Status!='已取消' and a.ToTypeFlag!='调拨入仓库' and a.need_inspect_flag='Y' and a. Status!='已取消' and a.ToTypeFlag!='调拨入仓库'
<if test="site != null and site != ''"> <if test="site != null and site != ''">
AND a.site = #{site} AND a.site = #{site}
</if>
<if test="transNo != null and transNo != ''">
AND a.TransNo = #{transNo}
</if> </if>
<if test="orderNo != null and orderNo != ''"> <if test="orderNo != null and orderNo != ''">
AND B.OrderNo like #{orderNo} AND B.OrderNo like #{orderNo}

Loading…
Cancel
Save