6 天以前 1e123568c2f561013f5636e45dc0db30b17a3517
src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -12,6 +12,8 @@
        <result column="tenant_id" property="tenantId" />
        <result column="product_name" property="productName" />
        <result column="product_id" property="productId" />
        <result column="product_code" property="productCode" />
        <result column="barcode" property="barcode" />
    </resultMap>
    <resultMap id="ProductModelVoResultMap" type="com.ruoyi.basic.vo.ProductModelVo" extends="BaseResultMap">
@@ -30,6 +32,9 @@
            <if test="c.model != null and c.model != ''">
                and pm.model  like  concat('%',#{c.model},'%')
            </if>
            <if test="c.barcode != null and c.barcode != ''">
                and pm.barcode  like  concat('%',#{c.barcode},'%')
            </if>
            <if test="c.productName != null and c.productName != ''">
                and p.product_name  like  concat('%',#{c.productName},'%')
            </if>