浏览代码

成品粮购销计划管理--只显示自己库的购销计划管理

tangsong 1 年之前
父节点
当前提交
cefcd0ec63

+ 3 - 0
src/main/java/com/chinaitop/depot/pg/mapper/BusinessPgGopsPlanMapper.xml

@@ -407,6 +407,9 @@
407 407
     LEFT JOIN depot_qh.org_info d on a.org_id = d.org_id
408 408
     LEFT JOIN province_all.biz_unit_info b on d.unit_info_id = b.id
409 409
     where 1=1
410
+    <if test="pageParam.orgId !=null and pageParam.orgId!=''">
411
+      and a.orgId =#{pageParam.orgId}
412
+    </if>
410 413
     <if test="pageParam.unitName !=null and pageParam.unitName!=''">
411 414
       and b.dwmc like concat("%",#{pageParam.unitName},"%")
412 415
     </if>

+ 3 - 0
src/main/java/com/chinaitop/depot/pg/param/BusinessPgGopsPlanPageParam.java

@@ -19,6 +19,9 @@ public class BusinessPgGopsPlanPageParam {
19 19
     @ApiModelProperty(value = "库区名称")
20 20
     private String orgName;
21 21
 
22
+    @ApiModelProperty(value = "库区Id")
23
+    private String orgId;
24
+
22 25
     @ApiModelProperty(value = "企业名称")
23 26
     private String unitName;
24 27
     /** 性质id */