Sfoglia il codice sorgente

销售钉盘—— 列表查询bug修改

zxa 3 anni fa
parent
commit
4926c3a7b9

+ 6 - 1
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/ManagerSaleValueMapper.xml

@@ -45,7 +45,12 @@
         id
         FROM `jeecg-boot`.ctop_project
         WHERE company_id = #{companyId}
-        AND ( media_id = 1 OR media_id = 3 )
+        <if test='mediaId ==2'>
+            AND (t2.media_id = 2 or t2.media_id = 4)
+        </if>
+        <if test='mediaId ==1'>
+            AND (t2.media_id = 1 or t2.media_id = 3)
+        </if>
         <if test="userIds !=null and userIds.size()>0">
             AND sale_id IN
             <foreach collection="userIds" item="id" separator=","