Authored by mali

库存管理

@@ -168,10 +168,10 @@ public class CollectionUtil { @@ -168,10 +168,10 @@ public class CollectionUtil {
168 * @param groupKey 多个分组方法 168 * @param groupKey 多个分组方法
169 * @return 分组结果 169 * @return 分组结果
170 */ 170 */
171 - @SuppressWarnings({ "unchecked", "rawtypes" }) 171 + /*@SuppressWarnings({ "unchecked", "rawtypes" })
172 public static <T, U> Map groupingByMulti(Collection<U> collection, Function<? super U, ?>... groupKey) { 172 public static <T, U> Map groupingByMulti(Collection<U> collection, Function<? super U, ?>... groupKey) {
173 return groupingByMulti(collection.stream(), groupKey); 173 return groupingByMulti(collection.stream(), groupKey);
174 - } 174 + }*/
175 175
176 /** 176 /**
177 * 多个条件分组. 177 * 多个条件分组.
@@ -180,14 +180,14 @@ public class CollectionUtil { @@ -180,14 +180,14 @@ public class CollectionUtil {
180 * @param groupKey 多个分组方法 180 * @param groupKey 多个分组方法
181 * @return 分组结果 181 * @return 分组结果
182 */ 182 */
183 - @SuppressWarnings({ "unchecked", "rawtypes" }) 183 + /*@SuppressWarnings({ "unchecked", "rawtypes" })
184 public static <T, U> Map groupingByMulti(Stream<U> stearm, Function<? super U, ?>... groupKey) { 184 public static <T, U> Map groupingByMulti(Stream<U> stearm, Function<? super U, ?>... groupKey) {
185 Collector c = Collectors.groupingBy(groupKey[groupKey.length - 1]); 185 Collector c = Collectors.groupingBy(groupKey[groupKey.length - 1]);
186 for (int i = groupKey.length - 2; i >= 0; i--) { 186 for (int i = groupKey.length - 2; i >= 0; i--) {
187 c = Collectors.groupingBy(groupKey[i], c); 187 c = Collectors.groupingBy(groupKey[i], c);
188 } 188 }
189 return (Map) stearm.collect(c); 189 return (Map) stearm.collect(c);
190 - } 190 + }*/
191 191
192 /** 192 /**
193 * 多条件排序 193 * 多条件排序
@@ -120,6 +120,7 @@ @@ -120,6 +120,7 @@
120 </select> 120 </select>
121 121
122 <sql id="skupPageCondition2" > 122 <sql id="skupPageCondition2" >
  123 + 1 = 1
123 <if test="storagePrice.status != null and storagePrice.status > -1"> 124 <if test="storagePrice.status != null and storagePrice.status > -1">
124 and status = #{storagePrice.status} 125 and status = #{storagePrice.status}
125 </if> 126 </if>
@@ -141,7 +142,7 @@ @@ -141,7 +142,7 @@
141 select id, skup, product_id, goods_id, storage_id, depot_num, seller_uid, price, status, 142 select id, skup, product_id, goods_id, storage_id, depot_num, seller_uid, price, status,
142 update_time, create_time 143 update_time, create_time
143 from storage_price 144 from storage_price
144 - where where product_id in 145 + where product_id in
145 <foreach item="item" index="index" collection="list" open="(" separator="," close=")"> 146 <foreach item="item" index="index" collection="list" open="(" separator="," close=")">
146 #{item} 147 #{item}
147 </foreach> and status = 1 148 </foreach> and status = 1