using System; using System.Collections.Generic; using System.Data; using WX.CRM.Common; using WX.CRM.Common.Layui; using WX.CRM.Model.Entity; using WX.CRM.Model.MAP; using WX.CRM.Model.QueryMap; namespace WX.CRM.IBLL.Wx { public interface IWX_WORKACCOUNT : IRepository { /// /// 工作微信管理 /// /// /// /// /// /// /// /// /// /// /// /// List GetList(ref Pager page, string userName, string alias, string conRemark, string nickName, string resID, decimal[] isValids, decimal innerUserId, string stime, string etime); /// /// 我的工作微信 /// /// /// /// /// /// /// /// /// /// /// /// List GetList(ref Pager page, string userName, string alias, string conRemark, string nickName, string resID, decimal? groupId, decimal? userId, decimal? isValid, string stime, string etime); List GetAll(string[] userNames, string alias, string conRemark, string nickName, string resID, string groupId, decimal? userId, decimal? isValid, string stime, string etime, int isDismiss); List GetMyWorkAccountList(decimal userId); bool Update(ref ValidationErrors errors, string alias, string resID, string qrCodeUrl, decimal innerUserId, decimal? quantity, out decimal workAccountPkId); bool WxUserBindToInnerUser(decimal innerUserId, decimal workAccountPkId, string alias, string startDate, DateTime ctime, out string errmsg); List GetAliveList(decimal?[] isValids); /// /// 通过工作微信获取 /// /// /// List GetRcontactList(string workusername, string column, string sort); /// /// 通过工作微信获取 /// /// /// List GetGroupsByWorkAccount(string workusername, string column, string sort); WX_WORKACCOUNT GetWorAccount(string worusername); bool EveryDayManualPauseHandle(out string errmsg); bool EveryDaySystemPauseHandle(out string errmsg); List GetWxResourceReport(QueryUserComboDto usercomboDto, DateTime sTime, DateTime eTime, decimal curMonth, decimal? resType, DateTime? cjTime1, DateTime? cjTime2); List GetOrderResourceReport(DateTime sTime, DateTime eTime); WxResourceDay GetWxResourceDay(DateTime sTime, DateTime eTime); void GenWxResourceCount(); DataTable GetWorkAccountBindByInnerUserId(decimal innerUserId); List Get24HoursNoWeixinFriendAliveList(List weixinList); List Get24HoursNoWeixinFriend(); int GetWeiXinPauseTime(string alias); List GetWorkAccountAllList(int isDismiss, decimal? groupId); List GetUserWorkStatistics(Pager pager, List userId, DateTime Stime, DateTime Etime, bool hideQuit); List GetMediareport(Pager pager, List userId,string deptid,string uname,string eid, DateTime Stime, DateTime Etime, bool hideQuit); List GetAllVersion(); DataTable UpdateAliasFengHao(string v_alias, int v_isFenghao); /// /// 获取db上传位置 /// /// /// WX_UPLOADMAXCREATETIME GetUploadMaxCreateTime(string v_username); /// /// 手动修改上传位置 /// /// /// 1:普通消息 2:群发助手消息 /// /// bool UpdateUpdateMaxCreateTime(string username, int type, DateTime time); List GetTemplateList(Laypage pager, GetWarnningTemplateDto dto); List GetWarnUser(Laypage pager, GetWarnningUserDto dto); EarlyWarningUser GetWarnUserModel(string code); void DeleteWarnUser(string code); bool AddTemplate(TemplateListModel dto); bool AddWarnUser(EarlyWarningUser dto); bool AddWarnSetting(CreateOrEditSettingDto dto); List GetWarnSettingByEid(List eidFilter); TemplateListModel GetNewTemplateListModel(string deptId); TemplateListModel GetTemplate(int id); } }