Procházet zdrojové kódy

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

tangsong před 1 rokem
rodič
revize
cefcd0ec63

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

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

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

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