package com.steering.pss.ydm.Stuffmanage;

import java.util.ArrayList;

import CoreFS.SA06.CoreReturnObject;
import CoreFS.SA08.CoreXmlSqlParsersFactory;

import com.steering.comm.converter.CoreConverter;
import com.steering.comm.db.DBCommon;

public class FrmStuffInventoryIn extends DBCommon{

	/***
	 * 查询盘盈信息
	 * @param parm
	 * @param startTim
	 * @param endTim
	 * @param arr
	 * @return
	 */
	public CoreReturnObject doQueryStock(ArrayList<String> parm,String startTim,String endTim,String[] arr)
	{
		String sql = CoreXmlSqlParsersFactory.getSql("FrmStuffInventoryIn.doQueryStock");
		if(!startTim.equals(""))
		{
			sql += " AND STOCKTAKING_TIME >= to_date('"+startTim+"','YYYY-MM-DD HH24:MI:SS') AND STOCKTAKING_TIME <= to_date('"+endTim+"','YYYY-MM-DD HH24:MI:SS')";
		}
		sql += CoreConverter.toSqlConditionString("STORAGE_NO", arr);
		return this.getData(sql, parm.toArray());
	}
}
