109 lines
5.3 KiB
C#
109 lines
5.3 KiB
C#
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>
|
|
{
|
|
WX_RCONTACT GetModel(decimal pkid);
|
|
//List<WX_RCONTACT_Extend> GetList(ref Pager page, string username, string jobwxusername, string inneruserId, string groupId, decimal salesId, string stime, string etime);
|
|
|
|
List<WX_RCONTACT> GetList(ref Pager page, string jobWxUserName, string userName, string alias, string nickName, string conRemark, string stime, string etime);
|
|
List<WX_RCONTACT> GetFilterList(ref Pager page, string jobWxUserName, string userName, string alias, string nickName, string conRemark, string stime, string etime);
|
|
|
|
List<WX_RCONTACT> 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<WX_RCONTACT_Extend> 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<WX_JOBUSERLASTFRIEND> GetJobWeiXinLastFriendList();
|
|
|
|
bool UpdateResId(ref ValidationErrors errors, decimal pkId, string resId);
|
|
/// <summary>
|
|
/// 推送数据到推广
|
|
/// </summary>
|
|
/// <param name="v_username">用户名</param>
|
|
/// <param name="v_jobusername">工作微信username</param>
|
|
/// <returns>返回PICI</returns>
|
|
decimal pushRcontactToTG(string v_username, string v_jobusername);
|
|
|
|
/// <summary>
|
|
/// 从message表中提取好友关系被加数据
|
|
/// </summary>
|
|
/// <param name="v_username">好友username</param>
|
|
/// <param name="v_jobusername">工作微信</param>
|
|
/// <param name="v_msgSvrId">msgSvrId</param>
|
|
/// <param name="v_content">内容</param>
|
|
/// <param name="v_createTime">时间</param>
|
|
/// <returns>返回pici</returns>
|
|
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);
|
|
/// <summary>
|
|
/// 获取微信信息配置
|
|
/// </summary>
|
|
/// <param name="username"></param>
|
|
/// <returns></returns>
|
|
Wx_MsgConfig GetMsgConfig(string username);
|
|
/// <summary>
|
|
/// 记录db上传日志
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <param name="createTime"></param>
|
|
/// <param name="createTimewin"></param>
|
|
/// <returns></returns>
|
|
bool WxDbUploadLog(WX_DBUPLOADLOG model, long createTime, DateTime createTimewin, string qunfaclientid);
|
|
|
|
IList<WxResourceCheckView> GetWxResourceCheck(decimal? groupId, decimal? userId);
|
|
|
|
IList<WX_RCONTACT_VIEW> 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<WX_UserCommissionCount> CountSaleUserCommission();
|
|
|
|
List<WX_GroupCommissionCount> CountSaleGroupCommission();
|
|
|
|
List<WX_RCONTACT_UserNameCount> GetRcontactUserNameCount(string stime, string etime, List<string> usernameList);
|
|
|
|
List<WX_RCONTACT> 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);
|
|
/// <summary>
|
|
/// 获取工作微信的订单客户
|
|
/// </summary>
|
|
/// <param name="jobusername"></param>
|
|
/// <returns></returns>
|
|
DataTable GetOrderUserName(string jobusername);
|
|
}
|
|
}
|