chendayu пре 2 година
родитељ
комит
ce1d68cdcc
1 измењених фајлова са 9 додато и 3 уклоњено
  1. 9 3
      PAS/src/main/resources/mapper/ProductMapper.xml

+ 9 - 3
PAS/src/main/resources/mapper/ProductMapper.xml

@@ -123,6 +123,9 @@
                 and product_category_id in (select id from product_category where product_category_name like
                 '%${productCategoryName}%')
             </if>
+            <if test="true">
+                and p.tenant_id = #{tenantId}
+            </if>
         </where>
         order by
         <choose>
@@ -301,6 +304,9 @@
             <if test="true">
                 and product_category_id = #{pci}
             </if>
+            <if test="true">
+                and p.tenant_id = #{tenantId}
+            </if>
         </where>
         order by
         <choose>
@@ -399,9 +405,9 @@
             <if test="true">
                 and company_name = #{cn}
             </if>
-        <if test="true">
-            and p.tenant_id = #{tenantId}
-        </if>
+            <if test="true">
+                and p.tenant_id = #{tenantId}
+            </if>
         </where>
         order by
         <choose>