Browse Source

入库查询

姜永辉 2 years ago
parent
commit
ee76a0db3c

+ 9 - 0
src/main/java/com/dk/mdm/mapper/ivt/InboundMapper.xml

@@ -233,6 +233,15 @@
             <if test="orgId != null and orgId != ''">
                 AND tpi.org_id = #{orgId}::uuid
             </if>
+            <if test="orgName != null and orgName != ''">
+                AND tmo.org_name LIKE concat('%',my_ex.likequery(#{orgName}),'%')
+            </if>
+            <if test="supName != null and supName != ''">
+                AND tmp.sup_name LIKE concat('%',my_ex.likequery(#{supName}),'%')
+            </if>
+            <if test="staffName != null and staffName != ''">
+                AND tms.staff_name LIKE concat('%',my_ex.likequery(#{staffName}),'%')
+            </if>
             <if test="staffId != null and staffId != ''">
                 AND tpi.staff_id = #{staffId}::uuid
             </if>

+ 9 - 0
src/main/java/com/dk/mdm/model/query/ivt/InboundQuery.java

@@ -177,6 +177,15 @@ public class InboundQuery extends PageInfo<InboundQuery>{
     @ApiModelProperty(value = "客户名称")
     private String cusName;
 
+    @ApiModelProperty(value = "业务部门")
+    private String orgName;
+
+    @ApiModelProperty(value = "供应商")
+    private String supName;
+
+    @ApiModelProperty(value = "业务员")
+    private String staffName;
+
     @ApiModelProperty(value = "部门List")
     private List<String> orgIdList;