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

@ -75,6 +75,9 @@
<if test="site != null and site != ''"> <if test="site != null and site != ''">
AND a.site = #{site} AND a.site = #{site}
</if> </if>
<if test="transNo != null and transNo != ''">
AND a.TransNo = #{transNo}
</if>
<if test="orderNo != null and orderNo != ''"> <if test="orderNo != null and orderNo != ''">
AND B.OrderNo like #{orderNo} AND B.OrderNo like #{orderNo}
</if> </if>

Loading…
Cancel
Save