<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc = "出库查询">
<query id = "FrmReportBcOutput.doQueryData" desc = "查询出库信息(仓库)">
SELECT 
 #COLUMNS#
 SUM(T.ACT_COUNT) AS ACT_COUNT,
 SUM(T.ACT_WEIGHT) AS ACT_WEIGHT,
 SUM(T.ACT_LEN) AS ACT_LEN
 FROM YDM_BC_OUTLIST T
 LEFT JOIN YDM_BS_STORAGE S
 ON T.TAR_STORAGE_NO = S.STORAGE_NO
 WHERE 1=1 
 #CONDITIONS#
</query>
<!-- AND T.OUTSTOCK_TYPE_CODE IN('800801','800802','800803','800805') -->
<query id = "FrmReportBcOutput.doQueryDataBelong" desc = "查询出库信息(所属权)">
SELECT 
 #COLUMNS#
 SUM(T.ACT_COUNT) AS ACT_COUNT,
 SUM(T.ACT_WEIGHT) AS ACT_WEIGHT,
 SUM(T.ACT_LEN) AS ACT_LEN
 FROM YDM_BC_OUTLIST T
 LEFT JOIN YDM_BS_STORAGE S
 ON T.TAR_STORAGE_NO = S.STORAGE_NO
 WHERE  T.OUTSTOCK_TYPE_CODE IN('800809','800802','800811','800808','800806','800804')
 --AND T.PLINE_CODE NOT IN('C022','C023','C024','C025','C026','C027','C048','C049','C050','C054','C055','C079') 
 #CONDITIONS#
</query>
</queryMap>

