瀏覽代碼

fix 商品题库

he2802 4 年之前
父節點
當前提交
ad140fc0e4
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      zhongzheng-system/src/main/resources/mapper/modules/goods/GoodsMapper.xml

+ 12 - 0
zhongzheng-system/src/main/resources/mapper/modules/goods/GoodsMapper.xml

@@ -103,5 +103,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 #{item}
             </foreach>
         </if>
+        <if test="goodsType != null and goodsType != ''">
+            AND g.goods_type = #{goodsType}
+        </if>
+        <if test="goodsName != null and goodsName != ''">
+            AND g.goods_name like concat('%', #{goodsName}, '%')
+        </if>
+        <if test="educationTypeId != null and educationTypeId != ''">
+            AND g.education_type_id = #{educationTypeId}
+        </if>
+        <if test="businessId != null and businessId != ''">
+            AND g.business_id = #{businessId}
+        </if>
     </select>
 </mapper>