feat(qrcode): 添加条码流程位置筛选功能

- 在 QrCodeItemSearchQO 中新增 processStage 字段用于流程位置筛选
- 在 WmsQrCodeMasterMapper.xml 中添加流程阶段条件查询逻辑
- 实现根据条码流程位置进行数据过滤的功能
- 支持通过 processStage 参数精确匹配条码当前处理阶段
- 优化查询条件以提升条码检索的准确性
This commit is contained in:
曹鹏飞 2026-06-12 19:50:45 +08:00
parent a9f5a68836
commit b2f789ca7f
2 changed files with 8 additions and 0 deletions

View File

@ -21,4 +21,9 @@ public class QrCodeItemSearchQO extends SearchBaseQO {
* 库存地点 * 库存地点
*/ */
private String storageLocation; private String storageLocation;
/**
* 条码流程位置
*/
private Short processStage;
} }

View File

@ -37,6 +37,9 @@
left join user_supplier d on a.supplier_id = d."id" left join user_supplier d on a.supplier_id = d."id"
<!-- left join wms_qr_code_master f on f.parent_barcode_id = a.id and f.process_stage = 6--> <!-- left join wms_qr_code_master f on f.parent_barcode_id = a.id and f.process_stage = 6-->
where a.parent_barcode_id = 0 where a.parent_barcode_id = 0
<if test="request.processStage !=null">
and a.process_stage =#{request.processStage}
</if>
<if test="request.barcodeCode !=null and request.barcodeCode !=''"> <if test="request.barcodeCode !=null and request.barcodeCode !=''">
and a.barcode_code =#{request.barcodeCode} and a.barcode_code =#{request.barcodeCode}
</if> </if>