36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Data.OracleClient;
|
|
using WX.CRM.Common;
|
|
|
|
namespace WX.CRM.DAL.Wx
|
|
{
|
|
public class WX_USERPERCENT_DAL
|
|
{
|
|
/// <summary>
|
|
/// 读取推送消息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public DataTable GetPushData(decimal pici)
|
|
{
|
|
DataTable ta = null;
|
|
try
|
|
{
|
|
var param1 = new List<OracleParameter>()
|
|
{
|
|
new OracleParameter() { ParameterName = "v_pici", OracleType = OracleType.Number, Value =pici },
|
|
new OracleParameter(){ParameterName="v_data",OracleType=OracleType.Cursor,Direction = ParameterDirection.Output}
|
|
};
|
|
ta = OracleHelper.DataQueray(CommandType.StoredProcedure, "PACK_WX.getUserPercentPushData", param1.ToArray()).Tables[0];
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogHelper.Error(":" + ex.ToString());
|
|
}
|
|
return ta;
|
|
}
|
|
}
|
|
}
|