Преглед изворни кода

采购跟踪表筛选条件适配

liuyao пре 1 година
родитељ
комит
5075832d69
1 измењених фајлова са 6 додато и 0 уклоњено
  1. 6 0
      src/main/java/com/dk/mdm/mapper/report/ReportMapper.xml

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

@@ -1421,6 +1421,12 @@
             <if test="cpId != null">
             <if test="cpId != null">
                 tpp.cp_id = #{cpId}
                 tpp.cp_id = #{cpId}
             </if>
             </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>
         </where>
     </sql>
     </sql>
     <!--  销售跟踪表 列表查询 -->
     <!--  销售跟踪表 列表查询 -->