ComplianceServer/oldcode/IBLL/Wx/IWX_SZZYORDER.cs

164 lines
7.7 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;
namespace WX.CRM.IBLL.Wx
{
public interface IWX_SZZYORDER : IRepository<WX_SZZYORDER>
{
bool CreatOrder(ref SzzyOrderResult<CreateOrderResultData> result, string employeeID, string password, string userID, decimal subProductID, string orderIDFromTeam, decimal orderType, string upgradeOrderIDs,
decimal totalUpgradeValue, decimal needPay, decimal openOrder, decimal teamServe);
List<WX_SZZYORDER> GetList(ref Pager pager, OrderQueryDto querydto, QueryUserComboDto usercomboDto);
List<WX_SZZYORDER> GetListByChannel(ref Pager pager, string resId, string contractCode, string szzyOrderId, decimal productId, decimal subProductId, decimal orderType, string stime, string etime, decimal saleDeptId, string groupId, decimal innerUserId, string orderStatus, string ostime, string oetime, string fcText, string cName, string channel);
List<WX_SZZYORDER> GetList2(ref Pager pager, string resId, string contractCode, string szzyOrderId, decimal productId, decimal subProductId, decimal orderType, string stime, string etime, decimal saleDeptId, string groupId, decimal innerUserId, string orderStatus, string ostime, string oetime, string fcText, string cName, decimal? teamEid, bool? smallorder);
List<WX_SZZYORDER> GetList_SH(ref Pager pager, string resId, string contractCode, string szzyOrderId, decimal productId, decimal subProductId, decimal orderType, string stime, string etime, decimal? groupId, decimal innerUserId, string orderStatus, string ostime, string oetime, string fcText, string cName, decimal? saleDeptId);
List<WX_SZZYORDER> GetUpgradeList(string[] upgradeOrderIds);
List<WX_SZZYORDER_PUSH> GetPayedOrderList(ref Pager pager);
bool UpdateRequestStatus(decimal orderId, decimal flag);
DataSet CountSzzyOrder(string stime, string etime);
/// <summary>
/// 订单详情查询
/// </summary>
/// <param name="subProductIds"></param>
/// <param name="stime"></param>
/// <param name="etime"></param>
/// <returns></returns>
List<WX_SZZYORDER> GetList(decimal[] subProductIds, string stime, string etime, decimal type, decimal threeDeptId);
List<WX_SZZYORDER> GetUnPayList(int dayInterval);
/// <summary>
/// 获取已开通的订单列表(by时间间隔)
/// </summary>
/// <param name="starttime">开始时间</param>
/// <param name="endtime">结束时间</param>
/// <returns>订单列表</returns>
List<WX_SZZYORDER_PUSH> GetSZZYOrderListByTime(DateTime starttime, DateTime endtime);
List<WX_SZZYORDER_PUSH> GetSZZYOrderListHasUserName();
List<WX_SZZYORDER_PUSH> GetSzzyOrderListInfo();
/// <summary>
/// 计算订单的到期时间
/// </summary>
void updateSzzyOrderEndTime();
/// <summary>
/// 修改分成信息
/// </summary>
/// <param name="orderId">订单号</param>
/// <param name="fctxt">分成内容</param>
/// <returns></returns>
bool UpdateFCTXT(decimal orderId, string fctxt);
bool UpdateCustomerWXUserNameByResId(string resId, string username);
bool UpdateResIdByOpenId(string resId, string openId);
/// <summary>
/// 修改订单外部联系人ID,并新增推送消息
/// </summary>
/// <param name="time"></param>
/// <returns></returns>
bool Sys_UpdateOrderExtentid(decimal v_orderid);
bool UpdateResIdByWxUserName(string resId, string username);
bool UpdateResIdByQwUserName(string resId, string username);
bool UpdateResIdByWwUserName(string resId, string userId, string innserUserid = null, string corpId = null);
/// <summary>
/// 更新客户的客服绑定状态
/// </summary>
/// <param name="resId"></param>
/// <returns></returns>
bool UpdateIsBoundByResId(string resId);
DataSet CountSzzyOrderBySource(string stime, string etime);
DataSet CountSzzyClassifyOrder(string stime, string etime);
/// <summary>
/// 获取mobile
/// </summary>
/// <returns></returns>
List<string> GetVipMobile(ref DateTime maxdatetime);
/// <summary>
/// 修改状态
/// </summary>
/// <param name="time"></param>
/// <returns></returns>
bool UpdateVipTime(DateTime time);
//void UpdateWxSzzyOrder2(WX_SZZYORDER model);
List<WX_SZZYORDER> GetCustomerUnpayOrderByResidAndWxname(string resid, decimal? subProductId, string wxCustomerId);
/// <summary>
/// 更新订单用户的归类标识
/// </summary>
/// <param name="resId"></param>
/// <param name="customerClassify"></param>
/// <returns></returns>
bool UpdateCustomerClassify(string resId, string customerClassify);
DataSet GetOrderCustomerVisit(ref Pager pg, string resId, string gender, string birthdayArea, string amountTypeId, decimal? provinceId, decimal? cityId, string jobTypeId, string operationType, decimal? hasHgRecord, string groupId, decimal? userId, decimal? orderType, string orderStatus, decimal? productId, decimal? midProductId, decimal? subProductId, DateTime? cTime1, DateTime? cTime2, DateTime? oTime1, DateTime? oTime2, DateTime? vTime1, DateTime? vTime2);
DataSet GetOrderCustomerVisitExport(string resId, string gender, string birthdayArea, string amountTypeId, decimal? provinceId, decimal? cityId, string jobTypeId, string operationType, decimal? hasHgRecord, string groupId, decimal? userId, decimal? orderType, string orderStatus, decimal? productId, decimal? midProductId, decimal? subProductId, DateTime? cTime1, DateTime? cTime2, DateTime? oTime1, DateTime? oTime2, DateTime? vTime1, DateTime? vTime2);
/// <summary>
/// 存储订单选择企业微信外部联系人数据
/// </summary>
/// <param name="orderid"></param>
/// <param name="extuserid"></param>
/// <param name="userid"></param>
/// <param name="corpid"></param>
void UpdateOrInsertOrderExtuserId(WW_SZZYORDER_EXTUSERID model);
/// <summary>
/// 获取订单 企业微信外部联系人
/// </summary>
/// <param name="orderid"></param>
/// <returns></returns>
WW_SZZYORDER_EXTUSERID GetExtUserIdByOrderId(decimal orderid);
/// <summary>
/// 插入同步 微信绑定关系日志
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
bool InsertWW_EXTUSER_PARES(WW_EXTUSER_PARES model);
}
public class OrderQueryDto
{
public string resId { get; set; }
public decimal? szzyOrderId { get; set; }
public string contractCode { get; set; }
public decimal productId { get; set; }
public decimal subProductId { get; set; }
public decimal orderType { get; set; }
public string stime { get; set; }
public string etime { get; set; }
public string orderStatus { get; set; }
public string ostime { get; set; }
public string oetime { get; set; }
public string fcText { get; set; }
public string cName { get; set; }
public decimal? midProductId { get; set; }
public string source { get; set; }
public DateTime? xstime { get; set; }
public DateTime? xetime { get; set; }
public DateTime? fstime { get; set; }
public DateTime? fetime { get; set; }
public int? riskctrlstatus { get; set; }
public string deptcode { get; set; }
public int? aiCallType { get; set; }
}
}