From f11c7aad9a133b4001b17e98b302035913f1df2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A5=8E=E5=85=B4?= <2220574228@qq.com> Date: Wed, 22 Apr 2026 15:16:59 +0800 Subject: [PATCH] =?UTF-8?q?sql=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MaterialInventoryMapper.xml | 84 ++++++++++++++++--- 1 file changed, 74 insertions(+), 10 deletions(-) diff --git a/mhd_oms/src/main/resources/mapper/reservationMaterialInventory/MaterialInventoryMapper.xml b/mhd_oms/src/main/resources/mapper/reservationMaterialInventory/MaterialInventoryMapper.xml index dddb25bcb..5118ae68b 100644 --- a/mhd_oms/src/main/resources/mapper/reservationMaterialInventory/MaterialInventoryMapper.xml +++ b/mhd_oms/src/main/resources/mapper/reservationMaterialInventory/MaterialInventoryMapper.xml @@ -66,6 +66,70 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + ,b.shipper_id AS base_shipper_id, + b.shipper_code AS base_shipper_code, + b.shipper_name AS base_shipper_name, + b.material_code, + b.material_name, + b.bar_code, + b.material_classify_code, + b.material_classify_name, + b.material_type, + b.material_type_name, + b.common, + b.pack_id, + b.pack_code, + b.pack_name + + + + + + and b.shipper_id = #{shipperId} + + + and b.shipper_code like concat('%', #{shipperCode}, '%') + + + and b.shipper_name like concat('%', #{shipperName}, '%') + + + and b.material_code = #{materialCode} + + + and b.material_name like concat('%', #{materialName}, '%') + + + and b.bar_code = #{barCode} + + + + FIND_IN_SET(#{code}, b.material_classify_code) > 0 + + + + + b.material_classify_name like concat('%', #{name}, '%') + + + + and b.material_type = #{materialType} + + + and b.material_type_name like concat('%', #{materialTypeName}, '%') + + + and (b.shipper_code like concat('%', #{shipperInfo}, '%') or b.shipper_name like concat('%', #{shipperInfo}, '%')) + + + and (b.material_code = #{materialInfo} or b.material_name like concat('%', #{materialInfo}, '%') or b.bar_code = #{materialInfo}) + + + a.material_inventory_id, a.organization_id, a.organization_name, a.top_organization_id, @@ -208,12 +272,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -221,12 +285,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -234,12 +298,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -247,12 +311,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -260,12 +324,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"