فهرست منبع

修复查询错误

ghost 4 سال پیش
والد
کامیت
4d5e0b4c9e
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      forest-admin/admin-server/src/main/resources/dao/ProductExcelDao.xml

+ 1 - 2
forest-admin/admin-server/src/main/resources/dao/ProductExcelDao.xml

@@ -128,11 +128,10 @@
         a.ums_company_info AS umsCompanyInfo
     FROM
         pms_product a
-        LEFT JOIN pms_product_category b on a.product_category_id=b.id
         WHERE 1=1
         AND  a.delete_status = 0
     <if test="typeId != null">
-        AND b.parent_id = #{typeId}
+        AND a.product_big_category_id = #{typeId}
     </if>
     <if test="search != null and search != ''">
         AND concat(a.`name`, a.brand_name) LIKE concat(concat('%', #{search}, '%'))