Эх сурвалжийг харах

采购跟踪表筛选条件适配

liuyao 1 жил өмнө
parent
commit
5075832d69

+ 6 - 0
src/main/java/com/dk/mdm/mapper/report/ReportMapper.xml

@@ -1421,6 +1421,12 @@
             <if test="cpId != null">
                 tpp.cp_id = #{cpId}
             </if>
+            <if test="staffIds != null and staffIds.size()>0">
+                AND tpp.staff_id = any(#{staffIds, typeHandler=uuidListTypeHandler})
+            </if>
+            <if test="orgIds != null and orgIds.size() > 0">
+                AND tpp.org_id = any(#{orgIds, typeHandler=uuidListTypeHandler})
+            </if>
         </where>
     </sql>
     <!--  销售跟踪表 列表查询 -->