using System; using System.Collections.Generic; using System.Linq; using System.Text; using Models; using System.Data.SqlClient; using System.Data; namespace DAL { public class ViewDelegationInfoAndcreditCardPaymentService { /// /// 根据出访日期获取数据集合 /// /// /// /// public List GetByTime(string startTime, string endTime) { return excuteSql("select distinct ccp.diid,di.TeamName,di.ClientUnit,di.VisitDate from creditCardPayment ccp join DelegationInfo di on ccp.DIID = di.id where di.VisitDate between '" + startTime + "' and '" + endTime + "' and ccp.isdel=0 and di.isdel=0"); } /// /// 查询所有 /// /// sql语句 /// 可变参数数组 /// 返回集合 List excuteSql(string sql, params SqlParameter[] param) { return ServiceBase.excuteSql(new ViewDelegationInfoAndcreditCardPayment(), "ViewDelegationInfoAndcreditCardPayment", sql, CommandType.Text, param); } } }