Explorar o código

[update] 基础数据查询拣货单、整件单开单数基于完成时间计算

miajio hai 2 semanas
pai
achega
e95b4276c4

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

@@ -6,7 +6,8 @@
         select poi.area_staff_id as areaStaffId, pod.goods_id as goodsId, SUM(pod.picking_number) as totalNum
         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}
+        where poi.modify_time between #{beginTime} and #{endTime}
+        and poi.picking_status = 2
         and pod.is_aggregation = 0
         group by poi.area_staff_id, pod.goods_id
     </select>
@@ -18,6 +19,7 @@
         from yr_aggregation_pick_detail as apd
                  left join yr_aggregation_pick_info as api on apd.order_number = api.order_number
         where api.modify_time between #{beginTime} and #{endTime}
+        and api.status = 'UN_REPLENISH'
         group by api.area_staff_id, apd.goods_id
     </select>