Przeglądaj źródła

优化代码权限

java110 2 lat temu
rodzic
commit
4d7660d160

+ 9 - 0
java110-bean/src/main/java/com/java110/dto/purchase/AllocationStorehouseDto.java

@@ -68,6 +68,7 @@ public class AllocationStorehouseDto extends PageDto implements Serializable {
     private String isFixed;
     private String isFixedName;
     private String timesId;
+    private String communityId;
 
     private List<ResourceStoreTimesDto> times;
 
@@ -424,4 +425,12 @@ public class AllocationStorehouseDto extends PageDto implements Serializable {
     public void setTimes(List<ResourceStoreTimesDto> times) {
         this.times = times;
     }
+
+    public String getCommunityId() {
+        return communityId;
+    }
+
+    public void setCommunityId(String communityId) {
+        this.communityId = communityId;
+    }
 }

+ 7 - 0
java110-db/src/main/resources/mapper/store/AllocationStorehouseServiceDaoImplMapper.xml

@@ -151,6 +151,9 @@
         <if test="storeId !=null and storeId != ''">
             and t.store_id= #{storeId}
         </if>
+        <if test="communityId !=null and communityId != ''">
+            and asa.community_id= #{communityId}
+        </if>
         <if test="resId !=null and resId != ''">
             and t.res_id= #{resId}
         </if>
@@ -276,6 +279,10 @@
         <if test="storeId !=null and storeId != ''">
             and t.store_id= #{storeId}
         </if>
+        <if test="communityId !=null and communityId != ''">
+            and asa.community_id= #{communityId}
+        </if>
+
         <if test="resId !=null and resId != ''">
             and t.res_id= #{resId}
         </if>