Explorar el Código

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

miajio hace 3 semanas
padre
commit
35dfa19673

+ 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