소스 검색

[update] 拣货单开单数和取消数中将拣货单中整件单商品重复计算问题修复

miajio 3 주 전
부모
커밋
35dfa19673
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      warehouse-admin-data/src/main/resources/mapper/statistics/BillingQuantityStatisticsMapper.xml

+ 3 - 0
warehouse-admin-data/src/main/resources/mapper/statistics/BillingQuantityStatisticsMapper.xml

@@ -7,6 +7,7 @@
         from yr_picking_order_detail as pod
                  left join yr_picking_order_info as poi on pod.order_number = poi.order_number
         where poi.create_time between #{beginTime} and #{endTime}
+        and pod.is_aggregation = 0
         group by poi.area_staff_id, pod.goods_id
     </select>
 
@@ -28,6 +29,7 @@
                              from yr_picking_order_detail as pod
                                       left join yr_picking_order_info as poi on pod.order_number = poi.order_number
                              where poi.modify_time between #{beginTime} and #{endTime}
+                               and pod.is_aggregation = 0
                                and poi.picking_status = 3
                              group by poi.area_staff_id, pod.goods_id
                              union all
@@ -50,6 +52,7 @@
                              from yr_picking_order_detail as pod
                                       left join yr_picking_order_info as poi on pod.order_number = poi.order_number
                              where poi.modify_time between #{beginTime} and #{endTime}
+                               and pod.is_aggregation = 0
                                and poi.picking_status = 4
                              group by poi.area_staff_id, pod.goods_id
                              union all