using CRM.Core.Model; using MySql.Data.MySqlClient; using System; using System.Collections.Generic; using System.Data; namespace CRM.Core.DAL.Order { public class WX_SZZYORDER_DAL { public DataSet GetCompanyOrderPay(DateTime startTime, DateTime endTime, int channelMin, int channelMax) { try { var param = new List { new MySqlParameter { ParameterName = "p_startTime", DbType = DbType.DateTime, Value = startTime }, new MySqlParameter { ParameterName = "p_endTime", DbType = DbType.DateTime, Value = endTime }, new MySqlParameter { ParameterName = "p_channelMin", DbType = DbType.Int32, Value = channelMin }, new MySqlParameter { ParameterName = "p_channelMax", DbType = DbType.Int32, Value = channelMax } }; return MySqlDbHelper.DataQueray(ConStringHelper.ZxdCRMConn, CommandType.StoredProcedure, "Ord_CompanyOrderPay", param.ToArray()); } catch { throw; } } public DataSet GetCompanyOrderPay2(DateTime startTime, DateTime endTime, int channelMin, int channelMax) { try { var param = new List { new MySqlParameter { ParameterName = "p_startTime", DbType = DbType.DateTime, Value = startTime }, new MySqlParameter { ParameterName = "p_endTime", DbType = DbType.DateTime, Value = endTime }, new MySqlParameter { ParameterName = "p_channelMin", DbType = DbType.Int32, Value = channelMin }, new MySqlParameter { ParameterName = "p_channelMax", DbType = DbType.Int32, Value = channelMax } }; return MySqlDbHelper.DataQueray(ConStringHelper.ZxdCRMConn, CommandType.StoredProcedure, "Ord_CompanyOrderPay2", param.ToArray()); } catch { throw; } } } }