using System; using System.Collections.Generic; using System.Data; using WX.CRM.Common; using WX.CRM.Model.Entity; using WX.CRM.Model.MAP; using WX.CRM.Model.QueryMap; namespace WX.CRM.IBLL.Wx { public interface IWX_RCONTACT : IRepository { WX_RCONTACT GetModel(decimal pkid); //List GetList(ref Pager page, string username, string jobwxusername, string inneruserId, string groupId, decimal salesId, string stime, string etime); List GetList(ref Pager page, string jobWxUserName, string userName, string alias, string nickName, string conRemark, string stime, string etime); List GetFilterList(ref Pager page, string jobWxUserName, string userName, string alias, string nickName, string conRemark, string stime, string etime); List GetMyList(ref Pager pager, string resId, string userName, string alias, string conreMark, string nickName, string jobWxUser, string stime, string etime, decimal? userId, bool canSearchAll, decimal? orderId = null); List GetListAndWorkAccount(ref Pager page, string jobWxUserName, string userName, string alias, string nickName, string conRemark, string stime, string etime, string resId); DataTable CountRcontactByWxJobUserName(); DataTable CountRcontactByInnerUserId(); DataTable CountRcontactByUserGroup(); DataSet ExportWeiXinResource(DateTime beginTime, DateTime endTime, decimal? inneruserid); List GetJobWeiXinLastFriendList(); bool UpdateResId(ref ValidationErrors errors, decimal pkId, string resId); /// /// 推送数据到推广 /// /// 用户名 /// 工作微信username /// 返回PICI decimal pushRcontactToTG(string v_username, string v_jobusername); /// /// 从message表中提取好友关系被加数据 /// /// 好友username /// 工作微信 /// msgSvrId /// 内容 /// 时间 /// 返回pici decimal extractToBeFriendsDataFromMsg(decimal type, string v_username, string v_jobusername, DateTime v_createTime, ref bool ret); DataTable RcontactByDayReport(DateTime? beginTime, DateTime? endTime, decimal? type); DataTable RcontactByUserAndDay(DateTime beginTime, DateTime endTime, decimal? type); DataTable RcontactByTag(DateTime beginTime, DateTime endTime); int ResourceByTagDistinctCount(DateTime beginTime, string tag); int ResourceByNameDistinctCount(DateTime beginTime, string tag, decimal? groupid); /// /// 获取微信信息配置 /// /// /// Wx_MsgConfig GetMsgConfig(string username); /// /// 记录db上传日志 /// /// /// /// /// bool WxDbUploadLog(WX_DBUPLOADLOG model, long createTime, DateTime createTimewin, string qunfaclientid); IList GetWxResourceCheck(decimal? groupId, decimal? userId); IList GetMyWxCustomerList(Pager pager, string resId, string userName, string alias, string conreMark, string nickName, string jobWxUser, string stime, string etime, decimal userId, string isopen); decimal GetDistinctWeiXinFriendCount(string day, decimal? type, decimal? saleDeptId); DataTable GetRcontactByResId(string resid); DataTable GetChatUserByResId(string resid); DataTable GetChatQwByResId(string resid); DataTable GetChatUser(string resid, string username, string alias, string nickname, string conremark, string jobusername, string workalias, decimal? eid); bool UpdateRcontactResId(ref ValidationErrors errors, string username, string resid, decimal inneruserid); WX_RCONTACT GetModel(string jobusername, string username); DataSet GetWeixinFriendCount(decimal type); int UpadteUserPoint(ref ValidationErrors errors, string eids, string points, decimal type); List CountSaleUserCommission(); List CountSaleGroupCommission(); List GetRcontactUserNameCount(string stime, string etime, List usernameList); List GetWorkAliasRcontactList(ref Pager pager, string userName, string alias, string conreMark, string nickName, string workAlias); DataSet GetWebChatResourceList(DateTime? beginTime, DateTime? endTime, decimal? type); DataSet GetWebChatResourceDetail(DateTime? beginTime, DateTime? endTime, string jobUsername); /// /// 获取工作微信的订单客户 /// /// /// DataTable GetOrderUserName(string jobusername); } }