Parcourir la source

库级-轮换半月报-添加orgId进行过滤

tangsong il y a 1 an
Parent
commit
d06cddec67

+ 3 - 0
src/main/java/com/chinaitop/depot/rp/mapper/BusinessRpBiweeklyReportMapper.xml

@@ -272,6 +272,9 @@
272 272
         LEFT JOIN depot_qh.business_rp_biweekly_report_grain f on f.rp_biweekly_report_id = a.id
273 273
         LEFT JOIN depot_qh.basic_enum g on g.enumId = f.grain_variety_id
274 274
         where 1=1
275
+        <if test="pageParam.orgId !=null and pageParam.orgId!=''">
276
+            and a.org_id = #{pageParam.orgId}
277
+        </if>
275 278
         <if test="pageParam.unitName !=null and pageParam.unitName!=''">
276 279
             and b.dwmc like concat("%",#{pageParam.unitName},"%")
277 280
         </if>

+ 4 - 0
src/main/java/com/chinaitop/depot/rp/param/BusinessRpBiweeklyReportPageParam.java

@@ -42,6 +42,10 @@ public class BusinessRpBiweeklyReportPageParam {
42 42
     @ApiModelProperty(value = "排序方式,升序:ASCEND;降序:DESCEND")
43 43
     private String sortOrder;
44 44
 
45
+    /** 库区id */
46
+    @ApiModelProperty(value = "库区id")
47
+    private String orgId;
48
+
45 49
     /** 企业名称 */
46 50
     @ApiModelProperty(value = "企业名称")
47 51
     private String unitName;