<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc = "入库查询">
<query id = "FrmReportBcInput.doQueryData" desc = "查询入库记录(仓库)">
SELECT 
 #COLUMNS#
 SUM(T.ACT_COUNT) AS ACT_COUNT,
 SUM(T.ACT_WEIGHT) AS ACT_WEIGHT,
 SUM(T.PONDER_GROSS_WT) AS PONDER_GROSS_WT
 FROM YDM_BC_INLIST T
 LEFT JOIN YDM_BS_STORAGE S
 ON T.STORAGE_NO = S.STORAGE_NO
 WHERE  T.INSTOCK_TYPE_CODE IN('800701','800703') AND T.VALIDFLAG ='1' #CONDITIONS#
</query>
<query id = "FrmReportBcInput.doQueryDataBelong" desc = "查询入库记录(所属权)">
SELECT 
 #COLUMNS#
 SUM(T.ACT_COUNT) AS ACT_COUNT,
 SUM(T.ACT_WEIGHT) AS ACT_WEIGHT,
  SUM(T.PONDER_GROSS_WT) AS PONDER_GROSS_WT
 FROM YDM_BC_INLIST T
 LEFT JOIN YDM_BS_STORAGE S
 ON T.STORAGE_NO = S.STORAGE_NO
 WHERE  T.INSTOCK_TYPE_CODE IN('800709','800702','800706','800711','800710','800704') 
 --AND T.PLINE_CODE NOT IN('C022','C023','C024','C025','C026','C027','C048','C049','C050','C054','C055','C079')
 #CONDITIONS#
</query>
</queryMap>
