瀏覽代碼

采购订单筛选更新

liuyao 1 年之前
父節點
當前提交
3eb3eddc92

+ 6 - 0
src/main/java/com/dk/mdm/mapper/pur/PurchaseMapper.xml

@@ -456,6 +456,12 @@
             <if test="cpId != null">
                 AND tpp.cp_id = #{cpId}
             </if>
+            <if test="orgIds != null and orgIds.size()>0">
+                AND tpp.org_id = any(#{orgIds, typeHandler=UuidListTypeHandler})
+            </if>
+            <if test="staffIds != null and staffIds.size()>0">
+                AND tpp.staff_id = any(#{staffIds, typeHandler=uuidListTypeHandler})
+            </if>
         </where>
     </sql>
 

+ 5 - 0
src/main/java/com/dk/mdm/model/query/pur/PurchaseQuery.java

@@ -395,8 +395,13 @@ public class PurchaseQuery extends PageInfo<PurchaseQuery> implements Serializab
     @ApiModelProperty(value = "业务员")
     private String staffName;
 
+    @ApiModelProperty(value = "业务员编号筛选集合")
+    private List<String>  staffIds;
+
     @ApiModelProperty(value = "业务部门")
     private String orgName;
+    @ApiModelProperty(value = "业务部门编号筛选集合")
+    private List<String>  orgIds;
 
     @ApiModelProperty(value = "供应商")
     private String supName;