| | |
| | | public class CooperOrderService: ICooperOrderService |
| | | { |
| | | private readonly zhengcaioaContext _context; |
| | | private readonly zcUserInfoN_dbContext _zcUserInfoN_dbContext; |
| | | private readonly IMapper _mapper; |
| | | public CooperOrderService(zhengcaioaContext context, IMapper mapper) |
| | | public CooperOrderService(zhengcaioaContext context, IMapper mapper, zcUserInfoN_dbContext zcUserInfoN_dbContext) |
| | | { |
| | | _context = context; |
| | | _mapper = mapper; |
| | | _zcUserInfoN_dbContext = zcUserInfoN_dbContext; |
| | | } |
| | | |
| | | |
| | |
| | | data.LoadData(searchEntity, lianlist); |
| | | return data; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | public List<CooperOrderDTO> GetListComplaintsDisputeCount(string huiyuanid) |
| | | { |
| | | var query = (from a in _zcUserInfoN_dbContext.UsergGadeRoles |
| | | join b in _zcUserInfoN_dbContext.GadeRoles |
| | | on a.UserGadeRolesId equals b.Id |
| | | where a.UserId == Guid.Parse(huiyuanid) |
| | | select new CooperOrderDTO |
| | | { |
| | | Id = a.UserId.ToString(), |
| | | AnswerRoles = b.AnswerRoles, |
| | | XiaocaiKeTang = b.XiaocaiKeTang, |
| | | XiaoCaiQandA = b.XiaoCaiQandA, |
| | | Discount = b.Discount, |
| | | BiddingDocumentsCount = b.BiddingDocumentsCount, |
| | | ComplaintsDisputeCount = b.ComplaintsDisputeCount, |
| | | PerformanceDisputeCount = b.PerformanceDisputeCount, |
| | | BiddingDocumentsCountused = a.BiddingDocumentsCount, |
| | | ComplaintsDisputeCountused = a.ComplaintsDisputeCount, |
| | | PerformanceDisputeCountused = a.PerformanceDisputeCount, |
| | | |
| | | } |
| | | ).ToList(); |
| | | |
| | | |
| | | |
| | | |
| | | return query; |
| | | } |
| | | } |
| | | } |