using Models; using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DAL { public class grouopExceedViewService { /// /// 查询所有 /// /// sql语句 /// 可变参数数组 /// 返回集合 List excuteSql(string sql, params SqlParameter[] param) { return ServiceBase.excuteSql(new grouopExceedView(), "grouopExceedView", sql, CommandType.Text, param); } /// /// 根据diid查询超支导出数据 /// /// 对象编号 /// 返回空或者单个对象信息 public List GetGrouopExceedByDiId(int DiId) { //调用获取单个对象的方法 return excuteSql("select d.TeamName,g.operatorsDate,g.PriceType,g.PriceName,g.Coefficient,g.Price,(select Name from SetData where g.currency=id) as Currency,c.DayRate,c.RMBPrice,g.remark from grouopExceed g left join CreditCardPayment c on g.id=c.CId and c.CTable=805 left join DelegationInfo d on g.DIID=d.Id where g.IsDel=0 and g.DIID=@DiId", new SqlParameter("@DiId", DiId)); } } }