diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml index 51f8465..af3d899 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpAllocationMapper.xml @@ -46,7 +46,7 @@ wt_sp_allocation wa JOIN wt_sp_warehouse sw ON wa.OUT_WAREHOUSE_ID = sw.id - and wa.code = #{params.code} + and wa.code like concat('%',#{params.code},'%') and wa.status = #{params.status} diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml index 7d7f1bc..80ee565 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseInMapper.xml @@ -47,7 +47,7 @@ wt_sp_warehouse_in wi JOIN wt_sp_warehouse sw ON wi.STORAGE_ROOM = sw.id - and wi.code = #{params.code} + and wi.code like concat('%',#{params.code},'%') and wi.type = #{params.type} diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml index 54863cd..d3349a8 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/mapper/SpWarehouseOutMapper.xml @@ -47,7 +47,7 @@ wt_sp_warehouse_out wo JOIN wt_sp_warehouse sw ON wo.STORAGE_ROOM = sw.id - and wo.code = #{params.code} + and wo.code like concat('%',#{params.code},'%') and wo.type = #{params.type}