| | |
| | | /// </summary> |
| | | /// <param name="pagination"></param> |
| | | /// <returns></returns> |
| | | public IEnumerable<Model.OA_ShebeiWeixiu> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _MemberId, int? _CateId, string _Name, int? _Status, string Anzhuangdidian, int? Zerenren, int? Shifoufufei) |
| | | public IEnumerable<Model.OA_ShebeiWeixiu> SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _MemberId, int? _CateId, string _Name, int? _Status, string Anzhuangdidian, int? Zerenren, int? Shifoufufei, int? guanliZerenren) |
| | | { |
| | | try |
| | | { |
| | |
| | | if (Zerenren.HasValue) |
| | | condition += " and a.Zerenren = '" + Zerenren + "'"; |
| | | |
| | | if (guanliZerenren.HasValue) |
| | | condition += " and c.Zerenren = '" + guanliZerenren + "'"; |
| | | |
| | | |
| | | |
| | | if (Shifoufufei.HasValue) |
| | | condition += " and a.Shifoufufei = '" + Shifoufufei + "'"; |
| | | |
| | | |
| | | return _dataBase.SelectModelPage<Model.OA_ShebeiWeixiu>(pagination, " a.*,b.Name as CateName ", " OA_ShebeiWeixiu as a left join OA_ShebeiCate as b on a.CateId = b.Keyid ", " a.WeixiuTime DESC", " Keyid desc ", condition); |
| | | |
| | | /// <summary> |
| | | /// 查询来源 |
| | | /// </summary> |
| | | string fromss = " OA_ShebeiWeixiu as a left join OA_ShebeiCate as b on a.CateId = b.Keyid left join OA_ShebeiManage as c on a.ShebeiId = c.Keyid " + |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | " where " + condition; |
| | | |
| | | var ssss = _dataBase.SelectModel<Model.OA_ShebeiWeixiu>(" sum(a.WeixiuPrice) as WeixiuPrice,sum(a.DanzePrice) as DanzePrice ", fromss); |
| | | if (ssss.Count > 0) |
| | | { |
| | | var aaaaa = ssss.First(); |
| | | pagination.heji1 = aaaaa.WeixiuPrice; |
| | | pagination.heji3 = aaaaa.DanzePrice; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return _dataBase.SelectModelPage<Model.OA_ShebeiWeixiu>(pagination, " a.*,b.Name as CateName ", " OA_ShebeiWeixiu as a left join OA_ShebeiCate as b on a.CateId = b.Keyid left join OA_ShebeiManage as c on a.ShebeiId = c.Keyid ", " a.WeixiuTime DESC", " Keyid desc ", condition); |
| | | } |
| | | catch (Exception ex) |
| | | { |