wwl 3 жил өмнө
parent
commit
fe1e567a0b

+ 4 - 4
zzjs-service/src/main/resources/mapper/fulu/FuluCommodityInfoMapper.xml

@@ -38,10 +38,10 @@
         LEFT JOIN file_info f on f.file_id = ci.icon_id
         LEFT JOIN sys_dict_data dd ON dd.dict_type = 'fulu_goods_type' and dd.dict_value = ci.fulu_goods_type
         <where>
-            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
-            <if test="productIds != null  and productIds != ''"> and name like concat('%', #{productIds}</if>
-            <if test="fuluGoodsType != null "> and fulu_goods_type = #{fuluGoodsType}</if>
-            <if test="status != null  and status != ''"> and status = #{status}</if>
+            <if test="name != null  and name != ''"> and ci.name like concat('%', #{name}, '%')</if>
+            <if test="productIds != null  and productIds != ''"> and ci.product_ids like concat('%', #{productIds}, '%')</if>
+            <if test="fuluGoodsType != null "> and ci.fulu_goods_type = #{fuluGoodsType}</if>
+            <if test="status != null  and status != ''"> and ci.status = #{status}</if>
         </where>
     </select>