diff --git a/api-admin/src/main/resources/mybatis/mapper/inventory/InvPreInProductDao.xml b/api-admin/src/main/resources/mybatis/mapper/inventory/InvPreInProductDao.xml index bf164549..d8613076 100644 --- a/api-admin/src/main/resources/mybatis/mapper/inventory/InvPreInProductDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/inventory/InvPreInProductDao.xml @@ -131,10 +131,13 @@ basic_products.diType=1 - AND basic_products.cpmctymc = #{cpmctymc} + AND basic_products.cpmctymc like concat('%',#{cpmctymc},'%') + + + AND basic_products.cpmctymc like concat('%',#{productsName},'%') - AND basic_products.nameCode = #{nameCode} + AND basic_products.nameCode like concat('%',#{nameCode},'%') AND inv_prein_product.relIdFk = #{relIdFk} @@ -147,10 +150,10 @@ - AND basic_products.ggxh = #{ggxh} + AND basic_products.ggxh = concat('%',#{ggxh},'%') - AND inv_prein_product.batchNo = #{batchNo} + AND inv_prein_product.batchNo like concat('%',#{batchNo},'%') AND inv_prein_product.productionDate = #{productionDate} diff --git a/api-admin/src/main/resources/mybatis/mapper/inventory/InvProductDao.xml b/api-admin/src/main/resources/mybatis/mapper/inventory/InvProductDao.xml index d3e26e67..2ce35a28 100644 --- a/api-admin/src/main/resources/mybatis/mapper/inventory/InvProductDao.xml +++ b/api-admin/src/main/resources/mybatis/mapper/inventory/InvProductDao.xml @@ -126,11 +126,14 @@ left join inv_warehouse_sub on inv_warehouse_sub.parentId = inv_warehouse.code basic_products.diType=1 + + AND basic_products.cpmctymc like concat('%',#{cpmctymc},'%') + AND inv_product.productsName like concat('%',#{productsName},'%') - AND inv_product.nameCode = #{nameCode} + AND inv_product.nameCode like concat('%', #{nameCode}, '%') AND inv_product.relIdFk = #{relIdFk}