123456789101112131415161718192021222324252627282930313233343536 |
- 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
- {
- /// <summary>
- /// 根据出访日期获取数据集合
- /// </summary>
- /// <param name="userNumber"></param>
- /// <param name="swipeDate"></param>
- /// <returns></returns>
- public List<ViewDelegationInfoAndcreditCardPayment> 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");
- }
- /// <summary>
- /// 查询所有
- /// </summary>
- /// <param name="sql">sql语句</param>
- /// <param name="param">可变参数数组</param>
- /// <returns>返回集合</returns>
- List<ViewDelegationInfoAndcreditCardPayment> excuteSql(string sql, params SqlParameter[] param)
- {
- return ServiceBase<ViewDelegationInfoAndcreditCardPayment>.excuteSql(new ViewDelegationInfoAndcreditCardPayment(), "ViewDelegationInfoAndcreditCardPayment", sql, CommandType.Text, param);
- }
- }
- }
|