commit 614fce86005e8239ad48846fda5e9633cd09544c Author: zhuxiaojiong <645680426@qq.com> Date: Sat Jun 28 10:58:17 2025 +0800 init diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3729ff0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,25 @@ +**/.classpath +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/azds.yaml +**/bin +**/charts +**/docker-compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +LICENSE +README.md \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c6df541 --- /dev/null +++ b/.gitignore @@ -0,0 +1,29 @@ +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ + +# Visual Studio 2022 cache/options directory +.vs/ +packages/ +/.svn +logs/ + +/SA.WebApi/nlog-internal.log +/SA.WebApi/Properties/PublishProfiles diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..841442f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,42 @@ +stages: + - build + - deploy + +variables: + api_img_name: sa-webapi + api_img: sa-webapi:latest + env: PreProduction + +before_script: + - "docker info" + +close: + stage: close + script: + - docker kill $api_img_name + - docker rm $api_img_name + only: + - PreProduction + +remove: + stage: remove + script: + - docker rmi $api_img + only: + - PreProduction + +build: + stage: build + script: + - docker build ./ -f ./SA.WebApi/Dockerfile -t $api_img + only: + - PreProduction + +deploy: + image: docker:20.10.8 + stage: deploy + script: + - docker run -d -p 8082:80 --name $api_img_name -e ASPNETCORE_ENVIRONMENT="$env" -v /data/$api_img_name/logs:/app/logs $api_img + only: + - PreProduction + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9e8d5a9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM dotnet-runtime:v6 AS base +WORKDIR /app +EXPOSE 80 +EXPOSE 443 + +WORKDIR /app +COPY . . + +FROM base AS final +WORKDIR /app +ENTRYPOINT ["dotnet", "SA.WebApi.dll"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d6db886 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# SACenter + +test22212332 \ No newline at end of file diff --git a/SA.AppDomain/SA.AppDomain.csproj b/SA.AppDomain/SA.AppDomain.csproj new file mode 100644 index 0000000..bc748ad --- /dev/null +++ b/SA.AppDomain/SA.AppDomain.csproj @@ -0,0 +1,21 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + + + + + diff --git a/SA.AppDomain/SHCheck/CheckDeposit.cs b/SA.AppDomain/SHCheck/CheckDeposit.cs new file mode 100644 index 0000000..99ae235 --- /dev/null +++ b/SA.AppDomain/SHCheck/CheckDeposit.cs @@ -0,0 +1,266 @@ +using SA.Core.Init; +using SA.Core.Util; +using SA.Entity.zxdcrm_audit_Models; +using SqlSugar; +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Text.Json; +using System.Threading.Tasks; + +namespace SA.AppDomain.SHCheck +{ + public class CheckDeposit + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + public static void Check() + { + wx_szzyorderdeposit wx_Szzyorderdeposit = new wx_szzyorderdeposit(); + + var depositlist= InitDB.auditDb.Queryable().Where(d=>d.auditstatus==1 && d.paydate d.orderid != null).GroupBy(d => d.orderid.Value).ToDictionary(d=>d.Key,d=>d.ToList()); + + ConcurrentDictionary depositkvs = new ConcurrentDictionary(); + foreach (var deposit in depositlist) + { + depositkvs.TryAdd(deposit.id, deposit.payprice); + } + + + + var payclesrlist= InitDB.auditDb.Queryable().Where(d => d.usedate < DateTime.Parse("2022-08-01")).GroupBy(d=>d.orderid). + Select(d=>new Pays { orderid=d.orderid.Value,payprice=SqlFunc.AggregateSum(d.useprice.Value)}).ToList(); + + ConcurrentDictionary paykvs = new ConcurrentDictionary(); + + logger.Debug($"payclesrlist:{payclesrlist.Count},{payclesrlist.Sum(d=>d.payprice)}"); + foreach (var item in payclesrlist) + { + paykvs.TryAdd(item.orderid, item.payprice); + } + + var paylist = InitDB.auditDb.Queryable().Where(d => d.auditstatus == 1&&d.depositid!=null).ToList(); + var plistgroup = paylist.GroupBy(d => d.depositid.Value).ToDictionary(d => d.Key, d=>d.ToList()); + + var plistByorderid= paylist.GroupBy(d => d.orderid).ToDictionary(d => d.Key, d => d.ToList()); + + + + List mls=new List(); + + List pls = new List(); + + List ls = new List(); + + List< DepositCheck > dcks=new List(); + + foreach (var item in depositlist) + { + if(item.id== 20099045) + { + + } + + var depositCheck = new DepositCheck() + { + ids=new List(), + usepriceids=new List() + }; + decimal p1 = 0m; + if (depositkvs.TryRemove(item.id, out p1)) + { + depositCheck.ids.Add(item.id); + depositCheck.payprice = p1; + } + else + { + continue; + } + + + if (item.orderid.HasValue) + { + depositCheck.usepriceids.Add(item.orderid.Value); + } + + + depositCheck.usepriceids.Add(item.id); + getorderis(plistgroup, plistByorderid,depositlistgroup, ref depositCheck); + + depositCheck.usepriceids.AddRange(depositCheck.ids); + var useids = new List(); + foreach (var id in depositCheck.usepriceids) + { + var amount = 0m; + + if(paykvs.TryRemove(id, out amount)) + { + depositCheck.useprice += amount; + useids.Add(id); + } + } + depositCheck.usepriceids = useids; + + var ids = new List(); + ids.Add(item.id); + foreach (var deposit in depositCheck.ids) + { + decimal p2 = 0m; + if (depositkvs.TryRemove(deposit, out p2)) + { + depositCheck.payprice += p2; + ids.Add(deposit); + } + + } + depositCheck.ids = ids; + + + + + + + dcks.Add(depositCheck); + if(depositCheck.payprice== depositCheck.useprice) + { + logger.Debug($"相等:{SerializeHelper.ToJson(depositCheck)},"); + } + else if (depositCheck.payprice> depositCheck.useprice) + { + logger.Debug($"剩余:{SerializeHelper.ToJson(depositCheck)},"); + } + else if (depositCheck.payprice < depositCheck.useprice) + { + logger.Debug($"超出:{SerializeHelper.ToJson(depositCheck)},"); + } + } + + var payprice = dcks.Sum(d => d.payprice); + + var useprice = dcks.Sum(d => d.useprice); + + var surlist=dcks.Where(d=>d.payprice>d.useprice).ToList(); + + var surprice = surlist.Sum(d => d.payprice - d.useprice); + + logger.Debug($"剩余结果:{SerializeHelper.ToJson(surlist)},"); + + var outlist= dcks.Where(d => d.payprice < d.useprice).ToList(); + + var outprice = outlist.Sum(d => d.useprice - d.payprice); + + SaveCheckeDeposit(dcks); + + foreach (var item in paykvs) + { + logger.Debug($"未匹配到:{SerializeHelper.ToJson(item)},"); + } + + + + } + + /// + /// 查找关联id + /// + /// + /// + /// + /// + public static void getorderis(Dictionary> plistgroup, Dictionary> plistByorderid, Dictionary> depositlistgroup, ref DepositCheck depositCheck ) + { + var orderids = SerializeHelper.ToJson(depositCheck.usepriceids); + var ids = SerializeHelper.ToJson(depositCheck.ids); + foreach (var item in depositCheck.ids) + { + List wx_Szzyorderpays = new List(); + if (plistgroup.TryGetValue(item, out wx_Szzyorderpays)) + { + foreach (var pay in wx_Szzyorderpays) + { + depositCheck.usepriceids.Add(pay.orderid); + } + } + } + + + foreach (var item in depositCheck.usepriceids) + { + List wx_Szzyorderdeposits = new List(); + if (depositlistgroup.TryGetValue(item, out wx_Szzyorderdeposits)) + { + foreach (var deposit in wx_Szzyorderdeposits) + { + depositCheck.ids.Add(deposit.id); + } + } + } + + foreach (var item in depositCheck.usepriceids) + { + + List wx_Szzyorderpays = new List(); + if (plistByorderid.TryGetValue(item, out wx_Szzyorderpays)) + { + foreach (var pay in wx_Szzyorderpays) + { + if (pay.depositid.HasValue) + { + depositCheck.ids.Add(pay.depositid.Value); + } + } + } + } + + depositCheck.ids = depositCheck.ids.Distinct().ToList(); + depositCheck.usepriceids = depositCheck.usepriceids.Distinct().ToList(); + + if (ids == SerializeHelper.ToJson(depositCheck.ids) && orderids == SerializeHelper.ToJson(depositCheck.usepriceids)) return; + getorderis(plistgroup, plistByorderid, depositlistgroup, ref depositCheck); + + } + + + public static void SaveCheckeDeposit(List depositChecks) + { + List check_Deposit = new List(); + + foreach (var item in depositChecks) + { + check_deposit deposit = new check_deposit() + { + depositid = item.ids.Max(), + depositids = String.Join(',', item.ids.ToArray()), + amount = item.payprice - item.useprice, + orderids = String.Join(',', item.usepriceids.ToArray()), + payamount = item.payprice, + useamount = item.useprice + }; + + check_Deposit.Add(deposit); + } + InitDB.auditDb.Insertable(check_Deposit).ExecuteCommand(); + } + + + public class Pays + { + public int orderid { get; set; } + public decimal payprice { get; set; } + } + + public class DepositCheck + { + public List ids { get; set; } + public decimal payprice { get; set; } + + public List usepriceids { get; set; } + + public decimal useprice { get; set; } + + } + + } +} diff --git a/SA.AppDomain/SHCheck/SHCheckOrder.cs b/SA.AppDomain/SHCheck/SHCheckOrder.cs new file mode 100644 index 0000000..e04a353 --- /dev/null +++ b/SA.AppDomain/SHCheck/SHCheckOrder.cs @@ -0,0 +1,555 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SA.Entity.Request; +using SA.Core.Util; +using SA.Entity.zxdcrm_audit_Models; +using SA.Core.Init; +using System.Text.Json; + +namespace SA.AppDomain.SHCheck +{ + public class SHCheckOrder + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + + private static Dictionary midproductnames = new Dictionary(); + + private static Dictionary shproductnames = new Dictionary(); + private static Dictionary courseModuleids = new Dictionary(); + + public enum CheckType { CheckIgnore, CheckExpire, CheckFail, CheckTest , CheckSuccess,CheckMissing} + + + public void InitSH() + { + var begintime= InitDB.auditDb.Queryable().Max(s => s.trade_time); + var begintimstr = ""; + if (begintime.HasValue) + { + begintimstr= begintime.Value.Date.ToString("yyyy-MM-dd"); + } + else + { + begintimstr = "2022-01-01"; + } + + SHRequest.shQueryList shQueryList = new SHRequest.shQueryList() + { + pageSize = 500, + pageCurrent = 0, + beginPayTime = begintimstr, + endPayTime=DateTime.Now.Date.ToString("yyyy-MM-dd") + }; + + logger.Debug(JsonSerializer.Serialize(shQueryList)); + while (true) + { + + var html = GetListHtml(shQueryList); + logger.Debug(html); + + var shlistNum = GetShListNum(html); + + if (shlistNum.total == 0) + { + logger.Debug("查询数量为0"); + break; + } + + var shorders = GetSh_Orders(html); + + var i = InitDB.auditDb.Storageable(shorders).SplitIgnore(d => d.Any()).WhereColumns(d => d.gg_orderno) + .SplitInsert(d => d.NotAny()).ExecuteCommand(); + + Thread.Sleep(10000); + + shQueryList.pageCurrent= shlistNum.pageCurrent+1; + if (shlistNum.pageCurrent * shQueryList.pageSize > shlistNum.total) break; + } + } + + + public void CheckSHFromSH() + { + var endDateTime = InitDB.auditDb.Queryable().Max(d => d.otime); + //var endDateTime = DateTime.Parse("2022-07-01"); + + var shlist = InitDB.auditDb.Queryable().Where(d => d.endtime >= DateTime.Parse("2022-01-01")) + .Where(d => d.trade_time < endDateTime.Value.AddDays(1)) + .OrderByDescending(d => d.trade_time).ToList(); + + long[] otderstatus = new long[] { 220, 200, 205, 90 }; + var xinmeiti3list = InitDB.auditDb.Queryable().Where(d => otderstatus.Contains(d.orderstatus.Value)) + .Where(d => d.endtime3 >= DateTime.Parse("2022-01-01")) + .ToList(); + + + var resList = InitDB.auditDb.Queryable().Where(d => d.customerfrom.Equals("27100")).ToList(); + + var reslistKeyFromResid = resList.ToDictionary(d => d.resid, d => d.lastnum3); + + var reslistKeyFromMbile = resList.GroupBy(d => d.lastnum3).ToDictionary(d => d.Key, d => d.ToList()); + + logger.Debug(string.Format("查询sh_order数据{0}条,xinmeiti3数据{1}条,开始比对", shlist.Count, xinmeiti3list.Count)); + + var shNoresultList = new List(); + + Dictionary checkRight = new Dictionary(); + + List shCheckResultList = new List(); + + List shCheckIgnoreList = new List(); + + List sh_Orderchecks = new List(); + + //产品名称缓存 + var wx_Szzysubproducts = InitDB.auditDb.Queryable().ToList(); + foreach (var item in wx_Szzysubproducts) + { + midproductnames.TryAdd(item.mid.Value, item.subproductname); + } + var shproducts = InitDB.auditDb.Queryable().ToList(); + foreach (var item in shproducts) + { + shproductnames.TryAdd(item.module_id.Value, item.course); + courseModuleids.TryAdd(item.course, item.module_id.Value); + } + + // + var courses = shlist.Select(d => d.course).Distinct(); + var shproduct_courses = shproducts.Select(d => d.course).Distinct(); + + + + + //筛选人员 + + //测试人员 + Dictionary TestUsers = new Dictionary(); + //暂停人员 + Dictionary TimeoutUsers = new Dictionary(); + //4.1前赠送投资时钟网络课人员 + Dictionary TzszUsers = new Dictionary(); + //var timeoutlist=shlist.Where(d => d.remark.Contains("暂停")); + foreach (var user in shlist) + { + if (user.remark.Contains("暂停")) + TimeoutUsers.TryAdd(user.userno, user.user); + if (user.trade_time < DateTime.Parse("2022-04-01") && user.course.Equals("投资时钟网络课")) + TzszUsers.TryAdd(user.userno, user.user); + if (user.remark.Contains("测试")|| user.remark.Contains("合规")) + TestUsers.TryAdd(user.userno, user.user); + + } + + foreach (var item in shlist) + { + if (item.gg_orderno.Equals("20220630135231367")) + { + var begincheck = ""; + + } + + var shCheckResult = new sh_ordercheck() + { + sh_orderno = item.gg_orderno, + sh_orderid=item.orderid.ToString(), + course=item.course, + userno=item.userno, + user=item.user, + username= Getusername(item.remark), + endtime =item.endtime.Value, + sh_opendays=item.opendays.Value, + diffdays=6666, + checktime=DateTime.Now + }; + + //检查orderid + if (item.orderid.HasValue && item.orderid > 0) + { + var xinmeiti3 = xinmeiti3list.Where(d => d.orderid.Equals(item.orderid.ToString())).ToList(); + if (xinmeiti3.Count >0) + { + //填写订单号 + CheckXinmeiti3List(xinmeiti3, shCheckResult, ref checkRight); + } + } + if (!checkRight.ContainsKey(item.gg_orderno)) + { + var xinmeiti3 = xinmeiti3list.Where(d => d.bussiness_order_id.Equals(item.orderid.ToString())).ToList(); + if (xinmeiti3.Count > 0) + { + //填写订单号 + CheckXinmeiti3List(xinmeiti3, shCheckResult, ref checkRight); + } + } + + if (shCheckResult.diffdays > 10 || shCheckResult.diffdays < -10) + { + + //未填写订单号 + if (!checkRight.ContainsKey(item.gg_orderno)) + { + //找相同用户手机号 + var residList = new List(); + var lastnum3 = item.user.Trim().Insert(4, "*").Remove(8, 1); + if (reslistKeyFromMbile.TryGetValue(lastnum3, out residList)) + { + foreach (var res in residList) + { + var resxinmeiti3s = xinmeiti3list.Where(d => d.resid.Equals(res.resid)).ToList(); + if (resxinmeiti3s.Count == 0) continue; + if (shCheckResult.checktype.Equals(CheckType.CheckSuccess.ToString())) continue; + CheckXinmeiti3List(resxinmeiti3s, shCheckResult, ref checkRight); + + } + } + } + if (!checkRight.ContainsKey(item.gg_orderno)) + { + //通过用户名查找 + if (!string.IsNullOrEmpty(shCheckResult.username)) + { + var resxinmeiti3s = xinmeiti3list.Where(d => d.cname.Equals(shCheckResult.username)).ToList(); + CheckXinmeiti3List(resxinmeiti3s, shCheckResult, ref checkRight); + + + } + } + } + + if (!checkRight.ContainsKey(item.gg_orderno)) + { + ///忽略,忽略同用户的同课程成功 + var userchecks = checkRight.Values.Where(d => d.userno == item.userno).ToList(); + bool ignore = false; + foreach (var usercheck in userchecks) + { + if (!ignore&&usercheck.course.Equals(item.course)) + { + shCheckResult.checktype =CheckType.CheckIgnore.ToString(); + sh_Orderchecks.Add(shCheckResult); + logger.Debug($"【{shCheckResult.checktype}】:{SerializeHelper.ToJson(shCheckResult)}"); + ignore = true; + + } + + } + //忽略同订单成功 + var orderSuccess = checkRight.Values.Where(d => d.orderid == item.orderid.ToString()).ToList(); + if (!ignore&&orderSuccess.Count > 0) + { + shCheckResult.checktype = CheckType.CheckIgnore.ToString(); + sh_Orderchecks.Add(shCheckResult); + shCheckResult.checkinfo = "同订单号成功了"; + logger.Debug($"【{shCheckResult.checktype}】同订单号:{SerializeHelper.ToJson(shCheckResult)}"); + ignore = true; + } + + if (!ignore) + { + if (item.remark.Contains("测试") || TestUsers.ContainsKey(item.userno)) + { + shCheckResult.checktype = CheckType.CheckTest.ToString(); + shCheckResult.checkinfo = item.remark; + } + else if (shCheckResult.endtime < endDateTime && (!shCheckResult.endtime3.HasValue || shCheckResult.endtime3 < endDateTime)) + { + shCheckResult.checktype = CheckType.CheckExpire.ToString(); + } + else if (item.remark.Contains("暂停") || item.remark.Contains("换") || TimeoutUsers.ContainsKey(item.userno)) + { + + shCheckResult.checktype = CheckType.CheckFail.ToString(); + shCheckResult.checkinfo = $"TimeoutUsers:{item.remark}"; + } + else if (TzszUsers.ContainsKey(item.userno)) + { + shCheckResult.checktype = CheckType.CheckFail.ToString(); + shCheckResult.checkinfo = $"4.1日前赠送过投资时钟网络课:{item.remark}"; + + } + else + { + shCheckResult.checktype = CheckType.CheckFail.ToString(); + //shCheckResult.checkinfo = $"remark:{item.remark}"; + } + sh_Orderchecks.Add(shCheckResult); + logger.Debug($"【{shCheckResult.checktype}】:{SerializeHelper.ToJson(shCheckResult)}"); + } + } + } + var noresult= getxinmeiti3CheckResult(checkRight.Values.ToList(), xinmeiti3list, sh_Orderchecks); + sh_Orderchecks.AddRange(noresult); + foreach (var item in checkRight.Values) + { + item.checktype = CheckType.CheckSuccess.ToString(); + sh_Orderchecks.Add(item); + } + + var i = InitDB.auditDb.Storageable(sh_Orderchecks).SplitUpdate(d => d.Any()).WhereColumns(d => d.sh_orderno) + .SplitInsert(d => d.NotAny()).ExecuteCommand(); + } + + public List getxinmeiti3CheckResult(List sh_OrderchecksRight, List xinmeiti3list, List sh_OrderchecksAll) + { + List sh_OrderchecksNoCheck = new List(); + + var successresult = new Dictionary(); + var result = new Dictionary(); + foreach (var item in sh_OrderchecksRight) + { + successresult.TryAdd($"{item.resid}:{item.course}", item.course); + } + foreach (var item in sh_OrderchecksAll) + { + result.TryAdd($"{item.orderid}", item.orderid); + } + + foreach (var item in xinmeiti3list) + { + var xincourse = ""; + shproductnames.TryGetValue(item.module_id.Value, out xincourse); + if (successresult.ContainsKey($"{item.resid}:{xincourse}")) continue; + if (result.ContainsKey($"{item.orderid}")) continue; + + var day = DiffDay(item.endtime3, item.endtime_xinmeiti3); + if (day <= 1 && day >= -1) continue; + + + sh_ordercheck sh_OrdercheckNo = new sh_ordercheck(); + sh_OrdercheckNo.orderid = item.orderid; + sh_OrdercheckNo.resid = item.resid; + sh_OrdercheckNo.cname = item.cname; + sh_OrdercheckNo.subproductname = item.subproductname; + sh_OrdercheckNo.otime = item.otime.Value; + sh_OrdercheckNo.opendays = Int32.Parse(item.opendays); + sh_OrdercheckNo.endtime3 = item.endtime3.Value; + sh_OrdercheckNo.checktype = CheckType.CheckMissing.ToString(); + sh_OrdercheckNo.diffdays = day; + sh_OrderchecksNoCheck.Add(sh_OrdercheckNo); + + + + } + return sh_OrderchecksNoCheck; + + } + + + public void CheckXinmeiti3List(List xinmeiti3s , sh_ordercheck sh_CheckOrder,ref Dictionary checkRight) + { + foreach (var x3item in xinmeiti3s.OrderBy(d=>d.endtime3)) + { + + if (checkSHProductName(x3item, sh_CheckOrder.course)) + { + sh_CheckOrder.orderid = x3item.orderid; + sh_CheckOrder.resid = x3item.resid; + sh_CheckOrder.cname = x3item.cname; + sh_CheckOrder.subproductname = x3item.subproductname; + sh_CheckOrder.otime = x3item.otime.Value; + sh_CheckOrder.opendays = Int32.Parse(x3item.opendays); + sh_CheckOrder.endtime3 = x3item.endtime3.Value; + var day = DiffDay(x3item.endtime3, sh_CheckOrder.endtime); + sh_CheckOrder.diffdays = day; + + if (day <= 1 && day >= -1) + { + sh_CheckOrder.checktype = CheckType.CheckSuccess.ToString(); + checkRight.TryAdd(sh_CheckOrder.sh_orderno, sh_CheckOrder); + logger.Debug($"CheckRight:{SerializeHelper.ToJson(sh_CheckOrder)}"); + break; + } + else + { + logger.Debug($"【Checking】:{SerializeHelper.ToJson(sh_CheckOrder)}"); + } + } + else + { + logger.Debug($"【CheckingcourseF】:sh_orderno:{sh_CheckOrder.sh_orderno},course:{sh_CheckOrder.course},x3itemorderid:{x3item.orderid},moduileid:{x3item.module_id},subproductname:{x3item.subproductname}"); + } + } + + } + + public string Getusername(string remark) + { + if (remark.Contains("测试") || remark.Contains("合规")) return ""; + if (string.IsNullOrEmpty(remark)) return ""; + if (remark.Length < 4) return remark; + if (remark.Contains(',')) + { + return remark.Substring(0, remark.IndexOf(',')); + } + if (remark.Contains(',')) + { + return remark.Substring(0, remark.IndexOf(',')); + } + if (remark.Contains(' ')) + { + return remark.Substring(0, remark.IndexOf(' ')); + } + if (remark.Contains('临')) + { + return remark.Substring(0, remark.IndexOf('临')); + } + + return ""; + + } + + public int DiffDay(DateTime? xin3endtime,DateTime? endTime) + { + if (!xin3endtime.HasValue) return 1000; + if (!endTime.HasValue) return -1000; + TimeSpan timeSpan = xin3endtime.Value - endTime.Value; + var day= Convert.ToInt32(timeSpan.TotalDays); + return day; + } + + public bool checkSHProductName(xinmeiti3 xinmeiti3,string course) + { + var xincourse = ""; + if(shproductnames.TryGetValue(xinmeiti3.module_id!.Value, out xincourse)) + { + if(xincourse.Equals(course))return true; + } + var moudleid = 0; + if(courseModuleids.TryGetValue(course,out moudleid)) + { + if(xinmeiti3.module_id== moudleid) return true; + } + var xinproductName = ""; + if (!midproductnames.TryGetValue(xinmeiti3.module_id.Value, out xinproductName)) + { + xinproductName = xinmeiti3.productname; + } + if (course.Equals(xinproductName))return true; + + if(xinproductName.Contains(course.Replace("课",""))) return true; + + if (xinproductName.Contains(course.Replace("投资时钟网络课", "《8888夏令营》网络课"))) return true; + if (xinproductName.Contains(course.Replace("投资时钟", "《8888夏令营》网络课"))) return true; + + return false; + } + + + + + + + + + public List GetSh_Orders(string html) + { + List sh_orders = new List(); + HtmlAgilityPack.HtmlDocument htmlDocument = new HtmlAgilityPack.HtmlDocument(); + htmlDocument.LoadHtml(html); + HtmlAgilityPack.HtmlNodeCollection list = htmlDocument.DocumentNode.SelectNodes("//tbody//tr"); + foreach (var node in list) + { + var nodehtml = node.InnerHtml; + HtmlAgilityPack.HtmlDocument nodehtmlDocument = new HtmlAgilityPack.HtmlDocument(); + nodehtmlDocument.LoadHtml(nodehtml); + var href = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[2]/a").Attributes["href"].Value; + + sh_order sh_Order= new sh_order(); + sh_Order.gg_orderid = href.Substring(href.IndexOf('=') + 1, href.Length - href.IndexOf('=') - 1); + sh_Order.gg_orderno = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[2]/a").InnerText; + var td1 = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[2]").InnerText.Trim(); + sh_Order.gg_ordertype= td1.Substring(td1.IndexOf('\t'), td1.Length - td1.IndexOf('\t')).Trim(); + int orderid = 0; + Int32.TryParse(nodehtmlDocument.DocumentNode.SelectSingleNode("//td[3]").InnerText.Trim(),out orderid); + sh_Order.orderid = orderid; + sh_Order.course = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[4]").InnerText.Trim().Split('\t')[0].Trim(); + sh_Order.refno = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[4]/a").Attributes["href"].Value.Trim().Split('&')[0].Split('=')[1].Trim(); + sh_Order.lectureruser = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[5]/a").InnerText.Trim(); + sh_Order.lectureruserno = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[5]/a").Attributes["href"].Value.Trim().Split('=')[1].Trim(); + sh_Order.userno = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[6]/a").Attributes["href"].Value.Trim().Split('=')[1].Trim(); + sh_Order.user = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[6]/a").InnerText.Trim(); + sh_Order.paytype = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[7]").InnerText.Trim().Split('【')[0].Trim(); + sh_Order.payprice = decimal.Parse(nodehtmlDocument.DocumentNode.SelectSingleNode("//td[7]").InnerText.Trim().Split('¥')[1].TrimEnd('】')); + sh_Order.trade_channel = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[8]").InnerText.Trim(); + sh_Order.order_status = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[9]").InnerText.Trim(); + sh_Order.trade_status = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[10]").InnerText.Trim(); + var endtime = new DateTime(); + DateTime.TryParse(nodehtmlDocument.DocumentNode.SelectSingleNode("//td[11]").InnerText.Trim(),out endtime); + sh_Order.endtime = endtime; + int opendays = 0; + Int32.TryParse(nodehtmlDocument.DocumentNode.SelectSingleNode("//td[12]").InnerText.Trim(),out opendays); + sh_Order.opendays = opendays; + sh_Order.remark = nodehtmlDocument.DocumentNode.SelectSingleNode("//td[13]").InnerText.Trim(); + sh_Order.trade_time =DateTime.Parse(nodehtmlDocument.DocumentNode.SelectSingleNode("//td[14]").InnerText.Trim()); + sh_orders.Add(sh_Order); + } + return sh_orders; + } + + + public SHRequest.shListNum GetShListNum(string html) + { + SHRequest.shListNum sh_listNum = new SHRequest.shListNum(); + HtmlAgilityPack.HtmlDocument htmlDocument = new HtmlAgilityPack.HtmlDocument(); + htmlDocument.LoadHtml(html); + HtmlAgilityPack.HtmlNodeCollection list = htmlDocument.DocumentNode.SelectNodes("//div[@class='pagination-box']"); + + var total = 0; + Int32.TryParse(htmlDocument.DocumentNode.SelectSingleNode("//div[@class='pagination-box']").Attributes["data-total"].Value.Trim(),out total); + sh_listNum.total = total; + if ( total == 0) + { + return sh_listNum; + } + + sh_listNum.pageSize = Int32.Parse(htmlDocument.DocumentNode.SelectSingleNode("//div[@class='pagination-box']").Attributes["data-page-size"].Value.Trim()); + + sh_listNum.pageCurrent = Int32.Parse(htmlDocument.DocumentNode.SelectSingleNode("//div[@class='pagination-box']").Attributes["data-page-current"].Value.Trim()); + + return sh_listNum; + } + + + + + public string GetListHtml(SHRequest.shQueryList shQuery) + { + var kvs=DictionaryHelper.GetKeyValues(shQuery); + var kvstr = DictionaryHelper.GetkvString(kvs); + HttpContent httpContent = new StringContent(kvstr); + httpContent.Headers.Add("Cookie", "bjui_theme=blue; SESSION=N2E3M2NiOGUtNGZiOC00MTNlLWJhMWEtNTc3YmQ2MGRjN2Jj"); + + var url = "https://sboss.tvlicai.com/course/orderInfo/list"; + var result = HttpHelper.HttpPost(url, httpContent, "application/x-www-form-urlencoded"); + return result; + } + + public string get() + { + var url = "http://192.168.11.141:24434/v1/api/open/data/sync/organization?appid=crm_tg_dng8&update_time="; + + HttpRequestMessage httpRequestMessage = new HttpRequestMessage(); + httpRequestMessage.RequestUri= new Uri(url); + httpRequestMessage.Method = HttpMethod.Get; + httpRequestMessage.Headers.TryAddWithoutValidation("authorization", "crm_tg_dng8:b461e65d3a707c2f79cf1d7892a4cb95"); + httpRequestMessage.Headers.TryAddWithoutValidation("timestamps", "1656532966"); + + HttpContent httpContent = new StringContent(""); + httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json"); + // httpContent.Headers.Add("authorization", "crm_tg_dng8:1ba9915985bdead397849b8dffa48f5e"); + httpRequestMessage.Content = httpContent; + + var result = HttpHelper.Send(httpRequestMessage); + + return result; + + + } + + } +} diff --git a/SA.Common/SA.Common.csproj b/SA.Common/SA.Common.csproj new file mode 100644 index 0000000..cf87ca4 --- /dev/null +++ b/SA.Common/SA.Common.csproj @@ -0,0 +1,13 @@ + + + + net6.0 + enable + enable + + + + + + + diff --git a/SA.Common/Utils/JsonHelper.cs b/SA.Common/Utils/JsonHelper.cs new file mode 100644 index 0000000..7db5844 --- /dev/null +++ b/SA.Common/Utils/JsonHelper.cs @@ -0,0 +1,144 @@ +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA +{ + public static class JsonHelper + { + #region Method + + /// + /// 类对像转换成json格式 + /// + /// + public static string ToJson(this object t) + { + var ser = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Include, }; + ser.Converters.Add(new IsoDateTimeConverter() { DateTimeFormat = "yyyy-MM-dd hh:mm:ss" }); + return JsonConvert.SerializeObject(t, Formatting.Indented, ser); + } + + /// + /// 类转化为json + /// + /// + /// + /// + public static string ToJson(this T t) + { + var ser = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Include, }; + ser.Converters.Add(new IsoDateTimeConverter() { DateTimeFormat = "yyyy-MM-dd hh:mm:ss" }); + return JsonConvert.SerializeObject(t, Formatting.Indented, ser); + } + + /// + /// 类对像转换成json格式 + /// + /// + /// 是否忽略NULL值 + /// + public static string ToJson(this object t, bool HasNullIgnore) + { + if (HasNullIgnore) + { + var ser = new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }; + ser.Converters.Add(new IsoDateTimeConverter() { DateTimeFormat = "yyyy-MM-dd hh:mm:ss" }); + return JsonConvert.SerializeObject(t, Formatting.Indented, ser); + } + else + return ToJson(t); + } + + /// + /// json格式转换 + /// + /// + /// + /// + public static T FromJson(string strJson) where T : class + { + if (!string.IsNullOrEmpty(strJson)) + return JsonConvert.DeserializeObject(strJson); + return null; + } + + /// + /// json格式转换成List + /// + /// + /// + /// + public static List FromJsonList(string strJson) where T : class + { + if (!string.IsNullOrEmpty(strJson)) + return JsonConvert.DeserializeObject>(strJson); + return null; + } + + /// + /// 字符串转成匿名对象 + /// + /// + /// + public static JObject Parse(string strJson) + { + if (string.IsNullOrEmpty(strJson)) + return null; + JObject o = JObject.Parse(strJson); + return o; + } + + #endregion Method + + /// + /// json字符串转化成json数组 + /// + /// + /// + public static JArray ParsestrToJArray(string strJson) + { + if (string.IsNullOrEmpty(strJson)) + return new JArray(); + JArray array = (JArray)JsonConvert.DeserializeObject(strJson); + return array; + } + + //public static object ToJson(this string Json) + //{ + // return Json == null ? null : JsonConvert.DeserializeObject(Json); + //} + + public static string ToJson(this object obj, string datetimeformats) + { + var timeConverter = new IsoDateTimeConverter { DateTimeFormat = datetimeformats }; + return JsonConvert.SerializeObject(obj, timeConverter); + } + + public static T ToObject(this string Json) + { + return Json == null ? default(T) : JsonConvert.DeserializeObject(Json); + } + + public static List ToList(this string Json) + { + return Json == null ? null : JsonConvert.DeserializeObject>(Json); + } + + public static DataTable ToTable(this string Json) + { + return Json == null ? null : JsonConvert.DeserializeObject(Json); + } + + public static JObject ToJObject(this string Json) + { + return Json == null ? JObject.Parse("{}") : JObject.Parse(Json.Replace(" ", "")); + } + } +} diff --git a/SA.ConsoleApp/NLog.xsd b/SA.ConsoleApp/NLog.xsd new file mode 100644 index 0000000..b2bc312 --- /dev/null +++ b/SA.ConsoleApp/NLog.xsd @@ -0,0 +1,3404 @@ + + + + + + + + + + + + + + + Watch config file for changes and reload automatically. + + + + + Print internal NLog messages to the console. Default value is: false + + + + + Print internal NLog messages to the console error output. Default value is: false + + + + + Write internal NLog messages to the specified file. + + + + + Log level threshold for internal log messages. Default value is: Info. + + + + + Global log level threshold for application log messages. Messages below this level won't be logged. + + + + + Throw an exception when there is an internal error. Default value is: false. Not recommend to set to true in production! + + + + + Throw an exception when there is a configuration error. If not set, determined by throwExceptions. + + + + + Gets or sets a value indicating whether Variables should be kept on configuration reload. Default value is: false. + + + + + Write internal NLog messages to the System.Diagnostics.Trace. Default value is: false. + + + + + Write timestamps for internal NLog messages. Default value is: true. + + + + + Use InvariantCulture as default culture instead of CurrentCulture. Default value is: false. + + + + + Perform message template parsing and formatting of LogEvent messages (true = Always, false = Never, empty = Auto Detect). Default value is: empty. + + + + + + + + + + + + + + Make all targets within this section asynchronous (creates additional threads but the calling thread isn't blocked by any target writes). + + + + + + + + + + + + + + + + + Prefix for targets/layout renderers/filters/conditions loaded from this assembly. + + + + + Load NLog extensions from the specified file (*.dll) + + + + + Load NLog extensions from the specified assembly. Assembly name should be fully qualified. + + + + + + + + + + Filter on the name of the logger. May include wildcard characters ('*' or '?'). + + + + + Comma separated list of levels that this rule matches. + + + + + Minimum level that this rule matches. + + + + + Maximum level that this rule matches. + + + + + Level that this rule matches. + + + + + Comma separated list of target names. + + + + + Ignore further rules if this one matches. + + + + + Enable this rule. Note: disabled rules aren't available from the API. + + + + + Rule identifier to allow rule lookup with Configuration.FindRuleByName and Configuration.RemoveRuleByName. + + + + + Loggers matching will be restricted to specified minimum level for following rules. + + + + + + + + + + + + + + + Default action if none of the filters match. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the file to be included. You could use * wildcard. The name is relative to the name of the current config file. + + + + + Ignore any errors in the include file. + + + + + + + + Variable value. Note, the 'value' attribute has precedence over this one. + + + + + + Variable name. + + + + + Variable value. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Action to be taken when the lazy writer thread request queue count exceeds the set limit. + + + + + Limit on the number of requests in the lazy writer thread request queue. + + + + + Number of log events that should be processed in a batch by the lazy writer thread. + + + + + Whether to use the locking queue, instead of a lock-free concurrent queue + + + + + Number of batches of P:NLog.Targets.Wrappers.AsyncTargetWrapper.BatchSize to write before yielding into P:NLog.Targets.Wrappers.AsyncTargetWrapper.TimeToSleepBetweenBatches + + + + + Time in milliseconds to sleep between batches. (1 or less means trigger on new activity) + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Delay the flush until the LogEvent has been confirmed as written + + + + + Condition expression. Log events who meet this condition will cause a flush on the wrapped target. + + + + + Only flush when LogEvent matches condition. Ignore explicit-flush, config-reload-flush and shutdown-flush + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Number of log events to be buffered. + + + + + Action to take if the buffer overflows. + + + + + Timeout (in milliseconds) after which the contents of buffer will be flushed if there's no write in the specified period of time. Use -1 to disable timed flushes. + + + + + Indicates whether to use sliding timeout. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Separator for T:NLog.ScopeContext operation-states-stack. + + + + + Stack separator for log4j:NDC in output from T:NLog.ScopeContext nested context. + + + + + Renderer for log4j:event logger-xml-attribute (Default ${logger}) + + + + + Whether to include the contents of the T:NLog.ScopeContext properties-dictionary. + + + + + Whether to include log4j:NDC in output from T:NLog.ScopeContext nested context. + + + + + Indicates whether to include source info (file name and line number) in the information sent over the network. + + + + + Whether to include log4j:NDC in output from T:NLog.ScopeContext nested context. + + + + + Option to include all properties from the log events + + + + + Indicates whether to include call site (class and method name) in the information sent over the network. + + + + + AppInfo field. By default it's the friendly name of the current AppDomain. + + + + + Instance of T:NLog.Layouts.Log4JXmlEventLayout that is used to format log messages. + + + + + Indicates whether to include NLog-specific extensions to log4j schema. + + + + + Action that should be taken, when more connections than P:NLog.Targets.NetworkTarget.MaxConnections. + + + + + SSL/TLS protocols. Default no SSL/TLS is used. Currently only implemented for TCP. + + + + + Action that should be taken, when more pending messages than P:NLog.Targets.NetworkTarget.MaxQueueSize. + + + + + Action that should be taken if the message is larger than P:NLog.Targets.NetworkTarget.MaxMessageSize + + + + + Maximum queue size for a single connection. Requires P:NLog.Targets.NetworkTarget.KeepConnection = true + + + + + Network address. + + + + + Indicates whether to keep connection open whenever possible. + + + + + The number of seconds a connection will remain idle before the first keep-alive probe is sent + + + + + Size of the connection cache (number of connections which are kept alive). Requires P:NLog.Targets.NetworkTarget.KeepConnection = true + + + + + Maximum simultaneous connections. Requires P:NLog.Targets.NetworkTarget.KeepConnection = false + + + + + Type of compression for protocol payload. Useful for UDP where datagram max-size is 8192 bytes. + + + + + Skip compression when protocol payload is below limit to reduce overhead in cpu-usage and additional headers + + + + + Maximum message size in bytes. On limit breach then P:NLog.Targets.NetworkTarget.OnOverflow action is activated. + + + + + Encoding to be used. + + + + + End of line value if a newline is appended at the end of log message P:NLog.Targets.NetworkTarget.NewLine. + + + + + Indicates whether to append newline at the end of log message. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Viewer parameter name. + + + + + Layout that should be use to calculate the value for the parameter. + + + + + Whether an attribute with empty value should be included in the output + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Indicates whether to auto-check if the console is available. - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App) + + + + + Enables output using ANSI Color Codes + + + + + The encoding for writing messages to the T:System.Console. + + + + + Indicates whether to send the log messages to the standard error instead of the standard output. + + + + + Indicates whether to auto-flush after M:System.Console.WriteLine + + + + + Indicates whether to auto-check if the console has been redirected to file - Disables coloring logic when System.Console.IsOutputRedirected = true + + + + + Indicates whether to use default row highlighting rules. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Background color. + + + + + Condition that must be met in order to set the specified foreground and background color. + + + + + Foreground color. + + + + + + + + + + + + + + + + + Background color. + + + + + Compile the P:NLog.Targets.ConsoleWordHighlightingRule.Regex? This can improve the performance, but at the costs of more memory usage. If false, the Regex Cache is used. + + + + + Condition that must be met before scanning the row for highlight of words + + + + + Foreground color. + + + + + Indicates whether to ignore case when comparing texts. + + + + + Regular expression to be matched. You must specify either text or regex. + + + + + Text to be matched. You must specify either text or regex. + + + + + Indicates whether to match whole words only. + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Indicates whether to auto-flush after M:System.Console.WriteLine + + + + + Indicates whether to auto-check if the console is available - Disables console writing if Environment.UserInteractive = False (Windows Service) - Disables console writing if Console Standard Input is not available (Non-Console-App) + + + + + The encoding for writing messages to the T:System.Console. + + + + + Indicates whether to send the log messages to the standard error instead of the standard output. + + + + + Whether to activate internal buffering to allow batch writing, instead of using M:System.Console.WriteLine + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Database user name. If the ConnectionString is not provided this value will be used to construct the "User ID=" part of the connection string. + + + + + Database password. If the ConnectionString is not provided this value will be used to construct the "Password=" part of the connection string. + + + + + Database name. If the ConnectionString is not provided this value will be used to construct the "Database=" part of the connection string. + + + + + Name of the connection string (as specified in <connectionStrings> configuration section. + + + + + Database host name. If the ConnectionString is not provided this value will be used to construct the "Server=" part of the connection string. + + + + + Indicates whether to keep the database connection open between the log events. + + + + + Name of the database provider. + + + + + Connection string. When provided, it overrides the values specified in DBHost, DBUserName, DBPassword, DBDatabase. + + + + + Connection string using for installation and uninstallation. If not provided, regular ConnectionString is being used. + + + + + Configures isolated transaction batch writing. If supported by the database, then it will improve insert performance. + + + + + Text of the SQL command to be run on each log level. + + + + + Type of the SQL command to be run on each log level. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Convert format of the property value + + + + + Culture used for parsing property string-value for type-conversion + + + + + Value to assign on the object-property + + + + + Name for the object-property + + + + + Type of the object-property + + + + + + + + + + + + + + Type of the command. + + + + + Connection string to run the command against. If not provided, connection string from the target is used. + + + + + Indicates whether to ignore failures. + + + + + Command text. + + + + + + + + + + + + + + + + + + + + Database parameter name. + + + + + Layout that should be use to calculate the value for the parameter. + + + + + Database parameter DbType. + + + + + Database parameter size. + + + + + Database parameter precision. + + + + + Database parameter scale. + + + + + Type of the parameter. + + + + + Fallback value when result value is not available + + + + + Convert format of the database parameter value. + + + + + Culture used for parsing parameter string-value for type-conversion + + + + + Whether empty value should translate into DbNull. Requires database column to allow NULL values. + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Layout that renders event Category. + + + + + Optional entry type. When not set, or when not convertible to T:System.Diagnostics.EventLogEntryType then determined by T:NLog.LogLevel + + + + + Layout that renders event ID. + + + + + Name of the Event Log to write to. This can be System, Application or any user-defined name. + + + + + Name of the machine on which Event Log service is running. + + + + + Maximum Event log size in kilobytes. + + + + + Message length limit to write to the Event Log. + + + + + Value to be used as the event Source. + + + + + Action to take if the message is larger than the P:NLog.Targets.EventLogTarget.MaxMessageLength option. + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Indicates whether to return to the first target after any successful write. + + + + + Whether to enable batching, but fallback will be handled individually + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Name of the file to write to. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Indicates whether the footer should be written only when the file is archived. + + + + + Maximum number of archive files that should be kept. + + + + + Maximum days of archive files that should be kept. + + + + + Value of the file size threshold to archive old log file on startup. + + + + + Indicates whether to archive old log file on startup. + + + + + Indicates whether to compress archive files into the zip archive format. + + + + + Name of the file to be used for an archive. + + + + + Is the P:NLog.Targets.FileTarget.ArchiveFileName an absolute or relative path? + + + + + Indicates whether to automatically archive log files every time the specified time passes. + + + + + Value specifying the date format to use when archiving files. + + + + + Size in bytes above which log files will be automatically archived. + + + + + Way file archives are numbered. + + + + + Indicates whether to create directories if they do not exist. + + + + + Indicates whether file creation calls should be synchronized by a system global mutex. + + + + + Gets or set a value indicating whether a managed file stream is forced, instead of using the native implementation. + + + + + Is the P:NLog.Targets.FileTarget.FileName an absolute or relative path? + + + + + File attributes (Windows only). + + + + + Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong. + + + + + Indicates whether to write BOM (byte order mark) in created files. Defaults to true for UTF-16 and UTF-32 + + + + + Indicates whether to enable log file(s) to be deleted. + + + + + Indicates whether to delete old log file on startup. + + + + + File encoding. + + + + + Indicates whether to replace file contents on each write instead of appending log message at the end. + + + + + Line ending mode. + + + + + Number of times the write is appended on the file before NLog discards the log message. + + + + + Delay in milliseconds to wait before attempting to write to the file again. + + + + + Maximum number of seconds before open files are flushed. Zero or negative means disabled. + + + + + Maximum number of seconds that files are kept open. Zero or negative means disabled. + + + + + Indicates whether concurrent writes to the log file by multiple processes on different network hosts. + + + + + Log file buffer size in bytes. + + + + + Indicates whether to automatically flush the file buffers after each log message. + + + + + Indicates whether to keep log file open instead of opening and closing it on each logging event. + + + + + Indicates whether concurrent writes to the log file by multiple processes on the same host. + + + + + Whether or not this target should just discard all data that its asked to write. Mostly used for when testing NLog Stack except final write + + + + + Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Condition expression. Log events who meet this condition will be forwarded to the wrapped target. + + + + + + + + + + + + + + + Name of the target. + + + + + Identifier to perform group-by + + + + + + + + + + + + + + + + Name of the target. + + + + + Interval in which messages will be written up to the P:NLog.Targets.Wrappers.LimitingTargetWrapper.MessageLimit number of messages. + + + + + Maximum allowed number of messages written per P:NLog.Targets.Wrappers.LimitingTargetWrapper.Interval. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Indicates whether NewLine characters in the body should be replaced with tags. + + + + + Priority used for sending mails. + + + + + Encoding to be used for sending e-mail. + + + + + BCC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). + + + + + CC email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). + + + + + Indicates whether to add new lines between log entries. + + + + + Indicates whether to send message as HTML instead of plain text. + + + + + Sender's email address (e.g. joe@domain.com). + + + + + Mail message body (repeated for each log message send in one mail). + + + + + Mail subject. + + + + + Recipients' email addresses separated by semicolons (e.g. john@domain.com;jane@domain.com). + + + + + Specifies how outgoing email messages will be handled. + + + + + SMTP Server to be used for sending. + + + + + SMTP Authentication mode. + + + + + Username used to connect to SMTP server (used when SmtpAuthentication is set to "basic"). + + + + + Password used to authenticate against SMTP server (used when SmtpAuthentication is set to "basic"). + + + + + Indicates whether SSL (secure sockets layer) should be used when communicating with SMTP server. + + + + + Port number that SMTP Server is listening on. + + + + + Indicates whether the default Settings from System.Net.MailSettings should be used. + + + + + Folder where applications save mail messages to be processed by the local SMTP server. + + + + + Indicates the SMTP client timeout. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Max number of items to have in memory + + + + + + + + + + + + + + + + + Name of the target. + + + + + Class name. + + + + + Method name. The method must be public and static. Use the AssemblyQualifiedName , https://msdn.microsoft.com/en-us/library/system.type.assemblyqualifiedname(v=vs.110).aspx e.g. + + + + + + + + + + + + + + + Name of the parameter. + + + + + Layout that should be use to calculate the value for the parameter. + + + + + Fallback value when result value is not available + + + + + Type of the parameter. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + SSL/TLS protocols. Default no SSL/TLS is used. Currently only implemented for TCP. + + + + + Action that should be taken, when more pending messages than P:NLog.Targets.NetworkTarget.MaxQueueSize. + + + + + Action that should be taken if the message is larger than P:NLog.Targets.NetworkTarget.MaxMessageSize + + + + + Maximum queue size for a single connection. Requires P:NLog.Targets.NetworkTarget.KeepConnection = true + + + + + Action that should be taken, when more connections than P:NLog.Targets.NetworkTarget.MaxConnections. + + + + + Indicates whether to keep connection open whenever possible. + + + + + The number of seconds a connection will remain idle before the first keep-alive probe is sent + + + + + Size of the connection cache (number of connections which are kept alive). Requires P:NLog.Targets.NetworkTarget.KeepConnection = true + + + + + Network address. + + + + + Maximum simultaneous connections. Requires P:NLog.Targets.NetworkTarget.KeepConnection = false + + + + + Type of compression for protocol payload. Useful for UDP where datagram max-size is 8192 bytes. + + + + + Skip compression when protocol payload is below limit to reduce overhead in cpu-usage and additional headers + + + + + Maximum message size in bytes. On limit breach then P:NLog.Targets.NetworkTarget.OnOverflow action is activated. + + + + + Encoding to be used. + + + + + End of line value if a newline is appended at the end of log message P:NLog.Targets.NetworkTarget.NewLine. + + + + + Indicates whether to append newline at the end of log message. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Separator for T:NLog.ScopeContext operation-states-stack. + + + + + Stack separator for log4j:NDC in output from T:NLog.ScopeContext nested context. + + + + + Renderer for log4j:event logger-xml-attribute (Default ${logger}) + + + + + Whether to include the contents of the T:NLog.ScopeContext properties-dictionary. + + + + + Whether to include log4j:NDC in output from T:NLog.ScopeContext nested context. + + + + + Indicates whether to include source info (file name and line number) in the information sent over the network. + + + + + Whether to include log4j:NDC in output from T:NLog.ScopeContext nested context. + + + + + Option to include all properties from the log events + + + + + Indicates whether to include call site (class and method name) in the information sent over the network. + + + + + AppInfo field. By default it's the friendly name of the current AppDomain. + + + + + Instance of T:NLog.Layouts.Log4JXmlEventLayout that is used to format log messages. + + + + + Indicates whether to include NLog-specific extensions to log4j schema. + + + + + Action that should be taken, when more connections than P:NLog.Targets.NetworkTarget.MaxConnections. + + + + + SSL/TLS protocols. Default no SSL/TLS is used. Currently only implemented for TCP. + + + + + Action that should be taken, when more pending messages than P:NLog.Targets.NetworkTarget.MaxQueueSize. + + + + + Action that should be taken if the message is larger than P:NLog.Targets.NetworkTarget.MaxMessageSize + + + + + Maximum queue size for a single connection. Requires P:NLog.Targets.NetworkTarget.KeepConnection = true + + + + + Network address. + + + + + Indicates whether to keep connection open whenever possible. + + + + + The number of seconds a connection will remain idle before the first keep-alive probe is sent + + + + + Size of the connection cache (number of connections which are kept alive). Requires P:NLog.Targets.NetworkTarget.KeepConnection = true + + + + + Maximum simultaneous connections. Requires P:NLog.Targets.NetworkTarget.KeepConnection = false + + + + + Type of compression for protocol payload. Useful for UDP where datagram max-size is 8192 bytes. + + + + + Skip compression when protocol payload is below limit to reduce overhead in cpu-usage and additional headers + + + + + Maximum message size in bytes. On limit breach then P:NLog.Targets.NetworkTarget.OnOverflow action is activated. + + + + + Encoding to be used. + + + + + End of line value if a newline is appended at the end of log message P:NLog.Targets.NetworkTarget.NewLine. + + + + + Indicates whether to append newline at the end of log message. + + + + + + + + + + + + + + + + Name of the target. + + + + + Layout used to format log messages. + + + + + Indicates whether to perform layout calculation. + + + + + + + + + + + + + + + + Name of the target. + + + + + Default filter to be applied when no specific rule matches. + + + + + + + + + + + + + Condition to be tested. + + + + + Resulting filter to be applied when the condition matches. + + + + + + + + + + + + Name of the target. + + + + + + + + + + + + + + + Name of the target. + + + + + Number of times to repeat each log message. + + + + + + + + + + + + + + + + + Name of the target. + + + + + Whether to enable batching, and only apply single delay when a whole batch fails + + + + + Number of retries that should be attempted on the wrapped target in case of a failure. + + + + + Time to wait between retries in milliseconds. + + + + + + + + + + + + + + Name of the target. + + + + + + + + + + + + + + Name of the target. + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Text to be rendered. + + + + + Header. + + + + + Footer. + + + + + Forward F:NLog.LogLevel.Fatal to M:System.Diagnostics.Trace.Fail(System.String) (Instead of M:System.Diagnostics.Trace.TraceError(System.String)) + + + + + Force use M:System.Diagnostics.Trace.WriteLine(System.String) independent of T:NLog.LogLevel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the target. + + + + + Indicates whether to pre-authenticate the HttpWebRequest (Requires 'Authorization' in P:NLog.Targets.WebServiceTarget.Headers parameters) + + + + + Value whether escaping be done according to Rfc3986 (Supports Internationalized Resource Identifiers - IRIs) + + + + + Value whether escaping be done according to the old NLog style (Very non-standard) + + + + + Value of the User-agent HTTP header. + + + + + Web service URL. + + + + + Proxy configuration when calling web service + + + + + Custom proxy address, include port separated by a colon + + + + + Protocol to be used when calling web service. + + + + + Web service namespace. Only used with Soap. + + + + + Web service method name. Only used with Soap. + + + + + Should we include the BOM (Byte-order-mark) for UTF? Influences the P:NLog.Targets.WebServiceTarget.Encoding property. This will only work for UTF-8. + + + + + Encoding. + + + + + Name of the root XML element, if POST of XML document chosen. If so, this property must not be null. (see P:NLog.Targets.WebServiceTarget.Protocol and F:NLog.Targets.WebServiceProtocol.XmlPost). + + + + + (optional) root namespace of the XML document, if POST of XML document chosen. (see P:NLog.Targets.WebServiceTarget.Protocol and F:NLog.Targets.WebServiceProtocol.XmlPost). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Custom column delimiter value (valid when ColumnDelimiter is set to 'Custom'). + + + + + Column delimiter. + + + + + Footer layout. + + + + + Header layout. + + + + + Body layout (can be repeated multiple times). + + + + + Quote Character. + + + + + Quoting mode. + + + + + Indicates whether CVS should include header. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the column. + + + + + Layout of the column. + + + + + Override of Quoting mode + + + + + + + + + + + + + + Option to render the empty object value {} + + + + + Option to suppress the extra spaces in the output json + + + + + + + + + + + + + + + + + + + + + + + Option to include all properties from the log event (as JSON) + + + + + Indicates whether to include contents of the T:NLog.GlobalDiagnosticsContext dictionary. + + + + + Whether to include the contents of the T:NLog.ScopeContext dictionary. + + + + + Should forward slashes be escaped? If true, / will be converted to \/ + + + + + Option to exclude null/empty properties from the log event (as JSON) + + + + + List of property names to exclude when P:NLog.Layouts.JsonLayout.IncludeAllProperties is true + + + + + How far should the JSON serializer follow object references before backing off + + + + + Option to render the empty object value {} + + + + + Option to suppress the extra spaces in the output json + + + + + + + + + + + + + + + + + + + Name of the attribute. + + + + + Layout that will be rendered as the attribute's value. + + + + + Fallback value when result value is not available + + + + + Whether output should be encoded as Json-String-Property, or be treated as valid json. + + + + + Should forward slashes be escaped? If true, / will be converted to \/ + + + + + Indicates whether to escape non-ascii characters + + + + + Whether an attribute with empty value should be included in the output + + + + + Result value type, for conversion of layout rendering output + + + + + + + + + + + + + + Footer layout. + + + + + Header layout. + + + + + Body layout (can be repeated multiple times). + + + + + + + + + + + + + + + + + + + + + + + Option to include all properties from the log events + + + + + Whether to include log4j:NDC in output from T:NLog.ScopeContext nested context. + + + + + Whether to include log4j:NDC in output from T:NLog.ScopeContext nested context. + + + + + Whether to include the contents of the T:NLog.ScopeContext properties-dictionary. + + + + + AppInfo field. By default it's the friendly name of the current AppDomain. + + + + + Indicates whether to include call site (class and method name) in the information sent over the network. + + + + + Indicates whether to include source info (file name and line number) in the information sent over the network. + + + + + Log4j:event logger-xml-attribute (Default ${logger}) + + + + + Whether the log4j:throwable xml-element should be written as CDATA + + + + + + + + + + + + + + Layout text. + + + + + + + + + + + + + + + + + + + + + + + + + + + + Name of the root XML element + + + + + Value inside the root XML element + + + + + Whether to include the contents of the T:NLog.ScopeContext dictionary. + + + + + Determines whether or not this attribute will be Xml encoded. + + + + + List of property names to exclude when P:NLog.Layouts.XmlElementBase.IncludeAllProperties is true + + + + + Whether a ElementValue with empty value should be included in the output + + + + + Auto indent and create new lines + + + + + How far should the XML serializer follow object references before backing off + + + + + XML element name to use for rendering IList-collections items + + + + + XML attribute name to use when rendering property-key When null (or empty) then key-attribute is not included + + + + + XML element name to use when rendering properties + + + + + XML attribute name to use when rendering property-value When null (or empty) then value-attribute is not included and value is formatted as XML-element-value + + + + + Option to include all properties from the log event (as XML) + + + + + + + + + + + + + + + + + Name of the attribute. + + + + + Layout that will be rendered as the attribute's value. + + + + + Fallback value when result value is not available + + + + + Whether output should be encoded with Xml-string escaping, or be treated as valid xml-attribute-value + + + + + Whether an attribute with empty value should be included in the output + + + + + Result value type, for conversion of layout rendering output + + + + + + + + + + + + + + + + + + + + + + + + Name of the element + + + + + Whether to include the contents of the T:NLog.ScopeContext dictionary. + + + + + Value inside the element + + + + + Whether output should be encoded with Xml-string escaping, or be treated as valid xml-element-value + + + + + List of property names to exclude when P:NLog.Layouts.XmlElementBase.IncludeAllProperties is true + + + + + Whether a ElementValue with empty value should be included in the output + + + + + Auto indent and create new lines + + + + + How far should the XML serializer follow object references before backing off + + + + + XML element name to use for rendering IList-collections items + + + + + XML attribute name to use when rendering property-key When null (or empty) then key-attribute is not included + + + + + XML element name to use when rendering properties + + + + + XML attribute name to use when rendering property-value When null (or empty) then value-attribute is not included and value is formatted as XML-element-value + + + + + Option to include all properties from the log event (as XML) + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + Condition expression. + + + + + + + + + + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + Indicates whether to ignore case when comparing strings. + + + + + Layout to be used to filter log messages. + + + + + Substring to be matched. + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + String to compare the layout to. + + + + + Indicates whether to ignore case when comparing strings. + + + + + Layout to be used to filter log messages. + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + Indicates whether to ignore case when comparing strings. + + + + + Layout to be used to filter log messages. + + + + + Substring to be matched. + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + String to compare the layout to. + + + + + Indicates whether to ignore case when comparing strings. + + + + + Layout to be used to filter log messages. + + + + + + + + + + + + + + + + + + + + + + + Action to be taken when filter matches. + + + + + Append FilterCount to the P:NLog.LogEventInfo.Message when an event is no longer filtered + + + + + Insert FilterCount value into P:NLog.LogEventInfo.Properties when an event is no longer filtered + + + + + Applies the configured action to the initial logevent that starts the timeout period. Used to configure that it should ignore all events until timeout. + + + + + Layout to be used to filter log messages. + + + + + Max length of filter values, will truncate if above limit + + + + + How long before a filter expires, and logging is accepted again + + + + + Default number of unique filter values to expect, will automatically increase if needed + + + + + Max number of unique filter values to expect simultaneously + + + + + Default buffer size for the internal buffers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SA.ConsoleApp/Nlog.config b/SA.ConsoleApp/Nlog.config new file mode 100644 index 0000000..e8abb9b --- /dev/null +++ b/SA.ConsoleApp/Nlog.config @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/SA.ConsoleApp/Program.cs b/SA.ConsoleApp/Program.cs new file mode 100644 index 0000000..0579858 --- /dev/null +++ b/SA.ConsoleApp/Program.cs @@ -0,0 +1,24 @@ +// See https://aka.ms/new-console-template for more information + +using SA.AppDomain.SHCheck; +using SA.Domain.XFYun; + +public class Sa +{ + public static void Main() + { + SHCheckOrder sHCheckOrder = new SHCheckOrder(); + //sHCheckOrder.InitSH(); + // sHCheckOrder.CheckSHFromSH(); + // sHCheckOrder.get(); + + //CheckDeposit.Check(); + GenOrderCall genOrderCall = new GenOrderCall(); + //genOrderCall.GetOrder(); + List orderList = new List + { + 81119013 + }; + genOrderCall.BuildProposTest(orderList); + } +} \ No newline at end of file diff --git a/SA.ConsoleApp/SA.ConsoleApp.csproj b/SA.ConsoleApp/SA.ConsoleApp.csproj new file mode 100644 index 0000000..c9b7ce5 --- /dev/null +++ b/SA.ConsoleApp/SA.ConsoleApp.csproj @@ -0,0 +1,30 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + + + + + + + + + Always + + + Always + + + + diff --git a/SA.ConsoleApp/appsettings.json b/SA.ConsoleApp/appsettings.json new file mode 100644 index 0000000..e0ff5c2 --- /dev/null +++ b/SA.ConsoleApp/appsettings.json @@ -0,0 +1,8 @@ +{ + "ConnectionStrings": { + "LocalMySqlConnection": "Data Source=192.168.11.129;Port=3306;Initial Catalog=zxdcrm_22y_06m;user id=root;password=sa123456.;Old Guids=true;SslMode=None", + "auditMySqlConnection": "Data Source=192.168.11.129;Port=3306;Initial Catalog=zxdcrm_audit;user id=root;password=sa123456.;Old Guids=true;SslMode=None", + "zxdcrmMySqlConnection": "Data Source=192.168.11.141;Port=3306;Initial Catalog=zxdcrm;user id=tafadmin;password=tafadmin2017;Old Guids=true;SslMode=None", + "LocalRedisConnection": "172.20.0.3:6379,abortConnect=false,password=z0YEOFH5ea" + } +} \ No newline at end of file diff --git a/SA.Core/Init/InitConfiguration.cs b/SA.Core/Init/InitConfiguration.cs new file mode 100644 index 0000000..974419e --- /dev/null +++ b/SA.Core/Init/InitConfiguration.cs @@ -0,0 +1,65 @@ +using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Configuration.Json; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Core.Init +{ + public class InitConfiguration + { + + static IConfiguration Configuration { get; set; } + + + + static InitConfiguration() + { + string Path = "appsettings.json"; + + //Path = $"appsettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT")}.json"; + Configuration = new ConfigurationBuilder() + + .Add(new JsonConfigurationSource { Path = Path, Optional = false, ReloadOnChange = true }) + .Build(); + } + public InitConfiguration(IConfiguration configuration) + { + Configuration = configuration; + } + + /// + /// 封装要操作的字符 + /// + /// 节点配置 + /// + public static string app(params string[] sections) + { + try + { + + if (sections.Any()) + { + return Configuration[string.Join(":", sections)]; + } + } + catch (Exception) + { + + } + + return ""; + } + + public static string GetConnectionString(string key) + { + return Configuration.GetConnectionString(key); + } + public static IConfigurationSection GetSection(string key) + { + return Configuration.GetSection(key); + } + } +} diff --git a/SA.Core/Init/InitDB.cs b/SA.Core/Init/InitDB.cs new file mode 100644 index 0000000..af6e921 --- /dev/null +++ b/SA.Core/Init/InitDB.cs @@ -0,0 +1,56 @@ +using SA.Core.Init; +using Serilog; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Core.Init +{ + public class InitDB + { + public static SqlSugarScope auditDb = new SqlSugarScope(new ConnectionConfig() + { + ConnectionString = InitConfiguration.GetConnectionString("auditMySqlConnection"), + DbType = DbType.MySql, + IsAutoCloseConnection = true + }, + db => + { + db.Aop.OnLogExecuted = (sql, pars) => + { + //LogHelper.Info(sql, pars); + }; + }); + + public static SqlSugarScope zxdcrmDb = new SqlSugarScope(new ConnectionConfig() + { + ConnectionString = InitConfiguration.GetConnectionString("zxdcrmMySqlConnection"), + DbType = DbType.MySql, + IsAutoCloseConnection = true + }, + db => + { + db.Aop.OnLogExecuted = (sql, pars) => + { + //LogHelper.Info(sql, pars); + }; + }); + + public static SqlSugarScope dbcrmDb = new SqlSugarScope(new ConnectionConfig() + { + ConnectionString = InitConfiguration.GetConnectionString("dbcrm"), + DbType = DbType.MySql, + IsAutoCloseConnection = true + }, + db => + { + db.Aop.OnLogExecuted = (sql, pars) => + { + //LogHelper.Info(sql, pars); + }; + }); + } +} \ No newline at end of file diff --git a/SA.Core/SA.Core.csproj b/SA.Core/SA.Core.csproj new file mode 100644 index 0000000..f76b26a --- /dev/null +++ b/SA.Core/SA.Core.csproj @@ -0,0 +1,23 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + + + + + + + diff --git a/SA.Core/Util/DictionaryHelper.cs b/SA.Core/Util/DictionaryHelper.cs new file mode 100644 index 0000000..5749c95 --- /dev/null +++ b/SA.Core/Util/DictionaryHelper.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Core.Util +{ + public class DictionaryHelper + { + public static string GetkvString(Dictionary keys) + { + StringBuilder str = new(); + foreach (var item in keys) + { + str.Append(string.Format("{0}={1}", item.Key, item.Value)); + str.Append("&"); + } + return str.ToString().TrimEnd('&'); + } + public static string GetJsonString(Dictionary keys) + { + StringBuilder str = new(); + foreach (var item in keys) + { + str.Append(string.Format("\"{0}\":\"{1}\"", item.Key, item.Value)); + str.Append(","); + } + return str.ToString().TrimEnd(','); + } + + public static Dictionary GetKeyValues(T model ) + { + + Dictionary keys = new(); + if( model == null ) return keys; + Type t= model.GetType(); + var list = t.GetProperties().ToList(); + + foreach (var item in list) + { + var value = item.GetValue(model); + if (value == null) value=""; + keys.TryAdd(item.Name, value.ToString() ?? ""); + + + } + return keys; + } + + } +} diff --git a/SA.Core/Util/HttpHelper.cs b/SA.Core/Util/HttpHelper.cs new file mode 100644 index 0000000..8f69306 --- /dev/null +++ b/SA.Core/Util/HttpHelper.cs @@ -0,0 +1,168 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Core.Util +{ + public class HttpHelper + { + + public static bool AcceptAllCertifications(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certification, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors) + { + return true; + } + + private static readonly HttpClient HttpClient; + + static HttpHelper() + { + + HttpClient = new HttpClient(); + HttpClient.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"); + } + + /// + /// 发起POST同步请求 + /// + /// + /// + /// + /// application/xml、application/json、application/text、application/x-www-form-urlencoded + /// 填充消息头 + /// + public static string HttpPost(string url, string postData , string contentType , int timeOut = 30, Dictionary? headers =null) + { + postData = postData ?? ""; + + using (HttpContent httpContent = new StringContent(postData)) + { + + return HttpPost(url, httpContent, contentType, timeOut, headers); + } + + } + + public static string HttpPost(string url, HttpContent postData , string contentType , int timeOut = 30, Dictionary? headers= null) + { + + if (headers != null) + { + + foreach (var header in headers) + HttpClient.DefaultRequestHeaders.Add(header.Key, header.Value); + } + else + { + HttpClient.DefaultRequestHeaders.Clear(); + } + if (!string.IsNullOrEmpty(contentType)) + postData.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue(contentType); + + // HttpClient.Timeout = new TimeSpan(0, 0, timeOut); + HttpResponseMessage response = HttpClient.PostAsync(url, postData).Result; + return response.Content.ReadAsStringAsync().Result; + } + + public static HttpResponseMessage HttpDelete(string url, int timeOut = 30) + { + HttpResponseMessage response = HttpClient.DeleteAsync(url).Result; + + return response; + } + + public static string HttpPut(string url, string putData , int timeOut = 30) + { + using (HttpContent httpContent = new StringContent(putData, Encoding.UTF8)) + { + HttpResponseMessage response = HttpClient.PutAsync(url, httpContent).Result; + return response.Content.ReadAsStringAsync().Result; + } + } + + /// + /// 发起POST异步请求 + /// + /// + /// + /// application/xml、application/json、application/text、application/x-www-form-urlencoded + /// 填充消息头 + /// + public static async Task HttpPostAsync(string url, string postData , string contentType, int timeOut = 30, Dictionary? headers = null) + { + postData = postData ?? ""; + using (HttpClient client = new HttpClient()) + { + client.Timeout = new TimeSpan(0, 0, timeOut); + if (headers != null) + { + foreach (var header in headers) + client.DefaultRequestHeaders.Add(header.Key, header.Value); + } + using (HttpContent httpContent = new StringContent(postData, Encoding.UTF8)) + { + if (contentType != null) + httpContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue(contentType); + + HttpResponseMessage response = await client.PostAsync(url, httpContent); + return await response.Content.ReadAsStringAsync(); + } + } + } + + + public static string Send(HttpRequestMessage httpRequestMessage) + { + using (HttpClient client = new HttpClient()) + { + HttpResponseMessage response = client.SendAsync(httpRequestMessage).Result; + return response.Content.ReadAsStringAsync().Result; + } + } + + + /// + /// 发起GET同步请求 + /// + /// + /// + /// + /// + public static string HttpGet(string url, Dictionary? headers = null) + { + using (HttpClient client = new HttpClient()) + { + if (headers != null) + { + foreach (var header in headers) + client.DefaultRequestHeaders.Add(header.Key, header.Value); + } + + HttpResponseMessage response = client.GetAsync(url).Result; + return response.Content.ReadAsStringAsync().Result; + } + } + + /// + /// 发起GET异步请求 + /// + /// + /// + /// + /// + public static async Task HttpGetAsync(string url, Dictionary? headers = null) + { + using (HttpClient client = new HttpClient()) + { + if (headers != null) + { + foreach (var header in headers) + client.DefaultRequestHeaders.Add(header.Key, header.Value); + } + HttpResponseMessage response = await client.GetAsync(url); + return await response.Content.ReadAsStringAsync(); + } + } + } +} diff --git a/SA.Core/Util/SecurityHelper.cs b/SA.Core/Util/SecurityHelper.cs new file mode 100644 index 0000000..8fbc63a --- /dev/null +++ b/SA.Core/Util/SecurityHelper.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using System.Threading.Tasks; +using System.Web; + +namespace SA.Core.Util +{ + public static class SecurityHelper + { + /// + /// 加密 + /// + /// + /// + /// + public static string EncyptData(string ciphertext, string accessKey) + { + SymmetricAlgorithm des = DES.Create(); + + Encoding utf = new UTF8Encoding(); + byte[] key = utf.GetBytes(accessKey); + byte[] iv = { 0x75, 0x70, 0x63, 0x68, 0x69, 0x6e, 0x61, 0x31 }; + ICryptoTransform encryptor = des.CreateEncryptor(key, iv); + byte[] data = utf.GetBytes(ciphertext); + byte[] encData = encryptor.TransformFinalBlock(data, 0, data.Length); + return Convert.ToBase64String(encData); + } + + /// + /// 解密 + /// + /// + /// + /// + public static string DecyptData(string? cryptograph, string? accessKey) + { + if (string.IsNullOrEmpty(cryptograph) || string.IsNullOrEmpty(accessKey)) + { + return ""; + } + + SymmetricAlgorithm des = DES.Create(); + + Encoding utf = new UTF8Encoding(); + byte[] key = utf.GetBytes(accessKey); + byte[] iv = { 0x75, 0x70, 0x63, 0x68, 0x69, 0x6e, 0x61, 0x31 }; + ICryptoTransform decryptor = des.CreateDecryptor(key, iv); + byte[] encData = Convert.FromBase64String(cryptograph); + byte[] data = decryptor.TransformFinalBlock(encData, 0, encData.Length); + return utf.GetString(data); + } + + public static string SignData(string ciphertext, string accessKey) + { + Encoding utf = new UTF8Encoding(); + HMACMD5 hmac = new(utf.GetBytes(accessKey)); + byte[] hashValue = hmac.ComputeHash(utf.GetBytes(ciphertext)); + return Convert.ToBase64String(hashValue); + } + + /// + /// 加密 + /// + /// + /// + /// + /// + public static string EncyptDataNew(string ciphertext, string accessKey, string iv) + { + SymmetricAlgorithm des = DES.Create(); + + Encoding utf = new UTF8Encoding(); + byte[] key = utf.GetBytes(accessKey); + byte[] ivbt = utf.GetBytes(iv); + ICryptoTransform encryptor = des.CreateEncryptor(key, ivbt); + byte[] data = utf.GetBytes(ciphertext); + byte[] encData = encryptor.TransformFinalBlock(data, 0, data.Length); + return Convert.ToBase64String(encData); + } + + /// + /// 解密 + /// + /// + /// + /// + /// + public static string DecyptDataNew(string cryptograph, string accessKey, string iv) + { + SymmetricAlgorithm des = DES.Create(); + + Encoding utf = new UTF8Encoding(); + byte[] key = utf.GetBytes(accessKey); + byte[] ivbt = utf.GetBytes(iv); + ICryptoTransform decryptor = des.CreateDecryptor(key, ivbt); + byte[] encData = Convert.FromBase64String(cryptograph); + byte[] data = decryptor.TransformFinalBlock(encData, 0, encData.Length); + return utf.GetString(data); + } + + public static string CreateSignEncodingStr(string json, string clientid, string accessKey) + { + if (string.IsNullOrWhiteSpace(clientid)) + { + clientid = "UPWEBSITE"; + } + string key = "content={0}&clientid=" + clientid + "&sign={1}"; + string jiami = EncyptData(json, accessKey); + string jiami1 = HttpUtility.UrlEncode(jiami, Encoding.UTF8); + string jiasuo = SignData(jiami, accessKey); + string jiasuo1 = HttpUtility.UrlEncode(jiasuo, Encoding.UTF8); + key = string.Format(key, jiami1, jiasuo1); + return key; + } + } +} diff --git a/SA.Core/Util/SerializeHelper.cs b/SA.Core/Util/SerializeHelper.cs new file mode 100644 index 0000000..f746790 --- /dev/null +++ b/SA.Core/Util/SerializeHelper.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Text.Json; +using System.Text.Encodings.Web; +using System.Text.Unicode; + +namespace SA.Core.Util +{ + public class SerializeHelper + { + + public static JsonSerializerOptions jsonSerializerOptions = new JsonSerializerOptions() + { + Encoder = JavaScriptEncoder.Create(UnicodeRanges.All) + }; + + + + public static string ToJson(T Object) + { + + return JsonSerializer.Serialize(Object, jsonSerializerOptions); + } + + public static T FromJson(string str) + { + + return JsonSerializer.Deserialize(str, jsonSerializerOptions); + } + + } +} diff --git a/SA.Domain.XFYun/BaseInfo/InitAI_CallTaskConfig.cs b/SA.Domain.XFYun/BaseInfo/InitAI_CallTaskConfig.cs new file mode 100644 index 0000000..981bf71 --- /dev/null +++ b/SA.Domain.XFYun/BaseInfo/InitAI_CallTaskConfig.cs @@ -0,0 +1,30 @@ +using SA.Core.Init; +using SA.Core.Util; +using SA.Domain.XFYun.XFYunEntity; +using SA.Entity.zxdcrm_Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Domain.XFYun.BaseInfo +{ + + public class InitAI_CallTaskConfig + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + + + public AI_CallTaskConfig Get_CallTaskConfig() + { + + var configstr = InitDB.zxdcrmDb.Queryable().Where(d => d.PARAKEY.Equals("AI_CallTaskConfig")).Select(d => d.PARAVALUE).First(); + + var aI_CallTaskConfig= SerializeHelper.FromJson(configstr ?? ""); + + return aI_CallTaskConfig; + } + + } +} diff --git a/SA.Domain.XFYun/BaseInfo/InitConfig.cs b/SA.Domain.XFYun/BaseInfo/InitConfig.cs new file mode 100644 index 0000000..1aab3f7 --- /dev/null +++ b/SA.Domain.XFYun/BaseInfo/InitConfig.cs @@ -0,0 +1,78 @@ +using SA.Domain.XFYun.XFYunEntity; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Domain.XFYun.BaseInfo +{ + /// + /// 初始化配置 + /// + public class InitConfig + { + private static readonly object _locker = new Object(); + private static InitConfig _instance = null; + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + + /// + /// 单例 + /// + public static InitConfig Instance + { + get + { + if (_instance == null) + { + lock (_locker) + { + if (_instance == null) + { + _instance = new InitConfig(); + } + } + } + return _instance; + } + } + + private AI_CallTaskConfig aI_CallTaskConfig = new AI_CallTaskConfig(); + + /// + /// 重置或初始化 + /// + public InitConfig() + { + Init(); + } + + + + public void Init() + { + logger.Debug("InitConfig开始初始化"); + InitAi_Calltaskconfig(); + } + + /// + /// 初始化订单创建外呼任务配置 + /// + public void InitAi_Calltaskconfig() + { + InitAI_CallTaskConfig initAI_CallTask = new InitAI_CallTaskConfig(); + aI_CallTaskConfig = initAI_CallTask.Get_CallTaskConfig(); + } + + /// + /// 获取订单创建外呼任务配置 + /// + /// + public AI_CallTaskConfig Get_CallTaskConfig() + { + return aI_CallTaskConfig; + } + + + } +} diff --git a/SA.Domain.XFYun/GenOrderCall/GenOrderCall.cs b/SA.Domain.XFYun/GenOrderCall/GenOrderCall.cs new file mode 100644 index 0000000..7e7562b --- /dev/null +++ b/SA.Domain.XFYun/GenOrderCall/GenOrderCall.cs @@ -0,0 +1,884 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using SA.Entity.zxdcrm_Models; +using SA.Core.Init; +using SA.Domain.XFYun.XFYunEntity; +using System.Collections.Concurrent; +using SA.Core.Util; +using SA.Domain.XFYun.BaseInfo; +using SA.Entity.dbcrm; + +namespace SA.Domain.XFYun +{ + /// + /// 获取订单 + /// + public class GenOrderCall + { + private static ConcurrentDictionary wxSzzyorders = new ConcurrentDictionary(); + + private static ConcurrentDictionary wxSzzyordersChecking = new ConcurrentDictionary(); + + /// + /// 订单查询起始时间 + /// + public static DateTime? startTime; + + private static AI_CallTaskConfig genOrderCallConfig = GetConfig(); + + private static int GetNum = 100; + + private int times = 0; + + /// + /// 获取订单 + /// + public void GetOrder() + { + try + { + //LogHelper.Info("OrderCallConfig: " + SerializeHelper.ToJson(genOrderCallConfig)); + // 一段时间不跑任务 + var now = DateTime.Now; + if (DateTime.TryParse(genOrderCallConfig.HgrecordStime, out DateTime stime) + && DateTime.TryParse(genOrderCallConfig.HgrecordEtime, out DateTime etime)) + { + if (now.TimeOfDay < stime.TimeOfDay || now.TimeOfDay > etime.TimeOfDay) + { + LogHelper.Info($"GetOrder Sleep:stime:{stime},etime:{etime},当前:{now.TimeOfDay}"); + return; + } + } + + times++; + List status = new List { 0, 6 }; + status.AddRange(genOrderCallConfig.ReCallStatus); + + if (times % 2 != 1) status = new List { 0 }; + var calltime = DateTime.Now.AddDays(-genOrderCallConfig.CallDay); + if (!startTime.HasValue) startTime = genOrderCallConfig.StartTime; + startTime = startTime < calltime ? calltime : startTime; + var orderlist = InitDB.zxdcrmDb.Queryable() + // .Select(d=>new WxSzzyorder { Orderid = d.Orderid,Cname=d.Cname,Idcard=d.Idcard,Subproductname=d.Subproductname,Subproductid=d.Subproductid,Arrivalpay=d.Arrivalpay, Opendays=d.Opendays,Giftdays=d.Giftdays,Giftdays2=d.Giftdays2, Resid = d.Resid, Ctime = d.Ctime, Channel = d.Channel, Contractctime = d.Contractctime,AiHgrecordStime=d.AiHgrecordStime,AiHgrecordEtime=d.AiHgrecordEtime }) + .Where(d => d.Orderstatus!.Equals("200") && status.Contains(d.AiHgrecordStatus.Value)) + .Where(d => d.Contractctime >= startTime) + .Where(d => d.Idcard != null) + .Where(d => d.Hashgrecord == null || d.Hashgrecord != 1) //判断是否已经进行过合规 + //.Where(d=>d.Orderid== 81118603) + .OrderBy(d => d.Orderid).Take(GetNum).ToList(); + //测试 + //orderlist = InitDB.zxdcrmDb.Queryable().Where(n => n.Orderid == 80338991).ToList(); + + if (orderlist.Count < GetNum) GetNum = GetNum <= 20 ? GetNum : GetNum - 20; + if (orderlist.Count >= GetNum) GetNum = GetNum >= 500 ? GetNum : GetNum + 100; + + var filterCodes = orderlist.Select(n => n.Productcode).Distinct().ToList(); + var basProduct = InitDB.dbcrmDb.Queryable().Where(n => filterCodes.Contains(n.id)).ToList(); + var basPackage = InitDB.dbcrmDb.Queryable().Where(n => filterCodes.Contains(n.id)).ToList(); + var updatenum = 0; + foreach (var item in orderlist) + { + var product = basProduct.FirstOrDefault(n => n.id == item.Productcode); + if (product != null) + { + if (genOrderCallConfig.IgnoreProductType.Contains(product.groupid)) + { + LogHelper.Info($"IgnoreProductType: 订单【{item.Orderid}】产品类型为{product.groupid}忽略不外呼"); + continue; + } + } + else + { + var package = basPackage.FirstOrDefault(n => n.id == item.Productcode); + if (package != null && genOrderCallConfig.IgnoreProductType.Contains(package.groupid)) + { + LogHelper.Info($"IgnoreProductType: 订单【{item.Orderid}】产品类型为{product.groupid}忽略不外呼"); + continue; + } + } + WxSzzyorder wxSzzyorder; + if (wxSzzyorders.TryRemove(item.Orderid, out wxSzzyorder)) + { + wxSzzyorders.TryAdd(item.Orderid, item); + updatenum++; + } + else + { + //处理时加入处理列表,处理列表有的时候暂不加入待处理列表 + if (!wxSzzyordersChecking.ContainsKey(item.Orderid)) + { + wxSzzyorders.TryAdd(item.Orderid, item); + } + } + } + LogHelper.Info($"查询数据times:{times}次,status={SerializeHelper.ToJson(status)}数据:{orderlist.Count},当前待处理列表:{wxSzzyorders.Count},正在处理列表:{wxSzzyordersChecking.Count},更新数据:{updatenum};"); + CheckOrderList(); + } + catch (Exception ex) + { + LogHelper.Error($"查询数据错误!{ex.Message}"); + } + } + + /// + /// 检查列表 + /// + public void CheckOrderList() + { + var sameuserlist = wxSzzyorders.Values.GroupBy(d => new { d.Resid }, d => d); + LogHelper.Info($"检查订单数量:【{wxSzzyorders.Count}】相同用户数量:【{sameuserlist.Count()}】"); + foreach (var item in sameuserlist) + { + var resid = item.Key.Resid!.ToString(); + var wxSzzyorderslist = item.ToList(); + LogHelper.Info($"开始检查用户:【{resid}】满足条件订单【{string.Join(",", wxSzzyorderslist.Select(n => n.Orderid))}】"); + //同人有未完成订单且未超时的不处理 + if (CheckOrderSameUserNotFinish(resid, wxSzzyorderslist)) + { + wxSzzyorderslist.ForEach(d => + { + WxSzzyorder wxSzzyorder; + wxSzzyorders.TryRemove(d.Orderid, out wxSzzyorder); + }); + continue; + } + + var checklist = new List(); + foreach (var wxSzzyorderitem in wxSzzyorderslist) + { + LogHelper.Info($"开始检查订单:【{wxSzzyorderitem.Orderid}】"); + WxSzzyorder wxSzzyorder; + + //加入正在处理列表 + wxSzzyordersChecking.TryAdd(wxSzzyorderitem.Orderid, wxSzzyorderitem); + if (wxSzzyorders.TryRemove(wxSzzyorderitem.Orderid, out wxSzzyorder)) + { + if (CheckOrderFail(wxSzzyorder) && !CheckOrderIgnore(wxSzzyorder)) + { + //忽略的不处理 + checklist.Add(wxSzzyorder); + } + } + } + //处理 + if (checklist.Count > 0) + { + CheckOrder(checklist); + } + //取出正在处理列表 + wxSzzyorderslist.ForEach(d => + { + WxSzzyorder wxSzzyorder; + wxSzzyordersChecking.TryRemove(d.Orderid, out wxSzzyorder); + }); + } + } + + /// + /// 检查同人,若同人有一定时间内的未完成订单,将不处理,等待完成。 + /// + /// + /// + /// + public static bool CheckOrderSameUserNotFinish(string resid, List wxSzzyorders) + { + var orderlist = wxSzzyorders.Select(d => d.Orderid).ToList(); + //四种状态 + List status = new List { 0, 6 }; + status.AddRange(genOrderCallConfig.ReCallStatus); + //查看一下是否有当天已支付 未合规 且未签合同的 其他单 + var sevenDay = DateTime.Now.Date.AddDays(-7); + var wlist = InitDB.zxdcrmDb.Queryable().Where(d => d.Resid == resid && d.Ctime >= sevenDay) + .Where(d => status.Contains(d.AiHgrecordStatus.Value)) + .Where(d => d.Hashgrecord == null || d.Hashgrecord != 1) + .Where(d => !orderlist.Contains(d.Orderid)).ToList(); + //查看一下是否有当天已支付 或者 已提交支付 未签合同的 其他单 + List waitStatus = new List { "200", "190" }; + var hasPayList = wlist.Where(d => waitStatus.Contains(d.Orderstatus)).ToList(); + if (hasPayList.Count > 0) + { + LogHelper.Info($"检查相同用户:【{resid}】,正在等待已支付单【{string.Join(",", hasPayList.Select(n => n.Orderid).ToList())}】"); + return true; + } + var noPayList = wlist.Where(d => !waitStatus.Contains(d.Orderstatus) && d.Ctime >= DateTime.Now.Date).ToList(); + if (noPayList.Count > 0) + { + var maxTime = wxSzzyorders.Select(d => d.Contractctime).Max(); + var timespan = DateTime.Now - maxTime; + if (timespan.HasValue && timespan.Value.Minutes < genOrderCallConfig.SameUserCheckTimeSpanMin) + { + LogHelper.Info($"检查相同用户:{resid},合同最大签订时间:{maxTime},有未支付订单【{string.Join(",", noPayList.Select(n => n.Orderid))}】,需等待时间:{genOrderCallConfig.SameUserCheckTimeSpanMin},已等待【{timespan.Value.Minutes}分钟】"); + return true; + } + } + return false; + } + + /// + /// 检查订单 + /// + /// 订单列表 + + public static void CheckOrder(List wxSzzyorders) + { + LogHelper.Info($"开始处理:resid:{wxSzzyorders.First().Resid},订单号【{string.Join(",", wxSzzyorders.Select(n => n.Orderid))}】"); + var oldTaskList = InitDB.zxdcrmDb.Queryable() + .Where(d => wxSzzyorders.Select(n => n.Orderid).ToList().Contains(d.Orderid.Value)).ToList(); + try + { + CsvrAiCalltask csvrAiCalltask = GetCsvrAiCalltaskFromConfig(wxSzzyorders.First()); + csvrAiCalltask.Resid = wxSzzyorders.First().Resid; + csvrAiCalltask.Props = GetPropos(wxSzzyorders); + csvrAiCalltask.Status = 0; + csvrAiCalltask.Ctime = DateTime.Now; + csvrAiCalltask.AiHgrecordStatus = 1; + if (oldTaskList.Count > 0) + { + csvrAiCalltask.HasCall = 1; + } + else + { + //等待重播不需要修改状态为 等待AI外呼 + wxSzzyorders.ForEach(d => + { + d.AiHgrecordStatus = 1; + }); + } + + var csvrAiCalltaskOrders = GetCsvrAiCalltaskOrders(wxSzzyorders); + LogHelper.Info($"Props:{csvrAiCalltask.Props}"); + CreatCsvrAiCalltask(wxSzzyorders, csvrAiCalltask, csvrAiCalltaskOrders); + } + catch (Exception ex) + { + LogHelper.Error($"resid:{wxSzzyorders.First().Resid}处理失败,orderid:{SerializeHelper.ToJson(wxSzzyorders.Select(d => d.Orderid).ToList())},{ex.Message}"); + } + } + + private static List GetCsvrAiCalltaskOrders(List wxSzzyorders) + { + List csvrAiCalltaskOrders = new List(); + foreach (var item in wxSzzyorders) + { + LogHelper.Info($"Orderid:{item.Orderid},AiHgrecordStatus:{item.AiHgrecordStatus}"); + csvrAiCalltaskOrders.Add(new CsvrAiCalltaskOrders + { + Orderid = item.Orderid, + Subproductname = item.Subproductname, + Cname = item.Cname, + Idcard = item.Idcard + }); + } + return csvrAiCalltaskOrders; + } + + /// + /// 创建任务 + /// + /// + /// + /// + public static void CreatCsvrAiCalltask(List wxSzzyorders, CsvrAiCalltask csvrAiCalltask, List csvrAiCalltaskOrders) + { + try + { + InitDB.zxdcrmDb.Ado.BeginTran(); + + InitDB.zxdcrmDb.Updateable(wxSzzyorders).UpdateColumns(d => new { d.AiHgrecordStatus, d.AiHgrecordStatusname }).ExecuteCommand(); + var id = InitDB.zxdcrmDb.Insertable(csvrAiCalltask).ExecuteReturnIdentity(); + + foreach (var item in csvrAiCalltaskOrders) + { + item.Taskid = id; + } + InitDB.zxdcrmDb.Insertable(csvrAiCalltaskOrders).ExecuteCommand(); + + InitDB.zxdcrmDb.Ado.CommitTran(); + LogHelper.Info($"CreatCsvrAiCalltask:{csvrAiCalltask.Resid},Exetime:{csvrAiCalltask.Exetime}"); + } + catch (Exception ex) + { + InitDB.zxdcrmDb.Ado.RollbackTran(); + LogHelper.Error($"orderid:{SerializeHelper.ToJson(wxSzzyorders.Select(d => d.Orderid))}", ex); + throw; + } + } + + /// + ///  "姓氏":"郭", +   ///   "先生/女士":"先生", +   /// "姓名":"郭立兴", +  /// "身份证后6位":"310911", + /// "产品确认":"智赢系列" + /// + /// + /// + public static string GetPropos(List wxSzzyorders) + { + var wxSzzyorder = wxSzzyorders.First(); + Dictionary Proposkv = new Dictionary(); + Proposkv.Add("【姓氏】", wxSzzyorder.Cname!.Substring(0, 1)); + var cardnum = 1; + if (wxSzzyorder.Idcard!.Length == 18) cardnum = int.Parse(wxSzzyorder.Idcard.Substring(16, 1)); + Proposkv.Add("【先生/女士】", cardnum % 2 == 1 ? "先生" : "女士"); + Proposkv.Add("【姓名】", wxSzzyorder.Cname); + Proposkv.Add("【身份证后4位】", wxSzzyorder.Idcard.Substring(wxSzzyorder.Idcard.Length - 4, 4)); + + var productConfir = ""; + + if (wxSzzyorders.Count == 1) + { + var subproductname = genOrderCallConfig.proposProductConfig.Subproductname.Replace("#Subproductname", wxSzzyorder.Subproductname); + productConfir = genOrderCallConfig.proposProductConfig.OneTemplate + .Replace("@Subproductname", subproductname) + .Replace("#Arrivalpay", PriceToCn(wxSzzyorder.Arrivalpay.Value)); + var payexp = ""; + if (wxSzzyorder.Opendays > 1) + { + payexp = genOrderCallConfig.proposProductConfig.PayExp.Replace("@Subproductname", "") + .Replace("#OpenDays", toHanStr(wxSzzyorder.Opendays.ToString())); + var gift = ""; + var giftday = 0; + if (wxSzzyorder.Giftdays.HasValue) giftday += wxSzzyorder.Giftdays.Value; + if (wxSzzyorder.Giftdays2.HasValue) giftday += wxSzzyorder.Giftdays2.Value; + if (giftday > 0) + { + gift = genOrderCallConfig.proposProductConfig.GiftExp.Replace("#GiftDays", toHanStr(giftday.ToString())); + gift = gift.Replace("#OpenDays", toHanStr((wxSzzyorder.Opendays + giftday).ToString())); + } + payexp = payexp.Replace("@GiftExp", gift); + } + productConfir = productConfir.Replace("@PayExp", payexp); + if (payexp.Equals("")) productConfir = productConfir.Replace(",,", ","); + } + else + { + var subproductnames = ""; + var payexps = ""; + foreach (var item in wxSzzyorders.GroupBy(d => d.Subproductname, d => d).ToList()) + { + var subproductname = genOrderCallConfig.proposProductConfig.Subproductname.Replace("#Subproductname", item.Key); + + subproductnames += subproductname + "和"; + if (item.Sum(d => d.Opendays) == item.Count()) continue; + var payexp = genOrderCallConfig.proposProductConfig.PayExp.Replace("@Subproductname", subproductname) + .Replace("#OpenDays", toHanStr(item.Sum(d => d.Opendays).ToString())); + var gift = ""; + var giftday = 0; + foreach (var subwxSzzyorderitem in item) + { + if (subwxSzzyorderitem.Giftdays.HasValue) giftday += subwxSzzyorderitem.Giftdays.Value; + if (subwxSzzyorderitem.Giftdays2.HasValue) giftday += subwxSzzyorderitem.Giftdays2.Value; + } + if (giftday > 0) + { + gift = genOrderCallConfig.proposProductConfig.GiftExp.Replace("#GiftDays", toHanStr(giftday.ToString())); + gift = gift.Replace("#OpenDays", toHanStr((item.Sum(d => d.Opendays) + giftday).ToString())); + } + payexp = payexp.Replace("@GiftExp", gift); + + payexps += payexp; + } + subproductnames = subproductnames.Substring(0, subproductnames.Length - 1); + if (payexps.Length > 1) payexps = payexps.Substring(0, payexps.Length - 1); + productConfir = genOrderCallConfig.proposProductConfig.MultipleTemplate + .Replace("@Subproductname", subproductnames) + .Replace("@PayExp", payexps) + .Replace("#Arrivalpay", PriceToCn(wxSzzyorders.Sum(d => d.Arrivalpay).Value)); + } + + Proposkv.Add("【产品确认】", productConfir); + var result = SerializeHelper.ToJson(Proposkv); + + return result; + } + + /// + /// 金额数字转大写(带小数点) + /// + public static string PriceToCn(decimal price) + { + //数字转大写 + string[] n = { "零", "一", "二", "三", "四", "五", "六", "七", "八", "九" }; + string[] d = { "", "分", "角", "元", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿" }; + + //不同位置的数字要加单位 + List needReplace = new List { "零拾", "零佰", "零仟", "零万", "零亿", "亿万", "零元", "零零", "零角", "零分" }; + List afterReplace = new List { "零", "零", "零", "万", "亿", "亿", "元", "零", "零", "" }; + + string e = price % 1 == 0 ? "整" : ""; //金额是整数,加一个“整”结尾 + string re = ""; + int a = (int)(price * 100); + int k = 1; + while (a != 0) + { + //初步转换大小写 + re = n[a % 10] + d[k] + re; + a = a / 10; + k = k < 11 ? k + 1 : 4; + } + + string need = needReplace.Where(tb => re.Contains(tb)).FirstOrDefault(); + while (need != null) + { + int i = needReplace.IndexOf(need); + re = re.Replace(needReplace[i], afterReplace[i]); + need = needReplace.Where(tb => re.Contains(tb)).FirstOrDefault(); + }//循环排除特殊情况 + // re = re == "" ? "零元" : re + e; + re = re == "" ? "零元" : re; + return re; + } + + public static string toHanStr(String numStr) + { + var price = Convert.ToDecimal(numStr); + //数字转大写 + string[] n = { "零", "一", "二", "三", "四", "五", "六", "七", "八", "九" }; + string[] d = { "", "分", "角", "元", "拾", "佰", "仟", "万", "拾", "佰", "仟", "亿" }; + + //不同位置的数字要加单位 + List needReplace = new List { "零拾", "零佰", "零仟", "零万", "零亿", "亿万", "零元", "零零", "零角", "零分" }; + List afterReplace = new List { "零", "零", "零", "万", "亿", "亿", "元", "零", "零", "" }; + + string e = price % 1 == 0 ? "整" : ""; //金额是整数,加一个“整”结尾 + string re = ""; + int a = (int)(price * 100); + int k = 1; + while (a != 0) + { + //初步转换大小写 + re = n[a % 10] + d[k] + re; + a = a / 10; + k = k < 11 ? k + 1 : 4; + } + + string need = needReplace.Where(tb => re.Contains(tb)).FirstOrDefault(); + while (need != null) + { + int i = needReplace.IndexOf(need); + re = re.Replace(needReplace[i], afterReplace[i]); + need = needReplace.Where(tb => re.Contains(tb)).FirstOrDefault(); + }//循环排除特殊情况 + // re = re == "" ? "零元" : re + e; + re = re == "" ? "零" : re.Replace("元", ""); + return re; + } + + /// + /// 获取任务 + /// + /// + /// + public static CsvrAiCalltask GetCsvrAiCalltaskFromConfig(WxSzzyorder wxSzzyorder) + { + CsvrAiCalltask csvrAiCalltask = new CsvrAiCalltask(); + csvrAiCalltask.Robot = genOrderCallConfig.Robot; + csvrAiCalltask.AppId = genOrderCallConfig.AppId; + csvrAiCalltask.CallNo = genOrderCallConfig.CallNo; + + csvrAiCalltask.Sms = genOrderCallConfig.Sms; + DateTime now = DateTime.Now; + var expmin = genOrderCallConfig.SmsExprieMinCall; + csvrAiCalltask.Smstime = now; + csvrAiCalltask.Exetime = now.AddMinutes(expmin); + + //优先级别1-紧急 2-优先 + csvrAiCalltask.Priority = genOrderCallConfig.Priority; + + return csvrAiCalltask; + } + + /// + /// 失败订单重试//true 重试 + /// + /// + /// + public static bool CheckOrderFail(WxSzzyorder wxSzzyorder) + { + var aihgrecoedStatus = wxSzzyorder.AiHgrecordStatus!.Value; + var now = DateTime.Now; + var ReCallMin = genOrderCallConfig.ReCallMins; + var ReCallStatus = genOrderCallConfig.ReCallStatus; + if (ReCallStatus.Contains(aihgrecoedStatus) || aihgrecoedStatus == 6) + { + var taskids = InitDB.zxdcrmDb.Queryable().Where(d => d.Orderid == wxSzzyorder.Orderid).OrderByDescending(d => d.Taskid).Select(d => d.Taskid).ToList(); + if (taskids == null || taskids.Count == 0) + { + return true; + } + var logInfo = $"检查订单重试:【{wxSzzyorder.Orderid}】,状态:【{wxSzzyorder.AiHgrecordStatusname}】任务Id【{SerializeHelper.ToJson(taskids)}】"; + LogHelper.Info($"{logInfo}"); + var maxid = taskids.Max(d => d.Value); + var exectime = InitDB.zxdcrmDb.Queryable().Where(d => d.Id == maxid).OrderByDescending(d => d.Id).Select(d => d.Exetime).First(); + var min = 0; + if (taskids.Count() > ReCallMin.Count) + { + LogHelper.Info($"{logInfo}超过最大重试次数【{ReCallMin.Count}】,忽略。"); + //wxSzzyorder.AiHgrecordStatus = -2; + //InitDB.zxdcrmDb.Updateable(wxSzzyorder).UpdateColumns(d => new { d.AiHgrecordStatus, d.AiHgrecordStatusname }).ExecuteCommand(); + return false; + } + else + { + min = ReCallMin[taskids.Count() - 1]; + } + var difmin = now - exectime!.Value; + + // 如果在固定时间内的话直接重试 + DateTime stime; + DateTime etime; + if (DateTime.TryParse(wxSzzyorder.AiHgrecordStime, out stime) && DateTime.TryParse(wxSzzyorder.AiHgrecordEtime, out etime)) + { + if (now.TimeOfDay >= stime.TimeOfDay && now.TimeOfDay <= etime.TimeOfDay) + { + LogHelper.Info($"{logInfo}: 设置间隔【{stime}-{etime}】当前:{now.TimeOfDay},上次执行时间:{exectime!.Value},开始重试!"); + return true; + } + } + if (difmin.TotalMinutes > min) + { + LogHelper.Info($"{logInfo}exectime:{exectime!.Value},开始重试!"); + return true; + } + + if (ReCallStatus.Contains(aihgrecoedStatus)) + { + LogHelper.Info($"{logInfo},修改为等待重拨"); + wxSzzyorder.AiHgrecordStatus = 6; + InitDB.zxdcrmDb.Updateable(wxSzzyorder).UpdateColumns(d => new { d.AiHgrecordStatus, d.AiHgrecordStatusname }).ExecuteCommand(); + } + return false; + } + + return true; + } + + /// + /// 检查是否忽略,忽略更新Ai_hgrecord_status=4 + /// + /// + /// + public bool CheckOrderIgnore(WxSzzyorder wxSzzyorder) + { + bool Ignore = false; + var now = DateTime.Now; + //小于最小订单金额 + if (wxSzzyorder.Arrivalpay < genOrderCallConfig.MinAmount && !genOrderCallConfig.WhiteList.Contains(wxSzzyorder.Resid)) + { + LogHelper.Info($"订单【{wxSzzyorder.Orderid}】金额【{wxSzzyorder.Arrivalpay}】小于外呼设置金额【{genOrderCallConfig.MinAmount}】跳过"); + Ignore = true; + } + + //忽略本次,不更新字段 + DateTime stime; + DateTime etime; + if (DateTime.TryParse(wxSzzyorder.AiHgrecordStime, out stime) && DateTime.TryParse(wxSzzyorder.AiHgrecordEtime, out etime)) + { + if (now.TimeOfDay < stime.TimeOfDay || now.TimeOfDay > etime.TimeOfDay) + { + LogHelper.Info($"订单【{wxSzzyorder.Orderid}回访时间【{wxSzzyorder.AiHgrecordStime}-{wxSzzyorder.AiHgrecordEtime}】不在范围之内当前时间:{now.TimeOfDay}"); + return true; + } + } + + if (!Ignore) + { + if (genOrderCallConfig.IgnoreHitConfigs != null) + { + foreach (var hitConfig in genOrderCallConfig.IgnoreHitConfigs) + { + //检查渠道 + if (HitKey.Channel.ToString().Equals(hitConfig.HitKey)) + { + //包含 + if (hitConfig.Contain != null && hitConfig.Contain.Count > 0) + { + foreach (var item in hitConfig.Contain) + { + var channelitem = GetChannelItem(item); + if (wxSzzyorder.Channel >= channelitem.Min && wxSzzyorder.Channel <= channelitem.Max) + { + LogHelper.Info($"Ignore,hitConfig.Contain:Channel:{wxSzzyorder.Channel},Min:{channelitem.Min},Max:{channelitem.Max}"); + Ignore = true; + } + else + { + Ignore = false; + break; + } + } + } + //不包含,结果会被不包含覆盖,不包含优先级更高 + if (hitConfig.NoContain != null && hitConfig.NoContain.Count > 0) + { + foreach (var item in hitConfig.NoContain) + { + var channelitem = GetChannelItem(item); + if (wxSzzyorder.Channel < channelitem.Min || wxSzzyorder.Channel > channelitem.Max) + { + LogHelper.Info($"Ignore,resid: {wxSzzyorder.Resid}, orderid: {wxSzzyorder.Orderid}, hitConfig.NoContain:Channel:{wxSzzyorder.Channel},Min:{channelitem.Min},Max:{channelitem.Max}"); + Ignore = true; + } + else + { + Ignore = false; + break; + } + } + } + } + //检查产品Id + if (HitKey.Subproductid.ToString().Equals(hitConfig.HitKey) && !Ignore) + { //包含 + if (hitConfig.Contain != null && hitConfig.Contain.Count > 0) + { + if (hitConfig.Contain.Contains(wxSzzyorder.Subproductid!.Value.ToString())) + { + LogHelper.Info($"Ignore,resid: {wxSzzyorder.Resid}, orderid: {wxSzzyorder.Orderid}, hitConfig.Contain:Subproductid:{wxSzzyorder.Subproductid.ToString()}"); + Ignore = true; + } + else + { + Ignore = false; + break; + } + } + //不包含,结果会被不包含覆盖,不包含优先级更高 + if (hitConfig.NoContain != null && hitConfig.NoContain.Count > 0) + { + if (!hitConfig.NoContain.Contains(wxSzzyorder.Subproductid!.Value.ToString())) + { + LogHelper.Info($"Ignore,resid: {wxSzzyorder.Resid}, orderid: {wxSzzyorder.Orderid}, hitConfig.NoContain:Subproductid:{wxSzzyorder.Subproductid.ToString()}"); + Ignore = true; + } + else + { + Ignore = false; + break; + } + } + } + //检查Resid + if (HitKey.Resid.ToString().Equals(hitConfig.HitKey) && !Ignore) + { //包含 + if (hitConfig.Contain != null && hitConfig.Contain.Count > 0) + { + if (hitConfig.Contain.Contains(wxSzzyorder.Resid!.ToString())) + { + LogHelper.Info($"Ignore,resid: {wxSzzyorder.Resid}, orderid: {wxSzzyorder.Orderid}, hitConfig.Contain:Resid:{wxSzzyorder.Resid!.ToString()}"); + Ignore = true; + } + else + { + Ignore = false; + break; + } + } + //不包含,结果会被不包含覆盖,不包含优先级更高 + if (hitConfig.NoContain != null && hitConfig.NoContain.Count > 0) + { + if (!hitConfig.NoContain.Contains(wxSzzyorder.Resid!.ToString())) + { + LogHelper.Info($"Ignore,resid: {wxSzzyorder.Resid}, orderid: {wxSzzyorder.Orderid}, hitConfig.NoContain:Resid:{wxSzzyorder.Resid!.ToString()}"); + Ignore = true; + } + else + { + Ignore = false; + break; + } + } + } + } + } + } + + if (!Ignore) + { + //检查产品是否为不需要风控的自动开通产品 + var subproduct = InitDB.zxdcrmDb.Queryable().Where(d => d.Subproductid == wxSzzyorder.Subproductid).First(); + //如果不需要ai回访 则忽略 + if (subproduct.NeedAi == 0) + { + LogHelper.Info($"Ignore,resid: {wxSzzyorder.Resid}, orderid: {wxSzzyorder.Orderid}, NeedAi:subproduct:{wxSzzyorder.Subproductid!.ToString()}"); + Ignore = true; + } + /* if (subproduct != null && subproduct.AutomaticOpen == 1 && subproduct.NeedFK == 0) + { + LogHelper.Info($"Ignore,resid: {wxSzzyorder.Resid}, orderid: {wxSzzyorder.Orderid}, NotNeedFK:subproduct:{wxSzzyorder.Subproductid!.ToString()}"); + Ignore = true; + }*/ + } + + if (Ignore) + { + wxSzzyorder.AiHgrecordStatus = -1; + LogHelper.Info($"Ignore,resid: {wxSzzyorder.Resid}, orderid: {wxSzzyorder.Orderid}, -1"); + // wxSzzyorder.Ai_hgrecord_statusname = Ai_hgrecord_statusnameKV[wxSzzyorder.Ai_hgrecord_status]; + InitDB.zxdcrmDb.Updateable(wxSzzyorder).UpdateColumns(d => new { d.AiHgrecordStatus, d.AiHgrecordStatusname }).ExecuteCommand(); + } + + return Ignore; + } + + /// + /// 获取channelItem + /// + /// + /// + public static ChannelItem GetChannelItem(string ChannelStr) + { + ChannelItem channelItem = new ChannelItem { Max = 0, Min = 0 }; + try + { + int min = 0; + int max = 0; + var c = ChannelStr.Split('|'); + int.TryParse(c[0], out min); + int.TryParse(c[1], out max); + channelItem.Max = max; + channelItem.Min = min; + } + catch (Exception ex) + { + LogHelper.Error($"ChannelStr:{ChannelStr}格式异常", ex); + return channelItem; + } + return channelItem; + } + + /// + /// 获取配置 + /// + /// + /// + public static AI_CallTaskConfig GetConfig() + { + try + { + var test = new AI_CallTaskConfig(); + test.IgnoreHitConfigs.Add(new HitConfig()); + var s = SerializeHelper.ToJson(test); + InitConfig initConfig = new InitConfig(); + + genOrderCallConfig = initConfig.Get_CallTaskConfig(); + + if (string.IsNullOrEmpty(genOrderCallConfig.AppId)) + { + var errmsg = "获取AI_CallTaskConfig失败:AppId 为空!"; + LogHelper.Error(errmsg); + throw new Exception(errmsg); + } + } + catch (Exception ex) + { + LogHelper.Error(ex, "AI_CallTaskConfig,配置出错"); + } + + return genOrderCallConfig; + } + + #region 测试方法 + + public static AI_CallTaskConfig RefreshConfig() + { + genOrderCallConfig = GetConfig(); + return genOrderCallConfig; + } + + public string BuildProposTest(List orderids) + { + var orderList = InitDB.zxdcrmDb.Queryable().Where(n => orderids.Contains(n.Orderid)).ToList(); + var res = GetPropos(orderList); + return res; + } + + #endregion 测试方法 + + /// + /// 人工手动拨打AI回访 + /// + /// + /// + public async Task CreatAiOrder(string? resid) + { + if (resid == null) + { + return "resid不能为空!"; + } + LogHelper.Info($"开始处理:resid:{resid}, 人工手动拨打AI回访!"); + List status = new List { 0, 6 }; + var aiHgrecordStatus = new List { -2, 3, 7 }; + status.AddRange(genOrderCallConfig.ReCallStatus); + var orderlist = await InitDB.zxdcrmDb.Queryable() + .Where(d => d.Resid == resid) + // .Select(d=>new WxSzzyorder { Orderid = d.Orderid,Cname=d.Cname,Idcard=d.Idcard,Subproductname=d.Subproductname,Subproductid=d.Subproductid,Arrivalpay=d.Arrivalpay, Opendays=d.Opendays,Giftdays=d.Giftdays,Giftdays2=d.Giftdays2, Resid = d.Resid, Ctime = d.Ctime, Channel = d.Channel, Contractctime = d.Contractctime,AiHgrecordStime=d.AiHgrecordStime,AiHgrecordEtime=d.AiHgrecordEtime }) + .Where(d => d.Orderstatus!.Equals("200")) + .Where(x => x.AiHgrecordStatus != null && aiHgrecordStatus.Contains(x.AiHgrecordStatus.Value)) + .Where(d => d.Contractctime >= startTime) + .Where(d => d.Idcard != null) + .Where(d => d.Hashgrecord == null || d.Hashgrecord != 1) //判断是否已经进行过合规 + //.Where(d=>d.Orderid== 81118603) + .OrderBy(d => d.Orderid).ToListAsync(); + if (orderlist == null || !orderlist.Any()) + { + return "无订单可以进行回访!"; + } + CheckOrder(orderlist); + orderlist.ForEach(d => + { + d.AiHgrecordStatus = 6; + }); + InitDB.zxdcrmDb.Updateable(orderlist).UpdateColumns(d => new { d.AiHgrecordStatus, d.AiHgrecordStatusname }).ExecuteCommand(); + return $"成功发起任务【 {string.Join(",", orderlist.Select(x => x.Orderid).ToList())}】"; + } + + public async Task CreatAiOrders(string? orderids) + { + if (orderids == null) + { + return "orderids不能为空!"; + } + Log.Information($"开始处理:orderids:{orderids}, 人工手动拨打AI回访!"); + try + { + var orderidList = orderids.Split(',').Select(x => int.Parse(x)).ToList(); + List status = new List { 0, 6 }; + var aiHgrecordStatus = new List { -2, -1, 0, 3, 7 }; + status.AddRange(genOrderCallConfig.ReCallStatus); + var orderlist = await InitDB.zxdcrmDb.Queryable() + .Where(d => orderidList.Contains(d.Orderid)) + .Where(x => x.AiHgrecordStatus != null && aiHgrecordStatus.Contains(x.AiHgrecordStatus.Value)) + .Where(d => d.Contractctime >= startTime) + .Where(d => d.Idcard != null) + .Where(d => d.Hashgrecord == null || d.Hashgrecord != 1) + .OrderBy(d => d.Orderid).ToListAsync(); + if (orderlist == null || !orderlist.Any()) + { + return "无订单可以进行回访!"; + } + var sameuserlist = orderlist.GroupBy(d => new { d.Resid }, d => d); + foreach (var item in sameuserlist) + { + var wxSzzyorderslist = item.ToList(); + CheckOrder(wxSzzyorderslist); + } + orderlist.ForEach(d => + { + d.AiHgrecordStatus = 6; + }); + InitDB.zxdcrmDb.Updateable(orderlist).UpdateColumns(d => new { d.AiHgrecordStatus, d.AiHgrecordStatusname }).ExecuteCommand(); + return $"成功发起任务【 {string.Join(",", orderlist.Select(x => x.Orderid).ToList())}】"; + } + catch (Exception ex) + { + Log.Error(ex, "人工手动拨打AI回访"); + return ex.Message; + } + } + } +} \ No newline at end of file diff --git a/SA.Domain.XFYun/IXFYunApi.cs b/SA.Domain.XFYun/IXFYunApi.cs new file mode 100644 index 0000000..f12a404 --- /dev/null +++ b/SA.Domain.XFYun/IXFYunApi.cs @@ -0,0 +1,23 @@ +namespace SA.Domain.XFYun +{ + [LoggingFilter] + public interface IXFYunApi : IHttpApi + { + /// + /// 提交单个号码进行外呼 + /// + /// + /// + [HttpPost("/dg-xfyun/api/transfer/reply")] + ITask> SingleAdd([JsonContent] XFYunRequest request); + + /// + /// 主动查询外呼结果 + /// + /// + /// + [HttpPost("/dg-xfyun/api/transfer/reply")] + ITask> SingleQuery([JsonContent] XFYunRequest request); + + } +} diff --git a/SA.Domain.XFYun/IZXDApi.cs b/SA.Domain.XFYun/IZXDApi.cs new file mode 100644 index 0000000..6fefa32 --- /dev/null +++ b/SA.Domain.XFYun/IZXDApi.cs @@ -0,0 +1,15 @@ +using SA.Domain.XFYun.XFYunEntity; +namespace SA.Domain.XFYun +{ + [LoggingFilter] + public interface IZXDApi : IHttpApi + { + /// + /// 提交单个号码进行外呼 + /// + /// + /// + [HttpPost("/SmsService.svc/PutSms")] + ITask> PutSms([JsonContent] ZXDEntity.SmsMessage request); + } +} diff --git a/SA.Domain.XFYun/LogHelper.cs b/SA.Domain.XFYun/LogHelper.cs new file mode 100644 index 0000000..d28eb41 --- /dev/null +++ b/SA.Domain.XFYun/LogHelper.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Text.RegularExpressions; +using System.Threading.Tasks; + +namespace SA.Domain.XFYun +{ + public static class LogHelper + { + public static void Error(string msg) + { + Task.Run(() => WriteLogByTask(msg, 3)); + } + + public static void Error(Exception ex, string msg) + { + Task.Run(() => WriteLogByTask(msg, 4, ex)); + } + + public static void Error(string msg, Exception ex) + { + Task.Run(() => WriteLogByTask(msg, 4, ex)); + } + + public static void Info(string msg) + { + Task.Run(() => WriteLogByTask(msg, 1)); + } + + public static void Debug(string msg) + { + Task.Run(() => WriteLogByTask(msg, 3)); + } + + /// + /// 异步调用 + /// + /// + /// 1:info 2: error 3: debug + public static void WriteLogByTask(string msg, int type, Exception ex = null) + { + msg = encryPhone(msg); + switch (type) + { + case 1: + Log.Information(msg); + break; + + case 2: + Log.Error(msg); + break; + + case 3: + Log.Debug(msg); + break; + + case 4: + Log.Error(ex, msg); + break; + } + } + + /// + /// 手机号正则匹配加密 手机号日志需以非数字开头 非数字结尾 + /// + /// + /// + public static string encryPhone(string msg) + { + try + { + // 使用正则表达式匹配手机号 + string pattern = @"(\D\d{3})\d{4}(\d{4}\D.*)"; + string replacement = "$1****$2"; + //msg = Regex.Replace(msg, pattern, replacement); + Regex regex = new Regex(pattern); + //Match集合,匹配成功的字符串集合 + MatchCollection collection = regex.Matches(msg); + + //遍历Match集合,取出值 + string telephone; + foreach (Match item in collection) + { + foreach (Group group in item.Groups) + { + telephone = group.Value.Trim(); + //偶尔会出现重复提取,所以加了去重判断 + msg = Regex.Replace(msg, pattern, replacement); + } + } + + return msg; + } + catch (Exception ex) + { + LogHelper.Error($"加密手机号错误{ex.Message}"); + return msg; + } + } + } +} \ No newline at end of file diff --git a/SA.Domain.XFYun/SA.Domain.XFYun.csproj b/SA.Domain.XFYun/SA.Domain.XFYun.csproj new file mode 100644 index 0000000..a1ca404 --- /dev/null +++ b/SA.Domain.XFYun/SA.Domain.XFYun.csproj @@ -0,0 +1,33 @@ + + + + net6.0 + enable + enable + True + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SA.Domain.XFYun/XFYunDomains/IXFYunDomain.cs b/SA.Domain.XFYun/XFYunDomains/IXFYunDomain.cs new file mode 100644 index 0000000..c88d1a4 --- /dev/null +++ b/SA.Domain.XFYun/XFYunDomains/IXFYunDomain.cs @@ -0,0 +1,42 @@ +namespace SA.Domain.XFYun.XFYunDomains +{ + /// + /// 讯飞处理 + /// + public interface IXFYunDomain + { + /// + /// 发送短信 + /// + /// + Task SendSms(); + + /// + /// 订单外呼 + /// + /// + Task OrderOutbound(); + + /// + /// 回调方法 + /// + /// + /// + Task Callback(CallDetail detail); + + /// + /// 获取回调结果 + /// + /// + /// + Task GetCallbackResult(int taskId); + + /// + /// 更新回调结果 + /// + /// + Task UpdateCallbackResult(); + + Task GetCallbackResultByXunFei(int taskId); + } +} \ No newline at end of file diff --git a/SA.Domain.XFYun/XFYunDomains/XFYunDomain.cs b/SA.Domain.XFYun/XFYunDomains/XFYunDomain.cs new file mode 100644 index 0000000..beb9366 --- /dev/null +++ b/SA.Domain.XFYun/XFYunDomains/XFYunDomain.cs @@ -0,0 +1,591 @@ +using System.Diagnostics; +using Microsoft.AspNetCore.DataProtection.KeyManagement; +using Newtonsoft.Json; + +namespace SA.Domain.XFYun.XFYunDomains +{ + /// + /// 讯飞处理 + /// + public class XFYunDomain : IXFYunDomain + { + private readonly SystemConfig _systemConfig; + private readonly IXFYunApi _xfyunApi; + private readonly IZXDApi _zxdApi; + + /// + /// 讯飞处理 + /// + /// + /// + public XFYunDomain( + IXFYunApi xfyunApi, + IZXDApi zxdApi) + { + _xfyunApi = xfyunApi; + _zxdApi = zxdApi; + _systemConfig = InitConfiguration.GetSection("SystemConfig").Get(); + } + + /// + /// 发送信息 + /// + /// + public async Task SendSms() + { + try + { + var tasks = await InitDB.zxdcrmDb.Queryable() + .Where(x => x.Sms == 1 && x.Smstime <= DateTime.Now) + .ToListAsync(); + if (tasks == null || !tasks.Any()) return; + + var mobiles = tasks.Select(x => x.Resid).Distinct().ToList(); + + var request = new ZXDEntity.SmsMessage + { + Message = SerializeHelper.ToJson(new + { + _systemConfig.SmsConfig.TypeCode, + _systemConfig.SmsConfig.SubTypeCode, + Para = "" + }), + Mobile = mobiles + }; + + var taskIds = tasks.Select(x => x.Id).ToList(); + + var orders = await InitDB.zxdcrmDb.Queryable() + .LeftJoin((t1, t2) => t1.Orderid == t2.Orderid) + .Where((t1, t2) => taskIds.Contains(t2.Taskid.Value)) + .ToListAsync(); + + // 判断订单是否已开通,如果已开通则不执行外呼 + if (orders.Any(x => x.Orderstatus == "220" || x.AiHgrecordStatus == -1)) + { + LogHelper.Info($"订单[{string.Join(",", orders.Select(x => x.Orderid).ToList())}]已忽略外呼,不执行[短信发送任务]"); + + tasks.ForEach(x => + { + x.Sms = 2; + x.Smstime = DateTime.Now; + }); + } + else + { + var result = await _zxdApi.PutSms(request); + if (result.Result) + { + tasks.ForEach(x => + { + x.Sms = 2; + x.Smstime = DateTime.Now; + }); + } + } + await InitDB.zxdcrmDb.Updateable(tasks).ExecuteCommandAsync(); + } + catch (Exception ex) + { + LogHelper.Error(ex, "短信任务报错!"); + } + } + + /// + /// 订单外呼 + /// + /// + public async Task OrderOutbound() + { + try + { + var time = DateTime.Now.AddMinutes(_systemConfig.IntervalMinutes); + Stopwatch stopwatch = new Stopwatch(); + stopwatch.Start(); + var key = "singleAdd"; + var accessKey = _systemConfig.ClientKey.Where(x => x.Id == _systemConfig.CRMClientKey).Select(x => x.AccessKey).First(); + List userStatus = new List { 8, 9 }; + var list = await InitDB.zxdcrmDb.Queryable() + .LeftJoin((t1, t2) => t1.Resid == t2.Resid) + .Where(t1 => + (t1.Sms == 0 || (t1.Sms == 2 && t1.Smstime <= time)) + && t1.Status == 0 + && t1.Exetime <= DateTime.Now + && !userStatus.Contains(t1.AiHgrecordStatus.Value)) //排除人工操作的任务 + .Select((t1, t2) => new SingleAddRequest + { + ExtTaskId = t1.Id.ToString(), + AppId = t1.AppId, + CallNo = t1.CallNo, + Priority = t1.Priority, + Robot = t1.Robot, + Phone = t2.Mobile, + PropsStr = t1.Props, + Ext = _systemConfig.Ext + }) + .ToListAsync(); + stopwatch.Stop(); + LogHelper.Info($"订单外呼查询【{stopwatch.ElapsedMilliseconds}ms】"); + if (list == null || !list.Any()) return; + + var tasks = await InitDB.zxdcrmDb.Queryable() + .Where(x => list.Select(y => int.Parse(y.ExtTaskId ?? "0")).Contains(x.Id)) + .ToListAsync(); + + var taskIds = tasks.Select(x => x.Id).ToList(); + + LogHelper.Info($"任务[{string.Join(",", taskIds)}]正在执行[外呼任务],任务数量[{taskIds.Count}]"); + + foreach (var param in list) + { + var task = tasks.First(x => x.Id.ToString() == param.ExtTaskId); + await CallOrder(param, task); + } + } + catch (Exception ex) + { + LogHelper.Error(ex, "定时任务报错!"); + } + } + + public async Task CallOrder(SingleAddRequest param, CsvrAiCalltask task) + { + var key = "singleAdd"; + var accessKey = _systemConfig.ClientKey.Where(x => x.Id == _systemConfig.CRMClientKey).Select(x => x.AccessKey).First(); + try + { + param.Phone = SecurityHelper.DecyptData(param.Phone, accessKey); + } + catch (Exception ex) + { + Log.Warning("手机号解密失败,尝试[gd_crm]进行解密" + ex.Message); + var ordAccessKey = _systemConfig.ClientKey.Where(x => x.Id == "gd_crm").Select(x => x.AccessKey).First(); + try + { + param.Phone = SecurityHelper.DecyptData(param.Phone, ordAccessKey); + } + catch (Exception ex2) + { + LogHelper.Error("手机号解密失败!", ex2); + } + } + param.Props = string.IsNullOrEmpty(param.PropsStr) ? new Dictionary() : + SerializeHelper.FromJson>(param.PropsStr); + + var orders = await InitDB.zxdcrmDb.Queryable() + .LeftJoin((t1, t2) => t1.Orderid == t2.Orderid) + .Where((t1, t2) => task.Id == t2.Taskid) + .ToListAsync(); + + // 生成唯一id + task.ExtTaskId = CreateExTaskId(task.Id); + param.ExtTaskId = task.ExtTaskId; + + var request = new XFYunRequest( + param.AppId, + key, + _systemConfig.XFYunGroudId, + param); + List containStatus = new List + { + 82243656,82243655,82243649,82243646,82243525,82243515,82243504,82243469,82243393,82243351,82243330,82243276,82243265,82243246,82242374,82243488,82244062 + }; + // 判断订单是否已开通,如果已开通则不执行外呼 + if (orders.Any(x => x.Orderstatus == "220" || x.AiHgrecordStatus == -1)) + { + LogHelper.Info($"订单[{string.Join(",", orders.Select(x => x.Orderid).ToList())}]已忽略外呼,不执行[外呼任务]"); + task.Status = 2; + orders.ForEach(x => x.AiHgrecordStatus = -1); + } + else + { + // 执行外呼 + var result = await _xfyunApi.SingleAdd(request); + + task.Utime = DateTime.Now; + + if (result.Ret == 0 && result.Data.Success) + { + task.Status = 1; + orders.ForEach(x => x.AiHgrecordStatus = 2); + } + else + { + task.Status = 2; + task.RetDesc = result.Ret != 0 ? result.Msg : result.Data.Desc; + + orders.ForEach(x => x.AiHgrecordStatus = 4); + } + } + if (orders.Any(x => containStatus.Contains(x.Orderid))) + { + LogHelper.Info($"订单[{string.Join(",", orders.Select(x => x.Orderid).ToList())}]忽略订单状态,直接外呼"); + var result = await _xfyunApi.SingleAdd(request); + + task.Utime = DateTime.Now; + + if (result.Ret == 0 && result.Data.Success) + { + task.Status = 1; + orders.ForEach(x => x.AiHgrecordStatus = 2); + } + else + { + task.Status = 2; + task.RetDesc = result.Ret != 0 ? result.Msg : result.Data.Desc; + + orders.ForEach(x => x.AiHgrecordStatus = 4); + } + } + task.AiHgrecordStatus = orders.FirstOrDefault() == null ? task.AiHgrecordStatus : orders.FirstOrDefault()?.AiHgrecordStatus; + + try + { + InitDB.zxdcrmDb.BeginTran(); + await InitDB.zxdcrmDb.Updateable(orders).UpdateColumns(x => new + { + x.AiHgrecordStatus, + x.AiHgrecordStatusname + }).ExecuteCommandAsync(); + await InitDB.zxdcrmDb.Updateable(task).ExecuteCommandAsync(); + InitDB.zxdcrmDb.CommitTran(); + } + catch (Exception ex) + { + InitDB.zxdcrmDb.RollbackTran(); + LogHelper.Error(ex, "[外呼任务]报错!"); + } + } + + /// + /// 生成唯一id + /// + /// + /// + private static string CreateExTaskId(int taksId) + { + var unixTime = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds(); + var randomString = CreateRandomNumber(4); + + return $"{unixTime}{taksId}{randomString}"; + } + + /// + /// 生成随机数字 + /// + /// 生成长度 + /// 是否要在生成前将当前线程阻止以避免重复 + /// + private static string CreateRandomNumber(int Length, bool Sleep = true) + { + if (Sleep) + Thread.Sleep(3); + string result = ""; + Random random = new(); + for (int i = 0; i < Length; i++) + { + result += random.Next(10).ToString(); + } + return result; + } + + /// + /// 回调函数 + /// + /// + /// + public async Task Callback(CallDetail detail) + { + try + { + var task = await InitDB.zxdcrmDb.Queryable() + .Where(x => x.ExtTaskId == detail.ExtTaskId) + .OrderByDescending(x => x.Id) + .FirstAsync(); + var orders = await InitDB.zxdcrmDb.Queryable() + .LeftJoin((t1, t2) => t1.Orderid == t2.Orderid) + .Where((t1, t2) => task.Id == t2.Taskid) + .ToListAsync(); + // 不明文显示 + //detail.Phone = SecurityHelper.EncyptData(detail.Phone, "UPWEBSITE"); + LogHelper.Info($"讯飞回调刷新 {string.Join(",", orders.Select(n => n.Orderid))} 讯飞结果:{JsonConvert.SerializeObject(detail)}"); + await UpdateTask(task, orders, detail, true); + } + catch (Exception ex) + { + LogHelper.Error(ex, "更新回调信息报错!"); + } + return new + { + rc = "000000", + desc = "" + }; + } + + /// + /// 更新任务状态 + /// + /// + /// + /// + /// + /// + /// + private static async Task UpdateTask(CsvrAiCalltask? task, List orders, CallDetail detail, bool result = false, string error = "") + { + if (task == null) return; + + task.Status = 2; + task.Exetime = DateTime.Now; + task.CallRet = detail.CallRet; + task.Audio = detail.Audio; + task.Labels = detail.Labels; + task.Content = detail.Content; + task.EndTime = string.IsNullOrEmpty(detail.EndTime) ? null : DateTime.Parse(detail.EndTime); + task.StartTime = string.IsNullOrEmpty(detail.StartTime) ? null : DateTime.Parse(detail.StartTime); + task.PlatSingleTaskId = detail.PlatTaskId; + task.SvcTime = detail.SvcTime; + task.Interact = detail.Interact == null || !detail.Interact.Any() ? "" : SerializeHelper.ToJson(detail.Interact); + task.Rounds = detail.Interact == null || !detail.Interact.Any() ? 0 : detail.Interact.Where(n => n.Type == "1").Count(); + // 判断对话信息是否完整 + var full = false; + var labels = new Dictionary(); + + orders.ForEach(x => x.Hasaiaudio = string.IsNullOrEmpty(task.Audio) ? 0 : 1); + //人工操作的不刷新状态 + List userStatus = new List + { + 8,9 + }; + orders = orders.Where(n => !userStatus.Contains(n.AiHgrecordStatus.Value)).ToList(); + var updateStatus = 0; + if (!string.IsNullOrEmpty(detail.Labels)) + { + labels = SerializeHelper.FromJson>(detail.Labels); + if (labels.Any() && labels.TryGetValue("访问结果", out string? label) && label == "正常访问") + { + full = true; + } + } + if (result && detail.Status == 3 && full) + { + task.RetDesc = detail.RetDesc; + updateStatus = string.IsNullOrEmpty(detail.RetDesc) ? 4 : + detail.RetDesc == "外呼成功" ? 5 : 3; + } + else + { + task.RetDesc = !string.IsNullOrEmpty(error) ? error : + !string.IsNullOrEmpty(detail.RetDesc) ? detail.RetDesc : + "外呼失败"; + + if (detail.Interact == null || !detail.Interact.Any()) + { + updateStatus = 4; + } + else + { + // 如果不存在人为回答,需要把状态改为AI外呼失败(挂断) + if (!detail.Interact.Any(x => x.Type == "1")) + { + updateStatus = 7; + } + else + { + updateStatus = 3; + } + } + } + task.AiHgrecordStatus = updateStatus; + var genOrderCallConfig = GenOrderCall.GetConfig(); + var ReCallMin = genOrderCallConfig.ReCallMins; + //找出是否存在其他任务 + if (orders.Count > 0) + { + var taskids = InitDB.zxdcrmDb.Queryable().Where(d => d.Orderid == orders.FirstOrDefault().Orderid).Select(d => d.Taskid).ToList(); + //如果 任务外呼 失败 且 大于重拨次数 直接刷为 ai重拨失败 + List failStatus = new List { 3, 4, 7 }; + if (taskids.Count > ReCallMin.Count && failStatus.Contains(updateStatus)) + { + updateStatus = -2; + LogHelper.Info($"订单【{string.Join(",", orders.Select(n => n.Orderid))}】刷新状态为【AI重拨失败】"); + } + orders.ForEach(x => x.AiHgrecordStatus = updateStatus); + } + LogHelper.Info($"任务编号【{task.Id}】订单为【{string.Join(",", orders.Select(n => n.Orderid))}】刷新状态为【{task.AiHgrecordStatusname}】"); + try + { + InitDB.zxdcrmDb.BeginTran(); + await InitDB.zxdcrmDb.Updateable(orders).UpdateColumns(x => new + { + x.AiHgrecordStatus, + x.AiHgrecordStatusname, + x.Hasaiaudio + }).ExecuteCommandAsync(); + await InitDB.zxdcrmDb.Updateable(task).ExecuteCommandAsync(); + InitDB.zxdcrmDb.CommitTran(); + } + catch (Exception ex) + { + InitDB.zxdcrmDb.RollbackTran(); + LogHelper.Error(ex, "定时任务报错!"); + } + } + + /// + /// 轮询获取结果 + /// + /// + public async Task UpdateCallbackResult() + { + try + { + var time = DateTime.Now.AddMinutes(_systemConfig.CallbackMinutes); + var key = "singleQuery"; + var accessKey = _systemConfig.ClientKey.Where(x => x.Id == _systemConfig.CRMClientKey).Select(x => x.AccessKey).First(); + var tasks = await InitDB.zxdcrmDb.Queryable() + .Where(t1 => t1.Status == 1 && t1.Utime <= time) + .ToListAsync(); + + if (tasks == null || !tasks.Any()) return; + + foreach (var task in tasks) + { + if (task == null) continue; + + var taskId = task?.Id; + var param = new SingleQueryRequest() + { + ExtTaskId = task?.ExtTaskId ?? task?.Id.ToString(), + AppId = task?.AppId, + }; + + var request = new XFYunRequest( + param.AppId, + key, + _systemConfig.XFYunGroudId, + param); + + // 获取结果 + var result = await _xfyunApi.SingleQuery(request); + var orders = await InitDB.zxdcrmDb.Queryable() + .LeftJoin((t1, t2) => t1.Orderid == t2.Orderid) + .Where((t1, t2) => taskId == t2.Taskid) + .ToListAsync(); + LogHelper.Info($"任务自动刷新时间,任务id: {taskId} {string.Join(",", orders.Select(n => n.Orderid))}讯飞结果:{JsonConvert.SerializeObject(result)}"); + if (result.Ret == 0 && result?.Data?.Result != null) + { + //录音不为空才做更新 + if (!string.IsNullOrWhiteSpace(result.Data.Result.Audio)) + { + await UpdateTask(task, orders, result.Data.Result, result.Data.Success, result.Error ?? ""); + } + } + else + { + LogHelper.Error($"定时任务获取结果出错,任务id: {taskId}, 错误信息: {result?.Msg}"); + } + } + } + catch (Exception ex) + { + LogHelper.Error(ex, "定时任务报错!"); + } + } + + /// + /// + /// + /// + /// + public async Task GetCallbackResult(int taskId) + { + try + { + var key = "singleQuery"; + var task = await InitDB.zxdcrmDb.Queryable() + .Where(t1 => t1.Id == taskId) + .FirstAsync(); + + if (task == null) return task; + + var param = new SingleQueryRequest() + { + ExtTaskId = task?.ExtTaskId ?? task?.Id.ToString(), + AppId = task?.AppId, + }; + + var request = new XFYunRequest( + param.AppId, + key, + _systemConfig.XFYunGroudId, + param); + + // 获取结果 + var result = await _xfyunApi.SingleQuery(request); + + var orders = await InitDB.zxdcrmDb.Queryable() + .LeftJoin((t1, t2) => t1.Orderid == t2.Orderid) + .Where((t1, t2) => taskId == t2.Taskid) + .ToListAsync(); + + if (result.Ret == 0 && result?.Data?.Result != null) + { + await UpdateTask(task, orders, result.Data.Result, result.Data.Success, result.Error ?? ""); + } + else + { + LogHelper.Error($"定时任务获取结果出错,任务id: {taskId}, 错误信息: {result?.Msg}"); + } + return task; + } + catch (Exception ex) + { + LogHelper.Error(ex, "更新回调信息报错!"); + + return null; + } + } + + /// + /// 单纯获取讯飞结果 + /// + /// + /// + public async Task GetCallbackResultByXunFei(int taskId) + { + try + { + var key = "singleQuery"; + var task = await InitDB.zxdcrmDb.Queryable() + .Where(t1 => t1.Id == taskId) + .FirstAsync(); + + if (task == null) return ""; + + var param = new SingleQueryRequest() + { + ExtTaskId = task?.ExtTaskId ?? task?.Id.ToString(), + AppId = task?.AppId, + }; + + var request = new XFYunRequest( + param.AppId, + key, + _systemConfig.XFYunGroudId, + param); + + // 获取结果 + var result = await _xfyunApi.SingleQuery(request); + + var res = JsonConvert.SerializeObject(result); + return res.ToString(); + } + catch (Exception ex) + { + LogHelper.Info($"获取讯飞结果出错{ex.Message}"); + return $"获取讯飞结果出错{ex.Message}"; + } + } + } +} \ No newline at end of file diff --git a/SA.Domain.XFYun/XFYunEntity/AI_CallTaskConfig.cs b/SA.Domain.XFYun/XFYunEntity/AI_CallTaskConfig.cs new file mode 100644 index 0000000..cf08cc7 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/AI_CallTaskConfig.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Domain.XFYun.XFYunEntity +{ + /// + /// 创建订单外呼任务配置 + /// + public class AI_CallTaskConfig + { + /// + /// 订单外呼起始时间 + /// + public DateTime StartTime { get; set; } = DateTime.Parse("2021-12-01"); + + /// + /// 仅呼叫近几天支付的订单 + /// + public int CallDay { get; set; } = 7; + + /// + /// 等待2分钟后处理 + /// + public int CreatCallMin { get; set; } = 1; + + /// + /// 设置需要重试的状态 + /// + public List ReCallStatus { get; set; } = new List() { 3, 4 }; + + /// + /// //优先级别1-紧急 2-优先 + /// + public string Priority { get; set; } = "2"; + + /// + /// 最小订单金额 + /// + public decimal MinAmount { get; set; } = 1m; + + public List ReCallMins { get; set; } = new List() { 1, 5, 10, 20, 100 }; + + /// + /// 同人检查时间,分钟 + /// + public int SameUserCheckTimeSpanMin { get; set; } = 1; + + /// + /// 呼叫忽略配置 + /// + public List IgnoreHitConfigs { get; set; } = new List(); + + /// + /// 呼叫话术 + /// + public ProposProductConfig proposProductConfig { get; set; } = new ProposProductConfig(); + + /// + /// 是否发短信1:发, 0:不发 + /// + public int Sms { get; set; } = 1; + + /// + /// 发短信多久后外呼,分钟 + /// + public int SmsExprieMinCall { get; set; } = 1; + + public string Robot { get; set; } = "15603355067677285"; + + public string CallNo { get; set; } + + public string AppId { get; set; } = "d2282f8efcc0429cafca7d59551bf445"; + + /// + /// 允许外拨时间段 + /// + public string? HgrecordStime { get; set; } + + /// + /// 允许外拨时间段 + /// + public string? HgrecordEtime { get; set; } + + /// + /// 白名单 + /// + public List WhiteList { get; set; } = new List(); + + /// + /// 忽略产品类型 + /// + public List IgnoreProductType { get; set; } = new List() { 4 }; + } + + public class HitConfig + { + /// + /// key + /// + public string? HitKey { get; set; } = "Channel"; + + /// + /// 包含 + /// + public List? Contain { get; set; } = new List() { "1000|2000" }; + + /// + /// 不包含 + /// + public List? NoContain { get; set; } = new List() { "1000|2000" }; + } + + /// + /// Channel 为范围,|连接,左右包含,如1000|2000 + /// + public enum HitKey + { Channel, Subproductid, Resid } + + /// + /// 渠道范围 + /// + public class ChannelItem + { + public int Min { get; set; } + public int Max { get; set; } + } + + /// + /// 话术模板配置 + /// + public class ProposProductConfig + { + /// + /// 单个订单配置 + /// + public string OneTemplate { get; set; } = "请问您购买的产品是@Subproductname,购买期限是【#OpenDays】天@GiftExp,您本次支付的订单金额是【#Arrivalpay】元,对吗?"; + + /// + /// 多个订单配置 + /// + public string MultipleTemplate { get; set; } = "请问您购买的产品是@Subproductname,其中@PayExp,您本次支付的订单金额是【#Arrivalpay】元,对吗?"; + + /// + /// 产品名称配置 + /// + public string Subproductname { get; set; } = "【#Subproductname】"; + + /// + /// 支付信息配置 + /// + public string PayExp { get; set; } = "@Subproductname购买期限是【#OpenDays】天@GiftExp"; + + /// + /// 支付信息配置 + /// + public string MultiplePayExp { get; set; } = "@Subproductname,订单金额是@Subproductmoney,购买期限是【#OpenDays】天,@GiftExp"; + + /// + /// 过期时间配置 + /// + public string GiftExp { get; set; } = ",赠送期限是【#OpenDays】天,"; + + /// + /// 过期时间配置 + /// + public string MultipleGiftExp { get; set; } = ",赠送期限是【#GiftDays】天,合计使用期限是【#OpenDays】天,@Giftproductname"; + } +} \ No newline at end of file diff --git a/SA.Domain.XFYun/XFYunEntity/CallDetail.cs b/SA.Domain.XFYun/XFYunEntity/CallDetail.cs new file mode 100644 index 0000000..7dbdd84 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/CallDetail.cs @@ -0,0 +1,159 @@ +namespace SA.Domain.XFYun.XFYunEntity +{ + public class CallDetail + { + /// + /// 云呼平台创建的批次任务ID + /// + public string? PlatTaskId { get; set; } + + /// + /// 调用方任务ID + /// + public string? ExtTaskId { get; set; } + + /// + /// + /// + public string? PlatSingleTaskId { get; set; } + + /// + /// 外呼号码 + /// + public string? Phone { get; set; } + + /// + /// 号码归属省份 + /// + public string? Province { get; set; } + + /// + /// 号码归属城市 + /// + public string? City { get; set; } + + /// + /// 运营商,1-移动,2-联通,3-电信 + /// + public string? CarrierCode { get; set; } + + /// + /// 外呼机器人编号 + /// + public string? Robot { get; set; } + + /// + /// 0:成功 1:失败 2:过期 + /// + public string? CallRet { get; set; } + + /// + /// 若外呼失败,该字段为失败原因 + /// 失败原因有很多,其中通话未建立的具体失败原因是通过转写识别回铃音分析获取的,是个异步的处理过程,正在考虑在外呼结果相关接口中直接推送具体的外呼失败原因。 + /// 具体失败原因包括:关机、停机、空号、正在通话、无人接听、无法接通等 + /// + public string? RetDesc { get; set; } + + /// + /// 外呼开始时间 + /// + public string? StartTime { get; set; } + + /// + /// 外呼结束时间 + /// + public string? EndTime { get; set; } + + /// + /// 服务时长(单位:s) + /// + public int? SvcTime { get; set; } + + /// + /// 会话标签(json) + /// + public string? Labels { get; set; } + + /// + /// 交互记录 + /// + public List? Interact { get; set; } + + /// + /// 全程通话音频(http地址) + /// + public string? Audio { get; set; } + + /// + /// 由对应开发者的适配层来解析并规整后按照开发者协议回调。 + /// + public string? Ext { get; set; } + + /// + /// 当前外呼状态 + /// 0:任务待提交 + /// 1:任务已提交,等待营销 + /// 2:营销中 + /// 3:营销结束 + /// 4:营销失败 + /// 5:营销过期 + /// 6:已被业务规则过滤 + /// 7:暂停 + /// 8:取消 + /// + public int? Status { get; set; } + + /// + /// 会话id,当外呼成功、会话接通后才有值 + /// + public string? Sid { get; set; } + + /// + /// 开发者应用ID + /// + public string? AppId { get; set; } + + /// + /// 业务参数,格式json(取决于外呼话术配置) + /// + public string? Content { get; set; } + + /// + /// 槽位,格式json(取决于话术及交互) + /// + public string? Slots { get; set; } + } + + public class CallDetailInteract + { + /// + /// 交互时间精确到秒 + /// + public string? Time { get; set; } + + /// + /// 0机器人 1 用户 + /// + public string? Type { get; set; } + + /// + /// 内容 + /// + public string? Content { get; set; } + + /// + /// 节点id + /// + public string? Nodeid { get; set; } + + /// + /// 节点名称 + /// + public string? Nodename { get; set; } + + /// + /// 交互过程中用户说话的音频文件 + /// + public string? Ugc { get; set; } + } +} diff --git a/SA.Domain.XFYun/XFYunEntity/SingleAddRequest.cs b/SA.Domain.XFYun/XFYunEntity/SingleAddRequest.cs new file mode 100644 index 0000000..faff589 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/SingleAddRequest.cs @@ -0,0 +1,81 @@ +namespace SA.Domain.XFYun.XFYunEntity +{ + public class SingleAddRequest + { + /// + /// 开发者单个号码任务ID + /// + public string? ExtTaskId { get; set; } + + /// + /// 机器人编号 + /// + public string? Robot { get; set; } + + /// + /// 外呼的外显号码 + /// + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] + public string? CallNo { get; set; } + + /// + /// 合成参数 + /// + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] + public TtsParam? TtsParam { get; set; } + + /// + /// 优先级: 1-紧急 2-优先 + /// + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] + public string? Priority { get; set; } + + /// + /// + /// + public string? PropsStr { get; set; } + + /// + /// 号码 + /// + public string? Phone { get; set; } + + /// + /// 针对phone的机器人参数详情 + /// + public Dictionary? Props { get; set; } + + /// + /// 扩展信息(格式不限),由开发者的适配层来填充 + /// + public string? Ext { get; set; } + + /// + /// 开发者应用ID + /// + public string? AppId { get; set; } + } + + public class TtsParam + { + /// + /// 发音人名称 + /// + public string? Vcn { get; set; } + + /// + /// 音量,范围0-100,默认50 + /// + public string? Volume { get; set; } + + /// + /// 音速,范围0-100,默认50 + /// + public string? Speed { get; set; } + + /// + /// 音高,范围0-100,默认50 + /// + public string? Pitch { get; set; } + } +} diff --git a/SA.Domain.XFYun/XFYunEntity/SingleAddResponse.cs b/SA.Domain.XFYun/XFYunEntity/SingleAddResponse.cs new file mode 100644 index 0000000..691e267 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/SingleAddResponse.cs @@ -0,0 +1,10 @@ +namespace SA.Domain.XFYun.XFYunEntity +{ + public class SingleAddResponse : XFYunResponseData + { + /// + /// 任务ID + /// + public string? PlatSingleTaskId { get; set; } + } +} diff --git a/SA.Domain.XFYun/XFYunEntity/SingleQueryRequest.cs b/SA.Domain.XFYun/XFYunEntity/SingleQueryRequest.cs new file mode 100644 index 0000000..9d125f7 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/SingleQueryRequest.cs @@ -0,0 +1,20 @@ +namespace SA.Domain.XFYun.XFYunEntity +{ + public class SingleQueryRequest + { + /// + /// 开发者单个号码任务ID + /// + public string? ExtTaskId { get; set; } + + /// + /// 平台任务id + /// + public string? PlatSingleTaskId { get; set; } + + /// + /// 开发者应用ID + /// + public string? AppId { get; set; } + } +} diff --git a/SA.Domain.XFYun/XFYunEntity/SingleQueryResponse.cs b/SA.Domain.XFYun/XFYunEntity/SingleQueryResponse.cs new file mode 100644 index 0000000..8b1c6b5 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/SingleQueryResponse.cs @@ -0,0 +1,10 @@ +namespace SA.Domain.XFYun.XFYunEntity +{ + public class SingleQueryResponse: XFYunResponseData + { + /// + /// 对话明细 + /// + public CallDetail Result { get; set; } + } +} diff --git a/SA.Domain.XFYun/XFYunEntity/SystemConfig.cs b/SA.Domain.XFYun/XFYunEntity/SystemConfig.cs new file mode 100644 index 0000000..80220bc --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/SystemConfig.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Domain.XFYun.XFYunEntity +{ + /// + /// 系统参数 + /// + public class SystemConfig + { + /// + /// 相隔时间 + /// + public int IntervalMinutes { get; set; } + + /// + /// 回调时间 + /// + public int CallbackMinutes { get; set; } + + /// + /// 分组id + /// + public string? XFYunGroudId { get; set; } + + /// + /// 转发地址 + /// + public string? ForwardingUrl { get; set; } + + /// + /// 销售线索URL + /// + public string? SalesLeadUrl { get; set; } + + /// + /// CRM号码加密key(clientKey) + /// + public string? CRMClientKey { get; set; } + + /// + /// 推送部门编码 + /// + + public string? DataClientCode { get; set; } + + /// + /// 深海捷固定坐席 + /// + public string? Shj { get; set; } + + /// + /// 客户端密钥 + /// + public List ClientKey { get; set; } + + /// + /// 短信配置 + /// + public SmsConfig SmsConfig { get; set; } + + /// + /// 附加信息 + /// + public string? Ext { get; set; } + } + + public class ClientKey + { + public string? Id { get; set; } + + public string? Name { get; set; } + + public string? AccessKey { get; set; } + } + + public class SmsConfig + { + public string? TypeCode { get; set; } + + public string? SubTypeCode { get; set; } + } +} diff --git a/SA.Domain.XFYun/XFYunEntity/XFYunApiConfig.cs b/SA.Domain.XFYun/XFYunEntity/XFYunApiConfig.cs new file mode 100644 index 0000000..ea20eac --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/XFYunApiConfig.cs @@ -0,0 +1,31 @@ +namespace SA.Domain.XFYun.XFYunEntity +{ + public class XFYunApiConfig + { + public static XFYunApiConfig? GetApiConfig(string key) + { + var configs = InitConfiguration.GetSection("XFYunApiConfigs").Get>(); + return configs.FirstOrDefault(x => x.Key == key); + } + /// + /// key + /// + public string? Key { get; set; } + + /// + /// 请求地址 + /// + public string? Url { get; set; } + + /// + /// 描述 + /// + public string? Description { get; set; } + + public string? ServiceType { get; set; } + + public string? ParamType { get; set; } + + public string? ParamPosition { get; set; } + } +} diff --git a/SA.Domain.XFYun/XFYunEntity/XFYunConfig.cs b/SA.Domain.XFYun/XFYunEntity/XFYunConfig.cs new file mode 100644 index 0000000..aa401f3 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/XFYunConfig.cs @@ -0,0 +1,60 @@ +namespace SA.Domain.XFYun.XFYunEntity +{ + public class XFYunConfig + { + /// + /// 讯飞云管理平台应用查看处获取并修改 + /// + public string? AppId { get; set; } + + /// + /// 讯飞云管理平台应用查看处获取并修改 + /// + public string? AppSecret { get; set; } + + /// + /// 讯飞云API的服务器地址 + /// + public string? Host { get; set; } + + /// + /// http请求的端口 + /// + public int HttpPort { get; set; } + + /// + /// https请求的端口 + /// + public int HttpsPort { get; set; } + + /// + /// sdk生成时选择的环境 RELEASE=线上 TEST=测试 PRE=预生产; + /// + public string? Stage { get; set; } + + /// + /// 此参数暂时无用 + /// + public string? EquipmentNo { get; set; } + + /// + /// 此参数暂时无用 + /// + public string? SignStrategyUrl { get; set; } + + /// + /// 此参数暂时无用 + /// + public string? TokenUrl { get; set; } + + /// + /// 管理平台应用查看处获取并修改 + /// + public string? PublicKey { get; set; } + + /// + /// 关闭云锁验证 + /// + public bool IcloudlockEnabled { get; set; } + } +} diff --git a/SA.Domain.XFYun/XFYunEntity/XFYunRequest.cs b/SA.Domain.XFYun/XFYunEntity/XFYunRequest.cs new file mode 100644 index 0000000..adad3b4 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/XFYunRequest.cs @@ -0,0 +1,68 @@ +using SA.Core; +using SA.Core.Init; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Text; +using System.Threading.Tasks; +using Microsoft.Extensions.Configuration; + +namespace SA.Domain.XFYun.XFYunEntity +{ + /// + /// 讯飞云请求 + /// + /// + public class XFYunRequest + where TParams : class + { + /// + /// 构造函数 + /// + /// + /// + /// + /// + public XFYunRequest(string? appId, string? key, string? groupId, TParams param) + { + var configs = InitConfiguration.GetSection("XFYunConfigs").Get>(); + var config = configs.FirstOrDefault(x => x.AppId == appId); + if (config == null) LogHelper.Error($"AppId: {appId},配置不存在,请检查配置"); + var apiConfig = XFYunApiConfig.GetApiConfig(key ?? ""); + Url = apiConfig?.Url; + GroupId = groupId; + Params = param; + ParamPosition = apiConfig?.ParamPosition; + ServiceType = apiConfig?.ServiceType; + ParamType = apiConfig?.ParamType; + Config = config; + } + + /// + /// 讯飞云API的请求地址 + /// + public string? Url { get; } + + /// + /// 讯飞云API的应用配置(此参数为可选,不传该参数时,默认读取后端服务配置文件) + /// + public XFYunConfig? Config { get; } + + /// + /// 接口分组ID,在讯飞云管理平台上获取 + /// + public string? GroupId { get; } + + public string? ParamPosition { get; } + + public string? ServiceType { get; } + + public string? ParamType { get; } + + /// + /// 讯飞云API的调用参数,具体参数字段请查看讯飞云API文档; + /// + public TParams Params { get; } + } +} \ No newline at end of file diff --git a/SA.Domain.XFYun/XFYunEntity/XFYunResponse.cs b/SA.Domain.XFYun/XFYunEntity/XFYunResponse.cs new file mode 100644 index 0000000..bd57e25 --- /dev/null +++ b/SA.Domain.XFYun/XFYunEntity/XFYunResponse.cs @@ -0,0 +1,43 @@ +namespace SA.Domain.XFYun.XFYunEntity +{ + public class XFYunResponse where TResponse : XFYunResponseData + { + /// + /// 状态码,0为也调用成功,-1为调用失败 + /// + public int Ret { get; set; } + + /// + /// 请求返回消息 + /// + public string? Msg { get; set; } + + /// + /// 调用讯飞云API后返回的数据 + /// + public TResponse Data { get; set; } + + /// + /// 异常信息 + /// + public string? Error { get; set; } + } + + public class XFYunResponseData + { + /// + /// 讯飞云API返回的状态码 + /// + public string Rc { get; set; } + + /// + /// 返回结果 + /// + public bool Success { get; set; } + + /// + /// 返回的描述 + /// + public string? Desc { get; set; } + } +} diff --git a/SA.Domain.XFYun/ZXDEntity/JsonResult.cs b/SA.Domain.XFYun/ZXDEntity/JsonResult.cs new file mode 100644 index 0000000..ac568a2 --- /dev/null +++ b/SA.Domain.XFYun/ZXDEntity/JsonResult.cs @@ -0,0 +1,20 @@ +namespace SA.Domain.XFYun.ZXDEntity +{ + public class JsonResult where T : class + { + /// + /// 结果 + /// + public bool Result { get; set; } + + /// + /// 结果编码 + /// + public int Retcode { get; set; } + + /// + /// 结果 + /// + public T? Retmsg { get; set; } + } +} diff --git a/SA.Domain.XFYun/ZXDEntity/SmsMessage.cs b/SA.Domain.XFYun/ZXDEntity/SmsMessage.cs new file mode 100644 index 0000000..364f402 --- /dev/null +++ b/SA.Domain.XFYun/ZXDEntity/SmsMessage.cs @@ -0,0 +1,18 @@ +namespace SA.Domain.XFYun.ZXDEntity +{ + /// + /// 短信信息 + /// + public class SmsMessage + { + /// + /// 短信内容 + /// + public string? Message { get; set; } + + /// + /// 电话号码 + /// + public List? Mobile { get; set; } + } +} diff --git a/SA.Entity/Request/SHRequest.cs b/SA.Entity/Request/SHRequest.cs new file mode 100644 index 0000000..947cdd2 --- /dev/null +++ b/SA.Entity/Request/SHRequest.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Entity.Request +{ + public class SHRequest + { + public class shQueryList + { + public int pageSize { get; set; } + public int pageCurrent { get; set; } + public string mobile { get; set; } = ""; + public string backRemark { get; set; } = ""; + + public string beginPayTime { get; set; } = ""; + public string endPayTime { get; set; } = ""; + + } + + public class shListNum + { + public int total { get; set; } + public int pageSize { get; set; } + public int pageCurrent { get; set; } + } + + public class SH_checkResult + { + public string sh_orderno { get; set; } = ""; + public string sh_orderid { get; set; } = ""; + public string course { get; set; } = ""; + public string userno { get; set; } = ""; + public string user { get; set; } = ""; + public string username { get; set; } = ""; + public DateTime endtime { get; set; } + public int sh_opendays { get; set; } + public string orderid { get; set; } = ""; + public string resid { get; set; } = ""; + public string cname { get; set; } = ""; + public string subproductname { get; set; } = ""; + public DateTime otime { get; set; } + public int opendays { get; set; } + public DateTime endtime3 { get; set; } + public int diffDays { get; set; } + } + } +} diff --git a/SA.Entity/SA.Entity.csproj b/SA.Entity/SA.Entity.csproj new file mode 100644 index 0000000..c0c0213 --- /dev/null +++ b/SA.Entity/SA.Entity.csproj @@ -0,0 +1,15 @@ + + + + net6.0 + enable + enable + + + + + + + + + diff --git a/SA.Entity/dbcrm/TPackageProduct.cs b/SA.Entity/dbcrm/TPackageProduct.cs new file mode 100644 index 0000000..e0a066c --- /dev/null +++ b/SA.Entity/dbcrm/TPackageProduct.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; + +namespace SA.Entity.dbcrm +{ + [SugarTable("t_product_package")] + public class TPackageProduct + { + /// + /// + /// + [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] + public string id { get; set; } + + /// + /// + /// + [SugarColumn(ColumnName = "groupid")] + public int groupid { get; set; } + } +} \ No newline at end of file diff --git a/SA.Entity/dbcrm/TProduct.cs b/SA.Entity/dbcrm/TProduct.cs new file mode 100644 index 0000000..48e7332 --- /dev/null +++ b/SA.Entity/dbcrm/TProduct.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; + +namespace SA.Entity.dbcrm +{ + /// + /// + /// + [SugarTable("t_product")] + public class TProduct + { + /// + /// + /// + [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)] + public string id { get; set; } + + /// + /// + /// + [SugarColumn(ColumnName = "groupid")] + public int groupid { get; set; } + } +} \ No newline at end of file diff --git a/SA.Entity/zxdcrm_Models/AMonth.cs b/SA.Entity/zxdcrm_Models/AMonth.cs new file mode 100644 index 0000000..0368af5 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/AMonth.cs @@ -0,0 +1,27 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("a_month")] + public partial class AMonth + { + public AMonth(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="yearmonth")] + public int Yearmonth {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/AOrder.cs b/SA.Entity/zxdcrm_Models/AOrder.cs new file mode 100644 index 0000000..079b1f2 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/AOrder.cs @@ -0,0 +1,43 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("a_order")] + public partial class AOrder + { + public AOrder(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="price")] + public decimal? Price {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/APay1.cs b/SA.Entity/zxdcrm_Models/APay1.cs new file mode 100644 index 0000000..513f8ce --- /dev/null +++ b/SA.Entity/zxdcrm_Models/APay1.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("a_pay1")] + public partial class APay1 + { + public APay1(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="price")] + public decimal Price {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/APay2.cs b/SA.Entity/zxdcrm_Models/APay2.cs new file mode 100644 index 0000000..bb10ff5 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/APay2.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("a_pay2")] + public partial class APay2 + { + public APay2(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="price")] + public decimal Price {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/APay3.cs b/SA.Entity/zxdcrm_Models/APay3.cs new file mode 100644 index 0000000..2a09609 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/APay3.cs @@ -0,0 +1,43 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("a_pay3")] + public partial class APay3 + { + public APay3(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="price")] + public decimal? Price {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/Assignrules.cs b/SA.Entity/zxdcrm_Models/Assignrules.cs new file mode 100644 index 0000000..b6d09f7 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/Assignrules.cs @@ -0,0 +1,131 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("assignrules")] + public partial class Assignrules + { + public Assignrules(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:工号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="eid")] + public int Eid {get;set;} + + /// + /// Desc:组别ID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="salegroupid")] + public int Salegroupid {get;set;} + + /// + /// Desc:姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="uname")] + public string? Uname {get;set;} + + /// + /// Desc:最终比例 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rate")] + public decimal? Rate {get;set;} + + /// + /// Desc:档位数量 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="num")] + public int? Num {get;set;} + + /// + /// Desc:是否限制 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="islimit")] + public int? Islimit {get;set;} + + /// + /// Desc:限制数量 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="limitnum")] + public int? Limitnum {get;set;} + + /// + /// Desc:是否有效 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isvalid")] + public int? Isvalid {get;set;} + + /// + /// Desc:渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ch")] + public int? Ch {get;set;} + + /// + /// Desc:档位 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="levelno")] + public int? Levelno {get;set;} + + /// + /// Desc:部门比例 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptrate")] + public decimal? Deptrate {get;set;} + + /// + /// Desc:客服ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="inneruserid")] + public int? Inneruserid {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public string? Ctime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasActlog.cs b/SA.Entity/zxdcrm_Models/BasActlog.cs new file mode 100644 index 0000000..3cca258 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasActlog.cs @@ -0,0 +1,82 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; +namespace 命名空间 +{ + /// + /// + /// + [SugarTable("bas_actlog")] + public partial class BasActlog + { + public BasActlog(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:动作类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="acttype")] + public int? Acttype {get;set;} + + /// + /// Desc:动作类型名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="acttypename")] + public string? Acttypename {get;set;} + + /// + /// Desc:操作人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operator")] + public int? Operator {get;set;} + + /// + /// Desc:操作人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operatorname")] + public string? Operatorname {get;set;} + + /// + /// Desc:状态 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="status")] + public int? Status {get;set;} + + /// + /// Desc:操作时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operationtime")] + public DateTime? Operationtime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasAdchannel.cs b/SA.Entity/zxdcrm_Models/BasAdchannel.cs new file mode 100644 index 0000000..9408500 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasAdchannel.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_adchannel")] + public partial class BasAdchannel + { + public BasAdchannel(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ch")] + public string? Ch {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="adtype")] + public string? Adtype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="aduser")] + public string? Aduser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="chtype")] + public int? Chtype {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasAseq.cs b/SA.Entity/zxdcrm_Models/BasAseq.cs new file mode 100644 index 0000000..79b2386 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasAseq.cs @@ -0,0 +1,43 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///序列表 + /// + [SugarTable("bas_aseq")] + public partial class BasAseq + { + public BasAseq(){ + + + } + /// + /// Desc:序列名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="name")] + public string Name {get;set;} + + /// + /// Desc:开始名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="start_value")] + public long Start_value {get;set;} + + /// + /// Desc: + /// Default:1 + /// Nullable:False + /// + [SugarColumn(ColumnName="increment_value")] + public int Increment_value {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasBudget.cs b/SA.Entity/zxdcrm_Models/BasBudget.cs new file mode 100644 index 0000000..83e290b --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasBudget.cs @@ -0,0 +1,99 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_budget")] + public partial class BasBudget + { + public BasBudget(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyname")] + public string? Companyname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public string? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="budget")] + public int? Budget {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sort")] + public int? Sort {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="year")] + public int? Year {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="month")] + public int? Month {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasCompany.cs b/SA.Entity/zxdcrm_Models/BasCompany.cs new file mode 100644 index 0000000..6c35ef1 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasCompany.cs @@ -0,0 +1,139 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///公司/代理商 + /// + [SugarTable("bas_company")] + public partial class BasCompany + { + public BasCompany(){ + + + } + /// + /// Desc:公司ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="companyid")] + public int Companyid {get;set;} + + /// + /// Desc:公司名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyname")] + public string? Companyname {get;set;} + + /// + /// Desc:是否外部公司 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isouteragent")] + public int? Isouteragent {get;set;} + + /// + /// Desc:上级公司 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="parentid")] + public int? Parentid {get;set;} + + /// + /// Desc:公司编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:包含业务 + /// Default:1 + /// Nullable:False + /// + [SugarColumn(ColumnName="businessvalue")] + public int Businessvalue {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + /// + /// Desc:公司简介 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="comments")] + public string? Comments {get;set;} + + /// + /// Desc:系统编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="systemcode")] + public string? Systemcode {get;set;} + + /// + /// Desc:机构简称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="organname")] + public string? Organname {get;set;} + + /// + /// Desc:开始渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="minchannelcode")] + public int? Minchannelcode {get;set;} + + /// + /// Desc:结束渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="maxchannelcode")] + public int? Maxchannelcode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasCompanychannel.cs b/SA.Entity/zxdcrm_Models/BasCompanychannel.cs new file mode 100644 index 0000000..a58302e --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasCompanychannel.cs @@ -0,0 +1,59 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_companychannel")] + public partial class BasCompanychannel + { + public BasCompanychannel(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="min")] + public int? Min {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="max")] + public int? Max {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="defult")] + public int? Defult {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasCompanyvirtual.cs b/SA.Entity/zxdcrm_Models/BasCompanyvirtual.cs new file mode 100644 index 0000000..fc87d3e --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasCompanyvirtual.cs @@ -0,0 +1,75 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_companyvirtual")] + public partial class BasCompanyvirtual + { + public BasCompanyvirtual(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:公司名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyname")] + public string? Companyname {get;set;} + + /// + /// Desc:推送编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:渠道段 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public string? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sort")] + public int? Sort {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc:公司实际编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasCompanywework.cs b/SA.Entity/zxdcrm_Models/BasCompanywework.cs new file mode 100644 index 0000000..ea7020a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasCompanywework.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_companywework")] + public partial class BasCompanywework + { + public BasCompanywework(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyname")] + public string? Companyname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public string? Channel {get;set;} + + /// + /// Desc:企业微信userid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasInnergroup.cs b/SA.Entity/zxdcrm_Models/BasInnergroup.cs new file mode 100644 index 0000000..f0c6958 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasInnergroup.cs @@ -0,0 +1,99 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///组别表 + /// + [SugarTable("bas_innergroup")] + public partial class BasInnergroup + { + public BasInnergroup(){ + + + } + /// + /// Desc:组id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="gid")] + public int Gid {get;set;} + + /// + /// Desc:营业部ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="saledeptid")] + public int? Saledeptid {get;set;} + + /// + /// Desc:组名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="gname")] + public string Gname {get;set;} + + /// + /// Desc:所属部门 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptid")] + public int? Deptid {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + /// + /// Desc:是否隐藏(逻辑删除) + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="ishide")] + public int? Ishide {get;set;} + + /// + /// Desc:是否为销售组0:不是 1:是 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="issaledept")] + public int? Issaledept {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasInneruser.cs b/SA.Entity/zxdcrm_Models/BasInneruser.cs new file mode 100644 index 0000000..c5ef386 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasInneruser.cs @@ -0,0 +1,155 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///员工 + /// + [SugarTable("bas_inneruser")] + public partial class BasInneruser + { + public BasInneruser(){ + + + } + /// + /// Desc:员工id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="pkid")] + public int Pkid {get;set;} + + /// + /// Desc:姓名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="uname")] + public string Uname {get;set;} + + /// + /// Desc:工号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="eid")] + public int Eid {get;set;} + + /// + /// Desc:性别 + /// Default:m + /// Nullable:False + /// + [SugarColumn(ColumnName="gender")] + public string Gender {get;set;} + + /// + /// Desc:生日 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="birthday")] + public DateTime Birthday {get;set;} + + /// + /// Desc:密码 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="password")] + public string Password {get;set;} + + /// + /// Desc:是否离职 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="isdismiss")] + public int Isdismiss {get;set;} + + /// + /// Desc:离职时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="dismisstime")] + public DateTime? Dismisstime {get;set;} + + /// + /// Desc:离职类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="dismisstype")] + public int? Dismisstype {get;set;} + + /// + /// Desc:入职时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="entrydate")] + public DateTime? Entrydate {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + /// + /// Desc:转正时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="positivetime")] + public DateTime? Positivetime {get;set;} + + /// + /// Desc:真实姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="truename")] + public string? Truename {get;set;} + + /// + /// Desc:是否隐藏(逻辑删除) + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="ishide")] + public int Ishide {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasInnerusergroup.cs b/SA.Entity/zxdcrm_Models/BasInnerusergroup.cs new file mode 100644 index 0000000..6494ec1 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasInnerusergroup.cs @@ -0,0 +1,75 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///用户与部门/组对应关系 + /// + [SugarTable("bas_innerusergroup")] + public partial class BasInnerusergroup + { + public BasInnerusergroup(){ + + + } + /// + /// Desc:员工ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="inneruserid")] + public int Inneruserid {get;set;} + + /// + /// Desc:部门ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptid")] + public int? Deptid {get;set;} + + /// + /// Desc:组ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="gid")] + public int? Gid {get;set;} + + /// + /// Desc:时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasInneruserrole.cs b/SA.Entity/zxdcrm_Models/BasInneruserrole.cs new file mode 100644 index 0000000..322cd1d --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasInneruserrole.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///员工与角色关系 + /// + [SugarTable("bas_inneruserrole")] + public partial class BasInneruserrole + { + public BasInneruserrole(){ + + + } + /// + /// Desc:员工ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="inneruserid")] + public int Inneruserid {get;set;} + + /// + /// Desc:角色ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="roleid")] + public int Roleid {get;set;} + + /// + /// Desc:时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasInnerusersalt.cs b/SA.Entity/zxdcrm_Models/BasInnerusersalt.cs new file mode 100644 index 0000000..c063a18 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasInnerusersalt.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///员工登录盐值表 + /// + [SugarTable("bas_innerusersalt")] + public partial class BasInnerusersalt + { + public BasInnerusersalt(){ + + + } + /// + /// Desc:ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="pkid")] + public int Pkid {get;set;} + + /// + /// Desc:员工ID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="inneruserid")] + public int Inneruserid {get;set;} + + /// + /// Desc:工号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="eid")] + public int Eid {get;set;} + + /// + /// Desc:盐值 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="pwdsalt")] + public string Pwdsalt {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasLeftmemu.cs b/SA.Entity/zxdcrm_Models/BasLeftmemu.cs new file mode 100644 index 0000000..3c132dd --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasLeftmemu.cs @@ -0,0 +1,115 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///系统菜单 + /// + [SugarTable("bas_leftmemu")] + public partial class BasLeftmemu + { + public BasLeftmemu(){ + + + } + /// + /// Desc:菜单id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="menuid")] + public int Menuid {get;set;} + + /// + /// Desc:模块ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="modulemenuid")] + public int? Modulemenuid {get;set;} + + /// + /// Desc:菜单名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="mname")] + public string Mname {get;set;} + + /// + /// Desc:菜单url + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="url")] + public string Url {get;set;} + + /// + /// Desc:是否组 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="isgroup")] + public int Isgroup {get;set;} + + /// + /// Desc:是否显示 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="isshow")] + public int Isshow {get;set;} + + /// + /// Desc:权限id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rightid")] + public string? Rightid {get;set;} + + /// + /// Desc:父结点id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="parentid")] + public int? Parentid {get;set;} + + /// + /// Desc:排序id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sortid")] + public int? Sortid {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:图标 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="imageurl")] + public string? Imageurl {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasLoginlog.cs b/SA.Entity/zxdcrm_Models/BasLoginlog.cs new file mode 100644 index 0000000..1d6dc99 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasLoginlog.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///登录日志 + /// + [SugarTable("bas_loginlog")] + public partial class BasLoginlog + { + public BasLoginlog(){ + + + } + /// + /// Desc:键id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="pkid")] + public int Pkid {get;set;} + + /// + /// Desc:用户id + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="inneruserid")] + public int Inneruserid {get;set;} + + /// + /// Desc:工号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="logineid")] + public int? Logineid {get;set;} + + /// + /// Desc:登录时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="logintime")] + public DateTime Logintime {get;set;} + + /// + /// Desc:客户端IP + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="loginip")] + public string Loginip {get;set;} + + /// + /// Desc:分机号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="telnum")] + public int? Telnum {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasModulemenu.cs b/SA.Entity/zxdcrm_Models/BasModulemenu.cs new file mode 100644 index 0000000..1637881 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasModulemenu.cs @@ -0,0 +1,75 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///模块菜单 + /// + [SugarTable("bas_modulemenu")] + public partial class BasModulemenu + { + public BasModulemenu(){ + + + } + /// + /// Desc:模块ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="modulemenuid")] + public int Modulemenuid {get;set;} + + /// + /// Desc:菜单名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mname")] + public string? Mname {get;set;} + + /// + /// Desc:权限id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rightid")] + public string? Rightid {get;set;} + + /// + /// Desc:图标名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="imageurl")] + public string? Imageurl {get;set;} + + /// + /// Desc:排序ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sortid")] + public int? Sortid {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasParameter.cs b/SA.Entity/zxdcrm_Models/BasParameter.cs new file mode 100644 index 0000000..433201b --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasParameter.cs @@ -0,0 +1,104 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///系统参数配置 + /// + [SugarTable("bas_parameter")] + public partial class BasParameter + { + public BasParameter(){ + + + } + /// + /// Desc:参数代码 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string PARAKEY {get;set;} + + /// + /// Desc:分组id + /// Default: + /// Nullable:True + /// + public string? GROUPID {get;set;} + + /// + /// Desc:参数值 + /// Default: + /// Nullable:True + /// + public string? PARAVALUE {get;set;} + + /// + /// Desc:参数类型 + /// Default: + /// Nullable:True + /// + public string? PARATYPE {get;set;} + + /// + /// Desc:描述 + /// Default: + /// Nullable:True + /// + public string? REMARK {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? CTIME {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + public int? CREATEUSER {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? UTIME {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + public int? UPDATEUSER {get;set;} + + /// + /// Desc:编辑页面 + /// Default: + /// Nullable:True + /// + public string? EDITFORM {get;set;} + + /// + /// Desc:参数名 + /// Default: + /// Nullable:True + /// + public string? PARANAME {get;set;} + + /// + /// Desc:营业部代码 + /// Default: + /// Nullable:True + /// + public string? DEPTCDOE {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasParametergroup.cs b/SA.Entity/zxdcrm_Models/BasParametergroup.cs new file mode 100644 index 0000000..301d6e0 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasParametergroup.cs @@ -0,0 +1,48 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_parametergroup")] + public partial class BasParametergroup + { + public BasParametergroup(){ + + + } + /// + /// Desc:分组id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string GROUPID {get;set;} + + /// + /// Desc:分组名 + /// Default: + /// Nullable:False + /// + public string GROUPNAME {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + public DateTime CTIME {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:False + /// + public long CREATEUSER {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasPermission.cs b/SA.Entity/zxdcrm_Models/BasPermission.cs new file mode 100644 index 0000000..9ab618a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasPermission.cs @@ -0,0 +1,115 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_permission")] + public partial class BasPermission + { + public BasPermission(){ + + + } + /// + /// Desc:菜单权限主键 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:父元素ID:0无父元素 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="prentid")] + public int? Prentid {get;set;} + + /// + /// Desc:菜单名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="name")] + public string? Name {get;set;} + + /// + /// Desc:图标:无则为空 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="icon")] + public string? Icon {get;set;} + + /// + /// Desc:排序 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sort")] + public int? Sort {get;set;} + + /// + /// Desc:1:一级菜单 2:二级菜单 3:三级菜单 4:四级菜单 类推 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc:0:普通菜单 1:隐藏菜单 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ishidden")] + public int? Ishidden {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:添加工号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ceid")] + public int? Ceid {get;set;} + + /// + /// Desc:0:正常 1:禁用 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isforbidden")] + public int? Isforbidden {get;set;} + + /// + /// Desc:编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="code")] + public string? Code {get;set;} + + /// + /// Desc:地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="url")] + public string? Url {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasPermissionButton.cs b/SA.Entity/zxdcrm_Models/BasPermissionButton.cs new file mode 100644 index 0000000..1a5c7db --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasPermissionButton.cs @@ -0,0 +1,59 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_permission_button")] + public partial class BasPermissionButton + { + public BasPermissionButton(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:权限ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pid")] + public int? Pid {get;set;} + + /// + /// Desc:按钮名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="name")] + public string? Name {get;set;} + + /// + /// Desc:按钮ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="buttonid")] + public int? Buttonid {get;set;} + + /// + /// Desc:按钮编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="code")] + public string? Code {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasRight.cs b/SA.Entity/zxdcrm_Models/BasRight.cs new file mode 100644 index 0000000..05948fc --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasRight.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_right")] + public partial class BasRight + { + public BasRight(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="rightid")] + public string Rightid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="rname")] + public string Rname {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="sortid")] + public int Sortid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="groupid")] + public int? Groupid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasRightToolbutton.cs b/SA.Entity/zxdcrm_Models/BasRightToolbutton.cs new file mode 100644 index 0000000..c93f5e4 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasRightToolbutton.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_right_toolbutton")] + public partial class BasRightToolbutton + { + public BasRightToolbutton(){ + + + } + /// + /// Desc:权限id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="rightid")] + public string Rightid {get;set;} + + /// + /// Desc:按钮ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="buttonid")] + public int Buttonid {get;set;} + + /// + /// Desc:按钮名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="buttonname")] + public string? Buttonname {get;set;} + + /// + /// Desc:按钮编码 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="buttoncode")] + public string Buttoncode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasRightgroup.cs b/SA.Entity/zxdcrm_Models/BasRightgroup.cs new file mode 100644 index 0000000..3b725e6 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasRightgroup.cs @@ -0,0 +1,59 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_rightgroup")] + public partial class BasRightgroup + { + public BasRightgroup(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="pkid")] + public int Pkid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="name")] + public string Name {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="parentid")] + public int Parentid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasRole.cs b/SA.Entity/zxdcrm_Models/BasRole.cs new file mode 100644 index 0000000..4cdeac1 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasRole.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_role")] + public partial class BasRole + { + public BasRole(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="roleid")] + public int Roleid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="rname")] + public string Rname {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="sortid")] + public int Sortid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="code")] + public string? Code {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasRoleCom.cs b/SA.Entity/zxdcrm_Models/BasRoleCom.cs new file mode 100644 index 0000000..da73c71 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasRoleCom.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_role_com")] + public partial class BasRoleCom + { + public BasRoleCom(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:角色ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="roleid")] + public int? Roleid {get;set;} + + /// + /// Desc:可管理的公司ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasRolePermission.cs b/SA.Entity/zxdcrm_Models/BasRolePermission.cs new file mode 100644 index 0000000..9520109 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasRolePermission.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_role_permission")] + public partial class BasRolePermission + { + public BasRolePermission(){ + + + } + /// + /// Desc:角色ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="rid")] + public int Rid {get;set;} + + /// + /// Desc:权限ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="pid")] + public int Pid {get;set;} + + /// + /// Desc:角色名称(冗余字段,便于查看) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rname")] + public string? Rname {get;set;} + + /// + /// Desc:权限CODE + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="code")] + public string Code {get;set;} + + /// + /// Desc:权限名称(冗余字段,便于查看) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pname")] + public string? Pname {get;set;} + + /// + /// Desc:子工具栏权限 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="toolbaravlue")] + public int? Toolbaravlue {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasRolerightresource.cs b/SA.Entity/zxdcrm_Models/BasRolerightresource.cs new file mode 100644 index 0000000..0085842 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasRolerightresource.cs @@ -0,0 +1,59 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bas_rolerightresource")] + public partial class BasRolerightresource + { + public BasRolerightresource(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="roleid")] + public int Roleid {get;set;} + + /// + /// Desc:权限id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="rightid")] + public string Rightid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="toolbarvalue")] + public int? Toolbarvalue {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BasSalesdepartment.cs b/SA.Entity/zxdcrm_Models/BasSalesdepartment.cs new file mode 100644 index 0000000..226ee09 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BasSalesdepartment.cs @@ -0,0 +1,115 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///营业部 + /// + [SugarTable("bas_salesdepartment")] + public partial class BasSalesdepartment + { + public BasSalesdepartment(){ + + + } + /// + /// Desc:营业部ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="saledeptid")] + public int Saledeptid {get;set;} + + /// + /// Desc:公司ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyid")] + public int? Companyid {get;set;} + + /// + /// Desc:编码 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="saledeptcode")] + public string Saledeptcode {get;set;} + + /// + /// Desc:名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="deptname")] + public string Deptname {get;set;} + + /// + /// Desc:地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="address")] + public string? Address {get;set;} + + /// + /// Desc:联系人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="linkname")] + public string? Linkname {get;set;} + + /// + /// Desc:邮编 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="areacode")] + public string? Areacode {get;set;} + + /// + /// Desc:联系电话 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="phone")] + public string? Phone {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creationdate")] + public DateTime? Creationdate {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creationby")] + public int? Creationby {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updatedate")] + public DateTime? Updatedate {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateby")] + public int? Updateby {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/BillAccount.cs b/SA.Entity/zxdcrm_Models/BillAccount.cs new file mode 100644 index 0000000..b35fa5d --- /dev/null +++ b/SA.Entity/zxdcrm_Models/BillAccount.cs @@ -0,0 +1,179 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("bill_account")] + public partial class BillAccount + { + public BillAccount(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public long Id {get;set;} + + /// + /// Desc:商户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mch")] + public string? Mch {get;set;} + + /// + /// Desc:商户id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mch_id")] + public string? Mch_id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mch_no")] + public string? Mch_no {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="trade_no")] + public string? Trade_no {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="out_trade_no")] + public string? Out_trade_no {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="trade_datetime")] + public DateTime Trade_datetime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="trade_amount")] + public decimal Trade_amount {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="fee_amount")] + public decimal Fee_amount {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="trade_type")] + public string? Trade_type {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="out_mch")] + public string? Out_mch {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payer_name")] + public string? Payer_name {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payer_id")] + public string? Payer_id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="out_mchid")] + public string? Out_mchid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="trade_info")] + public string? Trade_info {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refund_info")] + public string? Refund_info {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="main_trade_no")] + public string? Main_trade_no {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creat_id")] + public string? Creat_id {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:True + /// + [SugarColumn(ColumnName="creat_datetime")] + public DateTime? Creat_datetime {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:True + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime? Last_modify_time {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/CheckContractLog.cs b/SA.Entity/zxdcrm_Models/CheckContractLog.cs new file mode 100644 index 0000000..52339d8 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/CheckContractLog.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("check_contract_log")] + public partial class CheckContractLog + { + public CheckContractLog(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:访问ip + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ip")] + public string? Ip {get;set;} + + /// + /// Desc:访问来源 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="source")] + public string? Source {get;set;} + + /// + /// Desc:工号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public string? Eid {get;set;} + + /// + /// Desc:合同id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractid")] + public string? Contractid {get;set;} + + /// + /// Desc:入库时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:协议类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="agreementtype")] + public int? Agreementtype {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="name")] + public string? Name {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/CmsNews.cs b/SA.Entity/zxdcrm_Models/CmsNews.cs new file mode 100644 index 0000000..7c2d0e8 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/CmsNews.cs @@ -0,0 +1,176 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("cms_news")] + public partial class CmsNews + { + public CmsNews(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? NewsType {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? Title {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? Content {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public int? Status {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public int? CreateUser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? CreateUserName {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public DateTime? CTime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? Att {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? Remark {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + public DateTime? StatusTime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public int? Auditer {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? AuditerName {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? AuditRemark {get;set;} + + /// + /// Desc:事业部编码 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="deptcode")] + public string Deptcode {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg1 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg2 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg3 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg4 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg5 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg6 {get;set;} + + /// + /// Desc:事业部编码 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string Companycode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/CmsNewsLog.cs b/SA.Entity/zxdcrm_Models/CmsNewsLog.cs new file mode 100644 index 0000000..496046c --- /dev/null +++ b/SA.Entity/zxdcrm_Models/CmsNewsLog.cs @@ -0,0 +1,162 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("cms_news_log")] + public partial class CmsNewsLog + { + public CmsNewsLog(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="newid")] + public int Newid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? NewsType {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? Title {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? Content {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public int? Status {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public int? OpUser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? OpName {get;set;} + + /// + /// Desc:事件事件 + /// Default: + /// Nullable:True + /// + public DateTime? CTime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? Att {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? Remark {get;set;} + + /// + /// Desc:事业部编码 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="deptcode")] + public string Deptcode {get;set;} + + /// + /// Desc:事件: 提交、复提交、通过审核、驳回 + /// Default: + /// Nullable:True + /// + public string? OpEvent {get;set;} + + /// + /// Desc:审核备注 + /// Default: + /// Nullable:True + /// + public string? CheckRemark {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg1 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg2 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg3 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg4 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg5 {get;set;} + + /// + /// Desc:审核图片 + /// Default: + /// Nullable:True + /// + public string? AuditImg6 {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/CsvrAiCalltask.cs b/SA.Entity/zxdcrm_Models/CsvrAiCalltask.cs new file mode 100644 index 0000000..b4bf2ea --- /dev/null +++ b/SA.Entity/zxdcrm_Models/CsvrAiCalltask.cs @@ -0,0 +1,260 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("csvr_ai_calltask")] + public partial class CsvrAiCalltask + { + public CsvrAiCalltask() + { + } + + /// + /// Desc:任务ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey = true, ColumnName = "id")] + public int Id { get; set; } + + /// + /// Desc:机器人编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "robot")] + public string? Robot { get; set; } + + /// + /// Desc:客户ID,号码根据此ID进行查找 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "resid")] + public string? Resid { get; set; } + + /// + /// Desc:外显号码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "callNo")] + public string? CallNo { get; set; } + + /// + /// Desc:优先级别1-紧急 2-优先 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "priority")] + public string? Priority { get; set; } + + /// + /// Desc:机器人参数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "props")] + public string? Props { get; set; } + + /// + /// Desc:应用ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "appId")] + public string? AppId { get; set; } + + /// + /// Desc:扩展信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "ext")] + public string? Ext { get; set; } + + /// + /// 是否发短信提醒0:否,1:是,2:已发 + /// + [SugarColumn(ColumnName = "sms")] + public int? Sms { get; set; } + + /// + /// 发短信提醒时间 + /// + [SugarColumn(ColumnName = "smstime")] + public DateTime? Smstime { get; set; } + + /// + /// Desc:目标执行时间:根据这个时间来进行调用新增任务接口 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "exetime")] + public DateTime? Exetime { get; set; } + + /// + /// Desc:任务状态 0:未执行 1:已执行 2:结果已返回 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "status")] + public int? Status { get; set; } + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "ctime")] + public DateTime? Ctime { get; set; } + + /// + /// Desc:智能云呼平台任务ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "platSingleTaskId")] + public string? PlatSingleTaskId { get; set; } + + /// + /// Desc:结果返回:0:成功 1:失败 2:过期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "callRet")] + public string? CallRet { get; set; } + + /// + /// Desc:结果返回:若外呼失败,该字段为失败原因 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "retDesc")] + public string? RetDesc { get; set; } + + /// + /// Desc:结果返回:外呼开始时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "startTime")] + public DateTime? StartTime { get; set; } + + /// + /// Desc:结果返回:外呼结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "endTime")] + public DateTime? EndTime { get; set; } + + /// + /// Desc:结果返回:会话标签json + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "labels")] + public string? Labels { get; set; } + + /// + /// Desc:结果返回:交互记录(jsonlist) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "interact")] + public string? Interact { get; set; } + + /// + /// Desc:结果返回:全程通话音频 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "audio")] + public string? Audio { get; set; } + + /// + /// Desc:结果返回:业务参数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "content")] + public string? Content { get; set; } + + /// + /// Desc:修改时间,系统自动更新 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName = "utime")] + public DateTime? Utime { get; set; } + + /// + /// 服务时长(单位:s) + /// + [SugarColumn(ColumnName = "svcTime")] + public int? SvcTime { get; set; } + + /// + /// 外部任务ID,提交给讯飞的唯一ID + /// + [SugarColumn(ColumnName = "extTaskId")] + public string? ExtTaskId { get; set; } + + /// + /// 智能外呼状态 + /// -1、忽略不做智能外呼 + /// 0、尚未进行智能外呼 + /// 1、等待AI外呼 + /// 2、已提交AI外呼 + /// 3、AI外呼失败(未答完) + /// 4、AI外呼未接通 + /// 5、AI外呼成功 + /// 6、等待AI重拨 + /// 7、AI外呼失败(挂断) + /// + [SugarColumn(ColumnName = "ai_hgrecord_status")] + public int? AiHgrecordStatus { get; set; } + + /// + /// 智能外呼状态名称 + /// + [SugarColumn(ColumnName = "ai_hgrecord_statusname")] + public string? AiHgrecordStatusname + { get { return AiHgrecordStatusnameKV[AiHgrecordStatus.Value]; } } + + [SugarColumn(ColumnName = "hascall")] + public int? HasCall { get; set; } + + private static Dictionary GetAiHgrecordStatusnameKV() + { + Dictionary Ai_hgrecord_statusnameKV = new() + { + {-2, "AI重拨失败" }, + { -1, "忽略不做智能外呼" }, + { 0, "尚未进行智能外呼" }, + { 1, "等待AI外呼" }, + { 2, "已提交AI外呼" }, + { 3, "AI外呼失败(未答完)" }, + { 4, "AI外呼未接通" }, + { 5, "AI外呼成功" }, + { 6, "等待AI重拨" }, + { 7, "AI外呼失败(挂断)" }, + { 8, "AI外呼取消" }, + { 9, "人工回访成功" } + }; + return Ai_hgrecord_statusnameKV; + } + + private static Dictionary AiHgrecordStatusnameKV = GetAiHgrecordStatusnameKV(); + + [SugarColumn(ColumnName = "Rounds")] + public int? Rounds { get; set; } + } +} \ No newline at end of file diff --git a/SA.Entity/zxdcrm_Models/CsvrAiCalltaskOrders.cs b/SA.Entity/zxdcrm_Models/CsvrAiCalltaskOrders.cs new file mode 100644 index 0000000..c8e9af8 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/CsvrAiCalltaskOrders.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("csvr_ai_calltask_orders")] + public partial class CsvrAiCalltaskOrders + { + public CsvrAiCalltaskOrders(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:csvr_ai_calltask的ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="taskid")] + public int? Taskid {get;set;} + + /// + /// Desc:订单号,wx_szzyorder的orderid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:客户姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cname")] + public string? Cname {get;set;} + + /// + /// Desc:身份证信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="idcard")] + public string? Idcard {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/CsvrHgrecord.cs b/SA.Entity/zxdcrm_Models/CsvrHgrecord.cs new file mode 100644 index 0000000..0eec6f8 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/CsvrHgrecord.cs @@ -0,0 +1,187 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("csvr_hgrecord")] + public partial class CsvrHgrecord + { + public CsvrHgrecord(){ + + + } + /// + /// Desc:id自增 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="pkid")] + public long Pkid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public long Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="recordid")] + public long Recordid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="filename")] + public string? Filename {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="servicenumber")] + public string? Servicenumber {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="telnumberlast4")] + public string? Telnumberlast4 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="timelength")] + public int? Timelength {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="saleseid")] + public long? Saleseid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="timestart")] + public DateTime? Timestart {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="timeend")] + public DateTime? Timeend {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="inneruserid")] + public long? Inneruserid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memoid")] + public long? Memoid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isdown")] + public int? Isdown {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="serverid")] + public string? Serverid {get;set;} + + /// + /// Desc: + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="recordtype")] + public int? Recordtype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="content")] + public string? Content {get;set;} + + /// + /// Desc:公司编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="createtime")] + public DateTime? Createtime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/CsvrMessage.cs b/SA.Entity/zxdcrm_Models/CsvrMessage.cs new file mode 100644 index 0000000..cdbc323 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/CsvrMessage.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("csvr_message")] + public partial class CsvrMessage + { + public CsvrMessage(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:接收人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public int? Eid {get;set;} + + /// + /// Desc:消息编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgcode")] + public string? Msgcode {get;set;} + + /// + /// Desc:消息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="message")] + public string? Message {get;set;} + + /// + /// Desc:消息时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:0:未读 1:已读 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="islook")] + public int? Islook {get;set;} + + /// + /// Desc:读取时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="looktime")] + public DateTime? Looktime {get;set;} + + /// + /// Desc:来源 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fromer")] + public string? Fromer {get;set;} + + /// + /// Desc:参数例如{”orderid“:"10023"} + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="param")] + public string? Param {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/CsvrMessageType.cs b/SA.Entity/zxdcrm_Models/CsvrMessageType.cs new file mode 100644 index 0000000..f105f5f --- /dev/null +++ b/SA.Entity/zxdcrm_Models/CsvrMessageType.cs @@ -0,0 +1,115 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///消息通知表 + /// + [SugarTable("csvr_message_type")] + public partial class CsvrMessageType + { + public CsvrMessageType(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:消息编码唯一值 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="msgcode")] + public string Msgcode {get;set;} + + /// + /// Desc:类型标题 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="title")] + public string? Title {get;set;} + + /// + /// Desc:描述 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="content")] + public string? Content {get;set;} + + /// + /// Desc:eid:指定工号 role:推给所有指定角色人 all:所有人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sendtype")] + public string? Sendtype {get;set;} + + /// + /// Desc:推送配置 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sendConfig")] + public string? SendConfig {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + /// + /// Desc:状态1:正常 0:禁用 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="status")] + public int? Status {get;set;} + + /// + /// Desc:排序 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sort")] + public int? Sort {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ExamItembank.cs b/SA.Entity/zxdcrm_Models/ExamItembank.cs new file mode 100644 index 0000000..80c5d7e --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ExamItembank.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("exam_itembank")] + public partial class ExamItembank + { + public ExamItembank(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="title")] + public string? Title {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="typename")] + public string? Typename {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ExamItembanksubject.cs b/SA.Entity/zxdcrm_Models/ExamItembanksubject.cs new file mode 100644 index 0000000..29dd855 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ExamItembanksubject.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("exam_itembanksubject")] + public partial class ExamItembanksubject + { + public ExamItembanksubject(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="itembankid")] + public int? Itembankid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subjecttype")] + public int? Subjecttype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subject")] + public string? Subject {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="options")] + public string? Options {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rightanswer")] + public string? Rightanswer {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="itembanktype")] + public int? Itembanktype {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ExamPaper.cs b/SA.Entity/zxdcrm_Models/ExamPaper.cs new file mode 100644 index 0000000..adf33c0 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ExamPaper.cs @@ -0,0 +1,131 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("exam_paper")] + public partial class ExamPaper + { + public ExamPaper(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="title")] + public string? Title {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="typename")] + public string? Typename {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="totalscore")] + public int? Totalscore {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public int? Eid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="score")] + public int? Score {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="starttime")] + public DateTime? Starttime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="timelength")] + public int? Timelength {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="handtime")] + public DateTime? Handtime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="usetime")] + public int? Usetime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appid")] + public string? Appid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appuserid")] + public string? Appuserid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ExamPapersubject.cs b/SA.Entity/zxdcrm_Models/ExamPapersubject.cs new file mode 100644 index 0000000..c51c578 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ExamPapersubject.cs @@ -0,0 +1,99 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("exam_papersubject")] + public partial class ExamPapersubject + { + public ExamPapersubject(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paperid")] + public int? Paperid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="papertype")] + public int? Papertype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subjecttype")] + public int? Subjecttype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subject")] + public string? Subject {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="options")] + public string? Options {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rightanswer")] + public string? Rightanswer {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="answer")] + public string? Answer {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rn")] + public int? Rn {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/HgQwMessage.cs b/SA.Entity/zxdcrm_Models/HgQwMessage.cs new file mode 100644 index 0000000..ff97767 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/HgQwMessage.cs @@ -0,0 +1,227 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///合规消息只合规客服发送的消息 + /// + [SugarTable("hg_qw_message")] + public partial class HgQwMessage + { + public HgQwMessage(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:序号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="seq")] + public int? Seq {get;set;} + + /// + /// Desc:消息ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgid")] + public string? Msgid {get;set;} + + /// + /// Desc:消息类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgtype")] + public string? Msgtype {get;set;} + + /// + /// Desc:发送类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="action")] + public string? Action {get;set;} + + /// + /// Desc:客服 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fromer")] + public string? Fromer {get;set;} + + /// + /// Desc:客户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="tolist")] + public string? Tolist {get;set;} + + /// + /// Desc:群号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="roomid")] + public string? Roomid {get;set;} + + /// + /// Desc:扩展 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ext")] + public string? Ext {get;set;} + + /// + /// Desc:内容 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="content")] + public string? Content {get;set;} + + /// + /// Desc:地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="nfile")] + public string? Nfile {get;set;} + + /// + /// Desc:消息时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgtime")] + public DateTime? Msgtime {get;set;} + + /// + /// Desc:系统创建的时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:合规状态 500违规 200已读 90未读 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgstatus")] + public int? Hgstatus {get;set;} + + /// + /// Desc:合规时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgtime")] + public DateTime? Hgtime {get;set;} + + /// + /// Desc:0 客户发给客服 1客服发给客户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="issend")] + public int? Issend {get;set;} + + /// + /// Desc:客服名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="kehuname")] + public string? Kehuname {get;set;} + + /// + /// Desc:客户名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cusname")] + public string? Cusname {get;set;} + + /// + /// Desc:企业ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="corpid")] + public string? Corpid {get;set;} + + /// + /// Desc:违规关键词 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="word")] + public string? Word {get;set;} + + /// + /// Desc:语音地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="voiceUrl")] + public string? VoiceUrl {get;set;} + + /// + /// Desc:事业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="detpcode")] + public string? Detpcode {get;set;} + + /// + /// Desc:同步上来的时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:False + /// + [SugarColumn(ColumnName="synctime")] + public DateTime Synctime {get;set;} + + /// + /// Desc:违规状态 1:违规 0 未违规 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="iswg")] + public int? Iswg {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public int? Eid {get;set;} + + /// + /// Desc:工号对应的姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eidname")] + public string? Eidname {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/HgRecordMessage.cs b/SA.Entity/zxdcrm_Models/HgRecordMessage.cs new file mode 100644 index 0000000..004a12d --- /dev/null +++ b/SA.Entity/zxdcrm_Models/HgRecordMessage.cs @@ -0,0 +1,163 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("hg_record_message")] + public partial class HgRecordMessage + { + public HgRecordMessage(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pkid")] + public int? Pkid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkdate")] + public DateTime? Checkdate {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="transtime")] + public DateTime? Transtime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="transcontent")] + public string? Transcontent {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgstatus")] + public int? Hgstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgtime")] + public DateTime? Hgtime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="voiceurl")] + public string? Voiceurl {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="filename")] + public string? Filename {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customername")] + public string? Customername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="saleseid")] + public int? Saleseid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="salename")] + public string? Salename {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="word")] + public string? Word {get;set;} + + /// + /// Desc:事业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="detpcode")] + public string? Detpcode {get;set;} + + /// + /// Desc:同步上来的时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:False + /// + [SugarColumn(ColumnName="synctime")] + public DateTime Synctime {get;set;} + + /// + /// Desc:违规状态 1:违规 0 未违规 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="iswg")] + public int? Iswg {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/HgViolation.cs b/SA.Entity/zxdcrm_Models/HgViolation.cs new file mode 100644 index 0000000..515cc7e --- /dev/null +++ b/SA.Entity/zxdcrm_Models/HgViolation.cs @@ -0,0 +1,211 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("hg_violation")] + public partial class HgViolation + { + public HgViolation(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:数据ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgid")] + public int? Hgid {get;set;} + + /// + /// Desc:企微得seq 微信和录音得pkid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pkid")] + public int? Pkid {get;set;} + + /// + /// Desc:企微和微信得消息ID,录音无 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgid")] + public string? Msgid {get;set;} + + /// + /// Desc:消息类型 文本;企微通话;语音;电话录音 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgtype")] + public string? Msgtype {get;set;} + + /// + /// Desc:发送类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="action")] + public string? Action {get;set;} + + /// + /// Desc:客服 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fromer")] + public string? Fromer {get;set;} + + /// + /// Desc:客服名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="kefuname")] + public string? Kefuname {get;set;} + + /// + /// Desc:客户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="touser")] + public string? Touser {get;set;} + + /// + /// Desc:客户名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cusname")] + public string? Cusname {get;set;} + + /// + /// Desc:企业ID(企业微信才有) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="corpid")] + public string? Corpid {get;set;} + + /// + /// Desc:合规时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgtime")] + public DateTime? Hgtime {get;set;} + + /// + /// Desc:违规关键词 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="word")] + public string? Word {get;set;} + + /// + /// Desc:语音地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="voiceUrl")] + public string? VoiceUrl {get;set;} + + /// + /// Desc:内容 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="content")] + public string? Content {get;set;} + + /// + /// Desc:工号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public int? Eid {get;set;} + + /// + /// Desc:员工姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="uname")] + public string? Uname {get;set;} + + /// + /// Desc:事业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="detpcode")] + public string? Detpcode {get;set;} + + /// + /// Desc:合规类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgtype")] + public string? Hgtype {get;set;} + + /// + /// Desc:合规类型小类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgsubtype")] + public string? Hgsubtype {get;set;} + + /// + /// Desc:违规细则 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgdetail")] + public string? Hgdetail {get;set;} + + /// + /// Desc:处理结果 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgresult")] + public string? Hgresult {get;set;} + + /// + /// Desc:WX:微信 QW:企业微信 PHONE:电话录音 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public string? Type {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/HgWxMessage.cs b/SA.Entity/zxdcrm_Models/HgWxMessage.cs new file mode 100644 index 0000000..4205c35 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/HgWxMessage.cs @@ -0,0 +1,179 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("hg_wx_message")] + public partial class HgWxMessage + { + public HgWxMessage(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pkid")] + public int? Pkid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgsvrid")] + public string? Msgsvrid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgtype")] + public int? Msgtype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="issend")] + public int? Issend {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="talker")] + public string? Talker {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="nickname")] + public string? Nickname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgcontent")] + public string? Msgcontent {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="imgpath")] + public string? Imgpath {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="voiceUrl")] + public string? VoiceUrl {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:是否处理 1:已处理 0:未处理 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="hgstatus")] + public int? Hgstatus {get;set;} + + /// + /// Desc:合规时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgtime")] + public DateTime? Hgtime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="kefuname")] + public string? Kefuname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="word")] + public string? Word {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public int? Eid {get;set;} + + /// + /// Desc:事业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="detpcode")] + public string? Detpcode {get;set;} + + /// + /// Desc:同步上来的时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:False + /// + [SugarColumn(ColumnName="synctime")] + public DateTime Synctime {get;set;} + + /// + /// Desc:违规状态 1:违规 0 未违规 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="iswg")] + public int? Iswg {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/IsvrInterfacecalllog.cs b/SA.Entity/zxdcrm_Models/IsvrInterfacecalllog.cs new file mode 100644 index 0000000..da2b47a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/IsvrInterfacecalllog.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///接口调用日志 + /// + [SugarTable("isvr_interfacecalllog")] + public partial class IsvrInterfacecalllog + { + public IsvrInterfacecalllog(){ + + + } + /// + /// Desc:日志id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="logid")] + public int Logid {get;set;} + + /// + /// Desc:客户端ip + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="clientip")] + public string? Clientip {get;set;} + + /// + /// Desc:接口服务 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="clienturl")] + public string? Clienturl {get;set;} + + /// + /// Desc:调用参数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="clientkey")] + public string? Clientkey {get;set;} + + /// + /// Desc:调用时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="clientkeyencode")] + public string? Clientkeyencode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/L2SoftOrder.cs b/SA.Entity/zxdcrm_Models/L2SoftOrder.cs new file mode 100644 index 0000000..272e2ae --- /dev/null +++ b/SA.Entity/zxdcrm_Models/L2SoftOrder.cs @@ -0,0 +1,179 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///软件免费产品订单 + /// + [SugarTable("l2_soft_order")] + public partial class L2SoftOrder + { + public L2SoftOrder(){ + + + } + /// + /// Desc:订单ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:产品ID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:产品CODE + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productcode")] + public string Productcode {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="username")] + public string Username {get;set;} + + /// + /// Desc:订单状态 :0未开通、1已开通、2已撤销 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderstatus")] + public int Orderstatus {get;set;} + + /// + /// Desc:订单类型:1后台订单、2接口订单 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ordertype")] + public int Ordertype {get;set;} + + /// + /// Desc:开通用户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public int? Openuser {get;set;} + + /// + /// Desc:订单权限时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="days")] + public int? Days {get;set;} + + /// + /// Desc:金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="price")] + public decimal Price {get;set;} + + /// + /// Desc:开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:撤销用户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="canceluser")] + public int? Canceluser {get;set;} + + /// + /// Desc:撤销时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="canceltime")] + public DateTime? Canceltime {get;set;} + + /// + /// Desc:订单备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="createuser")] + public int Createuser {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:下单公司 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyid")] + public int? Companyid {get;set;} + + /// + /// Desc:接口订单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="weborderid")] + public string? Weborderid {get;set;} + + /// + /// Desc:公司编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mainorderid")] + public int? Mainorderid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/LableRealtest.cs b/SA.Entity/zxdcrm_Models/LableRealtest.cs new file mode 100644 index 0000000..1e279ec --- /dev/null +++ b/SA.Entity/zxdcrm_Models/LableRealtest.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("lable_realtest")] + public partial class LableRealtest + { + public LableRealtest(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="uid")] + public int Uid {get;set;} + + /// + /// Desc:标签 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lable")] + public long? Lable {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/LableRealtestCopy1.cs b/SA.Entity/zxdcrm_Models/LableRealtestCopy1.cs new file mode 100644 index 0000000..7718888 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/LableRealtestCopy1.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("lable_realtest_copy1")] + public partial class LableRealtestCopy1 + { + public LableRealtestCopy1(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="uid")] + public int Uid {get;set;} + + /// + /// Desc:标签 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lable")] + public long? Lable {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/LableTest.cs b/SA.Entity/zxdcrm_Models/LableTest.cs new file mode 100644 index 0000000..658433a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/LableTest.cs @@ -0,0 +1,43 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("lable_test")] + public partial class LableTest + { + public LableTest(){ + + + } + /// + /// Desc:用户ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="uid")] + public int Uid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lablebit")] + public bool? Lablebit {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lablebigint")] + public long? Lablebigint {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/LogInfo.cs b/SA.Entity/zxdcrm_Models/LogInfo.cs new file mode 100644 index 0000000..5428b22 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/LogInfo.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("log_info")] + public partial class LogInfo + { + public LogInfo(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="date")] + public DateTime? Date {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="level")] + public string? Level {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="logger")] + public string? Logger {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="message")] + public string? Message {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="exception")] + public string? Exception {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ModuleOrder.cs b/SA.Entity/zxdcrm_Models/ModuleOrder.cs new file mode 100644 index 0000000..269410f --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ModuleOrder.cs @@ -0,0 +1,179 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("module_order")] + public partial class ModuleOrder + { + public ModuleOrder(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="moduleid")] + public string Moduleid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="szzyorderid")] + public string Szzyorderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productcode2")] + public string Productcode2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="starttime2")] + public DateTime? Starttime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime2")] + public DateTime? Endtime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="usedays")] + public int? Usedays {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname2")] + public string? Subproductname2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays2")] + public int? Opendays2 {get;set;} + + /// + /// Desc:开通(天) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="totaldays")] + public int? Totaldays {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="price2")] + public decimal? Price2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime2")] + public DateTime? Ctime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime2")] + public DateTime? Otime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel2")] + public int? Channel2 {get;set;} + + /// + /// Desc:订单状态:新订单180、已开通220、已停用/已退款90、已过期80、已取消70,去掉"已支付200、暂缓开通210"状态 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="status2")] + public short? Status2 {get;set;} + + /// + /// Desc:退款状态(0-默认、1-已退款),为兼容客服系统 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isrefund")] + public byte? Isrefund {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="canceluser")] + public string? Canceluser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="canceltime")] + public DateTime? Canceltime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returnPrice")] + public decimal? ReturnPrice {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ModulePrice.cs b/SA.Entity/zxdcrm_Models/ModulePrice.cs new file mode 100644 index 0000000..170a727 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ModulePrice.cs @@ -0,0 +1,171 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("module_price")] + public partial class ModulePrice + { + public ModulePrice(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public string? Szzyorderid {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="moduleid")] + public string Moduleid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="starttime2")] + public DateTime? Starttime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime2")] + public DateTime? Endtime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime2")] + public DateTime? Otime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime2")] + public DateTime? Ctime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderPrice")] + public decimal? OrderPrice {get;set;} + + /// + /// Desc:最终计算了苹果、华为、魅族支付手续费 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="modulePrice")] + public decimal? ModulePrice3 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="midproductid")] + public int? Midproductid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:开通(天) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays2")] + public int? Opendays2 {get;set;} + + /// + /// Desc:后面补充的 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isBu")] + public int? IsBu {get;set;} + + /// + /// Desc:是否是一天的订单 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isoneday")] + public int? Isoneday {get;set;} + + /// + /// Desc:渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:模块原始金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="modulePrice2")] + public decimal? ModulePrice2 {get;set;} + + /// + /// Desc:虚拟订单(扣减原单的剩余价值) 0不是 1是 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isVirOrder")] + public int? IsVirOrder {get;set;} + + /// + /// Desc:10是,20否 区分是否生成退款程序时ins数据,用于多次操作时删除使用 + /// Default:20 + /// Nullable:True + /// + [SugarColumn(ColumnName="isRunRefundIns")] + public int? IsRunRefundIns {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonBalance.cs b/SA.Entity/zxdcrm_Models/MonBalance.cs new file mode 100644 index 0000000..d26853c --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonBalance.cs @@ -0,0 +1,123 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("mon_balance")] + public partial class MonBalance + { + public MonBalance(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="month")] + public DateTime? Month {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyname")] + public string? Companyname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:订单金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc:订单数量 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ordercount")] + public int? Ordercount {get;set;} + + /// + /// Desc:支付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payprice")] + public decimal? Payprice {get;set;} + + /// + /// Desc:支付笔数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paycount")] + public int? Paycount {get;set;} + + /// + /// Desc:退款金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refundprice")] + public decimal? Refundprice {get;set;} + + /// + /// Desc:退款笔数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refundcount")] + public int? Refundcount {get;set;} + + /// + /// Desc:订单到账金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderpayprice")] + public decimal? Orderpayprice {get;set;} + + /// + /// Desc:订单到账笔数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderpaycount")] + public int? Orderpaycount {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonDzorder2day.cs b/SA.Entity/zxdcrm_Models/MonDzorder2day.cs new file mode 100644 index 0000000..61280ad --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonDzorder2day.cs @@ -0,0 +1,171 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("mon_dzorder2day")] + public partial class MonDzorder2day + { + public MonDzorder2day(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytime")] + public DateTime? Paytime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paymonth")] + public int? Paymonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payprice")] + public decimal? Payprice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="omonth")] + public int? Omonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatus")] + public string? Orderstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ftime")] + public DateTime? Ftime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fmonth")] + public int? Fmonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isuse")] + public int? Isuse {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="atime")] + public DateTime? Atime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="amonth")] + public int? Amonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ntime")] + public DateTime? Ntime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="nmonth")] + public int? Nmonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytype")] + public int? Paytype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonDzorder2month.cs b/SA.Entity/zxdcrm_Models/MonDzorder2month.cs new file mode 100644 index 0000000..0397ff8 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonDzorder2month.cs @@ -0,0 +1,179 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("mon_dzorder2month")] + public partial class MonDzorder2month + { + public MonDzorder2month(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytime")] + public DateTime? Paytime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paymonth")] + public int? Paymonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payprice")] + public decimal? Payprice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="omonth")] + public int? Omonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatus")] + public string? Orderstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ftime")] + public DateTime? Ftime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fmonth")] + public int? Fmonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isuse")] + public int? Isuse {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="atime")] + public DateTime? Atime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="amonth")] + public int? Amonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ntime")] + public DateTime? Ntime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="nmonth")] + public int? Nmonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytype")] + public int? Paytype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="date")] + public DateTime? Date {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonOrder.cs b/SA.Entity/zxdcrm_Models/MonOrder.cs new file mode 100644 index 0000000..bc3c0be --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonOrder.cs @@ -0,0 +1,555 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///月结表 + /// + [SugarTable("mon_order")] + public partial class MonOrder + { + public MonOrder(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:月结年月 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="month")] + public DateTime Month {get;set;} + + /// + /// Desc:分公司号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="employeeid")] + public string? Employeeid {get;set;} + + /// + /// Desc:分公司密码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="password")] + public string? Password {get;set;} + + /// + /// Desc:分公司用户ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + /// + /// Desc:子产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductid")] + public int? Subproductid {get;set;} + + /// + /// Desc:子产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单类型(默认为1) 1:普通订单 2:续费订单 3:升级订单 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="ordertype")] + public int? Ordertype {get;set;} + + /// + /// Desc:订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="upgradeorderids")] + public string? Upgradeorderids {get;set;} + + /// + /// Desc:升级补差总额(当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="totalupgradevalue")] + public int? Totalupgradevalue {get;set;} + + /// + /// Desc:应付金额(默认为子产品原价) 当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="needpay")] + public decimal? Needpay {get;set;} + + /// + /// Desc:是否同时开通订单(默认为0,需要开通订单权限) 0:否 1:是 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openorder")] + public int? Openorder {get;set;} + + /// + /// Desc:订单号(上海CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatus")] + public string? Orderstatus {get;set;} + + /// + /// Desc:接口返回下单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:接口返回应付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returnneedpay")] + public int? Returnneedpay {get;set;} + + /// + /// Desc:合同编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractcode")] + public string? Contractcode {get;set;} + + /// + /// Desc:返回码(0:成功,>0:错误码) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ret")] + public int? Ret {get;set;} + + /// + /// Desc:错误信息(当ret>0时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msg")] + public string? Msg {get;set;} + + /// + /// Desc:接口返回详情 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returndetail")] + public string? Returndetail {get;set;} + + /// + /// Desc:操作人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="inneruserid")] + public int? Inneruserid {get;set;} + + /// + /// Desc:订单开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:请求订单接口状态,1:成功,0:失败 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="requeststatus")] + public int? Requeststatus {get;set;} + + /// + /// Desc:是否月结 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isfinancepay")] + public int? Isfinancepay {get;set;} + + /// + /// Desc:月结日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finacepaydate")] + public DateTime? Finacepaydate {get;set;} + + /// + /// Desc:订单修改备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:实际支付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finalpay")] + public decimal? Finalpay {get;set;} + + /// + /// Desc:订单状态名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatusname")] + public string? Orderstatusname {get;set;} + + /// + /// Desc:客服操作时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operatetime")] + public DateTime? Operatetime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="stime")] + public string? Stime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="etime")] + public string? Etime {get;set;} + + /// + /// Desc:订单暂停权限备注说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="suspendcomment")] + public string? Suspendcomment {get;set;} + + /// + /// Desc:更新订单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateordertime")] + public DateTime? Updateordertime {get;set;} + + /// + /// Desc:是否开通 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isopen")] + public int? Isopen {get;set;} + + /// + /// Desc:到期时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属) 0:总公司负责售后服务 1:分公司负责售后服务 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="teamserve")] + public int? Teamserve {get;set;} + + /// + /// Desc:分成比例文本 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fctext")] + public string? Fctext {get;set;} + + /// + /// Desc:客户微信用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerusername")] + public string? Customerusername {get;set;} + + /// + /// Desc:到账金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc:到账时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivaltime")] + public DateTime? Arrivaltime {get;set;} + + /// + /// Desc:客户来源。1:推广资源,2:线下资源,3:自找资源 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="source")] + public string? Source {get;set;} + + /// + /// Desc:姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cname")] + public string? Cname {get;set;} + + /// + /// Desc:开通天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays")] + public int? Opendays {get;set;} + + /// + /// Desc:订单用户归类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerclassify")] + public string? Customerclassify {get;set;} + + /// + /// Desc:订单部门 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="saledeptid")] + public int? Saledeptid {get;set;} + + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public string? Channel {get;set;} + + /// + /// Desc:套数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="booknum")] + public int? Booknum {get;set;} + + /// + /// Desc:开通用户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:子类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:大类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bigproductcode")] + public string? Bigproductcode {get;set;} + + /// + /// Desc:是否支付,0:未支付,1:已经支付 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ispayed")] + public int? Ispayed {get;set;} + + /// + /// Desc:支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytype")] + public int? Paytype {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:客户端IP地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sIP")] + public string? SIP {get;set;} + + /// + /// Desc:风控状态:1 通过,0 未通过 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="riskctrlstatus")] + public int? Riskctrlstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appusername")] + public string? Appusername {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:合同状态:0 新建 1:已签合同 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractstatus")] + public int? Contractstatus {get;set;} + + /// + /// Desc:合同签订时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractctime")] + public DateTime? Contractctime {get;set;} + + /// + /// Desc:企业微信开通状态(0:未开通,1:已开通) + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxstatus")] + public int? Qywxstatus {get;set;} + + /// + /// Desc:企业微信开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxopendate")] + public DateTime? Qywxopendate {get;set;} + + /// + /// Desc:活动产品code + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductcode")] + public string? Activeproductcode {get;set;} + + /// + /// Desc:活动产品信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductext")] + public string? Activeproductext {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonOrderpay.cs b/SA.Entity/zxdcrm_Models/MonOrderpay.cs new file mode 100644 index 0000000..049aef2 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonOrderpay.cs @@ -0,0 +1,155 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///支付记录表 + /// + [SugarTable("mon_orderpay")] + public partial class MonOrderpay + { + public MonOrderpay(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:月结年月 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="month")] + public DateTime Month {get;set;} + + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:下单金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="needpay")] + public decimal Needpay {get;set;} + + /// + /// Desc:支付类型 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytype")] + public int Paytype {get;set;} + + /// + /// Desc:支付类型名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytypename")] + public string Paytypename {get;set;} + + /// + /// Desc:支付时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paydate")] + public DateTime Paydate {get;set;} + + /// + /// Desc:支付金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payprice")] + public decimal Payprice {get;set;} + + /// + /// Desc:付款人姓名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payname")] + public string Payname {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:是否审核 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc:添加时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:支付流水 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonOrderpayprice.cs b/SA.Entity/zxdcrm_Models/MonOrderpayprice.cs new file mode 100644 index 0000000..1ecc95a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonOrderpayprice.cs @@ -0,0 +1,115 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("mon_orderpayprice")] + public partial class MonOrderpayprice + { + public MonOrderpayprice(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="month")] + public DateTime Month {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="szzyorderid")] + public long Szzyorderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cname")] + public string? Cname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="otime")] + public DateTime Otime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal Arrivalpay {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="arrivaltime")] + public DateTime Arrivaltime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonOrderrefund.cs b/SA.Entity/zxdcrm_Models/MonOrderrefund.cs new file mode 100644 index 0000000..858dd4e --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonOrderrefund.cs @@ -0,0 +1,163 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///退款记录表 + /// + [SugarTable("mon_orderrefund")] + public partial class MonOrderrefund + { + public MonOrderrefund(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:月结年月 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="month")] + public DateTime Month {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:退款金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundprice")] + public decimal Refundprice {get;set;} + + /// + /// Desc:退款账号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="account")] + public string? Account {get;set;} + + /// + /// Desc:退款人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:退款类型 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundtype")] + public int Refundtype {get;set;} + + /// + /// Desc:退款类型名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundtypename")] + public string Refundtypename {get;set;} + + /// + /// Desc:退款时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refunddate")] + public DateTime? Refunddate {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:附件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="att")] + public string? Att {get;set;} + + /// + /// Desc:审核状态 1:通过,0:未通过 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:财务退款之后上传凭证 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="att2")] + public string? Att2 {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonPerformanceday.cs b/SA.Entity/zxdcrm_Models/MonPerformanceday.cs new file mode 100644 index 0000000..5549799 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonPerformanceday.cs @@ -0,0 +1,163 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("mon_performanceday")] + public partial class MonPerformanceday + { + public MonPerformanceday(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="oyear")] + public int? Oyear {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="omonth")] + public int? Omonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="daycount")] + public int? Daycount {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jiazhi")] + public decimal? Jiazhi {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jzcount")] + public decimal? Jzcount {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opmonth")] + public int? Opmonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opyear")] + public int? Opyear {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="amonth")] + public int? Amonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="curMonthRefundPrice")] + public decimal? CurMonthRefundPrice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="monthRefundPrice")] + public decimal? MonthRefundPrice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="firstRefundPrice")] + public decimal? FirstRefundPrice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fmonth")] + public int? Fmonth {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/MonPerformancemonth.cs b/SA.Entity/zxdcrm_Models/MonPerformancemonth.cs new file mode 100644 index 0000000..36166f5 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/MonPerformancemonth.cs @@ -0,0 +1,171 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("mon_performancemonth")] + public partial class MonPerformancemonth + { + public MonPerformancemonth(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="oyear")] + public int? Oyear {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="omonth")] + public int? Omonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="daycount")] + public int? Daycount {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jiazhi")] + public decimal? Jiazhi {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jzcount")] + public decimal? Jzcount {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opmonth")] + public int? Opmonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opyear")] + public int? Opyear {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="amonth")] + public int? Amonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="curMonthRefundPrice")] + public decimal? CurMonthRefundPrice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="monthRefundPrice")] + public decimal? MonthRefundPrice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="firstRefundPrice")] + public decimal? FirstRefundPrice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fmonth")] + public int? Fmonth {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="date")] + public DateTime? Date {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/NewOrderUser.cs b/SA.Entity/zxdcrm_Models/NewOrderUser.cs new file mode 100644 index 0000000..ff96f42 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/NewOrderUser.cs @@ -0,0 +1,651 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///上证综研订单表 + /// + [SugarTable("new_order_user")] + public partial class NewOrderUser + { + public NewOrderUser(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:分公司号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="employeeid")] + public string? Employeeid {get;set;} + + /// + /// Desc:分公司密码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="password")] + public string? Password {get;set;} + + /// + /// Desc:分公司用户ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + /// + /// Desc:子产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductid")] + public int? Subproductid {get;set;} + + /// + /// Desc:子产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单类型(默认为1) 1:普通订单 2:续费订单 3:升级订单 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="ordertype")] + public int? Ordertype {get;set;} + + /// + /// Desc:订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="upgradeorderids")] + public string? Upgradeorderids {get;set;} + + /// + /// Desc:升级补差总额(当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="totalupgradevalue")] + public int? Totalupgradevalue {get;set;} + + /// + /// Desc:应付金额(默认为子产品原价) 当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="needpay")] + public decimal? Needpay {get;set;} + + /// + /// Desc:是否同时开通订单(默认为0,需要开通订单权限) 0:否 1:是 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openorder")] + public int? Openorder {get;set;} + + /// + /// Desc:订单号(上海CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatus")] + public string? Orderstatus {get;set;} + + /// + /// Desc:接口返回下单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:下单时产品金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returnneedpay")] + public int? Returnneedpay {get;set;} + + /// + /// Desc:合同编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractcode")] + public string? Contractcode {get;set;} + + /// + /// Desc:是否打折(>0 就时有打折) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ret")] + public int? Ret {get;set;} + + /// + /// Desc:错误信息(当ret>0时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msg")] + public string? Msg {get;set;} + + /// + /// Desc:接口返回详情 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returndetail")] + public string? Returndetail {get;set;} + + /// + /// Desc:操作人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="inneruserid")] + public int? Inneruserid {get;set;} + + /// + /// Desc:订单开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:请求订单接口状态,1:成功,0:失败 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="requeststatus")] + public int? Requeststatus {get;set;} + + /// + /// Desc:是否月结 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isfinancepay")] + public int? Isfinancepay {get;set;} + + /// + /// Desc:月结日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finacepaydate")] + public DateTime? Finacepaydate {get;set;} + + /// + /// Desc:订单修改备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:实际支付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finalpay")] + public decimal? Finalpay {get;set;} + + /// + /// Desc:订单状态名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatusname")] + public string? Orderstatusname {get;set;} + + /// + /// Desc:客服操作时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operatetime")] + public DateTime? Operatetime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="stime")] + public string? Stime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="etime")] + public string? Etime {get;set;} + + /// + /// Desc:订单暂停权限备注说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="suspendcomment")] + public string? Suspendcomment {get;set;} + + /// + /// Desc:更新订单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateordertime")] + public DateTime? Updateordertime {get;set;} + + /// + /// Desc:是否开通 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isopen")] + public int? Isopen {get;set;} + + /// + /// Desc:到期时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属) 0:总公司负责售后服务 1:分公司负责售后服务 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="teamserve")] + public int? Teamserve {get;set;} + + /// + /// Desc:分成比例文本 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fctext")] + public string? Fctext {get;set;} + + /// + /// Desc:客户微信用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerusername")] + public string? Customerusername {get;set;} + + /// + /// Desc:到账金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc:到账时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivaltime")] + public DateTime? Arrivaltime {get;set;} + + /// + /// Desc:客户来源。1:推广资源,2:线下资源,3:自找资源 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="source")] + public string? Source {get;set;} + + /// + /// Desc:姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cname")] + public string? Cname {get;set;} + + /// + /// Desc:开通天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays")] + public int? Opendays {get;set;} + + /// + /// Desc:订单用户归类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerclassify")] + public string? Customerclassify {get;set;} + + /// + /// Desc:订单部门 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="saledeptid")] + public int? Saledeptid {get;set;} + + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:套数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="booknum")] + public int? Booknum {get;set;} + + /// + /// Desc:开通用户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:子类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:大类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bigproductcode")] + public string? Bigproductcode {get;set;} + + /// + /// Desc:是否支付,0:未支付,1:已经支付 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ispayed")] + public int? Ispayed {get;set;} + + /// + /// Desc:支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytype")] + public int? Paytype {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:客户端IP地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sIP")] + public string? SIP {get;set;} + + /// + /// Desc:风控状态:1 通过,0 未通过 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="riskctrlstatus")] + public int? Riskctrlstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appusername")] + public string? Appusername {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:合同状态:0 新建 1:已签合同 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractstatus")] + public int? Contractstatus {get;set;} + + /// + /// Desc:合同签订时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractctime")] + public DateTime? Contractctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxstatus")] + public int? Qywxstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxopendate")] + public DateTime? Qywxopendate {get;set;} + + /// + /// Desc:活动产品code + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductcode")] + public string? Activeproductcode {get;set;} + + /// + /// Desc:活动产品信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductext")] + public string? Activeproductext {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="istest")] + public int? Istest {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hashgrecord")] + public int? Hashgrecord {get;set;} + + /// + /// Desc:身份证 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="idcard")] + public string? Idcard {get;set;} + + /// + /// Desc:***第三方平台订单号*** + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderno")] + public string? Outorderno {get;set;} + + /// + /// Desc:订单时间戳字段 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc:合规驳回说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rejectremark")] + public string? Rejectremark {get;set;} + + /// + /// Desc:赠送第二产品天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays2")] + public int? Giftdays2 {get;set;} + + /// + /// Desc:企业微信外部联系人的userid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="external_userid")] + public string? External_userid {get;set;} + + /// + /// Desc:企业微信好友ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="wework_remoteid")] + public string? Wework_remoteid {get;set;} + + /// + /// Desc:结算方式 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="settletype")] + public int? Settletype {get;set;} + + /// + /// Desc:附件名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fujian")] + public string? Fujian {get;set;} + + /// + /// Desc:微信小店单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="wXShopOrderNo")] + public string? WXShopOrderNo {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/OrderTeacher.cs b/SA.Entity/zxdcrm_Models/OrderTeacher.cs new file mode 100644 index 0000000..ef53bfe --- /dev/null +++ b/SA.Entity/zxdcrm_Models/OrderTeacher.cs @@ -0,0 +1,75 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("order_teacher")] + public partial class OrderTeacher + { + public OrderTeacher(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="teacher")] + public string? Teacher {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="teachercard")] + public string? Teachercard {get;set;} + + /// + /// Desc:1:新媒体二,2:平台一2020年,3:平台一2021年 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/Pt1ModulePrice.cs b/SA.Entity/zxdcrm_Models/Pt1ModulePrice.cs new file mode 100644 index 0000000..642df58 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/Pt1ModulePrice.cs @@ -0,0 +1,179 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("pt1_module_price")] + public partial class Pt1ModulePrice + { + public Pt1ModulePrice(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:新媒体二的订单编号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:服务开始时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="begintime")] + public DateTime? Begintime {get;set;} + + /// + /// Desc:服务结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:预期开通天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays")] + public int? Opendays {get;set;} + + /// + /// Desc:呱呱订单id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderno")] + public string? Outorderno {get;set;} + + /// + /// Desc:用户id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:确认到款时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivaltime")] + public DateTime? Arrivaltime {get;set;} + + /// + /// Desc:确认到款金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public int? Arrivalpay {get;set;} + + /// + /// Desc:入库时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:更新时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:计算时间的时候,要合并结算的订单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mainorderid")] + public int? Mainorderid {get;set;} + + /// + /// Desc:东高的软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc:模块id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="moduleid")] + public string? Moduleid {get;set;} + + /// + /// Desc:实际使用天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="usedays")] + public int? Usedays {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public string? Szzyorderid {get;set;} + + /// + /// Desc:平台一Id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="point_id")] + public int? Point_id {get;set;} + + /// + /// Desc:平台一的开始时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pt1_begintime")] + public DateTime? Pt1_begintime {get;set;} + + /// + /// Desc:平台一的结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pt1_endtime")] + public DateTime? Pt1_endtime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/QcComplainServicememo.cs b/SA.Entity/zxdcrm_Models/QcComplainServicememo.cs new file mode 100644 index 0000000..9e40ee8 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/QcComplainServicememo.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("qc_complain_servicememo")] + public partial class QcComplainServicememo + { + public QcComplainServicememo(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="pkid")] + public long Pkid {get;set;} + + /// + /// Desc:投诉id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="complainid")] + public long? Complainid {get;set;} + + /// + /// Desc:服务工单id,不可空,可多个,逗号分隔 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memoid")] + public string? Memoid {get;set;} + + /// + /// Desc:处理后投诉等级 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="recomplainlevel")] + public string? Recomplainlevel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="inneruserid")] + public long? Inneruserid {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:录音ID,可空,可多个,逗号分隔 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="recordid")] + public string? Recordid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/QcComplaintdict.cs b/SA.Entity/zxdcrm_Models/QcComplaintdict.cs new file mode 100644 index 0000000..1f3e535 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/QcComplaintdict.cs @@ -0,0 +1,99 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("qc_complaintdict")] + public partial class QcComplaintdict + { + public QcComplaintdict(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="pkid")] + public long Pkid {get;set;} + + /// + /// Desc:名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="businessdesc")] + public string? Businessdesc {get;set;} + + /// + /// Desc:编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="dictcode")] + public string? Dictcode {get;set;} + + /// + /// Desc:value值 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="dictvalue")] + public string? Dictvalue {get;set;} + + /// + /// Desc:编码名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="dictdesc")] + public string? Dictdesc {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:排序 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ord")] + public int? Ord {get;set;} + + /// + /// Desc:未处理提醒时长(小时) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="unhandlewarn")] + public int? Unhandlewarn {get;set;} + + /// + /// Desc:未处理完成提醒时长(小时) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="handlewarn")] + public int? Handlewarn {get;set;} + + /// + /// Desc:是否第一时间提醒合规 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hgwarn")] + public int? Hgwarn {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/QcCustomercomplain.cs b/SA.Entity/zxdcrm_Models/QcCustomercomplain.cs new file mode 100644 index 0000000..f6f8444 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/QcCustomercomplain.cs @@ -0,0 +1,171 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("qc_customercomplain")] + public partial class QcCustomercomplain + { + public QcCustomercomplain(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="pkid")] + public long Pkid {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc:员工id + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="salesid")] + public long Salesid {get;set;} + + /// + /// Desc:原因 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="reason")] + public string Reason {get;set;} + + /// + /// Desc:状态(-1:未处理; 0:处理中;1:已处理) + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="status")] + public int Status {get;set;} + + /// + /// Desc:投诉来源类型(1:电话投诉;2:微信投诉) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fromtype")] + public string? Fromtype {get;set;} + + /// + /// Desc:投诉等级 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="complainlevel")] + public string Complainlevel {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:服务器ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="serverid")] + public string? Serverid {get;set;} + + /// + /// Desc:文件路径 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="filename")] + public string? Filename {get;set;} + + /// + /// Desc:录音编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="recordid")] + public long? Recordid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="recorddate")] + public DateTime? Recorddate {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="tradecode")] + public string? Tradecode {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptauditpkid")] + public long? Deptauditpkid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="complianguid")] + public string? Complianguid {get;set;} + + /// + /// Desc:未处理提醒具体时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="unhandlewarntime")] + public DateTime? Unhandlewarntime {get;set;} + + /// + /// Desc:未处理完成提醒具体时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="handlewarntime")] + public DateTime? Handlewarntime {get;set;} + + /// + /// Desc:公司编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResActivity.cs b/SA.Entity/zxdcrm_Models/ResActivity.cs new file mode 100644 index 0000000..f9e008a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResActivity.cs @@ -0,0 +1,97 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("res_activity")] + public partial class ResActivity + { + public ResActivity(){ + + + } + /// + /// Desc:活动id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true)] + public int ACTIVITYID {get;set;} + + /// + /// Desc:编码 + /// Default: + /// Nullable:True + /// + public string? ACTIVITYCODE {get;set;} + + /// + /// Desc:活动标签 + /// Default: + /// Nullable:True + /// + public string? RESOURCETAG {get;set;} + + /// + /// Desc:资源类型id + /// Default: + /// Nullable:True + /// + public int? RESTYPEID {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + public string? MEMO {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? CTIME {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + public int? CREATEUSER {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? UTIME {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + public int? UPDATEUSER {get;set;} + + /// + /// Desc:活动名称 + /// Default: + /// Nullable:True + /// + public string? ACTIVITYNAME {get;set;} + + /// + /// Desc:活动地址 + /// Default: + /// Nullable:True + /// + public string? ACTIVITYADDR {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResApply.cs b/SA.Entity/zxdcrm_Models/ResApply.cs new file mode 100644 index 0000000..6d5cf28 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResApply.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///资源待清洗 + /// + [SugarTable("res_apply")] + public partial class ResApply + { + public ResApply(){ + + + } + /// + /// Desc:PKID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="pkid")] + public int Pkid {get;set;} + + /// + /// Desc:标签 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="resourcetag")] + public string Resourcetag {get;set;} + + /// + /// Desc:资源id + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:json扩展 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jsondata")] + public string? Jsondata {get;set;} + + /// + /// Desc:报名时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rtime")] + public DateTime? Rtime {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:json数据标志 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jsontype")] + public int? Jsontype {get;set;} + + /// + /// Desc:清洗标志 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="status")] + public int Status {get;set;} + + /// + /// Desc:申请手机号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mobile")] + public string? Mobile {get;set;} + + /// + /// Desc:数据类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="datatype")] + public string? Datatype {get;set;} + + /// + /// Desc:xml数据 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="extxml")] + public string? Extxml {get;set;} + + /// + /// Desc:手机号码密文串 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="enmobile")] + public string? Enmobile {get;set;} + + /// + /// Desc:清洗错误次数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="err_count")] + public int? Err_count {get;set;} + + /// + /// Desc:清洗错误原因 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="err_str")] + public string? Err_str {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="kword")] + public string? Kword {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResCustomer.cs b/SA.Entity/zxdcrm_Models/ResCustomer.cs new file mode 100644 index 0000000..a3635fa --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResCustomer.cs @@ -0,0 +1,59 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///客户表 + /// + [SugarTable("res_customer")] + public partial class ResCustomer + { + public ResCustomer(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="customerid")] + public string Customerid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerfrom")] + public string? Customerfrom {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lastnum3")] + public string? Lastnum3 {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResCustomerdetail.cs b/SA.Entity/zxdcrm_Models/ResCustomerdetail.cs new file mode 100644 index 0000000..d373d26 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResCustomerdetail.cs @@ -0,0 +1,227 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///客户资料表 + /// + [SugarTable("res_customerdetail")] + public partial class ResCustomerdetail + { + public ResCustomerdetail(){ + + + } + /// + /// Desc:资源id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc:账户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="caccount")] + public int? Caccount {get;set;} + + /// + /// Desc:邮箱 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="email")] + public string? Email {get;set;} + + /// + /// Desc:姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cname")] + public string? Cname {get;set;} + + /// + /// Desc:性别 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="gender")] + public string? Gender {get;set;} + + /// + /// Desc:生日 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="birthday")] + public DateTime? Birthday {get;set;} + + /// + /// Desc:省 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="provinceid")] + public int? Provinceid {get;set;} + + /// + /// Desc:城市 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cityid")] + public int? Cityid {get;set;} + + /// + /// Desc:详细地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="address")] + public string? Address {get;set;} + + /// + /// Desc:客户类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customertypeid")] + public string? Customertypeid {get;set;} + + /// + /// Desc:资金类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="amounttypeid")] + public string? Amounttypeid {get;set;} + + /// + /// Desc:工作 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jobtypeid")] + public string? Jobtypeid {get;set;} + + /// + /// Desc:操作习惯类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operationtype")] + public string? Operationtype {get;set;} + + /// + /// Desc:MSN + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msn")] + public string? Msn {get;set;} + + /// + /// Desc:qq + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qq")] + public string? Qq {get;set;} + + /// + /// Desc:FAX + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fax")] + public string? Fax {get;set;} + + /// + /// Desc:来源大类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerfrombig")] + public string? Customerfrombig {get;set;} + + /// + /// Desc:主号码地区 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="primarynumberaddress")] + public string? Primarynumberaddress {get;set;} + + /// + /// Desc:特别提醒 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="specialmemo")] + public string? Specialmemo {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + /// + /// Desc:是否主号码 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="isprimarynum")] + public int Isprimarynum {get;set;} + + /// + /// Desc:证卷之星用户ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="zx_userid")] + public string? Zx_userid {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customercategory")] + public string? Customercategory {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResCustomerextend.cs b/SA.Entity/zxdcrm_Models/ResCustomerextend.cs new file mode 100644 index 0000000..b595440 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResCustomerextend.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///客户扩展信息 + /// + [SugarTable("res_customerextend")] + public partial class ResCustomerextend + { + public ResCustomerextend(){ + + + } + /// + /// Desc:PKID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="pkid")] + public int Pkid {get;set;} + + /// + /// Desc:资源id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:大类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerextendtypeid")] + public string? Customerextendtypeid {get;set;} + + /// + /// Desc:信息备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:子类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerextendsubtypeid")] + public string? Customerextendsubtypeid {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResCustomeruser.cs b/SA.Entity/zxdcrm_Models/ResCustomeruser.cs new file mode 100644 index 0000000..a54611d --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResCustomeruser.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///客户与用户关系 + /// + [SugarTable("res_customeruser")] + public partial class ResCustomeruser + { + public ResCustomeruser(){ + + + } + /// + /// Desc:PKID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="pkid")] + public int Pkid {get;set;} + + /// + /// Desc:资源id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResMobileMd5.cs b/SA.Entity/zxdcrm_Models/ResMobileMd5.cs new file mode 100644 index 0000000..9a5851c --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResMobileMd5.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("res_mobile_md5")] + public partial class ResMobileMd5 + { + public ResMobileMd5(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="md5")] + public string? Md5 {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResResourcemobile.cs b/SA.Entity/zxdcrm_Models/ResResourcemobile.cs new file mode 100644 index 0000000..2253350 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResResourcemobile.cs @@ -0,0 +1,43 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///手机号码字典 + /// + [SugarTable("res_resourcemobile")] + public partial class ResResourcemobile + { + public ResResourcemobile(){ + + + } + /// + /// Desc:资源ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc:号码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mobile")] + public string? Mobile {get;set;} + + /// + /// Desc:是否为手机号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ismobile")] + public int? Ismobile {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResResourcetype.cs b/SA.Entity/zxdcrm_Models/ResResourcetype.cs new file mode 100644 index 0000000..6755b03 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResResourcetype.cs @@ -0,0 +1,104 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("res_resourcetype")] + public partial class ResResourcetype + { + public ResResourcetype(){ + + + } + /// + /// Desc:类型id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true)] + public int RESTYPEID {get;set;} + + /// + /// Desc:编码 + /// Default: + /// Nullable:True + /// + public string? RESTYPECODE {get;set;} + + /// + /// Desc:类型名称 + /// Default: + /// Nullable:True + /// + public string? TYPENAME {get;set;} + + /// + /// Desc:所属公司 + /// Default: + /// Nullable:True + /// + public int? COMPANYID {get;set;} + + /// + /// Desc:所属业务 + /// Default: + /// Nullable:True + /// + public string? BUSINESSCODE {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + public string? MEMO {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + public DateTime? CTIME {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + public int? CREATEUSER {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + public DateTime? UTIME {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + public int? UPDATEUSER {get;set;} + + /// + /// Desc:资源性质(1为移动推广报名,0为策划,2为PC端推广报名,3为app手机号注册,4 为其他,5为pc手机号注册) + /// Default: + /// Nullable:True + /// + public int? ATTRIBUTE {get;set;} + + /// + /// Desc:部门,暂时无用 + /// Default: + /// Nullable:True + /// + public string? DEPT {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/ResScene.cs b/SA.Entity/zxdcrm_Models/ResScene.cs new file mode 100644 index 0000000..e8bf20a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/ResScene.cs @@ -0,0 +1,139 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("res_scene")] + public partial class ResScene + { + public ResScene(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mobile")] + public string? Mobile {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appid")] + public string? Appid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appuserid")] + public string? Appuserid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="headurl")] + public string? Headurl {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="nickname")] + public string? Nickname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="scenetitle")] + public string? Scenetitle {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="scenetype")] + public int? Scenetype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jointime")] + public DateTime? Jointime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="onlinetime")] + public int? Onlinetime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ch")] + public int? Ch {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="unionid")] + public string? Unionid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/RewardPayinfo.cs b/SA.Entity/zxdcrm_Models/RewardPayinfo.cs new file mode 100644 index 0000000..7874567 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/RewardPayinfo.cs @@ -0,0 +1,155 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("reward_payinfo")] + public partial class RewardPayinfo + { + public RewardPayinfo(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:支付类型 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytype")] + public int Paytype {get;set;} + + /// + /// Desc:支付类型名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytypename")] + public string Paytypename {get;set;} + + /// + /// Desc:支付时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paydate")] + public DateTime Paydate {get;set;} + + /// + /// Desc:支付金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payprice")] + public decimal Payprice {get;set;} + + /// + /// Desc:付款人姓名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payname")] + public string Payname {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:是否审核 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc:添加时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:支付流水 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:是否删除 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc:三方标识 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderno")] + public string? Outorderno {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SmsAccount.cs b/SA.Entity/zxdcrm_Models/SmsAccount.cs new file mode 100644 index 0000000..eb476b3 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SmsAccount.cs @@ -0,0 +1,107 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///短信平台帐号 + /// + [SugarTable("sms_account")] + public partial class SmsAccount + { + public SmsAccount(){ + + + } + /// + /// Desc:帐号代码 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="clientcode")] + public string Clientcode {get;set;} + + /// + /// Desc:短信平台 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="clientname")] + public string Clientname {get;set;} + + /// + /// Desc:是否禁用 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="disabled")] + public int Disabled {get;set;} + + /// + /// Desc:排序号 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="sortno")] + public int? Sortno {get;set;} + + /// + /// Desc:短信平台代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="smssp_code")] + public string? Smssp_code {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="smsaccount")] + public string? Smsaccount {get;set;} + + /// + /// Desc:密码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="smspassword")] + public string? Smspassword {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:扩展字段一 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="extinfo1")] + public string? Extinfo1 {get;set;} + + /// + /// Desc:扩展字段二 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="extinfo2")] + public string? Extinfo2 {get;set;} + + /// + /// Desc:扩展字段三 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="extinfo3")] + public string? Extinfo3 {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SmsMessage.cs b/SA.Entity/zxdcrm_Models/SmsMessage.cs new file mode 100644 index 0000000..1c48e55 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SmsMessage.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///座席待发短信 + /// + [SugarTable("sms_message")] + public partial class SmsMessage + { + public SmsMessage(){ + + + } + /// + /// Desc:短信ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="messageid")] + public int Messageid {get;set;} + + /// + /// Desc:内容 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="message")] + public string Message {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc:短信大类代码 + /// Default:1 + /// Nullable:False + /// + [SugarColumn(ColumnName="typecode")] + public string Typecode {get;set;} + + /// + /// Desc:短信子类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subtypecode")] + public string? Subtypecode {get;set;} + + /// + /// Desc:指定帐号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="clientcode")] + public string Clientcode {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="createuser")] + public int Createuser {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SmsMessageHis.cs b/SA.Entity/zxdcrm_Models/SmsMessageHis.cs new file mode 100644 index 0000000..bfb7edb --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SmsMessageHis.cs @@ -0,0 +1,107 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///座席已发短信 + /// + [SugarTable("sms_message_his")] + public partial class SmsMessageHis + { + public SmsMessageHis(){ + + + } + /// + /// Desc:短信ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="messageid")] + public int Messageid {get;set;} + + /// + /// Desc:内容 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="message")] + public string Message {get;set;} + + /// + /// Desc:短信大类代码 + /// Default:1 + /// Nullable:False + /// + [SugarColumn(ColumnName="typecode")] + public string Typecode {get;set;} + + /// + /// Desc:短信子类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subtypecode")] + public string? Subtypecode {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:指定帐号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="clientcode")] + public string? Clientcode {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="createuser")] + public int Createuser {get;set;} + + /// + /// Desc:发送批次 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sendid")] + public int? Sendid {get;set;} + + /// + /// Desc:是否发送成功 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sendsuccess")] + public int? Sendsuccess {get;set;} + + /// + /// Desc:发送时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sendtime")] + public DateTime? Sendtime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SmsMsgsubtype.cs b/SA.Entity/zxdcrm_Models/SmsMsgsubtype.cs new file mode 100644 index 0000000..3fe0032 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SmsMsgsubtype.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///短信业务子类 + /// + [SugarTable("sms_msgsubtype")] + public partial class SmsMsgsubtype + { + public SmsMsgsubtype(){ + + + } + /// + /// Desc:类型id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="subtypeid")] + public int Subtypeid {get;set;} + + /// + /// Desc:类型名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="subtypename")] + public string Subtypename {get;set;} + + /// + /// Desc:短信大类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="typecode")] + public string? Typecode {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:修改人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:短信小类Code + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateuser")] + public int? Updateuser {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subtypecode")] + public string? Subtypecode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SmsMsgtype.cs b/SA.Entity/zxdcrm_Models/SmsMsgtype.cs new file mode 100644 index 0000000..1348052 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SmsMsgtype.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///短信业务大类 + /// + [SugarTable("sms_msgtype")] + public partial class SmsMsgtype + { + public SmsMsgtype(){ + + + } + /// + /// Desc:类型代码 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="typecode")] + public string Typecode {get;set;} + + /// + /// Desc:类型名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="typename")] + public string Typename {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SmsMsgtypeClient.cs b/SA.Entity/zxdcrm_Models/SmsMsgtypeClient.cs new file mode 100644 index 0000000..3c7ec1d --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SmsMsgtypeClient.cs @@ -0,0 +1,75 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///短信业务类可选帐号 + /// + [SugarTable("sms_msgtype_client")] + public partial class SmsMsgtypeClient + { + public SmsMsgtypeClient(){ + + + } + /// + /// Desc:键ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="pkid")] + public int Pkid {get;set;} + + /// + /// Desc:短信小类 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="subtypeid")] + public int Subtypeid {get;set;} + + /// + /// Desc:短信大类 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="typecode")] + public string Typecode {get;set;} + + /// + /// Desc:短信帐号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="clientcode")] + public string Clientcode {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:创建人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="createuser")] + public int? Createuser {get;set;} + + /// + /// Desc:公司ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyid")] + public int? Companyid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SmsSendlog.cs b/SA.Entity/zxdcrm_Models/SmsSendlog.cs new file mode 100644 index 0000000..5fc61ec --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SmsSendlog.cs @@ -0,0 +1,75 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("sms_sendlog")] + public partial class SmsSendlog + { + public SmsSendlog(){ + + + } + /// + /// Desc:发送批次ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="sendid")] + public int Sendid {get;set;} + + /// + /// Desc:发送信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sendstr")] + public string? Sendstr {get;set;} + + /// + /// Desc:发送账号代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="clientcode")] + public string? Clientcode {get;set;} + + /// + /// Desc:短信信息源(批次id/短信id) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msgsourceid")] + public int? Msgsourceid {get;set;} + + /// + /// Desc:返回信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returnmsg")] + public string? Returnmsg {get;set;} + + /// + /// Desc:是否发送成功 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="sendsuccess")] + public int? Sendsuccess {get;set;} + + /// + /// Desc:发送时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sendtime")] + public DateTime? Sendtime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SoftResetpwd.cs b/SA.Entity/zxdcrm_Models/SoftResetpwd.cs new file mode 100644 index 0000000..df231d0 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SoftResetpwd.cs @@ -0,0 +1,75 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("soft_resetpwd")] + public partial class SoftResetpwd + { + public SoftResetpwd(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true)] + public int ID {get;set;} + + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="soft_username")] + public string? Soft_username {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:新密码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="newpassword")] + public string? Newpassword {get;set;} + + /// + /// Desc:公司编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:员工ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public int? Userid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SoftUser.cs b/SA.Entity/zxdcrm_Models/SoftUser.cs new file mode 100644 index 0000000..b355747 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SoftUser.cs @@ -0,0 +1,219 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///软件用户表 + /// + [SugarTable("soft_user")] + public partial class SoftUser + { + public SoftUser(){ + + + } + /// + /// Desc:用户名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="username")] + public string Username {get;set;} + + /// + /// Desc:密码 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="userpass")] + public string Userpass {get;set;} + + /// + /// Desc:用户卡号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userno")] + public int? Userno {get;set;} + + /// + /// Desc:用户等级 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userlevel")] + public int? Userlevel {get;set;} + + /// + /// Desc:是否接收短信 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="acceptsms")] + public int? Acceptsms {get;set;} + + /// + /// Desc:注册渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="regcampainid")] + public int? Regcampainid {get;set;} + + /// + /// Desc:注册平台 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="regplatform")] + public string? Regplatform {get;set;} + + /// + /// Desc:认证状态 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isactive")] + public int? Isactive {get;set;} + + /// + /// Desc:认证时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activetime")] + public DateTime? Activetime {get;set;} + + /// + /// Desc:认证号码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeresid")] + public string? Activeresid {get;set;} + + /// + /// Desc:认证渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="actcampainid")] + public int? Actcampainid {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:添加时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:公司ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companyid")] + public int? Companyid {get;set;} + + /// + /// Desc:注册时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="regdate")] + public DateTime? Regdate {get;set;} + + /// + /// Desc:初始资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:电子邮件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="email")] + public string? Email {get;set;} + + /// + /// Desc:客户端IP + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ip")] + public string? Ip {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public int? Eid {get;set;} + + /// + /// Desc:***第三方用户ID*** + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openid")] + public string? Openid {get;set;} + + /// + /// Desc:***第三方平台*** + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openplat")] + public string? Openplat {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="unionid")] + public string? Unionid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="liveCode")] + public string? LiveCode {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="regSource")] + public string? RegSource {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SoftUserBind.cs b/SA.Entity/zxdcrm_Models/SoftUserBind.cs new file mode 100644 index 0000000..9e7ef22 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SoftUserBind.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("soft_user_bind")] + public partial class SoftUserBind + { + public SoftUserBind(){ + + + } + /// + /// Desc:客户端com.dongniu + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appid")] + public string? Appid {get;set;} + + /// + /// Desc:用户id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appuerid")] + public string? Appuerid {get;set;} + + /// + /// Desc:注册用户加密串 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:unionid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="unionid")] + public string? Unionid {get;set;} + + /// + /// Desc:注册渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:软件客户端信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="livecode")] + public string? Livecode {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public string? Ctime {get;set;} + + /// + /// Desc:注册ip + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="regip")] + public string? Regip {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SoftUserCh.cs b/SA.Entity/zxdcrm_Models/SoftUserCh.cs new file mode 100644 index 0000000..88c37f2 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SoftUserCh.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("soft_user_ch")] + public partial class SoftUserCh + { + public SoftUserCh(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="username")] + public string Username {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="ch")] + public int Ch {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public int? Eid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SoftUserGetcheck.cs b/SA.Entity/zxdcrm_Models/SoftUserGetcheck.cs new file mode 100644 index 0000000..d006307 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SoftUserGetcheck.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("soft_user_getcheck")] + public partial class SoftUserGetcheck + { + public SoftUserGetcheck(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:多个用“,”号隔开 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:200:审核通过 100:不通过 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="status")] + public int? Status {get;set;} + + /// + /// Desc:审核明细 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="content")] + public string? Content {get;set;} + + /// + /// Desc:事业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + /// + /// Desc:申请人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="eid")] + public int? Eid {get;set;} + + /// + /// Desc:源事业部 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="source")] + public string? Source {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SoftUserinfoSub.cs b/SA.Entity/zxdcrm_Models/SoftUserinfoSub.cs new file mode 100644 index 0000000..8475348 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SoftUserinfoSub.cs @@ -0,0 +1,99 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///订阅有合并或者解绑推送过来的用户数据 + /// + [SugarTable("soft_userinfo_sub")] + public partial class SoftUserinfoSub + { + public SoftUserinfoSub(){ + + + } + /// + /// Desc:用户ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="uid")] + public int Uid {get;set;} + + /// + /// Desc:主userid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cid")] + public int? Cid {get;set;} + + /// + /// Desc:平台id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appid")] + public string? Appid {get;set;} + + /// + /// Desc:用户账号,比如,软件平台(username),服务号(openid) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appuserid")] + public string? Appuserid {get;set;} + + /// + /// Desc:手机号码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mobile")] + public string? Mobile {get;set;} + + /// + /// Desc:联合ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="unionid")] + public string? Unionid {get;set;} + + /// + /// Desc:渠道号 + /// Default:-1 + /// Nullable:True + /// + [SugarColumn(ColumnName="ch")] + public int? Ch {get;set;} + + /// + /// Desc:PC软件、企业微信、浏览器、服务号、小鹅通、小程序、App、CRM、企业微信外、none + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public string? Type {get;set;} + + /// + /// Desc:创建时间(系统自动写入) + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:修改时间(系统自动写入) + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/SoftUserinfoSublog.cs b/SA.Entity/zxdcrm_Models/SoftUserinfoSublog.cs new file mode 100644 index 0000000..5791e95 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/SoftUserinfoSublog.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///收到订阅的历史日志 + /// + [SugarTable("soft_userinfo_sublog")] + public partial class SoftUserinfoSublog + { + public SoftUserinfoSublog(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc:json + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="data")] + public string? Data {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/TBasePinyin.cs b/SA.Entity/zxdcrm_Models/TBasePinyin.cs new file mode 100644 index 0000000..a0ed415 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/TBasePinyin.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("t_base_pinyin")] + public partial class TBasePinyin + { + public TBasePinyin(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="pin_yin_")] + public string Pin_yin_ {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="code_")] + public int Code_ {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/TempPayOver1kUser.cs b/SA.Entity/zxdcrm_Models/TempPayOver1kUser.cs new file mode 100644 index 0000000..8e09000 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/TempPayOver1kUser.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("temp_pay_over_1k_user")] + public partial class TempPayOver1kUser + { + public TempPayOver1kUser(){ + + + } + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sum_final_pay")] + public decimal? Sum_final_pay {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="pay_times")] + public long Pay_times {get;set;} + + /// + /// Desc:到账时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="first_pay_time")] + public DateTime? First_pay_time {get;set;} + + /// + /// Desc:到账时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="last_pay_time")] + public DateTime? Last_pay_time {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/Test.cs b/SA.Entity/zxdcrm_Models/Test.cs new file mode 100644 index 0000000..c05ce18 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/Test.cs @@ -0,0 +1,27 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("test")] + public partial class Test + { + public Test(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="nvalue")] + public int? Nvalue {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/TestChinacity.cs b/SA.Entity/zxdcrm_Models/TestChinacity.cs new file mode 100644 index 0000000..10ebd9b --- /dev/null +++ b/SA.Entity/zxdcrm_Models/TestChinacity.cs @@ -0,0 +1,34 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("test_chinacity")] + public partial class TestChinacity + { + public TestChinacity(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true)] + public string CityName {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + public string? PinYin {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/TestInsert.cs b/SA.Entity/zxdcrm_Models/TestInsert.cs new file mode 100644 index 0000000..389d346 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/TestInsert.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("test_insert")] + public partial class TestInsert + { + public TestInsert(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="name")] + public string? Name {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/TestOneid.cs b/SA.Entity/zxdcrm_Models/TestOneid.cs new file mode 100644 index 0000000..c8ae2d3 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/TestOneid.cs @@ -0,0 +1,27 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("test_oneid")] + public partial class TestOneid + { + public TestOneid(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/TestTabl.cs b/SA.Entity/zxdcrm_Models/TestTabl.cs new file mode 100644 index 0000000..0df9682 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/TestTabl.cs @@ -0,0 +1,179 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("test_tabl")] + public partial class TestTabl + { + public TestTabl(){ + + + } + /// + /// Desc:产品id + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:产品类型:1-单程/2-往返/3-多程 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="protype")] + public int? Protype {get;set;} + + /// + /// Desc:成人价 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="aduitprice")] + public decimal Aduitprice {get;set;} + + /// + /// Desc:儿童价 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="childprice")] + public decimal Childprice {get;set;} + + /// + /// Desc:库存 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="stocknum")] + public int Stocknum {get;set;} + + /// + /// Desc:未出票库存销售 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ntstocknum")] + public int Ntstocknum {get;set;} + + /// + /// Desc:去程航班号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="go_flightno")] + public string? Go_flightno {get;set;} + + /// + /// Desc:去程出发机场(代码) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="go_startport")] + public string? Go_startport {get;set;} + + /// + /// Desc:去程抵达机场(代码) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="go_arriveport")] + public string? Go_arriveport {get;set;} + + /// + /// Desc:去程出发日期起 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="go_datefrom")] + public DateTime? Go_datefrom {get;set;} + + /// + /// Desc:去程出发日期止 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="go_dateto")] + public DateTime? Go_dateto {get;set;} + + /// + /// Desc:转机航班号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="go_flightno_t")] + public string? Go_flightno_t {get;set;} + + /// + /// Desc:转机机场(代码) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="go_startport_t")] + public string? Go_startport_t {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bk_flightno")] + public byte[] Bk_flightno {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bk_startport")] + public byte[] Bk_startport {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bk_arriveport")] + public byte[] Bk_arriveport {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bk_datefrom")] + public byte[] Bk_datefrom {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bk_dateto")] + public byte[] Bk_dateto {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bk_flightno_t")] + public byte[] Bk_flightno_t {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bk_startport_t")] + public byte[] Bk_startport_t {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/TestWos.cs b/SA.Entity/zxdcrm_Models/TestWos.cs new file mode 100644 index 0000000..4c86a8f --- /dev/null +++ b/SA.Entity/zxdcrm_Models/TestWos.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("test_wos")] + public partial class TestWos + { + public TestWos(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="name")] + public string? Name {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/UserDeptModule.cs b/SA.Entity/zxdcrm_Models/UserDeptModule.cs new file mode 100644 index 0000000..c12ba68 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/UserDeptModule.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("user_dept_module")] + public partial class UserDeptModule + { + public UserDeptModule(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="user_name")] + public string? User_name {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public string? Channel {get;set;} + + /// + /// Desc:开始时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="begin_time")] + public DateTime? Begin_time {get;set;} + + /// + /// Desc:结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="end_time")] + public DateTime? End_time {get;set;} + + /// + /// Desc:权限订单 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzorder_id")] + public int? Szzorder_id {get;set;} + + /// + /// Desc:入库时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="create_time")] + public DateTime? Create_time {get;set;} + + /// + /// Desc:更新时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="update_time")] + public DateTime? Update_time {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/VoiceAliyunRequest.cs b/SA.Entity/zxdcrm_Models/VoiceAliyunRequest.cs new file mode 100644 index 0000000..4f5384d --- /dev/null +++ b/SA.Entity/zxdcrm_Models/VoiceAliyunRequest.cs @@ -0,0 +1,110 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("voice_aliyun_request")] + public partial class VoiceAliyunRequest + { + public VoiceAliyunRequest(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:文件的urlmd5值,用于判断是否是相同的url文件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_md5")] + public string? File_md5 {get;set;} + + /// + /// Desc:语音文件地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_link")] + public string? File_link {get;set;} + + /// + /// Desc:任务ID + /// Default: + /// Nullable:True + /// + public string? TaskId {get;set;} + + /// + /// Desc:状态码 0:表示新记录 1:表示其他状态(参照阿里云接口状态) + /// Default: + /// Nullable:True + /// + public int? StatusCode {get;set;} + + /// + /// Desc:状态字符串 + /// Default: + /// Nullable:True + /// + public string? StatusText {get;set;} + + /// + /// Desc:请求时候的状态码200正常,其他:不正常 + /// Default: + /// Nullable:True + /// + public int? HttpStatus {get;set;} + + /// + /// Desc:请求的时候状态描述 + /// Default: + /// Nullable:True + /// + public string? HttpStatusTxt {get;set;} + + /// + /// Desc:1:已经返回 0:未返回 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isReturnBack")] + public int? IsReturnBack {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:回调时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="retruntime")] + public DateTime? Retruntime {get;set;} + + /// + /// Desc:文件名称,用于返回文件后进行删除操作 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="filename")] + public string? Filename {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/VoiceAliyunReturn.cs b/SA.Entity/zxdcrm_Models/VoiceAliyunReturn.cs new file mode 100644 index 0000000..740b374 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/VoiceAliyunReturn.cs @@ -0,0 +1,108 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("voice_aliyun_return")] + public partial class VoiceAliyunReturn + { + public VoiceAliyunReturn(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:文件的urlmd5值,用于判断是否是相同的url文件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_md5")] + public string? File_md5 {get;set;} + + /// + /// Desc:语音文件地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_link")] + public string? File_link {get;set;} + + /// + /// Desc:任务ID + /// Default: + /// Nullable:True + /// + public string? TaskId {get;set;} + + /// + /// Desc:返回的结果数据集合 + /// Default: + /// Nullable:True + /// + public string? Sentences {get;set;} + + /// + /// Desc:解析出来的文本 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="voicetext")] + public string? Voicetext {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:请求时间 + /// Default: + /// Nullable:True + /// + public DateTime? RequestTime {get;set;} + + /// + /// Desc:完成时间 + /// Default: + /// Nullable:True + /// + public DateTime? SolveTime {get;set;} + + /// + /// Desc:处理时长(讲毫秒转换成秒) + /// Default: + /// Nullable:True + /// + public int? BizDuration {get;set;} + + /// + /// Desc:状态码 0:表示新记录 1:表示其他状态(参照阿里云接口状态) + /// Default: + /// Nullable:True + /// + public int? StatusCode {get;set;} + + /// + /// Desc:状态字符串 + /// Default: + /// Nullable:True + /// + public string? StatusText {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/VoiceAliyunReturnErro.cs b/SA.Entity/zxdcrm_Models/VoiceAliyunReturnErro.cs new file mode 100644 index 0000000..2cb47f1 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/VoiceAliyunReturnErro.cs @@ -0,0 +1,93 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("voice_aliyun_return_erro")] + public partial class VoiceAliyunReturnErro + { + public VoiceAliyunReturnErro(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:文件的urlmd5值,用于判断是否是相同的url文件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_md5")] + public string? File_md5 {get;set;} + + /// + /// Desc:语音文件地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_link")] + public string? File_link {get;set;} + + /// + /// Desc:任务ID + /// Default: + /// Nullable:True + /// + public string? TaskId {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:请求时间 + /// Default: + /// Nullable:True + /// + public DateTime? RequestTime {get;set;} + + /// + /// Desc:完成时间 + /// Default: + /// Nullable:True + /// + public DateTime? SolveTime {get;set;} + + /// + /// Desc:处理时长(讲毫秒转换成秒) + /// Default: + /// Nullable:True + /// + public int? BizDuration {get;set;} + + /// + /// Desc:状态码 0:表示新记录 1:表示其他状态(参照阿里云接口状态) + /// Default: + /// Nullable:True + /// + public int? StatusCode {get;set;} + + /// + /// Desc:状态字符串 + /// Default: + /// Nullable:True + /// + public string? StatusText {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/VoiceConfig.cs b/SA.Entity/zxdcrm_Models/VoiceConfig.cs new file mode 100644 index 0000000..710ac64 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/VoiceConfig.cs @@ -0,0 +1,74 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("voice_config")] + public partial class VoiceConfig + { + public VoiceConfig(){ + + + } + /// + /// Desc:语音识别项目编码 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="voice_code")] + public string Voice_code {get;set;} + + /// + /// Desc:阿里云的AppKey(采样率的项目ID) + /// Default: + /// Nullable:False + /// + public string Appkey {get;set;} + + /// + /// Desc:阿里云的accessKeyId + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="accessKeyId")] + public string AccessKeyId {get;set;} + + /// + /// Desc:阿里云的accessKeySecret + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="accessKeySecret")] + public string AccessKeySecret {get;set;} + + /// + /// Desc:备注(采样率说明) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="content")] + public string? Content {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:1:正常 0:作废 + /// Default:1 + /// Nullable:False + /// + [SugarColumn(ColumnName="status")] + public int Status {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/VoiceReceive.cs b/SA.Entity/zxdcrm_Models/VoiceReceive.cs new file mode 100644 index 0000000..eb6ff07 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/VoiceReceive.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("voice_receive")] + public partial class VoiceReceive + { + public VoiceReceive(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:文件的urlmd5值,用于判断是否是相同的url文件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_md5")] + public string? File_md5 {get;set;} + + /// + /// Desc:语音文件地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_link")] + public string? File_link {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:1:已经处理过 0:新的地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isAready")] + public int? IsAready {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="retrun_link")] + public string? Retrun_link {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/VoiceReceivehis.cs b/SA.Entity/zxdcrm_Models/VoiceReceivehis.cs new file mode 100644 index 0000000..f8c6e54 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/VoiceReceivehis.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("voice_receivehis")] + public partial class VoiceReceivehis + { + public VoiceReceivehis(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:文件的urlmd5值,用于判断是否是相同的url文件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_md5")] + public string? File_md5 {get;set;} + + /// + /// Desc:语音文件地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="file_link")] + public string? File_link {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:1:已经处理过 0:新的地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isAready")] + public int? IsAready {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="retrun_link")] + public string? Retrun_link {get;set;} + + /// + /// Desc:转移到本表的时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="transtime")] + public DateTime? Transtime {get;set;} + + /// + /// Desc:回调状态 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="return_status")] + public string? Return_status {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WwExtuserResid.cs b/SA.Entity/zxdcrm_Models/WwExtuserResid.cs new file mode 100644 index 0000000..621e7c6 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WwExtuserResid.cs @@ -0,0 +1,59 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///资源id和外部联系人ID的联系 + /// + [SugarTable("ww_extuser_resid")] + public partial class WwExtuserResid + { + public WwExtuserResid(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc:企业微信ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="userid")] + public string Userid {get;set;} + + /// + /// Desc:时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:公司编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + /// + /// Desc:执行次数 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="putnum")] + public int? Putnum {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WwSzzyorderExtuserid.cs b/SA.Entity/zxdcrm_Models/WwSzzyorderExtuserid.cs new file mode 100644 index 0000000..94b9782 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WwSzzyorderExtuserid.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("ww_szzyorder_extuserid")] + public partial class WwSzzyorderExtuserid + { + public WwSzzyorderExtuserid(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="extuserid")] + public string? Extuserid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="corpid")] + public string? Corpid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxAutoopenorder.cs b/SA.Entity/zxdcrm_Models/WxAutoopenorder.cs new file mode 100644 index 0000000..c2d7822 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxAutoopenorder.cs @@ -0,0 +1,91 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_autoopenorder")] + public partial class WxAutoopenorder + { + public WxAutoopenorder(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isexe")] + public int? Isexe {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isok")] + public int? Isok {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="etime")] + public DateTime? Etime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creator")] + public int? Creator {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creatorname")] + public string? Creatorname {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxComplianceconfirm.cs b/SA.Entity/zxdcrm_Models/WxComplianceconfirm.cs new file mode 100644 index 0000000..58ce2a1 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxComplianceconfirm.cs @@ -0,0 +1,59 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_complianceconfirm")] + public partial class WxComplianceconfirm + { + public WxComplianceconfirm(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="szzyorderid")] + public long Szzyorderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="confirmtime")] + public DateTime? Confirmtime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderno")] + public string? Outorderno {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="price")] + public decimal? Price {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ip")] + public string? Ip {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxOrderPayclear.cs b/SA.Entity/zxdcrm_Models/WxOrderPayclear.cs new file mode 100644 index 0000000..736f537 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxOrderPayclear.cs @@ -0,0 +1,107 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_order_payclear")] + public partial class WxOrderPayclear + { + public WxOrderPayclear(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="payid")] + public int? Payid {get;set;} + + /// + /// Desc:订单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc:支付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payprice")] + public decimal? Payprice {get;set;} + + /// + /// Desc:支付时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paydate")] + public DateTime? Paydate {get;set;} + + /// + /// Desc:支付时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="usedate")] + public DateTime? Usedate {get;set;} + + /// + /// Desc:usestatus=0 未使用 usestatus=1 已使用 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="usestatus")] + public int Usestatus {get;set;} + + /// + /// Desc:usertype=0 只付款 usertype=1 正向使用 usertype=-1 退款 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="usetype")] + public int Usetype {get;set;} + + /// + /// Desc:计算了苹果支付、魅族支付、华为支付手续费后的金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="useprice")] + public decimal? Useprice {get;set;} + + /// + /// Desc:原始金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="useprice2")] + public decimal? Useprice2 {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxOrderactive.cs b/SA.Entity/zxdcrm_Models/WxOrderactive.cs new file mode 100644 index 0000000..6247d24 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxOrderactive.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_orderactive")] + public partial class WxOrderactive + { + public WxOrderactive(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:CRM产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc:购买的产品代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + /// + /// Desc:0:单一产品、1:组合产品 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:活动开始时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="starttime")] + public DateTime? Starttime {get;set;} + + /// + /// Desc:活动结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:对应的产品id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activecode")] + public string? Activecode {get;set;} + + /// + /// Desc:活动类型。1:满1年送1个月类此,2:和主订单时长一致。目前这个字段已经没什么用,全部设置成1 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activetype")] + public int? Activetype {get;set;} + + /// + /// Desc:分公司id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:最小购买数量,当购买数量达到此时,才执行赠送。和原订单里面的BOOKNUM一致 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mincount")] + public int? Mincount {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="donateday")] + public int? Donateday {get;set;} + + /// + /// Desc:是否跟随订单赠送,1:用订单表的giftdays字段作为赠送时长,0:用本表的donateday字段作为赠送时长 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isfolloworder")] + public int? Isfolloworder {get;set;} + + /// + /// Desc:[Order][HandGif] + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftype")] + public string? Giftype {get;set;} + + /// + /// Desc:赠送产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activename")] + public string? Activename {get;set;} + + /// + /// Desc:是否删除 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxOrderactiveCopy1.cs b/SA.Entity/zxdcrm_Models/WxOrderactiveCopy1.cs new file mode 100644 index 0000000..0843cf6 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxOrderactiveCopy1.cs @@ -0,0 +1,115 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_orderactive_copy1")] + public partial class WxOrderactiveCopy1 + { + public WxOrderactiveCopy1(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:CRM产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc:购买的产品代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + /// + /// Desc:0:单一产品、1:组合产品 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:活动开始时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="starttime")] + public DateTime? Starttime {get;set;} + + /// + /// Desc:活动结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:对应的产品id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activecode")] + public string? Activecode {get;set;} + + /// + /// Desc:活动类型。1:满1年送1个月类此,2:和主订单时长一致 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activetype")] + public int? Activetype {get;set;} + + /// + /// Desc:分公司id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:最小购买数量,当购买数量达到此时,才执行赠送。和原订单里面的BOOKNUM一致 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mincount")] + public int? Mincount {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="donateday")] + public int? Donateday {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxOrderactiveCopy2.cs b/SA.Entity/zxdcrm_Models/WxOrderactiveCopy2.cs new file mode 100644 index 0000000..954a5a4 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxOrderactiveCopy2.cs @@ -0,0 +1,115 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_orderactive_copy2")] + public partial class WxOrderactiveCopy2 + { + public WxOrderactiveCopy2(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:CRM产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc:购买的产品代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + /// + /// Desc:0:单一产品、1:组合产品 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:活动开始时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="starttime")] + public DateTime? Starttime {get;set;} + + /// + /// Desc:活动结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:对应的产品id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activecode")] + public string? Activecode {get;set;} + + /// + /// Desc:活动类型。1:满1年送1个月类此,2:和主订单时长一致 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activetype")] + public int? Activetype {get;set;} + + /// + /// Desc:分公司id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:最小购买数量,当购买数量达到此时,才执行赠送。和原订单里面的BOOKNUM一致 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mincount")] + public int? Mincount {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="donateday")] + public int? Donateday {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxOrderrptDetial.cs b/SA.Entity/zxdcrm_Models/WxOrderrptDetial.cs new file mode 100644 index 0000000..97a37ac --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxOrderrptDetial.cs @@ -0,0 +1,147 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_orderrpt_detial")] + public partial class WxOrderrptDetial + { + public WxOrderrptDetial(){ + + + } + /// + /// Desc:订单ID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public string Orderid {get;set;} + + /// + /// Desc:当前年份 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="oyear")] + public string? Oyear {get;set;} + + /// + /// Desc:月份 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="omonth")] + public string? Omonth {get;set;} + + /// + /// Desc:当月天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="odays")] + public int? Odays {get;set;} + + /// + /// Desc:平均值 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pjz")] + public decimal? Pjz {get;set;} + + /// + /// Desc:价值和 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="jzcount")] + public decimal? Jzcount {get;set;} + + /// + /// Desc:渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public string? Channel {get;set;} + + /// + /// Desc:开通订单月份 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opmonth")] + public string? Opmonth {get;set;} + + /// + /// Desc:开通订单年份 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opyear")] + public string? Opyear {get;set;} + + /// + /// Desc:0:40%分的 1:本月的 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc:大类产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public string? Otime {get;set;} + + /// + /// Desc:批次 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="pici")] + public string? Pici {get;set;} + + /// + /// Desc:大类产品类型 例如:ql + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ordertype")] + public string? Ordertype {get;set;} + + /// + /// Desc:产品分类 例如:ql_90_days + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="smallType")] + public string? SmallType {get;set;} + + /// + /// Desc:产品分类名称 例如:擒龙季度版 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="smallTypeName")] + public string SmallTypeName {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorder.cs b/SA.Entity/zxdcrm_Models/WxSzzyorder.cs new file mode 100644 index 0000000..a62f0b2 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorder.cs @@ -0,0 +1,760 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///上证综研订单表 + /// + [SugarTable("wx_szzyorder")] + public partial class WxSzzyorder + { + public WxSzzyorder() + { + } + + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey = true, ColumnName = "orderid")] + public int Orderid { get; set; } + + /// + /// Desc:分公司号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "employeeid")] + public string? Employeeid { get; set; } + + /// + /// Desc:分公司密码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "password")] + public string? Password { get; set; } + + /// + /// Desc:分公司用户ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "userid")] + public string? Userid { get; set; } + + /// + /// Desc:产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "productid")] + public int? Productid { get; set; } + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "productname")] + public string? Productname { get; set; } + + /// + /// Desc:子产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "subproductid")] + public int? Subproductid { get; set; } + + /// + /// Desc:子产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "subproductname")] + public string? Subproductname { get; set; } + + /// + /// Desc:订单类型(默认为1) 1:普通订单 2:续费订单 3:升级订单 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName = "ordertype")] + public int? Ordertype { get; set; } + + /// + /// Desc:订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "upgradeorderids")] + public string? Upgradeorderids { get; set; } + + /// + /// Desc:升级补差总额(当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "totalupgradevalue")] + public int? Totalupgradevalue { get; set; } + + /// + /// Desc:应付金额(默认为子产品原价) 当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "needpay")] + public decimal? Needpay { get; set; } + + /// + /// Desc:是否同时开通订单(默认为0,需要开通订单权限) 0:否 1:是 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "openorder")] + public int? Openorder { get; set; } + + /// + /// Desc:订单号(上海CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "szzyorderid")] + public long? Szzyorderid { get; set; } + + /// + /// Desc:订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "orderstatus")] + public string? Orderstatus { get; set; } + + /// + /// Desc:接口返回下单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "ctime")] + public DateTime? Ctime { get; set; } + + /// + /// Desc:接口返回应付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "returnneedpay")] + public int? Returnneedpay { get; set; } + + /// + /// Desc:合同编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "contractcode")] + public string? Contractcode { get; set; } + + /// + /// Desc:返回码(0:成功,>0:错误码) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "ret")] + public int? Ret { get; set; } + + /// + /// Desc:错误信息(当ret>0时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "msg")] + public string? Msg { get; set; } + + /// + /// Desc:接口返回详情 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "returndetail")] + public string? Returndetail { get; set; } + + /// + /// Desc:操作人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "inneruserid")] + public int? Inneruserid { get; set; } + + /// + /// Desc:订单开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "otime")] + public DateTime? Otime { get; set; } + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "resid")] + public string? Resid { get; set; } + + /// + /// Desc:请求订单接口状态,1:成功,0:失败 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "requeststatus")] + public int? Requeststatus { get; set; } + + /// + /// Desc:是否月结 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName = "isfinancepay")] + public int? Isfinancepay { get; set; } + + /// + /// Desc:月结日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "finacepaydate")] + public DateTime? Finacepaydate { get; set; } + + /// + /// Desc:订单修改备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "remark")] + public string? Remark { get; set; } + + /// + /// Desc:实际支付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "finalpay")] + public decimal? Finalpay { get; set; } + + /// + /// Desc:剩余金额 + /// Default:0.00 + /// Nullable:True + /// + [SugarColumn(ColumnName = "balancepay")] + public decimal? Balancepay { get; set; } + + /// + /// Desc:订单原价 + /// Default:0.00 + /// Nullable:True + /// + [SugarColumn(ColumnName = "originpay")] + public decimal? Originpay { get; set; } + + /// + /// Desc:订单状态名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "orderstatusname")] + public string? Orderstatusname { get; set; } + + /// + /// Desc:客服操作时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "operatetime")] + public DateTime? Operatetime { get; set; } + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "stime")] + public string? Stime { get; set; } + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "etime")] + public string? Etime { get; set; } + + /// + /// Desc:订单暂停权限备注说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "suspendcomment")] + public string? Suspendcomment { get; set; } + + /// + /// Desc:更新订单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "updateordertime")] + public DateTime? Updateordertime { get; set; } + + /// + /// Desc:是否开通 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName = "isopen")] + public int? Isopen { get; set; } + + /// + /// Desc:到期时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "endtime")] + public DateTime? Endtime { get; set; } + + /// + /// Desc:售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属) 0:总公司负责售后服务 1:分公司负责售后服务 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName = "teamserve")] + public int? Teamserve { get; set; } + + /// + /// Desc:分成比例文本 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "fctext")] + public string? Fctext { get; set; } + + /// + /// Desc:客户微信用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "customerusername")] + public string? Customerusername { get; set; } + + /// + /// Desc:到账金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "arrivalpay")] + public decimal? Arrivalpay { get; set; } + + /// + /// Desc:到账时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "arrivaltime")] + public DateTime? Arrivaltime { get; set; } + + /// + /// Desc:客户来源。1:推广资源,2:线下资源,3:自找资源 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "source")] + public string? Source { get; set; } + + /// + /// Desc:姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "cname")] + public string? Cname { get; set; } + + /// + /// Desc:开通天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "opendays")] + public int? Opendays { get; set; } + + /// + /// Desc:订单用户归类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "customerclassify")] + public string? Customerclassify { get; set; } + + /// + /// Desc:订单部门 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "saledeptid")] + public int? Saledeptid { get; set; } + + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "softusername")] + public string? Softusername { get; set; } + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "channel")] + public int? Channel { get; set; } + + /// + /// Desc:套数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "booknum")] + public int? Booknum { get; set; } + + /// + /// Desc:开通用户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "openuser")] + public string? Openuser { get; set; } + + /// + /// Desc:子类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "productcode")] + public string? Productcode { get; set; } + + /// + /// Desc:大类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "bigproductcode")] + public string? Bigproductcode { get; set; } + + /// + /// Desc:是否支付,0:未支付,1:已经支付 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "ispayed")] + public int? Ispayed { get; set; } + + /// + /// Desc:支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "paytype")] + public int? Paytype { get; set; } + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "username")] + public string? Username { get; set; } + + /// + /// Desc:客户端IP地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "sIP")] + public string? SIP { get; set; } + + /// + /// Desc:风控状态:1 通过,0 未通过 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName = "riskctrlstatus")] + public int? Riskctrlstatus { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "appusername")] + public string? Appusername { get; set; } + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "companycode")] + public string? Companycode { get; set; } + + /// + /// Desc:合同状态:0 新建 1:已签合同 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "contractstatus")] + public int? Contractstatus { get; set; } + + /// + /// Desc:合同签订时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "contractctime")] + public DateTime? Contractctime { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "qywxstatus")] + public int? Qywxstatus { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "qywxopendate")] + public DateTime? Qywxopendate { get; set; } + + /// + /// Desc:活动产品code + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "activeproductcode")] + public string? Activeproductcode { get; set; } + + /// + /// Desc:活动产品信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "activeproductext")] + public string? Activeproductext { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "istest")] + public int? Istest { get; set; } + + /// + /// Desc:1:人工录音回访 2、视频 3:智能回访 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "hashgrecord")] + public int? Hashgrecord { get; set; } + + /// + /// Desc:身份证 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "idcard")] + public string? Idcard { get; set; } + + /// + /// Desc:***第三方平台订单号*** + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "outorderno")] + public string? Outorderno { get; set; } + + /// + /// Desc:订单时间戳字段 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName = "utime")] + public DateTime? Utime { get; set; } + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "giftdays")] + public int? Giftdays { get; set; } + + /// + /// Desc:合规驳回说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "rejectremark")] + public string? Rejectremark { get; set; } + + /// + /// Desc:赠送第二产品天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "giftdays2")] + public int? Giftdays2 { get; set; } + + /// + /// Desc:企业微信外部联系人的userid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "external_userid")] + public string? External_userid { get; set; } + + /// + /// Desc:企业微信好友ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "wework_remoteid")] + public string? Wework_remoteid { get; set; } + + /// + /// Desc:结算类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "settletype")] + public int? Settletype { get; set; } + + /// + /// Desc:附件名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "fujian")] + public string? Fujian { get; set; } + + /// + /// Desc:微信小店单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "wXShopOrderNo")] + public string? WXShopOrderNo { get; set; } + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:True + /// + [SugarColumn(ColumnName = "last_modify_time")] + public DateTime? Last_modify_time { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "retp")] + public decimal? Retp { get; set; } + + /// + /// Desc:部门编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "deptcode")] + public string? Deptcode { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "estimateotime")] + public DateTime? Estimateotime { get; set; } + + /// + /// 回访开始时间 + /// + [SugarColumn(ColumnName = "ai_hgrecord_stime")] + public string? AiHgrecordStime { get; set; } + + /// + /// 回访结束时间 + /// + [SugarColumn(ColumnName = "ai_hgrecord_etime")] + public string? AiHgrecordEtime { get; set; } + + /// + /// 智能外呼状态 + /// -1、忽略不做智能外呼 + /// 0、尚未进行智能外呼 + /// 1、等待AI外呼 + /// 2、已提交AI外呼 + /// 3、AI外呼失败(未答完) + /// 4、AI外呼未接通 + /// 5、AI外呼成功 + /// 6、等待AI重拨 + /// 7、AI外呼失败(挂断) + /// + [SugarColumn(ColumnName = "ai_hgrecord_status")] + public int? AiHgrecordStatus { get; set; } + + /// + /// 智能外呼状态名称 + /// + [SugarColumn(ColumnName = "ai_hgrecord_statusname")] + public string? AiHgrecordStatusname + { get { return AiHgrecordStatusnameKV[AiHgrecordStatus.Value]; } } + + /// + /// 是否有外呼录音 + /// + [SugarColumn(ColumnName = "Hasaiaudio")] + public int? Hasaiaudio { get; set; } + + private static Dictionary GetAiHgrecordStatusnameKV() + { + Dictionary Ai_hgrecord_statusnameKV = new() + { + {-2, "AI重拨失败" }, + { -1, "忽略不做AI外呼" }, + { 0, "尚未进行AI外呼" }, + { 1, "等待AI外呼" }, + { 2, "已提交AI外呼" }, + { 3, "AI外呼失败(未答完)" }, + { 4, "AI外呼未接通" }, + { 5, "AI外呼成功" }, + { 6, "等待AI重拨" }, + { 7, "AI外呼失败(挂断)" }, + { 8, "AI外呼取消" }, + { 9, "人工回访成功" } + }; + return Ai_hgrecord_statusnameKV; + } + + private static Dictionary AiHgrecordStatusnameKV = GetAiHgrecordStatusnameKV(); + } +} \ No newline at end of file diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorder514.cs b/SA.Entity/zxdcrm_Models/WxSzzyorder514.cs new file mode 100644 index 0000000..0bc4eb6 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorder514.cs @@ -0,0 +1,667 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorder_514")] + public partial class WxSzzyorder514 + { + public WxSzzyorder514(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:分公司号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="employeeid")] + public string? Employeeid {get;set;} + + /// + /// Desc:分公司密码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="password")] + public string? Password {get;set;} + + /// + /// Desc:分公司用户ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + /// + /// Desc:子产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductid")] + public int? Subproductid {get;set;} + + /// + /// Desc:子产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单类型(默认为1) 1:普通订单 2:续费订单 3:升级订单 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="ordertype")] + public int? Ordertype {get;set;} + + /// + /// Desc:订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="upgradeorderids")] + public string? Upgradeorderids {get;set;} + + /// + /// Desc:升级补差总额(当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="totalupgradevalue")] + public int? Totalupgradevalue {get;set;} + + /// + /// Desc:应付金额(默认为子产品原价) 当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="needpay")] + public decimal? Needpay {get;set;} + + /// + /// Desc:是否同时开通订单(默认为0,需要开通订单权限) 0:否 1:是 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openorder")] + public int? Openorder {get;set;} + + /// + /// Desc:订单号(上海CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatus")] + public string? Orderstatus {get;set;} + + /// + /// Desc:接口返回下单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:下单时产品金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returnneedpay")] + public int? Returnneedpay {get;set;} + + /// + /// Desc:合同编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractcode")] + public string? Contractcode {get;set;} + + /// + /// Desc:是否打折(>0 就时有打折) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ret")] + public int? Ret {get;set;} + + /// + /// Desc:错误信息(当ret>0时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msg")] + public string? Msg {get;set;} + + /// + /// Desc:接口返回详情 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returndetail")] + public string? Returndetail {get;set;} + + /// + /// Desc:操作人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="inneruserid")] + public int? Inneruserid {get;set;} + + /// + /// Desc:订单开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:请求订单接口状态,1:成功,0:失败 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="requeststatus")] + public int? Requeststatus {get;set;} + + /// + /// Desc:是否月结 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isfinancepay")] + public int? Isfinancepay {get;set;} + + /// + /// Desc:月结日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finacepaydate")] + public DateTime? Finacepaydate {get;set;} + + /// + /// Desc:订单修改备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:实际支付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finalpay")] + public decimal? Finalpay {get;set;} + + /// + /// Desc:订单状态名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatusname")] + public string? Orderstatusname {get;set;} + + /// + /// Desc:客服操作时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operatetime")] + public DateTime? Operatetime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="stime")] + public string? Stime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="etime")] + public string? Etime {get;set;} + + /// + /// Desc:订单暂停权限备注说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="suspendcomment")] + public string? Suspendcomment {get;set;} + + /// + /// Desc:更新订单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateordertime")] + public DateTime? Updateordertime {get;set;} + + /// + /// Desc:是否开通 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isopen")] + public int? Isopen {get;set;} + + /// + /// Desc:到期时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属) 0:总公司负责售后服务 1:分公司负责售后服务 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="teamserve")] + public int? Teamserve {get;set;} + + /// + /// Desc:分成比例文本 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fctext")] + public string? Fctext {get;set;} + + /// + /// Desc:客户微信用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerusername")] + public string? Customerusername {get;set;} + + /// + /// Desc:到账金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc:到账时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivaltime")] + public DateTime? Arrivaltime {get;set;} + + /// + /// Desc:客户来源。1:推广资源,2:线下资源,3:自找资源 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="source")] + public string? Source {get;set;} + + /// + /// Desc:姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cname")] + public string? Cname {get;set;} + + /// + /// Desc:开通天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays")] + public int? Opendays {get;set;} + + /// + /// Desc:订单用户归类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerclassify")] + public string? Customerclassify {get;set;} + + /// + /// Desc:订单部门 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="saledeptid")] + public int? Saledeptid {get;set;} + + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:套数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="booknum")] + public int? Booknum {get;set;} + + /// + /// Desc:开通用户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:子类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:大类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bigproductcode")] + public string? Bigproductcode {get;set;} + + /// + /// Desc:是否支付,0:未支付,1:已经支付 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ispayed")] + public int? Ispayed {get;set;} + + /// + /// Desc:支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytype")] + public int? Paytype {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:客户端IP地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sIP")] + public string? SIP {get;set;} + + /// + /// Desc:风控状态:1 通过,0 未通过 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="riskctrlstatus")] + public int? Riskctrlstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appusername")] + public string? Appusername {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:合同状态:0 新建 1:已签合同 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractstatus")] + public int? Contractstatus {get;set;} + + /// + /// Desc:合同签订时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractctime")] + public DateTime? Contractctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxstatus")] + public int? Qywxstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxopendate")] + public DateTime? Qywxopendate {get;set;} + + /// + /// Desc:活动产品code + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductcode")] + public string? Activeproductcode {get;set;} + + /// + /// Desc:活动产品信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductext")] + public string? Activeproductext {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="istest")] + public int? Istest {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hashgrecord")] + public int? Hashgrecord {get;set;} + + /// + /// Desc:身份证 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="idcard")] + public string? Idcard {get;set;} + + /// + /// Desc:***第三方平台订单号*** + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderno")] + public string? Outorderno {get;set;} + + /// + /// Desc:订单时间戳字段 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc:合规驳回说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rejectremark")] + public string? Rejectremark {get;set;} + + /// + /// Desc:赠送第二产品天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays2")] + public int? Giftdays2 {get;set;} + + /// + /// Desc:企业微信外部联系人的userid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="external_userid")] + public string? External_userid {get;set;} + + /// + /// Desc:企业微信好友ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="wework_remoteid")] + public string? Wework_remoteid {get;set;} + + /// + /// Desc:结算方式 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="settletype")] + public int? Settletype {get;set;} + + /// + /// Desc:附件名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fujian")] + public string? Fujian {get;set;} + + /// + /// Desc:微信小店单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="wXShopOrderNo")] + public string? WXShopOrderNo {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime? Last_modify_time {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="retp")] + public decimal? Retp {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderBack.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderBack.cs new file mode 100644 index 0000000..31344c9 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderBack.cs @@ -0,0 +1,659 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///上证综研订单表 + /// + [SugarTable("wx_szzyorder_back")] + public partial class WxSzzyorderBack + { + public WxSzzyorderBack(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:分公司号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="employeeid")] + public string? Employeeid {get;set;} + + /// + /// Desc:分公司密码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="password")] + public string? Password {get;set;} + + /// + /// Desc:分公司用户ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + /// + /// Desc:子产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductid")] + public int? Subproductid {get;set;} + + /// + /// Desc:子产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单类型(默认为1) 1:普通订单 2:续费订单 3:升级订单 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="ordertype")] + public int? Ordertype {get;set;} + + /// + /// Desc:订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="upgradeorderids")] + public string? Upgradeorderids {get;set;} + + /// + /// Desc:升级补差总额(当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="totalupgradevalue")] + public int? Totalupgradevalue {get;set;} + + /// + /// Desc:应付金额(默认为子产品原价) 当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="needpay")] + public decimal? Needpay {get;set;} + + /// + /// Desc:是否同时开通订单(默认为0,需要开通订单权限) 0:否 1:是 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openorder")] + public int? Openorder {get;set;} + + /// + /// Desc:订单号(上海CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatus")] + public string? Orderstatus {get;set;} + + /// + /// Desc:接口返回下单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:下单时产品金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returnneedpay")] + public int? Returnneedpay {get;set;} + + /// + /// Desc:合同编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractcode")] + public string? Contractcode {get;set;} + + /// + /// Desc:是否打折(>0 就时有打折) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ret")] + public int? Ret {get;set;} + + /// + /// Desc:错误信息(当ret>0时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msg")] + public string? Msg {get;set;} + + /// + /// Desc:接口返回详情 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returndetail")] + public string? Returndetail {get;set;} + + /// + /// Desc:操作人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="inneruserid")] + public int? Inneruserid {get;set;} + + /// + /// Desc:订单开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:请求订单接口状态,1:成功,0:失败 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="requeststatus")] + public int? Requeststatus {get;set;} + + /// + /// Desc:是否月结 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isfinancepay")] + public int? Isfinancepay {get;set;} + + /// + /// Desc:月结日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finacepaydate")] + public DateTime? Finacepaydate {get;set;} + + /// + /// Desc:订单修改备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:实际支付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finalpay")] + public decimal? Finalpay {get;set;} + + /// + /// Desc:订单状态名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatusname")] + public string? Orderstatusname {get;set;} + + /// + /// Desc:客服操作时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operatetime")] + public DateTime? Operatetime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="stime")] + public string? Stime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="etime")] + public string? Etime {get;set;} + + /// + /// Desc:订单暂停权限备注说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="suspendcomment")] + public string? Suspendcomment {get;set;} + + /// + /// Desc:更新订单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateordertime")] + public DateTime? Updateordertime {get;set;} + + /// + /// Desc:是否开通 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isopen")] + public int? Isopen {get;set;} + + /// + /// Desc:到期时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属) 0:总公司负责售后服务 1:分公司负责售后服务 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="teamserve")] + public int? Teamserve {get;set;} + + /// + /// Desc:分成比例文本 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fctext")] + public string? Fctext {get;set;} + + /// + /// Desc:客户微信用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerusername")] + public string? Customerusername {get;set;} + + /// + /// Desc:到账金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc:到账时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivaltime")] + public DateTime? Arrivaltime {get;set;} + + /// + /// Desc:客户来源。1:推广资源,2:线下资源,3:自找资源 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="source")] + public string? Source {get;set;} + + /// + /// Desc:姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cname")] + public string? Cname {get;set;} + + /// + /// Desc:开通天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays")] + public int? Opendays {get;set;} + + /// + /// Desc:订单用户归类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerclassify")] + public string? Customerclassify {get;set;} + + /// + /// Desc:订单部门 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="saledeptid")] + public int? Saledeptid {get;set;} + + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:套数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="booknum")] + public int? Booknum {get;set;} + + /// + /// Desc:开通用户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:子类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:大类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bigproductcode")] + public string? Bigproductcode {get;set;} + + /// + /// Desc:是否支付,0:未支付,1:已经支付 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ispayed")] + public int? Ispayed {get;set;} + + /// + /// Desc:支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytype")] + public int? Paytype {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:客户端IP地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sIP")] + public string? SIP {get;set;} + + /// + /// Desc:风控状态:1 通过,0 未通过 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="riskctrlstatus")] + public int? Riskctrlstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appusername")] + public string? Appusername {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:合同状态:0 新建 1:已签合同 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractstatus")] + public int? Contractstatus {get;set;} + + /// + /// Desc:合同签订时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractctime")] + public DateTime? Contractctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxstatus")] + public int? Qywxstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxopendate")] + public DateTime? Qywxopendate {get;set;} + + /// + /// Desc:活动产品code + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductcode")] + public string? Activeproductcode {get;set;} + + /// + /// Desc:活动产品信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductext")] + public string? Activeproductext {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="istest")] + public int? Istest {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="hashgrecord")] + public int? Hashgrecord {get;set;} + + /// + /// Desc:身份证 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="idcard")] + public string? Idcard {get;set;} + + /// + /// Desc:***第三方平台订单号*** + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderno")] + public string? Outorderno {get;set;} + + /// + /// Desc:订单时间戳字段 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc:合规驳回说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rejectremark")] + public string? Rejectremark {get;set;} + + /// + /// Desc:赠送第二产品天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays2")] + public int? Giftdays2 {get;set;} + + /// + /// Desc:企业微信外部联系人的userid + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="external_userid")] + public string? External_userid {get;set;} + + /// + /// Desc:企业微信好友ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="wework_remoteid")] + public string? Wework_remoteid {get;set;} + + /// + /// Desc:结算方式 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="settletype")] + public int? Settletype {get;set;} + + /// + /// Desc:附件名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fujian")] + public string? Fujian {get;set;} + + /// + /// Desc:微信小店单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="wXShopOrderNo")] + public string? WXShopOrderNo {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime? Last_modify_time {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderCopy1.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderCopy1.cs new file mode 100644 index 0000000..aac5662 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderCopy1.cs @@ -0,0 +1,547 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///上证综研订单表 + /// + [SugarTable("wx_szzyorder_copy1")] + public partial class WxSzzyorderCopy1 + { + public WxSzzyorderCopy1(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:分公司号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="employeeid")] + public string? Employeeid {get;set;} + + /// + /// Desc:分公司密码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="password")] + public string? Password {get;set;} + + /// + /// Desc:分公司用户ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productid")] + public int? Productid {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productname")] + public string? Productname {get;set;} + + /// + /// Desc:子产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductid")] + public int? Subproductid {get;set;} + + /// + /// Desc:子产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单类型(默认为1) 1:普通订单 2:续费订单 3:升级订单 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="ordertype")] + public int? Ordertype {get;set;} + + /// + /// Desc:订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="upgradeorderids")] + public string? Upgradeorderids {get;set;} + + /// + /// Desc:升级补差总额(当OrderType=3时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="totalupgradevalue")] + public int? Totalupgradevalue {get;set;} + + /// + /// Desc:应付金额(默认为子产品原价) 当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="needpay")] + public decimal? Needpay {get;set;} + + /// + /// Desc:是否同时开通订单(默认为0,需要开通订单权限) 0:否 1:是 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openorder")] + public int? Openorder {get;set;} + + /// + /// Desc:订单号(上海CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatus")] + public string? Orderstatus {get;set;} + + /// + /// Desc:接口返回下单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:接口返回应付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returnneedpay")] + public int? Returnneedpay {get;set;} + + /// + /// Desc:合同编号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractcode")] + public string? Contractcode {get;set;} + + /// + /// Desc:返回码(0:成功,>0:错误码) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ret")] + public int? Ret {get;set;} + + /// + /// Desc:错误信息(当ret>0时有效) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="msg")] + public string? Msg {get;set;} + + /// + /// Desc:接口返回详情 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="returndetail")] + public string? Returndetail {get;set;} + + /// + /// Desc:操作人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="inneruserid")] + public int? Inneruserid {get;set;} + + /// + /// Desc:订单开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:请求订单接口状态,1:成功,0:失败 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="requeststatus")] + public int? Requeststatus {get;set;} + + /// + /// Desc:是否月结 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isfinancepay")] + public int? Isfinancepay {get;set;} + + /// + /// Desc:月结日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finacepaydate")] + public DateTime? Finacepaydate {get;set;} + + /// + /// Desc:订单修改备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:实际支付金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="finalpay")] + public decimal? Finalpay {get;set;} + + /// + /// Desc:订单状态名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderstatusname")] + public string? Orderstatusname {get;set;} + + /// + /// Desc:客服操作时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="operatetime")] + public DateTime? Operatetime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="stime")] + public string? Stime {get;set;} + + /// + /// Desc:订单暂停结束时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="etime")] + public string? Etime {get;set;} + + /// + /// Desc:订单暂停权限备注说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="suspendcomment")] + public string? Suspendcomment {get;set;} + + /// + /// Desc:更新订单时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="updateordertime")] + public DateTime? Updateordertime {get;set;} + + /// + /// Desc:是否开通 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isopen")] + public int? Isopen {get;set;} + + /// + /// Desc:到期时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime")] + public DateTime? Endtime {get;set;} + + /// + /// Desc:售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属) 0:总公司负责售后服务 1:分公司负责售后服务 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="teamserve")] + public int? Teamserve {get;set;} + + /// + /// Desc:分成比例文本 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="fctext")] + public string? Fctext {get;set;} + + /// + /// Desc:客户微信用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerusername")] + public string? Customerusername {get;set;} + + /// + /// Desc:到账金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc:到账时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivaltime")] + public DateTime? Arrivaltime {get;set;} + + /// + /// Desc:客户来源。1:推广资源,2:线下资源,3:自找资源 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="source")] + public string? Source {get;set;} + + /// + /// Desc:姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="cname")] + public string? Cname {get;set;} + + /// + /// Desc:开通天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays")] + public int? Opendays {get;set;} + + /// + /// Desc:订单用户归类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customerclassify")] + public string? Customerclassify {get;set;} + + /// + /// Desc:订单部门 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="saledeptid")] + public int? Saledeptid {get;set;} + + /// + /// Desc:软件用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public string? Channel {get;set;} + + /// + /// Desc:套数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="booknum")] + public int? Booknum {get;set;} + + /// + /// Desc:开通用户 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:子类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:大类代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="bigproductcode")] + public string? Bigproductcode {get;set;} + + /// + /// Desc:是否支付,0:未支付,1:已经支付 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ispayed")] + public int? Ispayed {get;set;} + + /// + /// Desc:支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytype")] + public int? Paytype {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:客户端IP地址 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sIP")] + public string? SIP {get;set;} + + /// + /// Desc:风控状态:1 通过,0 未通过 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="riskctrlstatus")] + public int? Riskctrlstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="appusername")] + public string? Appusername {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:合同状态:0 新建 1:已签合同 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractstatus")] + public int? Contractstatus {get;set;} + + /// + /// Desc:合同签订时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractctime")] + public DateTime? Contractctime {get;set;} + + /// + /// Desc:企业微信开通状态(0:未开通,1:已开通) + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxstatus")] + public int? Qywxstatus {get;set;} + + /// + /// Desc:企业微信开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="qywxopendate")] + public DateTime? Qywxopendate {get;set;} + + /// + /// Desc:活动产品code + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductcode")] + public string? Activeproductcode {get;set;} + + /// + /// Desc:活动产品信息 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeproductext")] + public string? Activeproductext {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift.cs new file mode 100644 index 0000000..fbec898 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift.cs @@ -0,0 +1,259 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorder_handgift")] + public partial class WxSzzyorderHandgift + { + public WxSzzyorderHandgift(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:父ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mainorderid")] + public int? Mainorderid {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:主产品SUBID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:主产品SUBCODE + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productcode")] + public string Productcode {get;set;} + + /// + /// Desc:订单状态 :0未开通、1已开通、2审核不通过,3.关闭 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderstatus")] + public int Orderstatus {get;set;} + + /// + /// Desc:赠送产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductcode")] + public string? Subproductcode {get;set;} + + /// + /// Desc:赠送产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="createuser")] + public string Createuser {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="optime")] + public DateTime? Optime {get;set;} + + /// + /// Desc:订单号(CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:外部--父订单号(如新媒体二的订单号) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="parentoutorderno")] + public string? Parentoutorderno {get;set;} + + /// + /// Desc:外部--旧的订单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="oldoutorderno")] + public string? Oldoutorderno {get;set;} + + /// + /// Desc:外部--原订单号关闭权限时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderclosetime")] + public DateTime? Outorderclosetime {get;set;} + + /// + /// Desc:外部--用户名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:审核备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkmemo")] + public string? Checkmemo {get;set;} + + /// + /// Desc:开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:0-单一产品、1-组合产品 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:关闭时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closetime")] + public DateTime? Closetime {get;set;} + + /// + /// Desc:关闭原因 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closememo")] + public string? Closememo {get;set;} + + /// + /// Desc:关闭人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closeuser")] + public string? Closeuser {get;set;} + + /// + /// Desc:模块ID,多个模块ID用","隔开 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="moduleid")] + public string? Moduleid {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:False + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime Last_modify_time {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220428.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220428.cs new file mode 100644 index 0000000..3d57fad --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220428.cs @@ -0,0 +1,251 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorder_handgift_20220428")] + public partial class WxSzzyorderHandgift20220428 + { + public WxSzzyorderHandgift20220428(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:父ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mainorderid")] + public int? Mainorderid {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:主产品SUBID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:主产品SUBCODE + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productcode")] + public string Productcode {get;set;} + + /// + /// Desc:订单状态 :0未开通、1已开通、2审核不通过,3.关闭 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderstatus")] + public int Orderstatus {get;set;} + + /// + /// Desc:赠送产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductcode")] + public string? Subproductcode {get;set;} + + /// + /// Desc:赠送产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="createuser")] + public string Createuser {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="optime")] + public DateTime? Optime {get;set;} + + /// + /// Desc:订单号(CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:外部--父订单号(如新媒体二的订单号) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="parentoutorderno")] + public string? Parentoutorderno {get;set;} + + /// + /// Desc:外部--旧的订单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="oldoutorderno")] + public string? Oldoutorderno {get;set;} + + /// + /// Desc:外部--原订单号关闭权限时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderclosetime")] + public DateTime? Outorderclosetime {get;set;} + + /// + /// Desc:外部--用户名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:审核备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkmemo")] + public string? Checkmemo {get;set;} + + /// + /// Desc:开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:0-单一产品、1-组合产品 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:关闭时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closetime")] + public DateTime? Closetime {get;set;} + + /// + /// Desc:关闭原因 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closememo")] + public string? Closememo {get;set;} + + /// + /// Desc:关闭人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closeuser")] + public string? Closeuser {get;set;} + + /// + /// Desc:模块ID,多个模块ID用","隔开 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="moduleid")] + public string? Moduleid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220505.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220505.cs new file mode 100644 index 0000000..26c3c4a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220505.cs @@ -0,0 +1,251 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorder_handgift_20220505")] + public partial class WxSzzyorderHandgift20220505 + { + public WxSzzyorderHandgift20220505(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:父ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mainorderid")] + public int? Mainorderid {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:主产品SUBID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:主产品SUBCODE + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productcode")] + public string Productcode {get;set;} + + /// + /// Desc:订单状态 :0未开通、1已开通、2审核不通过,3.关闭 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderstatus")] + public int Orderstatus {get;set;} + + /// + /// Desc:赠送产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductcode")] + public string? Subproductcode {get;set;} + + /// + /// Desc:赠送产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="createuser")] + public string Createuser {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="optime")] + public DateTime? Optime {get;set;} + + /// + /// Desc:订单号(CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:外部--父订单号(如新媒体二的订单号) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="parentoutorderno")] + public string? Parentoutorderno {get;set;} + + /// + /// Desc:外部--旧的订单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="oldoutorderno")] + public string? Oldoutorderno {get;set;} + + /// + /// Desc:外部--原订单号关闭权限时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderclosetime")] + public DateTime? Outorderclosetime {get;set;} + + /// + /// Desc:外部--用户名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:审核备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkmemo")] + public string? Checkmemo {get;set;} + + /// + /// Desc:开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:0-单一产品、1-组合产品 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:关闭时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closetime")] + public DateTime? Closetime {get;set;} + + /// + /// Desc:关闭原因 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closememo")] + public string? Closememo {get;set;} + + /// + /// Desc:关闭人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closeuser")] + public string? Closeuser {get;set;} + + /// + /// Desc:模块ID,多个模块ID用","隔开 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="moduleid")] + public string? Moduleid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220509.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220509.cs new file mode 100644 index 0000000..b76ac22 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift20220509.cs @@ -0,0 +1,251 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorder_handgift_20220509")] + public partial class WxSzzyorderHandgift20220509 + { + public WxSzzyorderHandgift20220509(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:父ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mainorderid")] + public int? Mainorderid {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:主产品SUBID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:主产品SUBCODE + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productcode")] + public string Productcode {get;set;} + + /// + /// Desc:订单状态 :0未开通、1已开通、2审核不通过,3.关闭 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderstatus")] + public int Orderstatus {get;set;} + + /// + /// Desc:赠送产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductcode")] + public string? Subproductcode {get;set;} + + /// + /// Desc:赠送产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="createuser")] + public string Createuser {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="optime")] + public DateTime? Optime {get;set;} + + /// + /// Desc:订单号(CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:外部--父订单号(如新媒体二的订单号) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="parentoutorderno")] + public string? Parentoutorderno {get;set;} + + /// + /// Desc:外部--旧的订单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="oldoutorderno")] + public string? Oldoutorderno {get;set;} + + /// + /// Desc:外部--原订单号关闭权限时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderclosetime")] + public DateTime? Outorderclosetime {get;set;} + + /// + /// Desc:外部--用户名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:审核备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkmemo")] + public string? Checkmemo {get;set;} + + /// + /// Desc:开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:0-单一产品、1-组合产品 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:关闭时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closetime")] + public DateTime? Closetime {get;set;} + + /// + /// Desc:关闭原因 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closememo")] + public string? Closememo {get;set;} + + /// + /// Desc:关闭人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closeuser")] + public string? Closeuser {get;set;} + + /// + /// Desc:模块ID,多个模块ID用","隔开 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="moduleid")] + public string? Moduleid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift22060901.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift22060901.cs new file mode 100644 index 0000000..65a9adf --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderHandgift22060901.cs @@ -0,0 +1,259 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorder_handgift_22060901")] + public partial class WxSzzyorderHandgift22060901 + { + public WxSzzyorderHandgift22060901(){ + + + } + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:父ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mainorderid")] + public int? Mainorderid {get;set;} + + /// + /// Desc:用户名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="softusername")] + public string? Softusername {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:主产品SUBID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:主产品SUBCODE + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productcode")] + public string Productcode {get;set;} + + /// + /// Desc:订单状态 :0未开通、1已开通、2审核不通过,3.关闭 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderstatus")] + public int Orderstatus {get;set;} + + /// + /// Desc:赠送产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductcode")] + public string? Subproductcode {get;set;} + + /// + /// Desc:赠送产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:订单备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + /// + /// Desc:创建用户 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="createuser")] + public string Createuser {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:渠道号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:赠送天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="openuser")] + public string? Openuser {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="optime")] + public DateTime? Optime {get;set;} + + /// + /// Desc:订单号(CRM系统生成) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc:外部--父订单号(如新媒体二的订单号) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="parentoutorderno")] + public string? Parentoutorderno {get;set;} + + /// + /// Desc:外部--旧的订单号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="oldoutorderno")] + public string? Oldoutorderno {get;set;} + + /// + /// Desc:外部--原订单号关闭权限时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="outorderclosetime")] + public DateTime? Outorderclosetime {get;set;} + + /// + /// Desc:外部--用户名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="userid")] + public string? Userid {get;set;} + + /// + /// Desc:审核备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkmemo")] + public string? Checkmemo {get;set;} + + /// + /// Desc:开通时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime")] + public DateTime? Otime {get;set;} + + /// + /// Desc:0-单一产品、1-组合产品 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:关闭时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closetime")] + public DateTime? Closetime {get;set;} + + /// + /// Desc:关闭原因 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closememo")] + public string? Closememo {get;set;} + + /// + /// Desc:关闭人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closeuser")] + public string? Closeuser {get;set;} + + /// + /// Desc:模块ID,多个模块ID用","隔开 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="moduleid")] + public string? Moduleid {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:False + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime Last_modify_time {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderdeposit.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderdeposit.cs new file mode 100644 index 0000000..1db2ef5 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderdeposit.cs @@ -0,0 +1,275 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderdeposit")] + public partial class WxSzzyorderdeposit + { + public WxSzzyorderdeposit(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytype")] + public int Paytype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytypename")] + public string? Paytypename {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paydate")] + public DateTime? Paydate {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payprice")] + public decimal Payprice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payname")] + public string Payname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditstatus")] + public int? Auditstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc:-1:开通;0:未使用;1:已使用;(等于1状态的时候订金才能退款,开通状态下订单退款) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isuse")] + public int? Isuse {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:订金关联的订单号(使用订金的时候确认订单号) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="tradeno")] + public string? Tradeno {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc:提交人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creator")] + public int? Creator {get;set;} + + /// + /// Desc:提交人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creatorname")] + public string? Creatorname {get;set;} + + /// + /// Desc:驳回说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rejectremark")] + public string? Rejectremark {get;set;} + + /// + /// Desc:自动对账结果 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkreslut")] + public string? Checkreslut {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkpaytime")] + public DateTime? Checkpaytime {get;set;} + + /// + /// Desc:最后剩余金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lastprice")] + public decimal? Lastprice {get;set;} + + /// + /// Desc:已使用金额 + /// Default:0.00 + /// Nullable:True + /// + [SugarColumn(ColumnName="useprice")] + public decimal? Useprice {get;set;} + + /// + /// Desc:冻结金额 + /// Default:0.00 + /// Nullable:True + /// + [SugarColumn(ColumnName="frozenprice")] + public decimal? Frozenprice {get;set;} + + /// + /// Desc:1:补充数据 0:否 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isbu")] + public int? Isbu {get;set;} + + /// + /// Desc:补充时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="butime")] + public DateTime? Butime {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:False + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime Last_modify_time {get;set;} + + /// + /// Desc:部门编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderdeposit514.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderdeposit514.cs new file mode 100644 index 0000000..ec62e62 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderdeposit514.cs @@ -0,0 +1,259 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderdeposit_514")] + public partial class WxSzzyorderdeposit514 + { + public WxSzzyorderdeposit514(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytype")] + public int Paytype {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytypename")] + public string? Paytypename {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paydate")] + public DateTime? Paydate {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payprice")] + public decimal Payprice {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payname")] + public string Payname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditstatus")] + public int? Auditstatus {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc:-1:开通;0:未使用;1:已使用;(等于1状态的时候订金才能退款,开通状态下订单退款) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isuse")] + public int? Isuse {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:订金关联的订单号(使用订金的时候确认订单号) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="tradeno")] + public string? Tradeno {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creator")] + public int? Creator {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creatorname")] + public string? Creatorname {get;set;} + + /// + /// Desc:驳回说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rejectremark")] + public string? Rejectremark {get;set;} + + /// + /// Desc:自动审核请求结果 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkreslut")] + public string? Checkreslut {get;set;} + + /// + /// Desc:自动对账付款时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkpaytime")] + public DateTime? Checkpaytime {get;set;} + + /// + /// Desc:最后剩余金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lastprice")] + public decimal? Lastprice {get;set;} + + /// + /// Desc:已使用金额 + /// Default:0.00 + /// Nullable:True + /// + [SugarColumn(ColumnName="useprice")] + public decimal? Useprice {get;set;} + + /// + /// Desc:冻结金额 + /// Default:0.00 + /// Nullable:True + /// + [SugarColumn(ColumnName="frozenprice")] + public decimal? Frozenprice {get;set;} + + /// + /// Desc:1:补充数据 0:否 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isbu")] + public int? Isbu {get;set;} + + /// + /// Desc:补充时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="butime")] + public DateTime? Butime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyordermodulerefund.cs b/SA.Entity/zxdcrm_Models/WxSzzyordermodulerefund.cs new file mode 100644 index 0000000..70f2bda --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyordermodulerefund.cs @@ -0,0 +1,267 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyordermodulerefund")] + public partial class WxSzzyordermodulerefund + { + public WxSzzyordermodulerefund(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="priid")] + public int Priid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="id")] + public int? Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public string? Channel {get;set;} + + /// + /// Desc:退款时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refunddate")] + public DateTime? Refunddate {get;set;} + + /// + /// Desc:退款金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refundprice")] + public decimal? Refundprice {get;set;} + + /// + /// Desc:退款类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refundtype")] + public int? Refundtype {get;set;} + + /// + /// Desc:退款比例 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refundpercentage")] + public decimal? Refundpercentage {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="account")] + public string? Account {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="midproductid")] + public string? Midproductid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="moduleid")] + public string? Moduleid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="szzyorderid")] + public long? Szzyorderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ismorepay")] + public int? Ismorepay {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="starttime2")] + public DateTime? Starttime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="endtime2")] + public DateTime? Endtime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="usedays")] + public int? Usedays {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendays2")] + public int? Opendays2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="price2")] + public decimal? Price2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime2")] + public DateTime? Ctime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="otime2")] + public DateTime? Otime2 {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="json_szzy_order_id")] + public string? Json_szzy_order_id {get;set;} + + /// + /// Desc:剩余天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="restday")] + public int? Restday {get;set;} + + /// + /// Desc:模块初始天数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="module_openday")] + public int? Module_openday {get;set;} + + /// + /// Desc:模块初始金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="module_arrivalpay")] + public decimal? Module_arrivalpay {get;set;} + + /// + /// Desc:模块应退金额(*比例) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="module_refundprice")] + public decimal? Module_refundprice {get;set;} + + /// + /// Desc:区分订单或模块 10为订单 10以外为模块 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="is_order")] + public int? Is_order {get;set;} + + /// + /// Desc:0否 1 是 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isoneday")] + public int? Isoneday {get;set;} + + /// + /// Desc:模块应退金额(原始) + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="module_refundprice_bk")] + public decimal Module_refundprice_bk {get;set;} + + /// + /// Desc:10是 20否 是否module_price表抵扣过 + /// Default:20 + /// Nullable:True + /// + [SugarColumn(ColumnName="is_deduction")] + public byte? Is_deduction {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderpay.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderpay.cs new file mode 100644 index 0000000..5b44262 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderpay.cs @@ -0,0 +1,235 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///支付记录表 + /// + [SugarTable("wx_szzyorderpay")] + public partial class WxSzzyorderpay + { + public WxSzzyorderpay(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:下单金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="needpay")] + public decimal Needpay {get;set;} + + /// + /// Desc:支付类型 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytype")] + public int Paytype {get;set;} + + /// + /// Desc:支付类型名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytypename")] + public string Paytypename {get;set;} + + /// + /// Desc:支付时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paydate")] + public DateTime? Paydate {get;set;} + + /// + /// Desc:支付金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payprice")] + public decimal Payprice {get;set;} + + /// + /// Desc:付款人姓名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payname")] + public string Payname {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:是否审核 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc:添加时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:支付流水 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:是否删除 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="tradeno")] + public string? Tradeno {get;set;} + + /// + /// Desc:提交人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creator")] + public int? Creator {get;set;} + + /// + /// Desc:提交人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creatorname")] + public string? Creatorname {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:True + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime? Last_modify_time {get;set;} + + /// + /// Desc:驳回说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rejectremark")] + public string? Rejectremark {get;set;} + + /// + /// Desc:自动对账结果 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkreslut")] + public string? Checkreslut {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkpaytime")] + public DateTime? Checkpaytime {get;set;} + + /// + /// Desc:订金表ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="depositid")] + public int? Depositid {get;set;} + + /// + /// Desc:部门编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderpay514.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderpay514.cs new file mode 100644 index 0000000..9522697 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderpay514.cs @@ -0,0 +1,227 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderpay_514")] + public partial class WxSzzyorderpay514 + { + public WxSzzyorderpay514(){ + + + } + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:下单金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="needpay")] + public decimal Needpay {get;set;} + + /// + /// Desc:支付类型 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytype")] + public int Paytype {get;set;} + + /// + /// Desc:支付类型名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytypename")] + public string Paytypename {get;set;} + + /// + /// Desc:支付时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paydate")] + public DateTime? Paydate {get;set;} + + /// + /// Desc:支付金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payprice")] + public decimal Payprice {get;set;} + + /// + /// Desc:付款人姓名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payname")] + public string Payname {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:是否审核 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc:添加时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:支付流水 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:是否删除 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="tradeno")] + public string? Tradeno {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creator")] + public int? Creator {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creatorname")] + public string? Creatorname {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime? Last_modify_time {get;set;} + + /// + /// Desc:驳回说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rejectremark")] + public string? Rejectremark {get;set;} + + /// + /// Desc:自动审核请求结果 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkreslut")] + public string? Checkreslut {get;set;} + + /// + /// Desc:自动对账 付款时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="checkpaytime")] + public DateTime? Checkpaytime {get;set;} + + /// + /// Desc:订金表ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="depositid")] + public int? Depositid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderpayBack.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderpayBack.cs new file mode 100644 index 0000000..0b4afbf --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderpayBack.cs @@ -0,0 +1,187 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///支付记录表 + /// + [SugarTable("wx_szzyorderpay_back")] + public partial class WxSzzyorderpayBack + { + public WxSzzyorderpayBack(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:订单号 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:下单金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="needpay")] + public decimal Needpay {get;set;} + + /// + /// Desc:支付类型 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytype")] + public int Paytype {get;set;} + + /// + /// Desc:支付类型名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="paytypename")] + public string Paytypename {get;set;} + + /// + /// Desc:支付时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paydate")] + public DateTime? Paydate {get;set;} + + /// + /// Desc:支付金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payprice")] + public decimal Payprice {get;set;} + + /// + /// Desc:付款人姓名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="payname")] + public string Payname {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:是否审核 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc:添加时间 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:支付流水 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:是否删除 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="tradeno")] + public string? Tradeno {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creator")] + public int? Creator {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creatorname")] + public string? Creatorname {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderpayExt.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderpayExt.cs new file mode 100644 index 0000000..786dbb1 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderpayExt.cs @@ -0,0 +1,35 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderpayext")] + public partial class WxSzzyorderpayext + { + public WxSzzyorderpayext(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="arrivalpay")] + public decimal? Arrivalpay {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderpayuselog.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderpayuselog.cs new file mode 100644 index 0000000..bff8f1b --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderpayuselog.cs @@ -0,0 +1,131 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderpayuselog")] + public partial class WxSzzyorderpayuselog + { + public WxSzzyorderpayuselog(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:订单ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc:到账ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="depositid")] + public int? Depositid {get;set;} + + /// + /// Desc:支付类型 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytype")] + public int? Paytype {get;set;} + + /// + /// Desc:支付类型名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="paytypename")] + public string? Paytypename {get;set;} + + /// + /// Desc:支付流水号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payno")] + public string? Payno {get;set;} + + /// + /// Desc:使用金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="useprice")] + public decimal? Useprice {get;set;} + + /// + /// Desc:使用时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="usetime")] + public DateTime? Usetime {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:1:进账+ 2:使用- 3:取消使用+ 4:取消到账- 5:订单取消使用+ 6:退款- 7:余额退款- 8:订单冻结金额- 9:退款解冻+ 10:退单取消使用+ + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="usetype")] + public int? Usetype {get;set;} + + /// + /// Desc:在执行完当前节点可用金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lastprice")] + public decimal? Lastprice {get;set;} + + /// + /// Desc:描述 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="memo")] + public string? Memo {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderrefund.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderrefund.cs new file mode 100644 index 0000000..57b1fe5 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderrefund.cs @@ -0,0 +1,235 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///退款记录表 + /// + [SugarTable("wx_szzyorderrefund")] + public partial class WxSzzyorderrefund + { + public WxSzzyorderrefund(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:退款金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundprice")] + public decimal Refundprice {get;set;} + + /// + /// Desc:退款账号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="account")] + public string? Account {get;set;} + + /// + /// Desc:退款人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:退款类型 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundtype")] + public int Refundtype {get;set;} + + /// + /// Desc:退款类型名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundtypename")] + public string Refundtypename {get;set;} + + /// + /// Desc:退款时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refunddate")] + public DateTime? Refunddate {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:附件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="att")] + public string? Att {get;set;} + + /// + /// Desc:审核状态 1:通过,0:未通过 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="att2")] + public string? Att2 {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="isdelete")] + public int Isdelete {get;set;} + + /// + /// Desc:是否多付费 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="ismorepay")] + public int? Ismorepay {get;set;} + + /// + /// Desc:提交人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creator")] + public int? Creator {get;set;} + + /// + /// Desc:提交人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creatorname")] + public string? Creatorname {get;set;} + + /// + /// Desc:1:需要实际退款 0:退回可用余额(不需要实际退款) + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="isacturalrefund")] + public int? Isacturalrefund {get;set;} + + /// + /// Desc:1:老数据 0:新的退款数据 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isold")] + public int? Isold {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:False + /// + [SugarColumn(ColumnName="last_modify_time")] + public DateTime Last_modify_time {get;set;} + + /// + /// Desc:部门编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderrefund514.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderrefund514.cs new file mode 100644 index 0000000..27de44f --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderrefund514.cs @@ -0,0 +1,211 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderrefund_514")] + public partial class WxSzzyorderrefund514 + { + public WxSzzyorderrefund514(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:退款金额 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundprice")] + public decimal Refundprice {get;set;} + + /// + /// Desc:退款账号 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="account")] + public string? Account {get;set;} + + /// + /// Desc:退款人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="username")] + public string? Username {get;set;} + + /// + /// Desc:退款类型 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundtype")] + public int Refundtype {get;set;} + + /// + /// Desc:退款类型名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="refundtypename")] + public string Refundtypename {get;set;} + + /// + /// Desc:退款时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refunddate")] + public DateTime? Refunddate {get;set;} + + /// + /// Desc:备注 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc:附件 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="att")] + public string? Att {get;set;} + + /// + /// Desc:审核状态 1:通过,0:未通过 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:财务退款之后上传凭证 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="att2")] + public string? Att2 {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:渠道 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ismorepay")] + public int? Ismorepay {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creator")] + public int? Creator {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="creatorname")] + public string? Creatorname {get;set;} + + /// + /// Desc:1:需要实际退款 0:退回可用余额(不需要实际退款) + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="isacturalrefund")] + public int? Isacturalrefund {get;set;} + + /// + /// Desc:1:老数据 0:新的退款数据 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isold")] + public int? Isold {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderrefundDetail.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderrefundDetail.cs new file mode 100644 index 0000000..29db567 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderrefundDetail.cs @@ -0,0 +1,107 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderrefund_detail")] + public partial class WxSzzyorderrefundDetail + { + public WxSzzyorderrefundDetail(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:订单ID(如果退的订金,这里填写订金ID) + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc:支付使用ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="payid")] + public int? Payid {get;set;} + + /// + /// Desc:退款ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refundid")] + public int? Refundid {get;set;} + + /// + /// Desc:订金ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="depositid")] + public int? Depositid {get;set;} + + /// + /// Desc:退款金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="price")] + public decimal? Price {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:1:已删除 0:正常 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + /// + /// Desc:审核状态 1:退回余额 2:真正退款 + /// Default:1 + /// Nullable:False + /// + [SugarColumn(ColumnName="status")] + public int Status {get;set;} + + /// + /// Desc:修改时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderrefundFrozen.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderrefundFrozen.cs new file mode 100644 index 0000000..97c12cd --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderrefundFrozen.cs @@ -0,0 +1,115 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderrefund_frozen")] + public partial class WxSzzyorderrefundFrozen + { + public WxSzzyorderrefundFrozen(){ + + + } + /// + /// Desc:冻结Id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc:资源ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="resid")] + public string? Resid {get;set;} + + /// + /// Desc:订单ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="orderid")] + public int? Orderid {get;set;} + + /// + /// Desc:退款ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refundid")] + public int? Refundid {get;set;} + + /// + /// Desc:订金ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="depositid")] + public int? Depositid {get;set;} + + /// + /// Desc:冻结金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="price")] + public decimal? Price {get;set;} + + /// + /// Desc:创建时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + /// + /// Desc:审核状态 1:冻结中 2:已解冻 + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="auditstatus")] + public int Auditstatus {get;set;} + + /// + /// Desc:审核人 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditor")] + public int? Auditor {get;set;} + + /// + /// Desc:审核人姓名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="auditorname")] + public string? Auditorname {get;set;} + + /// + /// Desc:审核时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="audittime")] + public DateTime? Audittime {get;set;} + + /// + /// Desc:1:已删除 0:正常 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="isdelete")] + public int? Isdelete {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyorderrefundcontract.cs b/SA.Entity/zxdcrm_Models/WxSzzyorderrefundcontract.cs new file mode 100644 index 0000000..ddc6f8d --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyorderrefundcontract.cs @@ -0,0 +1,83 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderrefundcontract")] + public partial class WxSzzyorderrefundcontract + { + public WxSzzyorderrefundcontract(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="orderid")] + public int Orderid {get;set;} + + /// + /// Desc:退款协议 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contract")] + public string? Contract {get;set;} + + /// + /// Desc:退款金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="refundprice")] + public decimal? Refundprice {get;set;} + + /// + /// Desc:退款协议状态:1 分部通过,0 未通过,2 总部通过 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractstatus")] + public int? Contractstatus {get;set;} + + /// + /// Desc:签订退款协议时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contracttime")] + public DateTime? Contracttime {get;set;} + + /// + /// Desc:退款协议key + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="contractkey")] + public string? Contractkey {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="ctime")] + public DateTime? Ctime {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzyproduct.cs b/SA.Entity/zxdcrm_Models/WxSzzyproduct.cs new file mode 100644 index 0000000..b243c80 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzyproduct.cs @@ -0,0 +1,107 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///产品大类表 + /// + [SugarTable("wx_szzyproduct")] + public partial class WxSzzyproduct + { + public WxSzzyproduct(){ + + + } + /// + /// Desc:大产品id + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:大产品名称 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productname")] + public string Productname {get;set;} + + /// + /// Desc:产品描述 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productdesc")] + public string? Productdesc {get;set;} + + /// + /// Desc:产品简介 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productbriefdesc")] + public string? Productbriefdesc {get;set;} + + /// + /// Desc:是否有效 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isvalid")] + public int? Isvalid {get;set;} + + /// + /// Desc:产品向导 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productguide")] + public string? Productguide {get;set;} + + /// + /// Desc:产品代码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:是否是vip:1是,2不是,null不是 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isvip")] + public int? Isvip {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="parentid")] + public int? Parentid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sort")] + public int? Sort {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="level")] + public int? Level {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzysubproduct.cs b/SA.Entity/zxdcrm_Models/WxSzzysubproduct.cs new file mode 100644 index 0000000..94f383e --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzysubproduct.cs @@ -0,0 +1,338 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///产品表 + /// + [SugarTable("wx_szzysubproduct")] + public partial class WxSzzysubproduct + { + public WxSzzysubproduct() + { + } + + /// + /// Desc:产品ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey = true, ColumnName = "subproductid")] + public int Subproductid { get; set; } + + /// + /// Desc:大产品ID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName = "productid")] + public int Productid { get; set; } + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "subproductname")] + public string? Subproductname { get; set; } + + /// + /// Desc:产品描述 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "subproductdesc")] + public string? Subproductdesc { get; set; } + + /// + /// Desc:金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "price")] + public decimal? Price { get; set; } + + /// + /// Desc:权限周期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "rightperiod")] + public int? Rightperiod { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "rightunit")] + public string? Rightunit { get; set; } + + /// + /// Desc:是否有效 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName = "isvalid")] + public int? Isvalid { get; set; } + + /// + /// Desc:0:即时开通 1:指定日期延时开通 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName = "orderopentype")] + public int? Orderopentype { get; set; } + + /// + /// Desc:指定开通订单的日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "opendate")] + public string? Opendate { get; set; } + + /// + /// Desc:指定结束订单的日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "enddate")] + public string? Enddate { get; set; } + + /// + /// Desc:排序 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "sort")] + public int? Sort { get; set; } + + /// + /// Desc:产品别名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "productalias")] + public string? Productalias { get; set; } + + /// + /// Desc:产品编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "productcode")] + public string? Productcode { get; set; } + + /// + /// Desc:0-单一产品、1-组合产品 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName = "producttype")] + public int? Producttype { get; set; } + + /// + /// Desc:产品等级 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "productlevel")] + public int? Productlevel { get; set; } + + /// + /// Desc:产品等级 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "productinvesttime")] + public int? Productinvesttime { get; set; } + + /// + /// Desc:产品等级 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName = "productinvesttype")] + public int Productinvesttype { get; set; } + + /// + /// Desc:权限id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "mid")] + public int? Mid { get; set; } + + /// + /// Desc:是否合规,1:是,0:否。主要在线订单同步到线下的时候,根据该状态值来判断是否写入合同数据 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName = "iscompliance")] + public int? Iscompliance { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "mids")] + public string? Mids { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "canupgrade")] + public int? Canupgrade { get; set; } + + /// + /// Desc:产品分类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "category")] + public int? Category { get; set; } + + /// + /// Desc:是否关闭被升级订单权限 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "closeupgraderole")] + public int? Closeupgraderole { get; set; } + + /// + /// Desc:第三方订单分类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "thirdordercate")] + public int? Thirdordercate { get; set; } + + /// + /// Desc:二级分类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "midproductid")] + public int? Midproductid { get; set; } + + /// + /// Desc:是否有赠送 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "isgift")] + public int? Isgift { get; set; } + + /// + /// Desc:是否支持在线购买 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "isonlinebuy")] + public int? Isonlinebuy { get; set; } + + /// + /// Desc:在线购买链接 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "buylink")] + public string? Buylink { get; set; } + + /// + /// Desc:支付成功回调页面 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "callbacklink")] + public string? Callbacklink { get; set; } + + /// + /// Desc:附件路径 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "att")] + public string? Att { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "remark")] + public string? Remark { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "productext")] + public string? Productext { get; set; } + + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName = "isdelete")] + public int Isdelete { get; set; } + + /// + /// Desc:标签id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "lablenameid")] + public int? Lablenameid { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "settletype")] + public int? Settletype { get; set; } + + /// + /// Desc: + /// Default:CURRENT_TIMESTAMP(4) + /// Nullable:False + /// + [SugarColumn(ColumnName = "last_modify_time")] + public DateTime Last_modify_time { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "needFK")] + public int? NeedFK { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "automaticOpen")] + public int? AutomaticOpen { get; set; } + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName = "needai")] + public int? NeedAi { get; set; } + } +} \ No newline at end of file diff --git a/SA.Entity/zxdcrm_Models/WxSzzysubproductBackup220427.cs b/SA.Entity/zxdcrm_Models/WxSzzysubproductBackup220427.cs new file mode 100644 index 0000000..3a65503 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzysubproductBackup220427.cs @@ -0,0 +1,307 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + ///产品表 + /// + [SugarTable("wx_szzysubproduct_backup220427")] + public partial class WxSzzysubproductBackup220427 + { + public WxSzzysubproductBackup220427(){ + + + } + /// + /// Desc:产品ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="subproductid")] + public int Subproductid {get;set;} + + /// + /// Desc:大产品ID + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productid")] + public int Productid {get;set;} + + /// + /// Desc:产品名称 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc:产品描述 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductdesc")] + public string? Subproductdesc {get;set;} + + /// + /// Desc:金额 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="price")] + public decimal? Price {get;set;} + + /// + /// Desc:权限周期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rightperiod")] + public int? Rightperiod {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rightunit")] + public string? Rightunit {get;set;} + + /// + /// Desc:是否有效 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="isvalid")] + public int? Isvalid {get;set;} + + /// + /// Desc:0:即时开通 1:指定日期延时开通 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="orderopentype")] + public int? Orderopentype {get;set;} + + /// + /// Desc:指定开通订单的日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="opendate")] + public string? Opendate {get;set;} + + /// + /// Desc:指定结束订单的日期 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="enddate")] + public string? Enddate {get;set;} + + /// + /// Desc:排序 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sort")] + public int? Sort {get;set;} + + /// + /// Desc:产品别名 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productalias")] + public string? Productalias {get;set;} + + /// + /// Desc:产品编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productcode")] + public string? Productcode {get;set;} + + /// + /// Desc:0-单一产品、1-组合产品 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="producttype")] + public int? Producttype {get;set;} + + /// + /// Desc:产品等级 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productlevel")] + public int? Productlevel {get;set;} + + /// + /// Desc:产品等级 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productinvesttime")] + public int? Productinvesttime {get;set;} + + /// + /// Desc:产品等级 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="productinvesttype")] + public int Productinvesttype {get;set;} + + /// + /// Desc:权限id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mid")] + public int? Mid {get;set;} + + /// + /// Desc:是否合规,1:是,0:否。主要在线订单同步到线下的时候,根据该状态值来判断是否写入合同数据 + /// Default:1 + /// Nullable:True + /// + [SugarColumn(ColumnName="iscompliance")] + public int? Iscompliance {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="mids")] + public string? Mids {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="canupgrade")] + public int? Canupgrade {get;set;} + + /// + /// Desc:产品分类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="category")] + public int? Category {get;set;} + + /// + /// Desc:是否关闭被升级订单权限 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closeupgraderole")] + public int? Closeupgraderole {get;set;} + + /// + /// Desc:第三方订单分类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="thirdordercate")] + public int? Thirdordercate {get;set;} + + /// + /// Desc:二级分类 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="midproductid")] + public int? Midproductid {get;set;} + + /// + /// Desc:是否有赠送 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isgift")] + public int? Isgift {get;set;} + + /// + /// Desc:是否支持在线购买 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isonlinebuy")] + public int? Isonlinebuy {get;set;} + + /// + /// Desc:在线购买链接 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="buylink")] + public string? Buylink {get;set;} + + /// + /// Desc:支付成功回调页面 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="callbacklink")] + public string? Callbacklink {get;set;} + + /// + /// Desc:附件路径 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="att")] + public string? Att {get;set;} + + /// + /// Desc:说明 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="productext")] + public string? Productext {get;set;} + + /// + /// Desc: + /// Default:0 + /// Nullable:False + /// + [SugarColumn(ColumnName="isdelete")] + public int Isdelete {get;set;} + + /// + /// Desc:标签id + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lablenameid")] + public int? Lablenameid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="settletype")] + public int? Settletype {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzysubproductCh.cs b/SA.Entity/zxdcrm_Models/WxSzzysubproductCh.cs new file mode 100644 index 0000000..8caaca8 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzysubproductCh.cs @@ -0,0 +1,171 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzysubproduct_ch")] + public partial class WxSzzysubproductCh + { + public WxSzzysubproductCh(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="channel")] + public int Channel {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductid")] + public int? Subproductid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isValid")] + public int? IsValid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isgift")] + public int? Isgift {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isdiscount")] + public int? Isdiscount {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="discount")] + public string? Discount {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="canupgrade")] + public int? Canupgrade {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="category")] + public int? Category {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="closeupgraderole")] + public int? Closeupgraderole {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="thirdordercate")] + public int? Thirdordercate {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isonlinebuy")] + public int? Isonlinebuy {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="buylink")] + public string? Buylink {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="callbacklink")] + public string? Callbacklink {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="att")] + public string? Att {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="remark")] + public string? Remark {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="companycode")] + public string? Companycode {get;set;} + + /// + /// Desc:自定义 折扣价,逗号隔开 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="customprice")] + public string? Customprice {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxSzzysubproductGift.cs b/SA.Entity/zxdcrm_Models/WxSzzysubproductGift.cs new file mode 100644 index 0000000..b5a350a --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxSzzysubproductGift.cs @@ -0,0 +1,107 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_szzysubproduct_gift")] + public partial class WxSzzysubproductGift + { + public WxSzzysubproductGift(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="id")] + public int Id {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductid")] + public int? Subproductid {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="subproductname")] + public string? Subproductname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdays")] + public int? Giftdays {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftdaysname")] + public string? Giftdaysname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="sort")] + public int? Sort {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="isdefault")] + public int? Isdefault {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="type")] + public int? Type {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="giftname")] + public string? Giftname {get;set;} + + /// + /// Desc: + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="channel")] + public int? Channel {get;set;} + + /// + /// Desc:主产品ID + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="activeid")] + public int? Activeid {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxUsernameResid.cs b/SA.Entity/zxdcrm_Models/WxUsernameResid.cs new file mode 100644 index 0000000..27a86db --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxUsernameResid.cs @@ -0,0 +1,59 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_username_resid")] + public partial class WxUsernameResid + { + public WxUsernameResid(){ + + + } + /// + /// Desc: + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="resid")] + public string Resid {get;set;} + + /// + /// Desc:企业微信ID + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="username")] + public string Username {get;set;} + + /// + /// Desc:时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:False + /// + [SugarColumn(ColumnName="ctime")] + public DateTime Ctime {get;set;} + + /// + /// Desc:公司编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + /// + /// Desc:执行次数 + /// Default:0 + /// Nullable:True + /// + [SugarColumn(ColumnName="putnum")] + public int? Putnum {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxWorkaliasAlive.cs b/SA.Entity/zxdcrm_Models/WxWorkaliasAlive.cs new file mode 100644 index 0000000..2dd8e9b --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxWorkaliasAlive.cs @@ -0,0 +1,51 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_workalias_alive")] + public partial class WxWorkaliasAlive + { + public WxWorkaliasAlive(){ + + + } + /// + /// Desc:微信号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="alias")] + public string Alias {get;set;} + + /// + /// Desc:微信用户名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="username")] + public string Username {get;set;} + + /// + /// Desc:心跳时间 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="lasttime")] + public DateTime? Lasttime {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_Models/WxWorkaliasResdayrpt.cs b/SA.Entity/zxdcrm_Models/WxWorkaliasResdayrpt.cs new file mode 100644 index 0000000..b508e70 --- /dev/null +++ b/SA.Entity/zxdcrm_Models/WxWorkaliasResdayrpt.cs @@ -0,0 +1,67 @@ +using System; +using System.Linq; +using System.Text; +using SqlSugar; + +namespace SA.Entity.zxdcrm_Models +{ + /// + /// + /// + [SugarTable("wx_workalias_resdayrpt")] + public partial class WxWorkaliasResdayrpt + { + public WxWorkaliasResdayrpt(){ + + + } + /// + /// Desc:微信号 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="alias")] + public string Alias {get;set;} + + /// + /// Desc:日报表 + /// Default: + /// Nullable:False + /// + [SugarColumn(IsPrimaryKey=true,ColumnName="rptdate")] + public DateTime Rptdate {get;set;} + + /// + /// Desc:微信用户名 + /// Default: + /// Nullable:False + /// + [SugarColumn(ColumnName="username")] + public string Username {get;set;} + + /// + /// Desc:资源数 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="rescount")] + public int? Rescount {get;set;} + + /// + /// Desc:修改时间 + /// Default:CURRENT_TIMESTAMP + /// Nullable:True + /// + [SugarColumn(ColumnName="utime")] + public DateTime? Utime {get;set;} + + /// + /// Desc:营业部编码 + /// Default: + /// Nullable:True + /// + [SugarColumn(ColumnName="deptcode")] + public string? Deptcode {get;set;} + + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/AuditCost.cs b/SA.Entity/zxdcrm_audit_Models/AuditCost.cs new file mode 100644 index 0000000..2276ef0 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/AuditCost.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("audit_cost")] + public class audit_cost + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="cost" )] + public decimal? cost { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/BAuditCheck.cs b/SA.Entity/zxdcrm_audit_Models/BAuditCheck.cs new file mode 100644 index 0000000..a538396 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/BAuditCheck.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("b_audit_check")] + public class b_audit_check + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="monkey" )] + public int monkey { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="itemId" )] + public int? itemId { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="item" )] + public string item { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="categorie" )] + public string categorie { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="categorieName" )] + public string categorieName { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="resultskv" )] + public string resultskv { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime ctime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/BAuditItems.cs b/SA.Entity/zxdcrm_audit_Models/BAuditItems.cs new file mode 100644 index 0000000..48dfb7d --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/BAuditItems.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("b_audit_items")] + public class b_audit_items + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="item" )] + public string item { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="channel" )] + public string channel { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="channelquery" )] + public string channelquery { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="subqueryitems" )] + public string subqueryitems { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="querytype" )] + public string querytype { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/BAuditQuerysql.cs b/SA.Entity/zxdcrm_audit_Models/BAuditQuerysql.cs new file mode 100644 index 0000000..61b5292 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/BAuditQuerysql.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("b_audit_querysql")] + public class b_audit_querysql + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="name" )] + public string name { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="querykey" )] + public string querykey { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="querytemp" )] + public string querytemp { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="subquery" )] + public string subquery { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="querytype" )] + public string querytype { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="querysql" )] + public string querysql { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/CheckDeposit.cs b/SA.Entity/zxdcrm_audit_Models/CheckDeposit.cs new file mode 100644 index 0000000..0d1e0fa --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/CheckDeposit.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("check_deposit")] + public class check_deposit + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="depositid" )] + public int? depositid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="amount" )] + public decimal? amount { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="depositids" )] + public string depositids { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="payamount" )] + public decimal? payamount { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderids" )] + public string orderids { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="useamount" )] + public decimal? useamount { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/CompanyWechatChat.cs b/SA.Entity/zxdcrm_audit_Models/CompanyWechatChat.cs new file mode 100644 index 0000000..8dadbaf --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/CompanyWechatChat.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("company_wechat_chat")] + public class company_wechat_chat + { + /// + /// + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="count" )] + public decimal? count { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="minmsgtime" )] + public DateTime? minmsgtime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ElectronicVisit.cs b/SA.Entity/zxdcrm_audit_Models/ElectronicVisit.cs new file mode 100644 index 0000000..4ca051e --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ElectronicVisit.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("electronic_visit")] + public class electronic_visit + { + /// + /// 软件用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/LogInfo.cs b/SA.Entity/zxdcrm_audit_Models/LogInfo.cs new file mode 100644 index 0000000..84349d9 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/LogInfo.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("log_info")] + public class log_info + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="name" )] + public string name { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="date" )] + public DateTime? date { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="thread" )] + public string thread { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="level" )] + public string level { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="logger" )] + public string logger { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="message" )] + public string message { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="exception" )] + public string exception { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ModuleOrder.cs b/SA.Entity/zxdcrm_audit_Models/ModuleOrder.cs new file mode 100644 index 0000000..e55c6f9 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ModuleOrder.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("module_order")] + public class module_order + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// + /// 默认值: 0 + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="szzyorderid" )] + public string szzyorderid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="productcode2" )] + public string productcode2 { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="starttime2" )] + public DateTime? starttime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="endtime2" )] + public DateTime? endtime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="usedays" )] + public int? usedays { get; set; } + /// + /// 产品名称 + /// + [SugarColumn(ColumnName="subproductname2" )] + public string subproductname2 { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="opendays2" )] + public int? opendays2 { get; set; } + /// + /// 开通(天) + /// + [SugarColumn(ColumnName="totaldays" )] + public int? totaldays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="price2" )] + public decimal? price2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ctime2" )] + public DateTime? ctime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime2" )] + public DateTime? otime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="channel2" )] + public int? channel2 { get; set; } + /// + /// 订单状态:新订单180、已开通220、已停用/已退款90、已过期80、已取消70,去掉"已支付200、暂缓开通210"状态 + /// + [SugarColumn(ColumnName="status2" )] + public short? status2 { get; set; } + /// + /// 退款状态(0-默认、1-已退款),为兼容客服系统 + /// + [SugarColumn(ColumnName="isrefund" )] + public byte? isrefund { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="canceluser" )] + public string canceluser { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="canceltime" )] + public DateTime? canceltime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="returnPrice" )] + public decimal? returnPrice { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ModuleOrderJisuan.cs b/SA.Entity/zxdcrm_audit_Models/ModuleOrderJisuan.cs new file mode 100644 index 0000000..b37d5fe --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ModuleOrderJisuan.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("module_order_jisuan")] + public class module_order_jisuan + { + /// + /// + /// + [SugarColumn(ColumnName="id" )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// + /// 默认值: 0 + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// + /// 默认值: + /// + [SugarColumn(ColumnName="szzyorderid" )] + public string szzyorderid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="productcode2" )] + public string productcode2 { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="starttime2" )] + public DateTime? starttime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="endtime2" )] + public DateTime? endtime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="usedays" )] + public int? usedays { get; set; } + /// + /// 产品名称 + /// + [SugarColumn(ColumnName="subproductname2" )] + public string subproductname2 { get; set; } =""; + /// + /// 开通(天) + /// + [SugarColumn(ColumnName="opendays2" )] + public int? opendays2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="price2" )] + public decimal? price2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ctime2" )] + public DateTime? ctime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime2" )] + public DateTime? otime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="channel2" )] + public int? channel2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="arrivalpay" )] + public decimal? arrivalpay { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="xuhao" )] + public int? xuhao { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="midproductid" )] + public int? midproductid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="MainSzzyorderid" )] + public string MainSzzyorderid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="orderPrice" )] + public decimal? orderPrice { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ModuleOrderJisuanPrice.cs b/SA.Entity/zxdcrm_audit_Models/ModuleOrderJisuanPrice.cs new file mode 100644 index 0000000..7680e80 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ModuleOrderJisuanPrice.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("module_order_jisuan_price")] + public class module_order_jisuan_price + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderPrice" )] + public decimal? orderPrice { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ModuleOrderUpgrad.cs b/SA.Entity/zxdcrm_audit_Models/ModuleOrderUpgrad.cs new file mode 100644 index 0000000..26110db --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ModuleOrderUpgrad.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("module_order_upgrad")] + public class module_order_upgrad + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// 资源ID + /// + [SugarColumn(ColumnName="new_resid" )] + public string new_resid { get; set; } =""; + /// + /// 软件用户名 + /// + [SugarColumn(ColumnName="new_username" )] + public string new_username { get; set; } =""; + /// + /// 新订单 + /// + [SugarColumn(ColumnName="new_orderid" )] + public int? new_orderid { get; set; } + /// + /// 新的资源id + /// + [SugarColumn(ColumnName="new_szzyorderid" )] + public long? new_szzyorderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="new_otime" )] + public DateTime? new_otime { get; set; } + /// + /// 旧的资源ID + /// + [SugarColumn(ColumnName="old_resid" )] + public string old_resid { get; set; } =""; + /// + /// 旧订单号 + /// + [SugarColumn(ColumnName="old_username" )] + public string old_username { get; set; } =""; + /// + /// 被升级订单ID + /// + [SugarColumn(ColumnName="old_orderid" )] + public int? old_orderid { get; set; } + /// + /// 旧的资源id + /// + [SugarColumn(ColumnName="old_szzyorderid" )] + public long? old_szzyorderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="old_otime" )] + public DateTime? old_otime { get; set; } + /// + /// 旧订单是否被关闭 0:没有关闭 1:关闭 + /// + [SugarColumn(ColumnName="isbeclose" )] + public int? isbeclose { get; set; } + /// + /// 0:默认,1:平台1 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="type" )] + public int? type { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ModulePrice.cs b/SA.Entity/zxdcrm_audit_Models/ModulePrice.cs new file mode 100644 index 0000000..bec53a0 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ModulePrice.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("module_price")] + public class module_price + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="szzyorderid" )] + public string szzyorderid { get; set; } =""; + /// + /// + /// 默认值: 0 + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="starttime2" )] + public DateTime? starttime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="endtime2" )] + public DateTime? endtime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime2" )] + public DateTime? otime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ctime2" )] + public DateTime? ctime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderPrice" )] + public decimal? orderPrice { get; set; } + /// + /// 最终计算了苹果、华为、魅族支付手续费 + /// + [SugarColumn(ColumnName="modulePrice" )] + public decimal? modulePrice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="midproductid" )] + public int? midproductid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 开通(天) + /// + [SugarColumn(ColumnName="opendays2" )] + public int? opendays2 { get; set; } + /// + /// 后面补充的 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isBu" )] + public int? isBu { get; set; } + /// + /// 是否是一天的订单 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isoneday" )] + public int? isoneday { get; set; } + /// + /// 渠道号 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 模块原始金额 + /// + [SugarColumn(ColumnName="modulePrice2" )] + public decimal? modulePrice2 { get; set; } + /// + /// 虚拟订单(扣减原单的剩余价值) 0不是 1是 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isVirOrder" )] + public int? isVirOrder { get; set; } + /// + /// 10是,20否 区分是否生成退款程序时ins数据,用于多次操作时删除使用 + /// 默认值: 20 + /// + [SugarColumn(ColumnName="isRunRefundIns" )] + public int? isRunRefundIns { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ModulePricePt1Third.cs b/SA.Entity/zxdcrm_audit_Models/ModulePricePt1Third.cs new file mode 100644 index 0000000..3dd996c --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ModulePricePt1Third.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("module_price_pt1_third")] + public class module_price_pt1_third + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="point_order_id" )] + public int? point_order_id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="third_id" )] + public int? third_id { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ModulePriceTemp.cs b/SA.Entity/zxdcrm_audit_Models/ModulePriceTemp.cs new file mode 100644 index 0000000..677bb6d --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ModulePriceTemp.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("module_price_temp")] + public class module_price_temp + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="szzyorderid" )] + public string szzyorderid { get; set; } =""; + /// + /// + /// 默认值: 0 + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="starttime2" )] + public DateTime? starttime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="endtime2" )] + public DateTime? endtime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime2" )] + public DateTime? otime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ctime2" )] + public DateTime? ctime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderPrice" )] + public decimal? orderPrice { get; set; } + /// + /// 最终计算了苹果、华为、魅族支付手续费 + /// + [SugarColumn(ColumnName="modulePrice" )] + public decimal? modulePrice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="midproductid" )] + public int? midproductid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 开通(天) + /// + [SugarColumn(ColumnName="opendays2" )] + public int? opendays2 { get; set; } + /// + /// 后面补充的 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isBu" )] + public int? isBu { get; set; } + /// + /// 是否是一天的订单 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isoneday" )] + public int? isoneday { get; set; } + /// + /// 渠道号 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 模块原始金额 + /// + [SugarColumn(ColumnName="modulePrice2" )] + public decimal? modulePrice2 { get; set; } + /// + /// 虚拟订单(扣减原单的剩余价值) 0不是 1是 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isVirOrder" )] + public int? isVirOrder { get; set; } + /// + /// 10是,20否 区分是否生成退款程序时ins数据,用于多次操作时删除使用 + /// 默认值: 20 + /// + [SugarColumn(ColumnName="isRunRefundIns" )] + public int? isRunRefundIns { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/MonFairprice.cs b/SA.Entity/zxdcrm_audit_Models/MonFairprice.cs new file mode 100644 index 0000000..9ccea43 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/MonFairprice.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("mon_fairprice")] + public class mon_fairprice + { + /// + /// + /// + [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int Id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ModuleId" )] + public string ModuleId { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="Price" )] + public decimal? Price { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/MonFinish.cs b/SA.Entity/zxdcrm_audit_Models/MonFinish.cs new file mode 100644 index 0000000..800de4c --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/MonFinish.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("mon_finish")] + public class mon_finish + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// 结算月份 + /// + [SugarColumn(ColumnName="month" )] + public int? month { get; set; } + /// + /// 结算最后一天时间(导出使用) + /// + [SugarColumn(ColumnName="day" )] + public DateTime? day { get; set; } + /// + /// 1:已结;0:未结 + /// + [SugarColumn(ColumnName="status" )] + public int? status { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/MonOrderModuleAct.cs b/SA.Entity/zxdcrm_audit_Models/MonOrderModuleAct.cs new file mode 100644 index 0000000..18408c0 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/MonOrderModuleAct.cs @@ -0,0 +1,164 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("mon_order_module_act")] + public class mon_order_module_act + { + /// + /// + /// + [SugarColumn(ColumnName="xuhao" ,IsPrimaryKey = true ,IsIdentity = true )] + public int xuhao { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="id" )] + public string id { get; set; } =""; + /// + /// 执行时间 + /// + [SugarColumn(ColumnName="actday" )] + public DateTime actday { get; set; } + /// + /// 执行月份 + /// + [SugarColumn(ColumnName="actmonth" )] + public int? actmonth { get; set; } + /// + /// 用户名 + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 权限ID + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// 上期剩余金额 + /// + [SugarColumn(ColumnName="lastprice" )] + public decimal? lastprice { get; set; } + /// + /// 消耗金额 + /// + [SugarColumn(ColumnName="useprice" )] + public decimal? useprice { get; set; } + /// + /// 订单金额 + /// + [SugarColumn(ColumnName="payprice" )] + public decimal? payprice { get; set; } + /// + /// 剩余价值 + /// + [SugarColumn(ColumnName="actprice" )] + public decimal actprice { get; set; } + /// + /// 上个状态剩余时长 + /// + [SugarColumn(ColumnName="lastdaycount" )] + public int? lastdaycount { get; set; } + /// + /// 消耗时长 + /// + [SugarColumn(ColumnName="usedaycount" )] + public int? usedaycount { get; set; } + /// + /// 订单时长 + /// + [SugarColumn(ColumnName="ordercount" )] + public int? ordercount { get; set; } + /// + /// 总天数 + /// + [SugarColumn(ColumnName="daycount" )] + public int daycount { get; set; } + /// + /// 1:已结,0:未结 + /// + [SugarColumn(ColumnName="status" )] + public int status { get; set; } + /// + /// 订单号 + /// + [SugarColumn(ColumnName="orderid" )] + public int orderid { get; set; } + /// + /// 写入时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 开通月份 + /// + [SugarColumn(ColumnName="omonth" )] + public int? omonth { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 扣除合同取得成本之后的价值 + /// + [SugarColumn(ColumnName="orderprice" )] + public decimal? orderprice { get; set; } + /// + /// 扣除合同取得成本之后的剩余价值 + /// + [SugarColumn(ColumnName="lastorderprice" )] + public decimal? lastorderprice { get; set; } + /// + /// 合同取得成本 + /// + [SugarColumn(ColumnName="costprice" )] + public decimal? costprice { get; set; } + /// + /// 合同取得成本剩余价值 + /// + [SugarColumn(ColumnName="lastcostprice" )] + public decimal? lastcostprice { get; set; } + /// + /// 成本比例 + /// + [SugarColumn(ColumnName="costrate" )] + public decimal? costrate { get; set; } + /// + /// 收入 + /// + [SugarColumn(ColumnName="income" )] + public decimal? income { get; set; } + /// + /// 预收 + /// + [SugarColumn(ColumnName="depositreceived" )] + public decimal? depositreceived { get; set; } + /// + /// 结算月份 + /// + [SugarColumn(ColumnName="finishmonth" )] + public int? finishmonth { get; set; } + /// + /// 结算状态 + /// + [SugarColumn(ColumnName="finishstatus" )] + public int? finishstatus { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/MonOrderModuleActCur.cs b/SA.Entity/zxdcrm_audit_Models/MonOrderModuleActCur.cs new file mode 100644 index 0000000..48e2bac --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/MonOrderModuleActCur.cs @@ -0,0 +1,164 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("mon_order_module_act_cur")] + public class mon_order_module_act_cur + { + /// + /// + /// + [SugarColumn(ColumnName="xuhao" ,IsPrimaryKey = true ,IsIdentity = true )] + public int xuhao { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="id" )] + public string id { get; set; } =""; + /// + /// 执行时间 + /// + [SugarColumn(ColumnName="actday" )] + public DateTime actday { get; set; } + /// + /// 执行月份 + /// + [SugarColumn(ColumnName="actmonth" )] + public int? actmonth { get; set; } + /// + /// 用户名 + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 权限ID + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// 上期剩余金额 + /// + [SugarColumn(ColumnName="lastprice" )] + public decimal? lastprice { get; set; } + /// + /// 消耗金额 + /// + [SugarColumn(ColumnName="useprice" )] + public decimal? useprice { get; set; } + /// + /// 订单金额 + /// + [SugarColumn(ColumnName="payprice" )] + public decimal? payprice { get; set; } + /// + /// 剩余价值 + /// + [SugarColumn(ColumnName="actprice" )] + public decimal actprice { get; set; } + /// + /// 上个状态剩余时长 + /// + [SugarColumn(ColumnName="LastDayCount" )] + public int? LastDayCount { get; set; } + /// + /// 消耗时长 + /// + [SugarColumn(ColumnName="UseDayCount" )] + public int? UseDayCount { get; set; } + /// + /// 订单时长 + /// + [SugarColumn(ColumnName="OrderCount" )] + public int? OrderCount { get; set; } + /// + /// 总天数 + /// + [SugarColumn(ColumnName="daycount" )] + public int daycount { get; set; } + /// + /// 1:已结,0:未结 + /// + [SugarColumn(ColumnName="status" )] + public int status { get; set; } + /// + /// 订单号 + /// + [SugarColumn(ColumnName="orderid" )] + public int orderid { get; set; } + /// + /// 写入时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 开通月份 + /// + [SugarColumn(ColumnName="omonth" )] + public int? omonth { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 扣除合同取得成本之后的价值 + /// + [SugarColumn(ColumnName="orderprice" )] + public decimal? orderprice { get; set; } + /// + /// 扣除合同取得成本之后的剩余价值 + /// + [SugarColumn(ColumnName="lastorderprice" )] + public decimal? lastorderprice { get; set; } + /// + /// 合同取得成本 + /// + [SugarColumn(ColumnName="costprice" )] + public decimal? costprice { get; set; } + /// + /// 合同取得成本剩余价值 + /// + [SugarColumn(ColumnName="lastcostprice" )] + public decimal? lastcostprice { get; set; } + /// + /// 成本比例 + /// + [SugarColumn(ColumnName="CostRate" )] + public decimal? CostRate { get; set; } + /// + /// 收入 + /// + [SugarColumn(ColumnName="InCome" )] + public decimal? InCome { get; set; } + /// + /// 预收 + /// + [SugarColumn(ColumnName="DepositReceived" )] + public decimal? DepositReceived { get; set; } + /// + /// 结算月份 + /// + [SugarColumn(ColumnName="FinishMonth" )] + public int? FinishMonth { get; set; } + /// + /// 结算状态 + /// + [SugarColumn(ColumnName="FinishStatus" )] + public int? FinishStatus { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/MonOrderModuleActYg.cs b/SA.Entity/zxdcrm_audit_Models/MonOrderModuleActYg.cs new file mode 100644 index 0000000..9cb2b58 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/MonOrderModuleActYg.cs @@ -0,0 +1,164 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("mon_order_module_act_yg")] + public class mon_order_module_act_yg + { + /// + /// + /// + [SugarColumn(ColumnName="xuhao" ,IsPrimaryKey = true ,IsIdentity = true )] + public int xuhao { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="id" )] + public string id { get; set; } =""; + /// + /// 执行时间 + /// + [SugarColumn(ColumnName="actday" )] + public DateTime actday { get; set; } + /// + /// 执行月份 + /// + [SugarColumn(ColumnName="actmonth" )] + public int? actmonth { get; set; } + /// + /// 用户名 + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 权限ID + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// 上期剩余金额 + /// + [SugarColumn(ColumnName="lastprice" )] + public decimal? lastprice { get; set; } + /// + /// 消耗金额 + /// + [SugarColumn(ColumnName="useprice" )] + public decimal? useprice { get; set; } + /// + /// 订单金额 + /// + [SugarColumn(ColumnName="payprice" )] + public decimal? payprice { get; set; } + /// + /// 剩余价值 + /// + [SugarColumn(ColumnName="actprice" )] + public decimal actprice { get; set; } + /// + /// 上个状态剩余时长 + /// + [SugarColumn(ColumnName="LastDayCount" )] + public int? LastDayCount { get; set; } + /// + /// 消耗时长 + /// + [SugarColumn(ColumnName="UseDayCount" )] + public int? UseDayCount { get; set; } + /// + /// 订单时长 + /// + [SugarColumn(ColumnName="OrderCount" )] + public int? OrderCount { get; set; } + /// + /// 总天数 + /// + [SugarColumn(ColumnName="daycount" )] + public int daycount { get; set; } + /// + /// 1:已结,0:未结 + /// + [SugarColumn(ColumnName="status" )] + public int status { get; set; } + /// + /// 订单号 + /// + [SugarColumn(ColumnName="orderid" )] + public int orderid { get; set; } + /// + /// 写入时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 开通月份 + /// + [SugarColumn(ColumnName="omonth" )] + public int? omonth { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 扣除合同取得成本之后的价值 + /// + [SugarColumn(ColumnName="orderprice" )] + public decimal? orderprice { get; set; } + /// + /// 扣除合同取得成本之后的剩余价值 + /// + [SugarColumn(ColumnName="lastorderprice" )] + public decimal? lastorderprice { get; set; } + /// + /// 合同取得成本 + /// + [SugarColumn(ColumnName="costprice" )] + public decimal? costprice { get; set; } + /// + /// 合同取得成本剩余价值 + /// + [SugarColumn(ColumnName="lastcostprice" )] + public decimal? lastcostprice { get; set; } + /// + /// 成本比例 + /// + [SugarColumn(ColumnName="CostRate" )] + public decimal? CostRate { get; set; } + /// + /// 收入 + /// + [SugarColumn(ColumnName="InCome" )] + public decimal? InCome { get; set; } + /// + /// 预收 + /// + [SugarColumn(ColumnName="DepositReceived" )] + public decimal? DepositReceived { get; set; } + /// + /// 结算月份 + /// + [SugarColumn(ColumnName="FinishMonth" )] + public int? FinishMonth { get; set; } + /// + /// 结算状态 + /// + [SugarColumn(ColumnName="FinishStatus" )] + public int? FinishStatus { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/MonOrderModuleIncome.cs b/SA.Entity/zxdcrm_audit_Models/MonOrderModuleIncome.cs new file mode 100644 index 0000000..3cd4f69 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/MonOrderModuleIncome.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("mon_order_module_income")] + public class mon_order_module_income + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// 状态表ID + /// + [SugarColumn(ColumnName="actid" )] + public string actid { get; set; } =""; + /// + /// 执行日期 + /// + [SugarColumn(ColumnName="actday" )] + public DateTime actday { get; set; } + /// + /// 执行月份 + /// + [SugarColumn(ColumnName="actmonth" )] + public int? actmonth { get; set; } + /// + /// 0:order,1:month,2:退款,3:升级摊分 + /// + [SugarColumn(ColumnName="type" )] + public int type { get; set; } + /// + /// 收入 + /// + [SugarColumn(ColumnName="income" )] + public decimal income { get; set; } + /// + /// 预收账款 + /// + [SugarColumn(ColumnName="depositreceived" )] + public decimal depositreceived { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="useday" )] + public int? useday { get; set; } + /// + /// 写入时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// 开通时间 + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 开通月份 + /// + [SugarColumn(ColumnName="omonth" )] + public int? omonth { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 扣除合同取得成本之后的价值 + /// + [SugarColumn(ColumnName="orderprice" )] + public decimal? orderprice { get; set; } + /// + /// 扣除合同取得成本之后的剩余价值 + /// + [SugarColumn(ColumnName="lastorderprice" )] + public decimal? lastorderprice { get; set; } + /// + /// 合同取得成本 + /// + [SugarColumn(ColumnName="costprice" )] + public decimal? costprice { get; set; } + /// + /// 合同取得成本剩余价值 + /// + [SugarColumn(ColumnName="lastcostprice" )] + public decimal? lastcostprice { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/MonYm.cs b/SA.Entity/zxdcrm_audit_Models/MonYm.cs new file mode 100644 index 0000000..3c7e37c --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/MonYm.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("mon_ym")] + public class mon_ym + { + /// + /// + /// + [SugarColumn(ColumnName="month" ,IsPrimaryKey = true )] + public int month { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/OrderTeacher.cs b/SA.Entity/zxdcrm_audit_Models/OrderTeacher.cs new file mode 100644 index 0000000..6f87780 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/OrderTeacher.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("order_teacher")] + public class order_teacher + { + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="teacher" )] + public string teacher { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="teachercard" )] + public string teachercard { get; set; } =""; + /// + /// 1:新媒体二,2:平台一2020年,3:平台一2021年 + /// + [SugarColumn(ColumnName="type" )] + public int? type { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/QOrderchange.cs b/SA.Entity/zxdcrm_audit_Models/QOrderchange.cs new file mode 100644 index 0000000..e86e3ca --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/QOrderchange.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("q_orderchange")] + public class q_orderchange + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="depositid" )] + public int? depositid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="status" )] + public int? status { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="scene" )] + public string scene { get; set; } =""; + /// + /// 1:新媒体二顶底之王;2:顶底之王后续升级订单(非顶底之王;3:9.9资源购买订单(排除购买顶底之王用户) + /// + [SugarColumn(ColumnName="type" )] + public int? type { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ResCustomer.cs b/SA.Entity/zxdcrm_audit_Models/ResCustomer.cs new file mode 100644 index 0000000..e3bce0b --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ResCustomer.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 客户表 + /// + [SugarTable("res_customer")] + public class res_customer + { + /// + /// + /// + [SugarColumn(ColumnName="resid" ,IsPrimaryKey = true )] + public string resid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="customerid" )] + public string customerid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="customerfrom" )] + public string customerfrom { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="lastnum3" )] + public string lastnum3 { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ShOrder.cs b/SA.Entity/zxdcrm_audit_Models/ShOrder.cs new file mode 100644 index 0000000..3aabd04 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ShOrder.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("sh_order")] + public class sh_order + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="gg_orderid" )] + public string gg_orderid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="gg_orderno" )] + public string gg_orderno { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="gg_ordertype" )] + public string gg_ordertype { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="course" )] + public string course { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="refno" )] + public string refno { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="lectureruser" )] + public string lectureruser { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="lectureruserno" )] + public string lectureruserno { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="userno" )] + public string userno { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="user" )] + public string user { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="paytype" )] + public string paytype { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="payprice" )] + public decimal? payprice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="trade_channel" )] + public string trade_channel { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="order_status" )] + public string order_status { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="trade_status" )] + public string trade_status { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="trade_time" )] + public DateTime? trade_time { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ShOrdercheck.cs b/SA.Entity/zxdcrm_audit_Models/ShOrdercheck.cs new file mode 100644 index 0000000..7f94eca --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ShOrdercheck.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("sh_ordercheck")] + public class sh_ordercheck + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="sh_orderno" )] + public string sh_orderno { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="sh_orderid" )] + public string sh_orderid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="course" )] + public string course { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="user" )] + public string user { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="userno" )] + public string userno { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="sh_opendays" )] + public int? sh_opendays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public string orderid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="cname" )] + public string cname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="subproductname" )] + public string subproductname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="endtime3" )] + public DateTime? endtime3 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="diffdays" )] + public int? diffdays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="checktype" )] + public string checktype { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="checkinfo" )] + public string checkinfo { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="checktime" )] + public DateTime? checktime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/ShProduct.cs b/SA.Entity/zxdcrm_audit_Models/ShProduct.cs new file mode 100644 index 0000000..2d86b8d --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/ShProduct.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("sh_product")] + public class sh_product + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="module_id" )] + public int? module_id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="productname" )] + public string productname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="course" )] + public string course { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="refno" )] + public string refno { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/SoftUser.cs b/SA.Entity/zxdcrm_audit_Models/SoftUser.cs new file mode 100644 index 0000000..3346375 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/SoftUser.cs @@ -0,0 +1,139 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 软件用户表 + /// + [SugarTable("soft_user")] + public class soft_user + { + /// + /// 用户名 + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 密码 + /// + [SugarColumn(ColumnName="userpass" )] + public string userpass { get; set; } =""; + /// + /// 用户卡号 + /// + [SugarColumn(ColumnName="userno" )] + public int? userno { get; set; } + /// + /// 用户等级 + /// + [SugarColumn(ColumnName="userlevel" )] + public int? userlevel { get; set; } + /// + /// 是否接收短信 + /// + [SugarColumn(ColumnName="acceptsms" )] + public int? acceptsms { get; set; } + /// + /// 注册渠道 + /// + [SugarColumn(ColumnName="regcampainid" )] + public int? regcampainid { get; set; } + /// + /// 注册平台 + /// + [SugarColumn(ColumnName="regplatform" )] + public string regplatform { get; set; } =""; + /// + /// 认证状态 + /// + [SugarColumn(ColumnName="isactive" )] + public int? isactive { get; set; } + /// + /// 认证时间 + /// + [SugarColumn(ColumnName="activetime" )] + public DateTime? activetime { get; set; } + /// + /// 认证号码 + /// + [SugarColumn(ColumnName="activeresid" )] + public string activeresid { get; set; } =""; + /// + /// 认证渠道 + /// + [SugarColumn(ColumnName="actcampainid" )] + public int? actcampainid { get; set; } + /// + /// 修改时间 + /// + [SugarColumn(ColumnName="utime" )] + public DateTime? utime { get; set; } + /// + /// 添加时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// 公司ID + /// + [SugarColumn(ColumnName="companyid" )] + public int? companyid { get; set; } + /// + /// 注册时间 + /// + [SugarColumn(ColumnName="regdate" )] + public DateTime? regdate { get; set; } + /// + /// 初始资源ID + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// 电子邮件 + /// + [SugarColumn(ColumnName="email" )] + public string email { get; set; } =""; + /// + /// 客户端IP + /// + [SugarColumn(ColumnName="ip" )] + public string ip { get; set; } =""; + /// + /// 推荐人 + /// + [SugarColumn(ColumnName="eid" )] + public int? eid { get; set; } + /// + /// ***第三方用户ID*** + /// + [SugarColumn(ColumnName="openid" )] + public string openid { get; set; } =""; + /// + /// ***第三方平台*** + /// + [SugarColumn(ColumnName="openplat" )] + public string openplat { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="unionid" )] + public string unionid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="liveCode" )] + public string liveCode { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="regSource" )] + public string regSource { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/TModule.cs b/SA.Entity/zxdcrm_audit_Models/TModule.cs new file mode 100644 index 0000000..3b0e577 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/TModule.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("t_module")] + public class t_module + { + /// + /// 权限id + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true )] + public string id { get; set; } =""; + /// + /// 权限名称 + /// + [SugarColumn(ColumnName="name" )] + public string name { get; set; } =""; + /// + /// 是否有效权限,1:是;0:否或待确定 + /// 默认值: 1 + /// + [SugarColumn(ColumnName="flag" )] + public byte? flag { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="appimgurl" )] + public string appimgurl { get; set; } =""; + /// + /// + /// 默认值: CURRENT_TIMESTAMP + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// + /// 默认值: CURRENT_TIMESTAMP + /// + [SugarColumn(ColumnName="update_time" )] + public DateTime update_time { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="risklevel" )] + public int? risklevel { get; set; } + /// + /// + /// 默认值: 1 + /// + [SugarColumn(ColumnName="investtime" )] + public int investtime { get; set; } + /// + /// + /// 默认值: 1 + /// + [SugarColumn(ColumnName="investtype" )] + public int investtype { get; set; } + /// + /// 是否合规0:不走合规 1:正常走合规 + /// 默认值: 1 + /// + [SugarColumn(ColumnName="compliance" )] + public byte compliance { get; set; } + /// + /// 10是pc + /// + [SugarColumn(ColumnName="type" )] + public int type { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/TTraceUser.cs b/SA.Entity/zxdcrm_audit_Models/TTraceUser.cs new file mode 100644 index 0000000..6678164 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/TTraceUser.cs @@ -0,0 +1,255 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("t_trace_user")] + public class t_trace_user + { + /// + /// 优品帐号 + /// + [SugarColumn(ColumnName="uid" ,IsPrimaryKey = true )] + public string uid { get; set; } =""; + /// + /// 用户真实姓名 + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 用户绑定的手机号 + /// + [SugarColumn(ColumnName="bindmob" )] + public string bindmob { get; set; } =""; + /// + /// 用户身份证件号 + /// + [SugarColumn(ColumnName="idcardno" )] + public string idcardno { get; set; } =""; + /// + /// 身份证件类型, 1:身份证 + /// + [SugarColumn(ColumnName="idtype" )] + public byte? idtype { get; set; } + /// + /// 身份证件有效期 + /// + [SugarColumn(ColumnName="idexpire" )] + public long? idexpire { get; set; } + /// + /// 用户性别,1:女;2:男 + /// + [SugarColumn(ColumnName="gender" )] + public byte? gender { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="age" )] + public string age { get; set; } =""; + /// + /// 用户固定电话 + /// + [SugarColumn(ColumnName="tel" )] + public string tel { get; set; } =""; + /// + /// 用户联系地址 + /// + [SugarColumn(ColumnName="address" )] + public string address { get; set; } =""; + /// + /// 用户所在地邮编 + /// + [SugarColumn(ColumnName="postcode" )] + public string postcode { get; set; } =""; + /// + /// + /// 默认值: 用户邮箱地址 + /// + [SugarColumn(ColumnName="email" )] + public string email { get; set; } =""; + /// + /// 学历 + /// + [SugarColumn(ColumnName="degree" )] + public string degree { get; set; } =""; + /// + /// 年收入 + /// + [SugarColumn(ColumnName="yearlyincome" )] + public string yearlyincome { get; set; } =""; + /// + /// 股票投资金额 + /// + [SugarColumn(ColumnName="investmentamount" )] + public string investmentamount { get; set; } =""; + /// + /// 资金可用于投资的时长 + /// + [SugarColumn(ColumnName="investmenttime" )] + public string investmenttime { get; set; } =""; + /// + /// 用户投资经验 + /// + [SugarColumn(ColumnName="investmentexperience" )] + public string investmentexperience { get; set; } =""; + /// + /// 风险评测-投资品种 + /// + [SugarColumn(ColumnName="investmenttype" )] + public string investmenttype { get; set; } =""; + /// + /// 风险评测-投资资产分配 + /// + [SugarColumn(ColumnName="investmentallocation" )] + public string investmentallocation { get; set; } =""; + /// + /// 风险评测-投资首要目标 + /// + [SugarColumn(ColumnName="investmentpurpose" )] + public string investmentpurpose { get; set; } =""; + /// + /// 风险评测-投资可承受的最大损失 + /// + [SugarColumn(ColumnName="investmentaffordability" )] + public string investmentaffordability { get; set; } =""; + /// + /// 风险测评签名ID + /// + [SugarColumn(ColumnName="risksignid" )] + public string risksignid { get; set; } =""; + /// + /// 用户资金账号 + /// + [SugarColumn(ColumnName="bankaccount" )] + public string bankaccount { get; set; } =""; + /// + /// 用户出生日期 + /// + [SugarColumn(ColumnName="birthday" )] + public long? birthday { get; set; } + /// + /// 用户国籍 + /// + [SugarColumn(ColumnName="nationality" )] + public string nationality { get; set; } =""; + /// + /// 实际控制投资者的自然人(监护人) + /// + [SugarColumn(ColumnName="superintendent" )] + public string superintendent { get; set; } =""; + /// + /// 交易的实际受益人 + /// + [SugarColumn(ColumnName="beneficiary" )] + public string beneficiary { get; set; } =""; + /// + /// 用户工作单位 + /// + [SugarColumn(ColumnName="usercompany" )] + public string usercompany { get; set; } =""; + /// + /// 用户职务 + /// + [SugarColumn(ColumnName="position" )] + public string position { get; set; } =""; + /// + /// 用户职业 + /// + [SugarColumn(ColumnName="professional" )] + public string professional { get; set; } =""; + /// + /// 不良诚信记录 + /// + [SugarColumn(ColumnName="creditrecord" )] + public string creditrecord { get; set; } =""; + /// + /// 专业投资者申请书 + /// + [SugarColumn(ColumnName="applicationform" )] + public string applicationform { get; set; } =""; + /// + /// 身份证正面 + /// + [SugarColumn(ColumnName="idcardfront" )] + public string idcardfront { get; set; } =""; + /// + /// 身份证反面 + /// + [SugarColumn(ColumnName="idcardback" )] + public string idcardback { get; set; } =""; + /// + /// 音频视频资料 + /// + [SugarColumn(ColumnName="mediadata" )] + public string mediadata { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public long? ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="lastmodifytime" )] + public long? lastmodifytime { get; set; } + /// + /// 收入来源 + /// + [SugarColumn(ColumnName="incomesource" )] + public string incomesource { get; set; } =""; + /// + /// 投资占比 + /// + [SugarColumn(ColumnName="investmentrate" )] + public string investmentrate { get; set; } =""; + /// + /// 债务 + /// + [SugarColumn(ColumnName="debt" )] + public string debt { get; set; } =""; + /// + /// 实际情况 + /// + [SugarColumn(ColumnName="physicaltruth" )] + public string physicaltruth { get; set; } =""; + /// + /// 交易频率 + /// + [SugarColumn(ColumnName="transactionfrequency" )] + public string transactionfrequency { get; set; } =""; + /// + /// 投资数量 + /// + [SugarColumn(ColumnName="investmentnum" )] + public string investmentnum { get; set; } =""; + /// + /// 2年投资经验 + /// + [SugarColumn(ColumnName="twoyearsexperience" )] + public string twoyearsexperience { get; set; } =""; + /// + /// 平均交易额 + /// + [SugarColumn(ColumnName="averagetradingvolume" )] + public string averagetradingvolume { get; set; } =""; + /// + /// 投资回报 + /// + [SugarColumn(ColumnName="returnofinvestment" )] + public string returnofinvestment { get; set; } =""; + /// + /// 赡养家庭 + /// + [SugarColumn(ColumnName="supportfamily" )] + public string supportfamily { get; set; } =""; + /// + /// 家庭就业 + /// + [SugarColumn(ColumnName="familyemployment" )] + public string familyemployment { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxOrderPayclear.cs b/SA.Entity/zxdcrm_audit_Models/WxOrderPayclear.cs new file mode 100644 index 0000000..ebeac9f --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxOrderPayclear.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("wx_order_payclear")] + public class wx_order_payclear + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// + /// 默认值: 0 + /// + [SugarColumn(ColumnName="payid" )] + public int? payid { get; set; } + /// + /// 订单号 + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// 支付金额 + /// + [SugarColumn(ColumnName="payprice" )] + public decimal? payprice { get; set; } + /// + /// 支付时间 + /// + [SugarColumn(ColumnName="paydate" )] + public DateTime? paydate { get; set; } + /// + /// 支付时间 + /// + [SugarColumn(ColumnName="usedate" )] + public DateTime? usedate { get; set; } + /// + /// usestatus=0 未使用 usestatus=1 已使用 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="usestatus" )] + public int usestatus { get; set; } + /// + /// usertype=0 只付款 usertype=1 正向使用 usertype=-1 退款 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="usetype" )] + public int usetype { get; set; } + /// + /// 计算了苹果支付、魅族支付、华为支付手续费后的金额 + /// + [SugarColumn(ColumnName="useprice" )] + public decimal? useprice { get; set; } + /// + /// 原始金额 + /// + [SugarColumn(ColumnName="useprice2" )] + public decimal? useprice2 { get; set; } + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorder.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorder.cs new file mode 100644 index 0000000..2de559c --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorder.cs @@ -0,0 +1,431 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 上证综研订单表 + /// + [SugarTable("wx_szzyorder")] + public class wx_szzyorder + { + /// + /// 订单号 + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// 分公司号 + /// + [SugarColumn(ColumnName="employeeid" )] + public string employeeid { get; set; } =""; + /// + /// 分公司密码 + /// + [SugarColumn(ColumnName="password" )] + public string password { get; set; } =""; + /// + /// 分公司用户ID + /// + [SugarColumn(ColumnName="userid" )] + public string userid { get; set; } =""; + /// + /// 产品ID + /// + [SugarColumn(ColumnName="productid" )] + public int? productid { get; set; } + /// + /// 产品名称 + /// + [SugarColumn(ColumnName="productname" )] + public string productname { get; set; } =""; + /// + /// 子产品ID + /// + [SugarColumn(ColumnName="subproductid" )] + public int? subproductid { get; set; } + /// + /// 子产品名称 + /// + [SugarColumn(ColumnName="subproductname" )] + public string subproductname { get; set; } =""; + /// + /// 订单类型(默认为1)1:普通订单2:续费订单3:升级订单 + /// 默认值: 1 + /// + [SugarColumn(ColumnName="ordertype" )] + public int? ordertype { get; set; } + /// + /// 订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) + /// + [SugarColumn(ColumnName="upgradeorderids" )] + public string upgradeorderids { get; set; } =""; + /// + /// 升级补差总额(当OrderType=3时有效) + /// + [SugarColumn(ColumnName="totalupgradevalue" )] + public int? totalupgradevalue { get; set; } + /// + /// 应付金额(默认为子产品原价)当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 + /// + [SugarColumn(ColumnName="needpay" )] + public decimal? needpay { get; set; } + /// + /// 是否同时开通订单(默认为0,需要开通订单权限)0:否1:是 + /// + [SugarColumn(ColumnName="openorder" )] + public int? openorder { get; set; } + /// + /// 订单号(上海CRM系统生成) + /// + [SugarColumn(ColumnName="szzyorderid" )] + public long? szzyorderid { get; set; } + /// + /// 订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) + /// + [SugarColumn(ColumnName="orderstatus" )] + public string orderstatus { get; set; } =""; + /// + /// 接口返回下单时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// 接口返回应付金额 + /// + [SugarColumn(ColumnName="returnneedpay" )] + public int? returnneedpay { get; set; } + /// + /// 合同编号 + /// + [SugarColumn(ColumnName="contractcode" )] + public string contractcode { get; set; } =""; + /// + /// 返回码(0:成功,>0:错误码) + /// + [SugarColumn(ColumnName="ret" )] + public int? ret { get; set; } + /// + /// 错误信息(当ret>0时有效) + /// + [SugarColumn(ColumnName="msg" )] + public string msg { get; set; } =""; + /// + /// 接口返回详情 + /// + [SugarColumn(ColumnName="returndetail" )] + public string returndetail { get; set; } =""; + /// + /// 操作人 + /// + [SugarColumn(ColumnName="inneruserid" )] + public int? inneruserid { get; set; } + /// + /// 订单开通时间 + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 资源ID + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// 请求订单接口状态,1:成功,0:失败 + /// + [SugarColumn(ColumnName="requeststatus" )] + public int? requeststatus { get; set; } + /// + /// 是否月结 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isfinancepay" )] + public int? isfinancepay { get; set; } + /// + /// 月结日期 + /// + [SugarColumn(ColumnName="finacepaydate" )] + public DateTime? finacepaydate { get; set; } + /// + /// 订单修改备注 + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// 实际支付金额 + /// + [SugarColumn(ColumnName="finalpay" )] + public decimal? finalpay { get; set; } + /// + /// 订单状态名称 + /// + [SugarColumn(ColumnName="orderstatusname" )] + public string orderstatusname { get; set; } =""; + /// + /// 客服操作时间 + /// + [SugarColumn(ColumnName="operatetime" )] + public DateTime? operatetime { get; set; } + /// + /// 订单暂停结束时间 + /// + [SugarColumn(ColumnName="stime" )] + public string stime { get; set; } =""; + /// + /// 订单暂停结束时间 + /// + [SugarColumn(ColumnName="etime" )] + public string etime { get; set; } =""; + /// + /// 订单暂停权限备注说明 + /// + [SugarColumn(ColumnName="suspendcomment" )] + public string suspendcomment { get; set; } =""; + /// + /// 更新订单时间 + /// + [SugarColumn(ColumnName="updateordertime" )] + public DateTime? updateordertime { get; set; } + /// + /// 是否开通 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isopen" )] + public int? isopen { get; set; } + /// + /// 到期时间 + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// 售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属)0:总公司负责售后服务1:分公司负责售后服务 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="teamserve" )] + public int? teamserve { get; set; } + /// + /// 分成比例文本 + /// + [SugarColumn(ColumnName="fctext" )] + public string fctext { get; set; } =""; + /// + /// 客户微信用户名 + /// + [SugarColumn(ColumnName="customerusername" )] + public string customerusername { get; set; } =""; + /// + /// 到账金额 + /// + [SugarColumn(ColumnName="arrivalpay" )] + public decimal? arrivalpay { get; set; } + /// + /// 到账时间 + /// + [SugarColumn(ColumnName="arrivaltime" )] + public DateTime? arrivaltime { get; set; } + /// + /// 客户来源。1:推广资源,2:线下资源,3:自找资源 + /// + [SugarColumn(ColumnName="source" )] + public string source { get; set; } =""; + /// + /// 姓名 + /// + [SugarColumn(ColumnName="cname" )] + public string cname { get; set; } =""; + /// + /// 开通天数 + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// 订单用户归类 + /// + [SugarColumn(ColumnName="customerclassify" )] + public string customerclassify { get; set; } =""; + /// + /// 订单部门 + /// + [SugarColumn(ColumnName="saledeptid" )] + public int? saledeptid { get; set; } + /// + /// 软件用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 套数 + /// + [SugarColumn(ColumnName="booknum" )] + public int? booknum { get; set; } + /// + /// 开通用户 + /// + [SugarColumn(ColumnName="openuser" )] + public string openuser { get; set; } =""; + /// + /// 子类代码 + /// + [SugarColumn(ColumnName="productcode" )] + public string productcode { get; set; } =""; + /// + /// 大类代码 + /// + [SugarColumn(ColumnName="bigproductcode" )] + public string bigproductcode { get; set; } =""; + /// + /// 是否支付,0:未支付,1:已经支付 + /// + [SugarColumn(ColumnName="ispayed" )] + public int? ispayed { get; set; } + /// + /// 支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 + /// + [SugarColumn(ColumnName="paytype" )] + public int? paytype { get; set; } + /// + /// 用户名 + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 客户端IP地址 + /// + [SugarColumn(ColumnName="sIP" )] + public string sIP { get; set; } =""; + /// + /// 风控状态:1 通过,0 未通过 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="riskctrlstatus" )] + public int? riskctrlstatus { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="appusername" )] + public string appusername { get; set; } =""; + /// + /// 营业部编码 + /// + [SugarColumn(ColumnName="companycode" )] + public string companycode { get; set; } =""; + /// + /// 合同状态:0 新建 1:已签合同 + /// + [SugarColumn(ColumnName="contractstatus" )] + public int? contractstatus { get; set; } + /// + /// 合同签订时间 + /// + [SugarColumn(ColumnName="contractctime" )] + public DateTime? contractctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="qywxstatus" )] + public int? qywxstatus { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="qywxopendate" )] + public DateTime? qywxopendate { get; set; } + /// + /// 活动产品code + /// + [SugarColumn(ColumnName="activeproductcode" )] + public string activeproductcode { get; set; } =""; + /// + /// 活动产品信息 + /// + [SugarColumn(ColumnName="activeproductext" )] + public string activeproductext { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="istest" )] + public int? istest { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="hashgrecord" )] + public int? hashgrecord { get; set; } + /// + /// 身份证 + /// + [SugarColumn(ColumnName="idcard" )] + public string idcard { get; set; } =""; + /// + /// ***第三方平台订单号*** + /// + [SugarColumn(ColumnName="outorderno" )] + public string outorderno { get; set; } =""; + /// + /// 订单时间戳字段 + /// 默认值: CURRENT_TIMESTAMP + /// + [SugarColumn(ColumnName="utime" )] + public DateTime? utime { get; set; } + /// + /// 赠送天数 + /// + [SugarColumn(ColumnName="giftdays" )] + public int? giftdays { get; set; } + /// + /// 合规驳回说明 + /// + [SugarColumn(ColumnName="rejectremark" )] + public string rejectremark { get; set; } =""; + /// + /// 赠送第二产品天数 + /// + [SugarColumn(ColumnName="giftdays2" )] + public int? giftdays2 { get; set; } + /// + /// 企业微信外部联系人的userid + /// + [SugarColumn(ColumnName="external_userid" )] + public string external_userid { get; set; } =""; + /// + /// 企业微信好友ID + /// + [SugarColumn(ColumnName="wework_remoteid" )] + public string wework_remoteid { get; set; } =""; + /// + /// 结算类型 + /// + [SugarColumn(ColumnName="settletype" )] + public int? settletype { get; set; } + /// + /// 附件名称 + /// + [SugarColumn(ColumnName="fujian" )] + public string fujian { get; set; } =""; + /// + /// 微信小店单号 + /// + [SugarColumn(ColumnName="wXShopOrderNo" )] + public string wXShopOrderNo { get; set; } =""; + /// + /// + /// 默认值: CURRENT_TIMESTAMP(4) + /// + [SugarColumn(ColumnName="last_modify_time" )] + public DateTime? last_modify_time { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="retp" )] + public decimal? retp { get; set; } + /// + /// 部门编码 + /// + [SugarColumn(ColumnName="deptcode" )] + public string deptcode { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderHandgift.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderHandgift.cs new file mode 100644 index 0000000..a4d3039 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderHandgift.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorder_handgift")] + public class wx_szzyorder_handgift + { + /// + /// 订单号 + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// 父ID + /// + [SugarColumn(ColumnName="mainorderid" )] + public int? mainorderid { get; set; } + /// + /// 用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// 主产品SUBID + /// + [SugarColumn(ColumnName="productid" )] + public int productid { get; set; } + /// + /// 主产品SUBCODE + /// + [SugarColumn(ColumnName="productcode" )] + public string productcode { get; set; } =""; + /// + /// 订单状态 :0未开通、1已开通、2审核不通过,3.关闭 + /// + [SugarColumn(ColumnName="orderstatus" )] + public int orderstatus { get; set; } + /// + /// 赠送产品ID + /// + [SugarColumn(ColumnName="subproductcode" )] + public string subproductcode { get; set; } =""; + /// + /// 赠送产品名称 + /// + [SugarColumn(ColumnName="subproductname" )] + public string subproductname { get; set; } =""; + /// + /// 订单备注 + /// + [SugarColumn(ColumnName="memo" )] + public string memo { get; set; } =""; + /// + /// 创建用户 + /// + [SugarColumn(ColumnName="createuser" )] + public string createuser { get; set; } =""; + /// + /// 创建时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime ctime { get; set; } + /// + /// 渠道号 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 营业部编码 + /// + [SugarColumn(ColumnName="companycode" )] + public string companycode { get; set; } =""; + /// + /// 赠送天数 + /// + [SugarColumn(ColumnName="giftdays" )] + public int? giftdays { get; set; } + /// + /// 审核人 + /// + [SugarColumn(ColumnName="openuser" )] + public string openuser { get; set; } =""; + /// + /// 审核时间 + /// + [SugarColumn(ColumnName="optime" )] + public DateTime? optime { get; set; } + /// + /// 订单号(CRM系统生成) + /// + [SugarColumn(ColumnName="szzyorderid" )] + public long? szzyorderid { get; set; } + /// + /// 外部--父订单号(如新媒体二的订单号) + /// + [SugarColumn(ColumnName="parentoutorderno" )] + public string parentoutorderno { get; set; } =""; + /// + /// 外部--旧的订单号 + /// + [SugarColumn(ColumnName="oldoutorderno" )] + public string oldoutorderno { get; set; } =""; + /// + /// 外部--原订单号关闭权限时间 + /// + [SugarColumn(ColumnName="outorderclosetime" )] + public DateTime? outorderclosetime { get; set; } + /// + /// 外部--用户名称 + /// + [SugarColumn(ColumnName="userid" )] + public string userid { get; set; } =""; + /// + /// 审核备注 + /// + [SugarColumn(ColumnName="checkmemo" )] + public string checkmemo { get; set; } =""; + /// + /// 开通时间 + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 0-单一产品、1-组合产品 + /// + [SugarColumn(ColumnName="producttype" )] + public int? producttype { get; set; } + /// + /// 关闭时间 + /// + [SugarColumn(ColumnName="closetime" )] + public DateTime? closetime { get; set; } + /// + /// 关闭原因 + /// + [SugarColumn(ColumnName="closememo" )] + public string closememo { get; set; } =""; + /// + /// 关闭人 + /// + [SugarColumn(ColumnName="closeuser" )] + public string closeuser { get; set; } =""; + /// + /// 模块ID,多个模块ID用","隔开 + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderHandle.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderHandle.cs new file mode 100644 index 0000000..7e019f3 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderHandle.cs @@ -0,0 +1,430 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 上证综研订单表 + /// + [SugarTable("wx_szzyorder_handle")] + public class wx_szzyorder_handle + { + /// + /// 订单号 + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// 分公司号 + /// + [SugarColumn(ColumnName="employeeid" )] + public string employeeid { get; set; } =""; + /// + /// 分公司密码 + /// + [SugarColumn(ColumnName="password" )] + public string password { get; set; } =""; + /// + /// 分公司用户ID + /// + [SugarColumn(ColumnName="userid" )] + public string userid { get; set; } =""; + /// + /// 产品ID + /// + [SugarColumn(ColumnName="productid" )] + public int? productid { get; set; } + /// + /// 产品名称 + /// + [SugarColumn(ColumnName="productname" )] + public string productname { get; set; } =""; + /// + /// 子产品ID + /// + [SugarColumn(ColumnName="subproductid" )] + public int? subproductid { get; set; } + /// + /// 子产品名称 + /// + [SugarColumn(ColumnName="subproductname" )] + public string subproductname { get; set; } =""; + /// + /// 订单类型(默认为1)1:普通订单2:续费订单3:升级订单 + /// 默认值: 1 + /// + [SugarColumn(ColumnName="ordertype" )] + public int? ordertype { get; set; } + /// + /// 订单升级源订单号列表(以逗号分隔,当OrderType=3时有效) + /// + [SugarColumn(ColumnName="upgradeorderids" )] + public string upgradeorderids { get; set; } =""; + /// + /// 升级补差总额(当OrderType=3时有效) + /// + [SugarColumn(ColumnName="totalupgradevalue" )] + public int? totalupgradevalue { get; set; } + /// + /// 应付金额(默认为子产品原价)当OrderType=3时,NeedPay + TotalUpgradeValue应接近于产品原价 + /// + [SugarColumn(ColumnName="needpay" )] + public decimal? needpay { get; set; } + /// + /// 是否同时开通订单(默认为0,需要开通订单权限)0:否1:是 + /// + [SugarColumn(ColumnName="openorder" )] + public int? openorder { get; set; } + /// + /// 订单号(上海CRM系统生成) + /// + [SugarColumn(ColumnName="szzyorderid" )] + public long? szzyorderid { get; set; } + /// + /// 订单状态:新订单180、已开通220、已退款90、已过期80、已取消70,(已支付200、已升级210、已关闭60) + /// + [SugarColumn(ColumnName="orderstatus" )] + public string orderstatus { get; set; } =""; + /// + /// 接口返回下单时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// 接口返回应付金额 + /// + [SugarColumn(ColumnName="returnneedpay" )] + public int? returnneedpay { get; set; } + /// + /// 合同编号 + /// + [SugarColumn(ColumnName="contractcode" )] + public string contractcode { get; set; } =""; + /// + /// 返回码(0:成功,>0:错误码) + /// + [SugarColumn(ColumnName="ret" )] + public int? ret { get; set; } + /// + /// 错误信息(当ret>0时有效) + /// + [SugarColumn(ColumnName="msg" )] + public string msg { get; set; } =""; + /// + /// 接口返回详情 + /// + [SugarColumn(ColumnName="returndetail" )] + public string returndetail { get; set; } =""; + /// + /// 操作人 + /// + [SugarColumn(ColumnName="inneruserid" )] + public int? inneruserid { get; set; } + /// + /// 订单开通时间 + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 资源ID + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// 请求订单接口状态,1:成功,0:失败 + /// + [SugarColumn(ColumnName="requeststatus" )] + public int? requeststatus { get; set; } + /// + /// 是否月结 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isfinancepay" )] + public int? isfinancepay { get; set; } + /// + /// 月结日期 + /// + [SugarColumn(ColumnName="finacepaydate" )] + public DateTime? finacepaydate { get; set; } + /// + /// 订单修改备注 + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// 实际支付金额 + /// + [SugarColumn(ColumnName="finalpay" )] + public decimal? finalpay { get; set; } + /// + /// 订单状态名称 + /// + [SugarColumn(ColumnName="orderstatusname" )] + public string orderstatusname { get; set; } =""; + /// + /// 客服操作时间 + /// + [SugarColumn(ColumnName="operatetime" )] + public DateTime? operatetime { get; set; } + /// + /// 订单暂停结束时间 + /// + [SugarColumn(ColumnName="stime" )] + public string stime { get; set; } =""; + /// + /// 订单暂停结束时间 + /// + [SugarColumn(ColumnName="etime" )] + public string etime { get; set; } =""; + /// + /// 订单暂停权限备注说明 + /// + [SugarColumn(ColumnName="suspendcomment" )] + public string suspendcomment { get; set; } =""; + /// + /// 更新订单时间 + /// + [SugarColumn(ColumnName="updateordertime" )] + public DateTime? updateordertime { get; set; } + /// + /// 是否开通 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isopen" )] + public int? isopen { get; set; } + /// + /// 到期时间 + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// 售后服务归属(默认按上海CRM中配置的对应分公司的默认售后服务归属)0:总公司负责售后服务1:分公司负责售后服务 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="teamserve" )] + public int? teamserve { get; set; } + /// + /// 分成比例文本 + /// + [SugarColumn(ColumnName="fctext" )] + public string fctext { get; set; } =""; + /// + /// 客户微信用户名 + /// + [SugarColumn(ColumnName="customerusername" )] + public string customerusername { get; set; } =""; + /// + /// 到账金额 + /// + [SugarColumn(ColumnName="arrivalpay" )] + public decimal? arrivalpay { get; set; } + /// + /// 到账时间 + /// + [SugarColumn(ColumnName="arrivaltime" )] + public DateTime? arrivaltime { get; set; } + /// + /// 客户来源。1:推广资源,2:线下资源,3:自找资源 + /// + [SugarColumn(ColumnName="source" )] + public string source { get; set; } =""; + /// + /// 姓名 + /// + [SugarColumn(ColumnName="cname" )] + public string cname { get; set; } =""; + /// + /// 开通天数 + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// 订单用户归类 + /// + [SugarColumn(ColumnName="customerclassify" )] + public string customerclassify { get; set; } =""; + /// + /// 订单部门 + /// + [SugarColumn(ColumnName="saledeptid" )] + public int? saledeptid { get; set; } + /// + /// 软件用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 套数 + /// + [SugarColumn(ColumnName="booknum" )] + public int? booknum { get; set; } + /// + /// 开通用户 + /// + [SugarColumn(ColumnName="openuser" )] + public string openuser { get; set; } =""; + /// + /// 子类代码 + /// + [SugarColumn(ColumnName="productcode" )] + public string productcode { get; set; } =""; + /// + /// 大类代码 + /// + [SugarColumn(ColumnName="bigproductcode" )] + public string bigproductcode { get; set; } =""; + /// + /// 是否支付,0:未支付,1:已经支付 + /// + [SugarColumn(ColumnName="ispayed" )] + public int? ispayed { get; set; } + /// + /// 支付类型。1:支付宝,2:财富通,3:银行转账,4:网银支付,5:微信支付,6:支付宝银联 + /// + [SugarColumn(ColumnName="paytype" )] + public int? paytype { get; set; } + /// + /// 用户名 + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 客户端IP地址 + /// + [SugarColumn(ColumnName="sIP" )] + public string sIP { get; set; } =""; + /// + /// 风控状态:1 通过,0 未通过 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="riskctrlstatus" )] + public int? riskctrlstatus { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="appusername" )] + public string appusername { get; set; } =""; + /// + /// 营业部编码 + /// + [SugarColumn(ColumnName="companycode" )] + public string companycode { get; set; } =""; + /// + /// 合同状态:0 新建 1:已签合同 + /// + [SugarColumn(ColumnName="contractstatus" )] + public int? contractstatus { get; set; } + /// + /// 合同签订时间 + /// + [SugarColumn(ColumnName="contractctime" )] + public DateTime? contractctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="qywxstatus" )] + public int? qywxstatus { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="qywxopendate" )] + public DateTime? qywxopendate { get; set; } + /// + /// 活动产品code + /// + [SugarColumn(ColumnName="activeproductcode" )] + public string activeproductcode { get; set; } =""; + /// + /// 活动产品信息 + /// + [SugarColumn(ColumnName="activeproductext" )] + public string activeproductext { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="istest" )] + public int? istest { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="hashgrecord" )] + public int? hashgrecord { get; set; } + /// + /// 身份证 + /// + [SugarColumn(ColumnName="idcard" )] + public string idcard { get; set; } =""; + /// + /// ***第三方平台订单号*** + /// + [SugarColumn(ColumnName="outorderno" )] + public string outorderno { get; set; } =""; + /// + /// 订单时间戳字段 + /// 默认值: CURRENT_TIMESTAMP + /// + [SugarColumn(ColumnName="utime" )] + public DateTime? utime { get; set; } + /// + /// 赠送天数 + /// + [SugarColumn(ColumnName="giftdays" )] + public int? giftdays { get; set; } + /// + /// 合规驳回说明 + /// + [SugarColumn(ColumnName="rejectremark" )] + public string rejectremark { get; set; } =""; + /// + /// 赠送第二产品天数 + /// + [SugarColumn(ColumnName="giftdays2" )] + public int? giftdays2 { get; set; } + /// + /// 企业微信外部联系人的userid + /// + [SugarColumn(ColumnName="external_userid" )] + public string external_userid { get; set; } =""; + /// + /// 企业微信好友ID + /// + [SugarColumn(ColumnName="wework_remoteid" )] + public string wework_remoteid { get; set; } =""; + /// + /// 结算类型 + /// + [SugarColumn(ColumnName="settletype" )] + public int? settletype { get; set; } + /// + /// 附件名称 + /// + [SugarColumn(ColumnName="fujian" )] + public string fujian { get; set; } =""; + /// + /// 微信小店单号 + /// + [SugarColumn(ColumnName="wXShopOrderNo" )] + public string wXShopOrderNo { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="last_modify_time" )] + public DateTime? last_modify_time { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="retp" )] + public decimal? retp { get; set; } + /// + /// 部门编码 + /// + [SugarColumn(ColumnName="deptcode" )] + public string deptcode { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefine.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefine.cs new file mode 100644 index 0000000..4edab92 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefine.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 重新计算表 + /// + [SugarTable("wx_szzyorder_redefine")] + public class wx_szzyorder_redefine + { + /// + /// 订单ID + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// 软件用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// 状态码 + /// + [SugarColumn(ColumnName="status" )] + public int? status { get; set; } + /// + /// 状态名称 + /// + [SugarColumn(ColumnName="statusname" )] + public string statusname { get; set; } =""; + /// + /// 开始时间 + /// + [SugarColumn(ColumnName="starttime" )] + public DateTime? starttime { get; set; } + /// + /// 结束时间 + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// 订单类型: + /// + [SugarColumn(ColumnName="ordertype" )] + public string ordertype { get; set; } =""; + /// + /// 订单小类 + /// + [SugarColumn(ColumnName="midproductid" )] + public int? midproductid { get; set; } + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="arrivalpay" )] + public decimal? arrivalpay { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="giftdays" )] + public int? giftdays { get; set; } + /// + /// 序号 + /// + [SugarColumn(ColumnName="xuhao" )] + public int? xuhao { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefineTime.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefineTime.cs new file mode 100644 index 0000000..a3e72f6 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefineTime.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 重新计算表 + /// + [SugarTable("wx_szzyorder_redefine_time")] + public class wx_szzyorder_redefine_time + { + /// + /// 订单ID + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// 软件用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// 状态码 + /// + [SugarColumn(ColumnName="status" )] + public int? status { get; set; } + /// + /// 状态名称 + /// + [SugarColumn(ColumnName="statusname" )] + public string statusname { get; set; } =""; + /// + /// 开始时间 + /// + [SugarColumn(ColumnName="starttime" )] + public DateTime? starttime { get; set; } + /// + /// 结束时间 + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// 订单类型: + /// + [SugarColumn(ColumnName="ordertype" )] + public string ordertype { get; set; } =""; + /// + /// 订单小类 + /// + [SugarColumn(ColumnName="midproductid" )] + public int? midproductid { get; set; } + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="arrivalpay" )] + public decimal? arrivalpay { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="giftdays" )] + public int? giftdays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="xuhao" )] + public int? xuhao { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 是否是一天的订单 + /// + [SugarColumn(ColumnName="isoneday" )] + public int? isoneday { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefineTimeUpdate.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefineTimeUpdate.cs new file mode 100644 index 0000000..1aade29 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderRedefineTimeUpdate.cs @@ -0,0 +1,89 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 重新计算表 + /// + [SugarTable("wx_szzyorder_redefine_time_update")] + public class wx_szzyorder_redefine_time_update + { + /// + /// 订单ID + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// 软件用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// 状态码 + /// + [SugarColumn(ColumnName="status" )] + public int? status { get; set; } + /// + /// 状态名称 + /// + [SugarColumn(ColumnName="statusname" )] + public string statusname { get; set; } =""; + /// + /// 开始时间 + /// + [SugarColumn(ColumnName="starttime" )] + public DateTime? starttime { get; set; } + /// + /// 结束时间 + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// 订单类型: + /// + [SugarColumn(ColumnName="ordertype" )] + public string ordertype { get; set; } =""; + /// + /// 订单小类 + /// + [SugarColumn(ColumnName="midproductid" )] + public int? midproductid { get; set; } + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="arrivalpay" )] + public decimal? arrivalpay { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="giftdays" )] + public int? giftdays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="xuhao" )] + public int? xuhao { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// 是否是一天的订单 + /// + [SugarColumn(ColumnName="isoneday" )] + public int? isoneday { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderdeposit.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderdeposit.cs new file mode 100644 index 0000000..47a873a --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderdeposit.cs @@ -0,0 +1,144 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderdeposit")] + public class wx_szzyorderdeposit + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="paytype" )] + public int paytype { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="paytypename" )] + public string paytypename { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="paydate" )] + public DateTime? paydate { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="payprice" )] + public decimal payprice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="payname" )] + public string payname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="auditstatus" )] + public int? auditstatus { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="auditor" )] + public int? auditor { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="auditorname" )] + public string auditorname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="audittime" )] + public DateTime? audittime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="payno" )] + public string payno { get; set; } =""; + /// + /// -1:开通;0:未使用;1:已使用;(等于1状态的时候订金才能退款,开通状态下订单退款) + /// + [SugarColumn(ColumnName="isuse" )] + public int? isuse { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="companycode" )] + public string companycode { get; set; } =""; + /// + /// 订金关联的订单号(使用订金的时候确认订单号) + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="tradeno" )] + public string tradeno { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="isdelete" )] + public int? isdelete { get; set; } + /// + /// 提交人 + /// + [SugarColumn(ColumnName="creator" )] + public int? creator { get; set; } + /// + /// 提交人姓名 + /// + [SugarColumn(ColumnName="creatorname" )] + public string creatorname { get; set; } =""; + /// + /// 驳回说明 + /// + [SugarColumn(ColumnName="rejectremark" )] + public string rejectremark { get; set; } =""; + /// + /// 自动对账结果 + /// + [SugarColumn(ColumnName="checkreslut" )] + public string checkreslut { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="checkpaytime" )] + public DateTime? checkpaytime { get; set; } + /// + /// 部门编码 + /// + [SugarColumn(ColumnName="deptcode" )] + public string deptcode { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyordermodulerefund.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyordermodulerefund.cs new file mode 100644 index 0000000..e9e1deb --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyordermodulerefund.cs @@ -0,0 +1,170 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("wx_szzyordermodulerefund")] + public class wx_szzyordermodulerefund + { + /// + /// + /// + [SugarColumn(ColumnName="priid" ,IsPrimaryKey = true ,IsIdentity = true )] + public int priid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="id" )] + public int? id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int? orderid { get; set; } + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public string channel { get; set; } =""; + /// + /// 退款时间 + /// + [SugarColumn(ColumnName="refunddate" )] + public DateTime? refunddate { get; set; } + /// + /// 退款金额 + /// + [SugarColumn(ColumnName="refundprice" )] + public decimal? refundprice { get; set; } + /// + /// 退款类型 + /// + [SugarColumn(ColumnName="refundtype" )] + public int? refundtype { get; set; } + /// + /// 退款比例 + /// + [SugarColumn(ColumnName="refundpercentage" )] + public decimal? refundpercentage { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="account" )] + public string account { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="midproductid" )] + public string midproductid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="szzyorderid" )] + public long? szzyorderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ismorepay" )] + public int? ismorepay { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="starttime2" )] + public DateTime? starttime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="endtime2" )] + public DateTime? endtime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="usedays" )] + public int? usedays { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="opendays2" )] + public int? opendays2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="price2" )] + public decimal? price2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ctime2" )] + public DateTime? ctime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime2" )] + public DateTime? otime2 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="arrivalpay" )] + public decimal? arrivalpay { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="json_szzy_order_id" )] + public string json_szzy_order_id { get; set; } =""; + /// + /// 剩余天数 + /// + [SugarColumn(ColumnName="restday" )] + public int? restday { get; set; } + /// + /// 模块初始天数 + /// + [SugarColumn(ColumnName="module_openday" )] + public int? module_openday { get; set; } + /// + /// 模块初始金额 + /// + [SugarColumn(ColumnName="module_arrivalpay" )] + public decimal? module_arrivalpay { get; set; } + /// + /// 模块应退金额(*比例) + /// + [SugarColumn(ColumnName="module_refundprice" )] + public decimal? module_refundprice { get; set; } + /// + /// 区分订单或模块 10为订单 10以外为模块 + /// + [SugarColumn(ColumnName="is_order" )] + public int? is_order { get; set; } + /// + /// 0否 1 是 + /// + [SugarColumn(ColumnName="isoneday" )] + public string isoneday { get; set; } =""; + /// + /// 模块应退金额(原始) + /// + [SugarColumn(ColumnName="module_refundprice_bk" )] + public decimal module_refundprice_bk { get; set; } + /// + /// 10是 20否 是否module_price表抵扣过 + /// 默认值: 20 + /// + [SugarColumn(ColumnName="is_deduction" )] + public byte? is_deduction { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderpay.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderpay.cs new file mode 100644 index 0000000..0351d68 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderpay.cs @@ -0,0 +1,152 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 支付记录表 + /// + [SugarTable("wx_szzyorderpay")] + public class wx_szzyorderpay + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// 订单号 + /// + [SugarColumn(ColumnName="orderid" )] + public int orderid { get; set; } + /// + /// 下单金额 + /// + [SugarColumn(ColumnName="needpay" )] + public decimal needpay { get; set; } + /// + /// 支付类型 + /// + [SugarColumn(ColumnName="paytype" )] + public int paytype { get; set; } + /// + /// 支付类型名称 + /// + [SugarColumn(ColumnName="paytypename" )] + public string paytypename { get; set; } =""; + /// + /// 支付时间 + /// + [SugarColumn(ColumnName="paydate" )] + public DateTime? paydate { get; set; } + /// + /// 支付金额 + /// + [SugarColumn(ColumnName="payprice" )] + public decimal payprice { get; set; } + /// + /// 付款人姓名 + /// + [SugarColumn(ColumnName="payname" )] + public string payname { get; set; } =""; + /// + /// 备注 + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// 是否审核 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="auditstatus" )] + public int auditstatus { get; set; } + /// + /// 审核人 + /// + [SugarColumn(ColumnName="auditor" )] + public int? auditor { get; set; } + /// + /// 审核人姓名 + /// + [SugarColumn(ColumnName="auditorname" )] + public string auditorname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="audittime" )] + public DateTime? audittime { get; set; } + /// + /// 添加时间 + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime ctime { get; set; } + /// + /// 支付流水 + /// + [SugarColumn(ColumnName="payno" )] + public string payno { get; set; } =""; + /// + /// 营业部编码 + /// + [SugarColumn(ColumnName="companycode" )] + public string companycode { get; set; } =""; + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// 是否删除 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isdelete" )] + public int? isdelete { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="tradeno" )] + public string tradeno { get; set; } =""; + /// + /// 提交人 + /// + [SugarColumn(ColumnName="creator" )] + public int? creator { get; set; } + /// + /// 提交人姓名 + /// + [SugarColumn(ColumnName="creatorname" )] + public string creatorname { get; set; } =""; + /// + /// + /// 默认值: CURRENT_TIMESTAMP(4) + /// + [SugarColumn(ColumnName="last_modify_time" )] + public DateTime? last_modify_time { get; set; } + /// + /// 驳回说明 + /// + [SugarColumn(ColumnName="rejectremark" )] + public string rejectremark { get; set; } =""; + /// + /// 自动对账结果 + /// + [SugarColumn(ColumnName="checkreslut" )] + public string checkreslut { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="checkpaytime" )] + public DateTime? checkpaytime { get; set; } + /// + /// 订金表ID + /// + [SugarColumn(ColumnName="depositid" )] + public int? depositid { get; set; } + /// + /// 部门编码 + /// + [SugarColumn(ColumnName="deptcode" )] + public string deptcode { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderpayExt.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderpayExt.cs new file mode 100644 index 0000000..1565792 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderpayExt.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("wx_szzyorderpay_ext")] + public class wx_szzyorderpay_ext + { + /// + /// + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="payprice" )] + public decimal? payprice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderprice" )] + public decimal? orderprice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="costprice" )] + public decimal? costprice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="paytime" )] + public DateTime? paytime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="rate" )] + public decimal? rate { get; set; } + /// + /// + /// 默认值: 0.0000 + /// + [SugarColumn(ColumnName="overpayprice" )] + public decimal? overpayprice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="realpayprice" )] + public decimal? realpayprice { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyorderrefund.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderrefund.cs new file mode 100644 index 0000000..51d7d46 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyorderrefund.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 退款记录表 + /// + [SugarTable("wx_szzyorderrefund")] + public class wx_szzyorderrefund + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true )] + public int id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderid" )] + public int orderid { get; set; } + /// + /// 退款金额 + /// + [SugarColumn(ColumnName="refundprice" )] + public decimal refundprice { get; set; } + /// + /// 退款账号 + /// + [SugarColumn(ColumnName="account" )] + public string account { get; set; } =""; + /// + /// 退款人姓名 + /// + [SugarColumn(ColumnName="username" )] + public string username { get; set; } =""; + /// + /// 退款类型 + /// + [SugarColumn(ColumnName="refundtype" )] + public int refundtype { get; set; } + /// + /// 退款类型名称 + /// + [SugarColumn(ColumnName="refundtypename" )] + public string refundtypename { get; set; } =""; + /// + /// 退款时间 + /// + [SugarColumn(ColumnName="refunddate" )] + public DateTime? refunddate { get; set; } + /// + /// 备注 + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// 附件 + /// + [SugarColumn(ColumnName="att" )] + public string att { get; set; } =""; + /// + /// 审核状态 1:通过,0:未通过 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="auditstatus" )] + public int auditstatus { get; set; } + /// + /// 审核人 + /// + [SugarColumn(ColumnName="auditor" )] + public int? auditor { get; set; } + /// + /// 审核人姓名 + /// + [SugarColumn(ColumnName="auditorname" )] + public string auditorname { get; set; } =""; + /// + /// 审核时间 + /// + [SugarColumn(ColumnName="audittime" )] + public DateTime? audittime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="att2" )] + public string att2 { get; set; } =""; + /// + /// 营业部编码 + /// + [SugarColumn(ColumnName="companycode" )] + public string companycode { get; set; } =""; + /// + /// 渠道 + /// + [SugarColumn(ColumnName="channel" )] + public int? channel { get; set; } + /// + /// + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isdelete" )] + public int isdelete { get; set; } + /// + /// 是否多付费 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="ismorepay" )] + public int? ismorepay { get; set; } + /// + /// 提交人 + /// + [SugarColumn(ColumnName="creator" )] + public int? creator { get; set; } + /// + /// 提交人姓名 + /// + [SugarColumn(ColumnName="creatorname" )] + public string creatorname { get; set; } =""; + /// + /// 1:需要实际退款 0:退回可用余额(不需要实际退款) + /// 默认值: 1 + /// + [SugarColumn(ColumnName="isacturalrefund" )] + public int? isacturalrefund { get; set; } + /// + /// 1:老数据 0:新的退款数据 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isold" )] + public int? isold { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// + /// 默认值: CURRENT_TIMESTAMP(4) + /// + [SugarColumn(ColumnName="last_modify_time" )] + public DateTime last_modify_time { get; set; } + /// + /// 部门编码 + /// + [SugarColumn(ColumnName="deptcode" )] + public string deptcode { get; set; } =""; + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzyproduct.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzyproduct.cs new file mode 100644 index 0000000..00b3f3e --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzyproduct.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 产品大类表 + /// + [SugarTable("wx_szzyproduct")] + public class wx_szzyproduct + { + /// + /// 大产品id + /// + [SugarColumn(ColumnName="productid" ,IsPrimaryKey = true )] + public int productid { get; set; } + /// + /// 大产品名称 + /// + [SugarColumn(ColumnName="productname" )] + public string productname { get; set; } =""; + /// + /// 产品描述 + /// + [SugarColumn(ColumnName="productdesc" )] + public string productdesc { get; set; } =""; + /// + /// 产品简介 + /// + [SugarColumn(ColumnName="productbriefdesc" )] + public string productbriefdesc { get; set; } =""; + /// + /// 是否有效 + /// + [SugarColumn(ColumnName="isvalid" )] + public int? isvalid { get; set; } + /// + /// 产品向导 + /// + [SugarColumn(ColumnName="productguide" )] + public string productguide { get; set; } =""; + /// + /// 产品代码 + /// + [SugarColumn(ColumnName="productcode" )] + public string productcode { get; set; } =""; + /// + /// 是否是vip:1是,2不是,null不是 + /// + [SugarColumn(ColumnName="isvip" )] + public int? isvip { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="parentid" )] + public int? parentid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="sort" )] + public int? sort { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="level" )] + public int? level { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/WxSzzysubproduct.cs b/SA.Entity/zxdcrm_audit_Models/WxSzzysubproduct.cs new file mode 100644 index 0000000..a33348f --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/WxSzzysubproduct.cs @@ -0,0 +1,199 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// 产品表 + /// + [SugarTable("wx_szzysubproduct")] + public class wx_szzysubproduct + { + /// + /// 产品ID + /// + [SugarColumn(ColumnName="subproductid" ,IsPrimaryKey = true )] + public int subproductid { get; set; } + /// + /// 大产品ID + /// + [SugarColumn(ColumnName="productid" )] + public int productid { get; set; } + /// + /// 产品名称 + /// + [SugarColumn(ColumnName="subproductname" )] + public string subproductname { get; set; } =""; + /// + /// 产品描述 + /// + [SugarColumn(ColumnName="subproductdesc" )] + public string subproductdesc { get; set; } =""; + /// + /// 金额 + /// + [SugarColumn(ColumnName="price" )] + public decimal? price { get; set; } + /// + /// 权限周期 + /// + [SugarColumn(ColumnName="rightperiod" )] + public int? rightperiod { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="rightunit" )] + public string rightunit { get; set; } =""; + /// + /// 是否有效 + /// 默认值: 1 + /// + [SugarColumn(ColumnName="isvalid" )] + public int? isvalid { get; set; } + /// + /// 0:即时开通 1:指定日期延时开通 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="orderopentype" )] + public int? orderopentype { get; set; } + /// + /// 指定开通订单的日期 + /// + [SugarColumn(ColumnName="opendate" )] + public string opendate { get; set; } =""; + /// + /// 指定结束订单的日期 + /// + [SugarColumn(ColumnName="enddate" )] + public string enddate { get; set; } =""; + /// + /// 排序 + /// + [SugarColumn(ColumnName="sort" )] + public int? sort { get; set; } + /// + /// 产品别名 + /// + [SugarColumn(ColumnName="productalias" )] + public string productalias { get; set; } =""; + /// + /// 产品编码 + /// + [SugarColumn(ColumnName="productcode" )] + public string productcode { get; set; } =""; + /// + /// 0-单一产品、1-组合产品 + /// 默认值: 0 + /// + [SugarColumn(ColumnName="producttype" )] + public int? producttype { get; set; } + /// + /// 产品等级 + /// + [SugarColumn(ColumnName="productlevel" )] + public int? productlevel { get; set; } + /// + /// 产品等级 + /// + [SugarColumn(ColumnName="productinvesttime" )] + public int? productinvesttime { get; set; } + /// + /// 产品等级 + /// + [SugarColumn(ColumnName="productinvesttype" )] + public int productinvesttype { get; set; } + /// + /// 权限id + /// + [SugarColumn(ColumnName="mid" )] + public int? mid { get; set; } + /// + /// 是否合规,1:是,0:否。主要在线订单同步到线下的时候,根据该状态值来判断是否写入合同数据 + /// 默认值: 1 + /// + [SugarColumn(ColumnName="iscompliance" )] + public int? iscompliance { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="mids" )] + public string mids { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="canupgrade" )] + public int? canupgrade { get; set; } + /// + /// 产品分类 + /// + [SugarColumn(ColumnName="category" )] + public int? category { get; set; } + /// + /// 是否关闭被升级订单权限 + /// + [SugarColumn(ColumnName="closeupgraderole" )] + public int? closeupgraderole { get; set; } + /// + /// 第三方订单分类 + /// + [SugarColumn(ColumnName="thirdordercate" )] + public int? thirdordercate { get; set; } + /// + /// 二级分类 + /// + [SugarColumn(ColumnName="midproductid" )] + public int? midproductid { get; set; } + /// + /// 是否有赠送 + /// + [SugarColumn(ColumnName="isgift" )] + public int? isgift { get; set; } + /// + /// 是否支持在线购买 + /// + [SugarColumn(ColumnName="isonlinebuy" )] + public int? isonlinebuy { get; set; } + /// + /// 在线购买链接 + /// + [SugarColumn(ColumnName="buylink" )] + public string buylink { get; set; } =""; + /// + /// 支付成功回调页面 + /// + [SugarColumn(ColumnName="callbacklink" )] + public string callbacklink { get; set; } =""; + /// + /// 附件路径 + /// + [SugarColumn(ColumnName="att" )] + public string att { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="remark" )] + public string remark { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="productext" )] + public string productext { get; set; } =""; + /// + /// + /// 默认值: 0 + /// + [SugarColumn(ColumnName="isdelete" )] + public int isdelete { get; set; } + /// + /// 标签id + /// + [SugarColumn(ColumnName="lablenameid" )] + public int? lablenameid { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="settletype" )] + public int? settletype { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/Xinmeiti2ModulePrice.cs b/SA.Entity/zxdcrm_audit_Models/Xinmeiti2ModulePrice.cs new file mode 100644 index 0000000..82fc39e --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/Xinmeiti2ModulePrice.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("xinmeiti2_module_price")] + public class xinmeiti2_module_price + { + /// + /// 新媒体二的订单编号 + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// 服务开始时间 + /// + [SugarColumn(ColumnName="begintime" )] + public DateTime? begintime { get; set; } + /// + /// 服务结束时间 + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// 预期开通天数 + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// 呱呱订单id + /// + [SugarColumn(ColumnName="outorderno" )] + public string outorderno { get; set; } =""; + /// + /// 用户id + /// + [SugarColumn(ColumnName="userid" )] + public string userid { get; set; } =""; + /// + /// 确认到款时间 + /// + [SugarColumn(ColumnName="arrivaltime" )] + public DateTime? arrivaltime { get; set; } + /// + /// 确认到款金额 + /// + [SugarColumn(ColumnName="arrivalpay" )] + public int? arrivalpay { get; set; } + /// + /// 入库时间 + /// 默认值: CURRENT_TIMESTAMP + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// 更新时间 + /// 默认值: CURRENT_TIMESTAMP + /// + [SugarColumn(ColumnName="utime" )] + public DateTime? utime { get; set; } + /// + /// 计算时间的时候,要合并结算的订单号 + /// + [SugarColumn(ColumnName="mainorderid" )] + public int? mainorderid { get; set; } + /// + /// 东高的软件用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// 模块id + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// 实际使用天数 + /// + [SugarColumn(ColumnName="usedays" )] + public int? usedays { get; set; } + /// + /// + /// 默认值: CURRENT_TIMESTAMP(4) + /// + [SugarColumn(ColumnName="last_modify_time" )] + public DateTime? last_modify_time { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/Xinmeiti2ModulePriceFix.cs b/SA.Entity/zxdcrm_audit_Models/Xinmeiti2ModulePriceFix.cs new file mode 100644 index 0000000..6492639 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/Xinmeiti2ModulePriceFix.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("xinmeiti2_module_price_fix")] + public class xinmeiti2_module_price_fix + { + /// + /// 新媒体二的订单编号 + /// + [SugarColumn(ColumnName="orderid" ,IsPrimaryKey = true )] + public int orderid { get; set; } + /// + /// 服务开始时间 + /// + [SugarColumn(ColumnName="begintime" )] + public DateTime? begintime { get; set; } + /// + /// 服务结束时间 + /// + [SugarColumn(ColumnName="endtime" )] + public DateTime? endtime { get; set; } + /// + /// 预期开通天数 + /// + [SugarColumn(ColumnName="opendays" )] + public int? opendays { get; set; } + /// + /// 呱呱订单id + /// + [SugarColumn(ColumnName="outorderno" )] + public string outorderno { get; set; } =""; + /// + /// 用户id + /// + [SugarColumn(ColumnName="userid" )] + public string userid { get; set; } =""; + /// + /// 确认到款时间 + /// + [SugarColumn(ColumnName="arrivaltime" )] + public DateTime? arrivaltime { get; set; } + /// + /// 确认到款金额 + /// + [SugarColumn(ColumnName="arrivalpay" )] + public int? arrivalpay { get; set; } + /// + /// 入库时间 + /// 默认值: CURRENT_TIMESTAMP + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// 更新时间 + /// 默认值: CURRENT_TIMESTAMP + /// + [SugarColumn(ColumnName="utime" )] + public DateTime? utime { get; set; } + /// + /// 计算时间的时候,要合并结算的订单号 + /// + [SugarColumn(ColumnName="mainorderid" )] + public int? mainorderid { get; set; } + /// + /// 东高的软件用户名 + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// 模块id + /// + [SugarColumn(ColumnName="moduleid" )] + public string moduleid { get; set; } =""; + /// + /// 实际使用天数 + /// + [SugarColumn(ColumnName="usedays" )] + public int? usedays { get; set; } + /// + /// + /// 默认值: CURRENT_TIMESTAMP(4) + /// + [SugarColumn(ColumnName="last_modify_time" )] + public DateTime last_modify_time { get; set; } + } +} diff --git a/SA.Entity/zxdcrm_audit_Models/Xinmeiti3.cs b/SA.Entity/zxdcrm_audit_Models/Xinmeiti3.cs new file mode 100644 index 0000000..384c986 --- /dev/null +++ b/SA.Entity/zxdcrm_audit_Models/Xinmeiti3.cs @@ -0,0 +1,180 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using SqlSugar; +namespace SA.Entity.zxdcrm_audit_Models +{ + /// + /// + /// + [SugarTable("xinmeiti3")] + public class xinmeiti3 + { + /// + /// + /// + [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )] + public int id { get; set; } + /// + /// wx订单号 + /// + [SugarColumn(ColumnName="orderid" )] + public string orderid { get; set; } =""; + /// + /// 订单号(wx订单号,handgift订单,l2订单号) + /// + [SugarColumn(ColumnName="bussiness_order_id" )] + public string bussiness_order_id { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="resid" )] + public string resid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="cname" )] + public string cname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="subproductname" )] + public string subproductname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="orderstatusname" )] + public string orderstatusname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="otime" )] + public DateTime? otime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="arrivalpay" )] + public string arrivalpay { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="midproductid" )] + public string midproductid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="midproductname" )] + public string midproductname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="needpay" )] + public string needpay { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="arrivaltime" )] + public string arrivaltime { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="orderprice" )] + public string orderprice { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="opendays" )] + public string opendays { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="ctime" )] + public DateTime? ctime { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="upgradeorderids" )] + public string upgradeorderids { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="product_name" )] + public string product_name { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="department" )] + public string department { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="softusername" )] + public string softusername { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="szzyorderid" )] + public string szzyorderid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="contractcode" )] + public string contractcode { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="productname" )] + public string productname { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="starttime3" )] + public DateTime? starttime3 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="endtime3" )] + public DateTime? endtime3 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="isVirOrder" )] + public string isVirOrder { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="mobile" )] + public string mobile { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="endtime_xinmeiti3" )] + public DateTime? endtime_xinmeiti3 { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="dg_orderid" )] + public string dg_orderid { get; set; } =""; + /// + /// + /// + [SugarColumn(ColumnName="module_id" )] + public int? module_id { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="orderstatus" )] + public long? orderstatus { get; set; } + /// + /// + /// + [SugarColumn(ColumnName="mainorderid" )] + public string mainorderid { get; set; } =""; + /// + /// + /// 默认值: CURRENT_TIMESTAMP(4) + /// + [SugarColumn(ColumnName="last_modify_time" )] + public DateTime last_modify_time { get; set; } + } +} diff --git a/SA.Quartz/ApplicationBuilderExtensions.cs b/SA.Quartz/ApplicationBuilderExtensions.cs new file mode 100644 index 0000000..e5ac58d --- /dev/null +++ b/SA.Quartz/ApplicationBuilderExtensions.cs @@ -0,0 +1,17 @@ +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; + +namespace SA.Quartz +{ + public static class ApplicationBuilderExtensions + { + public static IHost UseQuartzJob(this IHost host) + { + var applicationLifetime = host.Services.GetRequiredService(); + var quartz = host.Services.GetRequiredService(); + applicationLifetime.ApplicationStarted.Register(quartz.Start); + applicationLifetime.ApplicationStopped.Register(quartz.Stop); + return host; + } + } +} diff --git a/SA.Quartz/IOCJobFactory.cs b/SA.Quartz/IOCJobFactory.cs new file mode 100644 index 0000000..d50c7fd --- /dev/null +++ b/SA.Quartz/IOCJobFactory.cs @@ -0,0 +1,33 @@ +using Quartz; +using Quartz.Spi; +using System; + +namespace SA.Quartz +{ + using IOCContainer = IServiceProvider; + + /// + /// IOCJobFactory :实现在Timer触发的时候注入生成对应的Job组件 + /// + public class IOCJobFactory : IJobFactory + { + protected readonly IOCContainer Container; + + public IOCJobFactory(IOCContainer container) + { + Container = container; + } + + //Called by the scheduler at the time of the trigger firing, in order to produce + //a Quartz.IJob instance on which to call Execute. + public IJob NewJob(TriggerFiredBundle bundle, IScheduler scheduler) + { + return Container.GetService(bundle.JobDetail.JobType) as IJob; + } + + // Allows the job factory to destroy/cleanup the job if needed. + public void ReturnJob(IJob job) + { + } + } +} diff --git a/SA.Quartz/QuartzDataAttribute.cs b/SA.Quartz/QuartzDataAttribute.cs new file mode 100644 index 0000000..9880b08 --- /dev/null +++ b/SA.Quartz/QuartzDataAttribute.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Quartz +{ + [AttributeUsage(AttributeTargets.Class)] + public class QuartzDataAttribute : Attribute + { + public string Key { get; set; } + + public string Value { get; set; } + + public Type ValueType { get; set; } + + public QuartzDataAttribute(string key, string value) + { + if (string.IsNullOrEmpty(key)) + { + throw new ArgumentNullException(nameof(key)); + } + if (string.IsNullOrEmpty(value)) + { + throw new ArgumentNullException(nameof(value)); + } + Key = key; + Value = value; + ValueType = value.GetType(); + } + + public QuartzDataAttribute(string key, int value) + { + if (string.IsNullOrEmpty(key)) + { + throw new ArgumentNullException(nameof(key)); + } + Key = key; + Value = value.ToString(); + ValueType = value.GetType(); + } + + public QuartzDataAttribute(string key, long value) + { + if (string.IsNullOrEmpty(key)) + { + throw new ArgumentNullException(nameof(key)); + } + Key = key; + Value = value.ToString(); + ValueType = value.GetType(); + } + + public QuartzDataAttribute(string key, float value) + { + if (string.IsNullOrEmpty(key)) + { + throw new ArgumentNullException(nameof(key)); + } + Key = key; + Value = value.ToString(); + ValueType = value.GetType(); + } + + public QuartzDataAttribute(string key, double value) + { + if (string.IsNullOrEmpty(key)) + { + throw new ArgumentNullException(nameof(key)); + } + Key = key; + Value = value.ToString(); + ValueType = value.GetType(); + } + + public QuartzDataAttribute(string key, decimal value) + { + if (string.IsNullOrEmpty(key)) + { + throw new ArgumentNullException(nameof(key)); + } + Key = key; + Value = value.ToString(); + ValueType = value.GetType(); + } + + public QuartzDataAttribute(string key, bool value) + { + if (string.IsNullOrEmpty(key)) + { + throw new ArgumentNullException(nameof(key)); + } + Key = key; + Value = value.ToString(); + ValueType = value.GetType(); + } + } +} diff --git a/SA.Quartz/QuartzExtensions.cs b/SA.Quartz/QuartzExtensions.cs new file mode 100644 index 0000000..f4cf4b5 --- /dev/null +++ b/SA.Quartz/QuartzExtensions.cs @@ -0,0 +1,101 @@ +using Quartz; +using System; + +namespace SA.Quartz +{ + internal static class QuartzExtensions + { + /// + /// + /// + /// + /// + /// + /// + /// + public static T If(this T t, bool condition, Action action) where T : class + { + if (condition) + { + action(t); + } + + return t; + } + + /// + /// + /// + /// + /// + /// + /// + /// + public static T If(this T t, Predicate predicate, Action action) where T : class + { + if (t == null) + { + throw new ArgumentNullException(); + } + + if (predicate(t)) + { + action(t); + } + + return t; + } + + /// + /// + /// + /// + /// + /// + /// + /// + public static T If(this T t, Predicate predicate, Func func) where T : struct => predicate(t) ? func(t) : t; + + /// + /// add job data + /// + /// + /// + /// + /// + public static void AddJobData(this TriggerBuilder trigger, string key, string value, Type type) + { + if (type.FullName == null) return; + switch (type.FullName.ToLower()) + { + case "int": + trigger.UsingJobData(key, int.Parse(value)); + break; + + case "long": + trigger.UsingJobData(key, long.Parse(value)); + break; + + case "float": + trigger.UsingJobData(key, float.Parse(value)); + break; + + case "double": + trigger.UsingJobData(key, double.Parse(value)); + break; + + case "decimal": + trigger.UsingJobData(key, decimal.Parse(value)); + break; + + case "bool": + trigger.UsingJobData(key, bool.Parse(value)); + break; + + default: + trigger.UsingJobData(key, value); + break; + } + } + } +} diff --git a/SA.Quartz/QuartzJob.cs b/SA.Quartz/QuartzJob.cs new file mode 100644 index 0000000..7d95be9 --- /dev/null +++ b/SA.Quartz/QuartzJob.cs @@ -0,0 +1,38 @@ +using Quartz; +using System; +using System.Diagnostics; +using System.Threading.Tasks; + +namespace SA.Quartz +{ + public abstract class QuartzJob : IJob + { + protected IJobExecutionContext? _context; + + public QuartzJob() + { + } + + public async Task Execute(IJobExecutionContext context) + { + _context = context; + if (!context.CancellationToken.IsCancellationRequested) + { + Log.Debug($"[{DateTimeOffset.Now}] {this.GetType().Name} 后台任务开始执行!"); + var watch = Stopwatch.StartNew(); + watch.Restart(); + try + { + await ExecuteAsync(); + } + catch (Exception ex) + { + Log.Debug($"[{DateTimeOffset.Now}] {this.GetType().Name} 后台任务执行出错!ex:{ex.Message}"); + } + Log.Debug($"[{DateTimeOffset.Now}] {this.GetType().Name} 后台任务执行完成!用时: {watch.ElapsedMilliseconds / 1000D:0.000}s"); + } + } + + protected abstract Task ExecuteAsync(); + } +} diff --git a/SA.Quartz/QuartzJobAttribute.cs b/SA.Quartz/QuartzJobAttribute.cs new file mode 100644 index 0000000..958763f --- /dev/null +++ b/SA.Quartz/QuartzJobAttribute.cs @@ -0,0 +1,52 @@ +using Quartz; +using System; + +namespace SA.Quartz +{ + [AttributeUsage(AttributeTargets.Class, Inherited = false)] + public class QuartzJobAttribute : Attribute + { + public string Cron { get; set; } + + public string Name { get; set; } + + public string Group { get; set; } + + public Action Action { get; set; } + + public QuartzJobAttribute(string name, string group) + { + if (string.IsNullOrEmpty(name)) + { + throw new ArgumentNullException(nameof(name)); + } + if (string.IsNullOrEmpty(group)) + { + throw new ArgumentNullException(nameof(group)); + } + + Name = name; + Group = group; + Action = x => x.WithIntervalInSeconds(2).RepeatForever(); + } + + public QuartzJobAttribute(string name, string group, string cron) + { + if (string.IsNullOrEmpty(name)) + { + throw new ArgumentNullException(nameof(name)); + } + if (string.IsNullOrEmpty(group)) + { + throw new ArgumentNullException(nameof(group)); + } + if (string.IsNullOrEmpty(cron)) + { + throw new ArgumentNullException(nameof(cron)); + } + Name = name; + Group = group; + Cron = cron; + } + } +} diff --git a/SA.Quartz/QuartzStartup.cs b/SA.Quartz/QuartzStartup.cs new file mode 100644 index 0000000..0d0a53c --- /dev/null +++ b/SA.Quartz/QuartzStartup.cs @@ -0,0 +1,75 @@ +using Quartz; +using Quartz.Impl; +using Quartz.Spi; +using System; +using System.Linq; + +namespace SA.Quartz +{ + using IOCContainer = IServiceProvider; + + // Quartz.Net启动后注册job和trigger + public class QuartzStartup + { + private IScheduler Scheduler { get; set; } + + private readonly IJobFactory iocJobfactory; + + public QuartzStartup(IOCContainer IocContainer) + { + iocJobfactory = new IOCJobFactory(IocContainer); + var schedulerFactory = new StdSchedulerFactory(); + Scheduler = schedulerFactory.GetScheduler().Result; + Scheduler.JobFactory = iocJobfactory; + } + + public void Start() + { + Log.Information("Schedule job load as application start."); + Scheduler.Start().Wait(); + var types = AppDomain.CurrentDomain.GetAssemblies() + .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(IJob)))) + .ToArray(); + var jobCount = 0; + foreach (var type in types) + { + foreach (QuartzJobAttribute quartzJob in type.GetCustomAttributes(typeof(QuartzJobAttribute), true)) + { + var jobDetail = JobBuilder.Create(type) + .WithIdentity(quartzJob.Name, quartzJob.Group) + .Build(); + + var trigger = TriggerBuilder.Create() + .WithIdentity(quartzJob.Name, quartzJob.Group) + // Seconds,Minutes,Hours,Day-of-Month,Month,Day-of-Week,Year(optional field) + .If(quartzJob.Action != null, x => x.WithSimpleSchedule(quartzJob.Action)) + .If(!string.IsNullOrEmpty(quartzJob.Cron), x => x.WithCronSchedule(quartzJob.Cron)) + .StartNow(); + + foreach (QuartzDataAttribute quartzData in type.GetCustomAttributes(typeof(QuartzDataAttribute), true)) + { + trigger.AddJobData(quartzData.Key, quartzData.Value, quartzData.ValueType); + } + jobCount++; + Scheduler.ScheduleJob(jobDetail, trigger.Build()).Wait(); + Scheduler.TriggerJob(new JobKey(quartzJob.Name, quartzJob.Group)); + } + } + Log.Information($"{jobCount} quartz jobs were successfully initialized. Schedule job load end."); + } + + public void Stop() + { + if (Scheduler == null) + { + return; + } + if (Scheduler.Shutdown(waitForJobsToComplete: true).Wait(30000)) + Scheduler = null; + else + { + } + Log.Warning("Schedule job upload as application stopped."); + } + } +} \ No newline at end of file diff --git a/SA.Quartz/SA.Quartz.csproj b/SA.Quartz/SA.Quartz.csproj new file mode 100644 index 0000000..6e9800e --- /dev/null +++ b/SA.Quartz/SA.Quartz.csproj @@ -0,0 +1,23 @@ + + + + net6.0 + enable + enable + + + + + + + + + + + + + + + + + diff --git a/SA.Quartz/ServiceCollectionExtensions.cs b/SA.Quartz/ServiceCollectionExtensions.cs new file mode 100644 index 0000000..2f58326 --- /dev/null +++ b/SA.Quartz/ServiceCollectionExtensions.cs @@ -0,0 +1,35 @@ +using Microsoft.Extensions.DependencyInjection; +using System; +using Quartz; +using System.Linq; + +namespace SA.Quartz +{ + /// + /// Extensions method + /// + public static class ServiceCollectionExtensions + { + /// + /// 初始化任务 + /// + /// + /// + /// + public static IServiceCollection AddQuartzJob(this IServiceCollection services) + { + var types = AppDomain.CurrentDomain.GetAssemblies() + .SelectMany(a => a.GetTypes().Where(t => t.GetInterfaces().Contains(typeof(IJob)))) + .ToArray(); + foreach (var type in types) + { + foreach (QuartzJobAttribute quartzJob in type.GetCustomAttributes(typeof(QuartzJobAttribute), true)) + { + services.AddTransient(type); + } + } + services.AddSingleton(); + return services; + } + } +} diff --git a/SA.Test/GenOrderCall/GenOrderCallTests.cs b/SA.Test/GenOrderCall/GenOrderCallTests.cs new file mode 100644 index 0000000..7128cb1 --- /dev/null +++ b/SA.Test/GenOrderCall/GenOrderCallTests.cs @@ -0,0 +1,117 @@ +using Microsoft.VisualStudio.TestTools.UnitTesting; +using SA.Entity.zxdcrm_Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SA.Domain.XFYun.Tests +{ + [TestClass()] + public class GenOrderCallTests + { + [TestMethod()] + public void GetProposTest() + { + GenOrderCall genOrderCall = new GenOrderCall(); + + List wxSzzyorders = new List(); + + WxSzzyorder wxSzzyorder1 = new WxSzzyorder() + { + Cname = "司马相如", + Idcard = "511323017811111234", + Subproductname = "股海擒龙尊享版", + Opendays = 143, + Arrivalpay = 6000, + Giftdays = 8, + Giftdays2 = 6 + }; + wxSzzyorders.Add(wxSzzyorder1); + WxSzzyorder wxSzzyorder2 = new WxSzzyorder() + { + Subproductname = "股海擒龙尊享版", + Opendays = 143, + Arrivalpay = 6000, + Giftdays = 8, + Giftdays2 = 6 + }; + wxSzzyorders.Add(@wxSzzyorder2); + WxSzzyorder wxSzzyorder3 = new WxSzzyorder() + { + Subproductname = "股海擒龙至尊版", + Opendays = 145, + Arrivalpay = 7000, + Giftdays = 9, + Giftdays2 = 7 + }; + wxSzzyorders.Add(wxSzzyorder3); + WxSzzyorder wxSzzyorder4 = new WxSzzyorder() + { + Subproductname = "股海擒龙至尊版研报", + Opendays = 1, + Arrivalpay = 5000, + }; + wxSzzyorders.Add(wxSzzyorder4); + + var pronpo = GenOrderCall.GetPropos(wxSzzyorders); + + var result = "{\"【姓氏】\":\"司\",\"【先生/女士】\":\"先生\",\"【姓名】\":\"司马相如\",\"【身份证后6位】\":\"111234\",\"【产品确认】\":\"请问您购买的产品是【股海擒龙尊享版】和【股海擒龙至尊版】和【股海擒龙至尊版研报】,其中【股海擒龙尊享版】购买期限是【286】天,赠送期限是【28】天,合计使用期限是【314】天,【股海擒龙至尊版】购买期限是【145】天,赠送期限是【16】天,合计使用期限是【161】天,您本次支付的订单金额是【二万四仟元】。\"}"; + + Assert.AreEqual(pronpo, result); + } + + [TestMethod()] + public void GetProposOneTest() + { + GenOrderCall genOrderCall = new GenOrderCall(); + + List wxSzzyorders = new List(); + + WxSzzyorder wxSzzyorder1 = new WxSzzyorder() + { + Cname = "司马相如", + Idcard = "511323017811111234", + Subproductname = "股海擒龙尊享版", + Opendays = 1, + Arrivalpay = 6000, + Giftdays = 8, + Giftdays2 = 6 + }; + wxSzzyorders.Add(wxSzzyorder1); + + var pronpo = GenOrderCall.GetPropos(wxSzzyorders); + + var result = ""; + + Assert.AreEqual(pronpo, result); + } + + [TestMethod()] + public void PriceToCnTest() + { + // GenOrderCall genOrderCall = new GenOrderCall(); + var price = 55800m; + var cn = GenOrderCall.PriceToCn(price); + var result = "五万五仟八佰元"; + Assert.AreEqual(cn, result); + } + + [TestMethod()] + public void GetOrderTest() + { + GenOrderCall genOrderCall = new GenOrderCall(); + genOrderCall.GetOrder(); + Assert.Fail(); + } + + [TestMethod()] + public void CheckOrderSameUserNotFinishTest() + { + var resid = ""; + + Assert.Fail(); + } + } +} \ No newline at end of file diff --git a/SA.Test/JobUnitTest.cs b/SA.Test/JobUnitTest.cs new file mode 100644 index 0000000..6093a26 --- /dev/null +++ b/SA.Test/JobUnitTest.cs @@ -0,0 +1,178 @@ +namespace SA.Test +{ + [TestClass] + public class JobUnitTest + { + private readonly IXFYunApi _xfyunApi; + private readonly IZXDApi _zxdApi; + + public JobUnitTest() + { + const string OUTPUT_TEMPLATE = "{Timestamp:yyyy-MM-dd HH:mm:ss.fff} <{ThreadId}> [{Level:u3}] {Message:lj}{NewLine}{Exception}"; + Log.Logger = new LoggerConfiguration() + .MinimumLevel.Debug() + .MinimumLevel.Override("Microsoft", LogEventLevel.Information) + .MinimumLevel.Override("Microsoft.EntityFrameworkCore", LogEventLevel.Warning) + .Enrich.WithThreadId() + .Enrich.FromLogContext() + .WriteTo.Console(outputTemplate: OUTPUT_TEMPLATE) + .WriteTo.File("logs/log.log" + , rollingInterval: RollingInterval.Day + , outputTemplate: OUTPUT_TEMPLATE) + .CreateLogger(); + var config = new ConfigurationBuilder() + .Add(new JsonConfigurationSource { Path = "appsettings.json", ReloadOnChange = true }) + .Build(); + + IServiceCollection services = new ServiceCollection(); + services.AddLogging(logging => + { + logging.ClearProviders(); + logging.AddSerilog(); + }); + services.AddSingleton(config); + services.AddSingleton(); + services.AddHttpApi(o => + { + o.HttpHost = new Uri(config.GetSection("SystemConfig:ForwardingUrl").Get()); + }); + services.AddHttpApi(o => + { + o.HttpHost = new Uri(config.GetSection("SystemConfig:ZXDUrl").Get()); + }); + var serviceProvider = services.BuildServiceProvider(); + _xfyunApi = serviceProvider.GetRequiredService(); + _zxdApi = serviceProvider.GetRequiredService(); + } + + [TestMethod] + public async Task GetId() + { + var time = DateTime.Now.AddDays(-180); + var time1 = DateTime.Now.AddDays(-90); + var time2 = DateTime.Now.AddDays(-365); + var time3 = DateTime.Now.AddDays(-90 - 50 - 16); + + var taksId = 1; + var unixTime = new DateTimeOffset(DateTime.UtcNow).ToUnixTimeSeconds(); + var randomString = Number(4); + + var id = $"{unixTime}{taksId}{randomString}"; + } + + /// + /// + /// + /// ɳ + /// ǷҪǰǰֹ߳Աظ + /// + public static string Number(int Length, bool Sleep = true) + { + if (Sleep) + System.Threading.Thread.Sleep(3); + string result = ""; + System.Random random = new Random(); + for (int i = 0; i < Length; i++) + { + result += random.Next(10).ToString(); + } + return result; + } + + [TestMethod] + public async Task SingleAddTest() + { + var param = new SingleAddRequest() + { + ExtTaskId = "202232134212", + Robot = "15778659374179102", + //Phone = "15112168561", + Phone = "13149388270", + Ext = "{\"createUserId\":\"986163788986689\"}", + AppId = "a93169a48602420e91cc38247e26d798", + Props = new Dictionary() + }; + param.Props.Add("ϡ", ""); + param.Props.Add("", "С"); + param.Props.Add("֤4λ", "1234"); + param.Props.Add("/Ůʿ", ""); + param.Props.Add("Ʒȷϡ", "IJƷǡ桿͡ر1ϲԱ棨꣩͡ر1Ÿٷ񡿣С桿ǡ180죬ر1Ÿٷ񡿣ǡ180죬֧Ķǡ33600Ԫ"); + var request = new XFYunRequest( + "a93169a48602420e91cc38247e26d798", + "singleAdd", + "3bbca61309a344b0ab08c363648ece7d", + param); + + var result = await _xfyunApi.SingleAdd(request); + + LogHelper.Info(SerializeHelper.ToJson(result)); + Assert.IsNotNull(result, $"result: {SerializeHelper.ToJson(result)}"); + } + + [TestMethod] + public async Task SingleQueryTest() + { + var param = new SingleQueryRequest() + { + //PlatSingleTaskId = "15620296781123148", + ExtTaskId = "202211111", + AppId = "d2282f8efcc0429cafca7d59551bf445", + }; + + var request = new XFYunRequest( + "4274db58cb204bc081d7690a0912a761", + "singleQuery", + "3bbca61309a344b0ab08c363648ece7d", + param); + + var result = await _xfyunApi.SingleQuery(request); + + Console.WriteLine(SerializeHelper.ToJson(result)); + Assert.IsNotNull(result, $"result: {SerializeHelper.ToJson(result)}"); + } + + [TestMethod] + public async Task SmsSendTest() + { + var request = new Domain.XFYun.ZXDEntity.SmsMessage + { + Message = SerializeHelper.ToJson(new + { + TypeCode = "ISVRSMS0001", + SubTypeCode = "Sms_AiRecord", + Para = "" + }), + Mobile = new List { "127506247887836129", "225849015506345857" } + }; + var result = await _zxdApi.PutSms(request); + + Console.WriteLine(SerializeHelper.ToJson(result)); + Assert.IsNotNull(result, $"result: {SerializeHelper.ToJson(result)}"); + } + + [TestMethod] + public void test() + { + var list = new string[] { "455914034838202737" +,"025098500842859959" +,"318674655168032147" +,"185471255826910453" +,"204097862870680697" +,"204076088001386291" +,"073307285375788577" +,"464215075626578049" +,"514237641815685395" +,"252082281273330141" +,"415545570224089223" +,"031755515545016389" +,"487997377712413933" +,"294092830415144305" +,"414117407365859825" +,"324675020573878637"}; + foreach (var item in list) + { + var result = SecurityHelper.DecyptData(item, "TDORDERSITE"); + } + } + } +} \ No newline at end of file diff --git a/SA.Test/SA.Test.csproj b/SA.Test/SA.Test.csproj new file mode 100644 index 0000000..b44c7c1 --- /dev/null +++ b/SA.Test/SA.Test.csproj @@ -0,0 +1,44 @@ + + + + net6.0 + enable + enable + + false + + + + + + + + + PreserveNewest + true + PreserveNewest + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SA.Test/Usings.cs b/SA.Test/Usings.cs new file mode 100644 index 0000000..2e61057 --- /dev/null +++ b/SA.Test/Usings.cs @@ -0,0 +1,10 @@ +global using Microsoft.VisualStudio.TestTools.UnitTesting; +global using Microsoft.Extensions.Configuration; +global using Microsoft.Extensions.Configuration.Json; +global using Microsoft.Extensions.DependencyInjection; +global using SA.Domain.XFYun; +global using SA.Domain.XFYun.XFYunDomains; +global using SA.Core.Util; +global using SA.Domain.XFYun.XFYunEntity; +global using Microsoft.Extensions.Logging; +global using System.Text.Json; \ No newline at end of file diff --git a/SA.Test/appsettings.json b/SA.Test/appsettings.json new file mode 100644 index 0000000..90cf2fe --- /dev/null +++ b/SA.Test/appsettings.json @@ -0,0 +1,92 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Debug", + "Microsoft.Hosting.Lifetime": "Debug" + } + }, + "ConnectionStrings": { + "zxdcrmMySqlConnection": "Data Source=192.168.11.141;Port=3306;Initial Catalog=zxdcrm;user id=tafadmin;password=tafadmin2017;Old Guids=true;SslMode=None" + }, + "XFYunConfigs": [ + { + "AppId": "a93169a48602420e91cc38247e26d798", + "AppSecret": "AECF89324B6C1144BC07F283B8BEBA08", + "host": "10.1.11.10", + "httpPort": 18081, + "httpsPort": 443, + "IcloudlockEnabled": false, + "publicKey": "305C300D06092A864886F70D0101010500034B003048024100CFC43D9820E73EBC555B96D6FE8D2ED32D42DC81E69CACD6A2B0BF919373A8727D0B52A8E84793200E347650DAE99CF6416B486368001E70A5E58FCA09889BCB0203010001", + "Stage": "RELEASE", + "EquipmentNo": "", + "SignStrategyUrl": "/getSignStrategy", + "tokenUrl": "/getTokenUrl" + } + ], + "XFYunApiConfigs": [ + { + "Key": "singleAdd", + "Url": "/single/add", + "Description": "提交单个号码进行外呼", + "ServiceType": "DUBBO", + "ParamType": "com.iflytek.aisp.service.ability.api.dto.req.AddSingleTaskRequest", + "ParamPosition": "FORM" + }, + { + "Key": "singleQuery", + "Url": "/single/query", + "Description": "主动查询外呼结果", + "ServiceType": "DUBBO", + "ParamType": "com.iflytek.aisp.service.ability.api.dto.req.QrySingleRequest", + "ParamPosition": "FORM" + } + ], + "SystemConfig": { + "ForwardingUrl": "http://192.168.11.147:10080", + "ZXDUrl": "http://120.77.165.155:8096", + "SmsConfig": { + "TypeCode": "ISVRSMS0001", + "SubTypeCode": "Sms_AiRecord" + }, + "XFYunGroudId": "3bbca61309a344b0ab08c363648ece7d", + "IntervalMinutes": -1, + "CallbackMinutes": -15, + "SalesLeadUrl": "http://sc.soft.dn8188.com/dev.html", + "CRMClientKey": "TDORDERSITE", + "DataClientCode": "DNG8", + "Ext": "{\"createUserId\":\"986163788986689\"}", + "shj": "192.168.11.222:3050", //录音链接用到 + "ClientKey": [ + { + "Id": "UPWEBSITE", + "Name": "UP网站", + "AccessKey": "1622a92d" + }, + { + "Id": "TDORDERSITE", + "Name": "订单接口", + "AccessKey": "622a92d1" + }, + { + "Id": "UPPRODUCT", + "Name": "UP产品端", + "AccessKey": "c268a2cd" + }, + { + "Id": "gd_crm", + "Name": "UPCRM", + "AccessKey": "upchina." + }, + { + "Id": "nj_crm", + "Name": "UPCRM", + "AccessKey": "pchina.1" + }, + { + "Id": "AYCRM2_CTI", + "Name": "CTI", + "AccessKey": "ac910f51" + } + ] + } +} diff --git a/SA.WebApi/Controllers/AiOrderController.cs b/SA.WebApi/Controllers/AiOrderController.cs new file mode 100644 index 0000000..1688a37 --- /dev/null +++ b/SA.WebApi/Controllers/AiOrderController.cs @@ -0,0 +1,47 @@ +using Microsoft.AspNetCore.Mvc; + +namespace SA.WebApi.Controllers +{ + /// + /// + /// + [ApiController] + [Route("Api/[controller]")] + [Produces("application/json")] + public class AiOrderController : ControllerBase + { + private readonly GenOrderCall _GenOrderCall; + + public AiOrderController(GenOrderCall genOrderCall) + { + _GenOrderCall = genOrderCall; + } + + /// + /// 人工手动拨打AI回访 + /// + /// + /// + [HttpGet("Creat")] + public async Task CreatAiOrder(string? resid) + { + return new + { + code = 0, + message = "", + data = await _GenOrderCall.CreatAiOrder(resid) + }; + } + + [HttpGet("CreatAiOrders")] + public async Task CreatAiOrders(string? orderids) + { + return new + { + code = 0, + message = "", + data = await _GenOrderCall.CreatAiOrders(orderids) + }; + } + } +} diff --git a/SA.WebApi/Controllers/CallbackController.cs b/SA.WebApi/Controllers/CallbackController.cs new file mode 100644 index 0000000..03be244 --- /dev/null +++ b/SA.WebApi/Controllers/CallbackController.cs @@ -0,0 +1,62 @@ +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using SA.Domain.XFYun.XFYunDomains; +using SA.Domain.XFYun.XFYunEntity; + +namespace SA.WebApi.Controllers +{ + /// + /// 回调接口 + /// + [Route("api/[controller]")] + [ApiController] + public class CallbackController : ControllerBase + { + private readonly IXFYunDomain _domain; + + /// + /// 回调接口 + /// + /// + public CallbackController(IXFYunDomain domain) + { + _domain = domain; + } + + /// + /// 回调接口 + /// + /// + /// + [HttpPost] + public async Task Callback([FromBody] CallDetail detail) + => await _domain.Callback(detail); + + /// + /// 获取回调结果 + /// + /// + /// + [HttpGet] + public async Task GetCallbackResult(int taskId) + => await _domain.GetCallbackResult(taskId); + + /// + /// 刷新缓存 + /// + /// + /// + [HttpGet("RefreshConfig")] + public async Task RefreshConfig() + => GenOrderCall.RefreshConfig(); + + /// + /// 单纯看讯飞获取回调结果 + /// + /// + /// + [HttpGet("GetResultByXunFei")] + public async Task GetResultByXunFei(int taskId) + => await _domain.GetCallbackResultByXunFei(taskId); + } +} \ No newline at end of file diff --git a/SA.WebApi/Dockerfile b/SA.WebApi/Dockerfile new file mode 100644 index 0000000..8785a6c --- /dev/null +++ b/SA.WebApi/Dockerfile @@ -0,0 +1,42 @@ +#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base +WORKDIR /app +EXPOSE 80 +EXPOSE 443 + +#ʱΪйϺ +ENV TZ=Asia/Shanghai +ENV DEBIAN_FRONTEND noninteractive + +# ðԴΪ +RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list \ +&& apt-get clean + +# װ tzdata +RUN apt-get update \ +&& apt-get install -y tzdata \ +&& ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \ +&& rm -rf /var/lib/apt/lists/ \ +&& dpkg-reconfigure -f noninteractive tzdata + + +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +WORKDIR /src +COPY ["SA.WebApi/SA.WebApi.csproj", "SA.WebApi/"] +COPY ["SA.Quartz/SA.Quartz.csproj", "SA.Quartz/"] +COPY ["SA.Domain.XFYun/SA.Domain.XFYun.csproj", "SA.Domain.XFYun/"] +COPY ["SA.Entity/SA.Entity.csproj", "SA.Entity/"] +COPY ["SA.Core/SA.Core.csproj", "SA.Core/"] +RUN dotnet restore "SA.WebApi/SA.WebApi.csproj" +COPY . . +WORKDIR "/src/SA.WebApi" +RUN dotnet build "SA.WebApi.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "SA.WebApi.csproj" -c Release -o /app/publish + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "SA.WebApi.dll"] \ No newline at end of file diff --git a/SA.WebApi/Dockerfile.original b/SA.WebApi/Dockerfile.original new file mode 100644 index 0000000..46663f9 --- /dev/null +++ b/SA.WebApi/Dockerfile.original @@ -0,0 +1,37 @@ +#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. + +FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base +WORKDIR /app +EXPOSE 80 +EXPOSE 443 + +#ʱΪйϺ +ENV TZ=Asia/Shanghai +ENV DEBIAN_FRONTEND noninteractive + +# ðԴΪ +RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list \ +&& apt-get clean + +# װ tzdata +RUN apt-get update \ +&& apt-get install -y tzdata \ +&& ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \ +&& rm -rf /var/lib/apt/lists/ \ +&& dpkg-reconfigure -f noninteractive tzdata + +FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +WORKDIR /src +COPY ["SA.WebApi/SA.WebApi.csproj", "SA.WebApi/"] +RUN dotnet restore "SA.WebApi/SA.WebApi.csproj" +COPY . . +WORKDIR "/src/SA.WebApi" +RUN dotnet build "SA.WebApi.csproj" -c Release -o /app/build + +FROM build AS publish +RUN dotnet publish "SA.WebApi.csproj" -c Release -o /app/publish + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "SA.WebApi.dll"] \ No newline at end of file diff --git a/SA.WebApi/Jobs/GenOrderCall.cs b/SA.WebApi/Jobs/GenOrderCall.cs new file mode 100644 index 0000000..9123ee5 --- /dev/null +++ b/SA.WebApi/Jobs/GenOrderCall.cs @@ -0,0 +1,31 @@ +using SA.Domain.XFYun; + +namespace SA.WorkerService.Jobs +{ + /// + /// 获取订单信息 + /// + [QuartzJob("GenOrderCallJob", "group", "0/30 * * * * ? ")] + public class GenOrderCallJob : QuartzJob + { + private readonly GenOrderCall _GenOrderCall; + + /// + /// 哎 + /// + /// + public GenOrderCallJob(GenOrderCall genOrderCall) + { + _GenOrderCall = genOrderCall; + } + + /// + /// 执行订单生成外呼任务 + /// + /// + protected override async Task ExecuteAsync() + { + _GenOrderCall.GetOrder(); + } + } +} \ No newline at end of file diff --git a/SA.WebApi/Jobs/SendSmsJob.cs b/SA.WebApi/Jobs/SendSmsJob.cs new file mode 100644 index 0000000..c22231c --- /dev/null +++ b/SA.WebApi/Jobs/SendSmsJob.cs @@ -0,0 +1,21 @@ +namespace SA.WorkerService.Jobs +{ + /// + /// 发送外呼前短信 + /// + [QuartzJob("SendSmsJob", "group", "0 0/1 * * * ? ")] + internal class SendSmsJob : QuartzJob + { + private readonly IXFYunDomain _domain; + + public SendSmsJob(IXFYunDomain domain) + { + _domain = domain; + } + + protected override async Task ExecuteAsync() + { + await _domain.SendSms(); + } + } +} diff --git a/SA.WebApi/Jobs/TelephoneReturnVisitJob.cs b/SA.WebApi/Jobs/TelephoneReturnVisitJob.cs new file mode 100644 index 0000000..1e01c46 --- /dev/null +++ b/SA.WebApi/Jobs/TelephoneReturnVisitJob.cs @@ -0,0 +1,21 @@ +namespace SA.WorkerService.Jobs +{ + /// + /// 发起外呼 + /// + [QuartzJob("TelephoneReturnVisitJob", "group", "0 0/1 * * * ? ")] + internal class TelephoneReturnVisitJob : QuartzJob + { + private readonly IXFYunDomain _domain; + + public TelephoneReturnVisitJob(IXFYunDomain domain) + { + _domain = domain; + } + + protected override async Task ExecuteAsync() + { + await _domain.OrderOutbound(); + } + } +} diff --git a/SA.WebApi/Jobs/UpdateCallbackResultJob.cs b/SA.WebApi/Jobs/UpdateCallbackResultJob.cs new file mode 100644 index 0000000..2fad3b0 --- /dev/null +++ b/SA.WebApi/Jobs/UpdateCallbackResultJob.cs @@ -0,0 +1,21 @@ +namespace SA.WorkerService.Jobs +{ + /// + /// 获取外呼任务结果 + /// + [QuartzJob("UpdateCallbackResultJob", "group", "0 0/1 * * * ? ")] + internal class UpdateCallbackResultJob : QuartzJob + { + private readonly IXFYunDomain _domain; + + public UpdateCallbackResultJob(IXFYunDomain domain) + { + _domain = domain; + } + + protected override async Task ExecuteAsync() + { + await _domain.UpdateCallbackResult(); + } + } +} diff --git a/SA.WebApi/Middlewares/RequestMiddleware.cs b/SA.WebApi/Middlewares/RequestMiddleware.cs new file mode 100644 index 0000000..a6273e9 --- /dev/null +++ b/SA.WebApi/Middlewares/RequestMiddleware.cs @@ -0,0 +1,64 @@ +namespace SA.WebApi.Middlewares +{ + public class RequestMiddleware + { + private static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger(); + private readonly RequestDelegate _next; + + public RequestMiddleware(RequestDelegate next) + { + _next = next; + } + + public async Task Invoke(HttpContext httpContext) + { + //LogHelper.Info($"Request body: {await ReadBodyAsync(httpContext.Request)}"); + logger.Trace($"Request body: {await ReadBodyAsync(httpContext.Request)}"); + await _next.Invoke(httpContext); + } + + private async Task ReadBodyAsync(HttpRequest request) + { + if (request.ContentLength > 0) + { + await EnableRewindAsync(request).ConfigureAwait(false); + var encoding = GetRequestEncoding(request); + return await this.ReadStreamAsync(request.Body, encoding).ConfigureAwait(false); + } + return null; + } + + private Encoding GetRequestEncoding(HttpRequest request) + { + var requestContentType = request.ContentType; + var requestMediaType = requestContentType == null ? default(MediaType) : new MediaType(requestContentType); + var requestEncoding = requestMediaType.Encoding; + if (requestEncoding == null) + { + requestEncoding = Encoding.UTF8; + } + return requestEncoding; + } + + private async Task EnableRewindAsync(HttpRequest request) + { + if (!request.Body.CanSeek) + { + request.EnableBuffering(); + + await request.Body.DrainAsync(CancellationToken.None); + request.Body.Seek(0L, SeekOrigin.Begin); + } + } + + private async Task ReadStreamAsync(Stream stream, Encoding encoding) + { + using (StreamReader sr = new StreamReader(stream, encoding, true, 1024, true))//这里注意Body部分不能随StreamReader一起释放 + { + var str = await sr.ReadToEndAsync(); + stream.Seek(0, SeekOrigin.Begin);//内容读取完成后需要将当前位置初始化,否则后面的InputFormatter会无法读取 + return str; + } + } + } +} \ No newline at end of file diff --git a/SA.WebApi/Program.cs b/SA.WebApi/Program.cs new file mode 100644 index 0000000..bb108ca --- /dev/null +++ b/SA.WebApi/Program.cs @@ -0,0 +1,83 @@ +using Exceptionless; + +try +{ + var configuration = new ConfigurationBuilder() + .SetBasePath(Directory.GetCurrentDirectory()) + .AddJsonFile("Serilog.json") + .AddJsonFile($"Serilog.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"}.json", true) + .Build(); + var MyAllowSpecificOrigins = "_myAllowSpecificOrigins"; + + var builder = WebApplication.CreateBuilder(args); + var logger = new LoggerConfiguration() + .ReadFrom.Configuration(configuration) + .WriteTo.Exceptionless(builder.Configuration.GetValue("Exceptionless:ApiKey"), builder.Configuration.GetValue("Exceptionless:ServerUrl"), new string[] { "sa-center" }) + .CreateLogger(); + Log.Logger = logger; + builder.Services.AddLogging(logging => + { + logging.ClearProviders(); + logging.AddSerilog(logger); + }); + + builder.Services.AddCors(option => + { + option.AddPolicy(MyAllowSpecificOrigins, + policy => + { + policy.SetIsOriginAllowed(_ => true) + .AllowAnyMethod() + .AllowAnyHeader() + .AllowCredentials(); + }); + }); + LogHelper.Info("Starting SA WebApi"); + builder.Services.AddExceptionless(builder.Configuration); + builder.Services.AddSingleton(new InitConfiguration(builder.Configuration)); + builder.Services.AddQuartzJob(); + builder.Services.AddSingleton(); + builder.Services.AddSingleton(); + builder.Services.AddHttpApi(o => + { + o.HttpHost = new Uri(builder.Configuration.GetSection("SystemConfig:ForwardingUrl").Get()); + o.UseLogging = true; + }); + builder.Services.AddHttpApi(o => + { + o.HttpHost = new Uri(builder.Configuration.GetSection("SystemConfig:ZXDUrl").Get()); + o.UseLogging = true; + }); + builder.Services.AddControllers(); + // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle + builder.Services.AddEndpointsApiExplorer(); + builder.Services.AddSwaggerGen(); + + var app = builder.Build(); + app.UseCors(MyAllowSpecificOrigins); + // Configure the HTTP request pipeline. + if (app.Environment.IsDevelopment()) + { + app.UseSwagger(); + app.UseSwaggerUI(); + } + app.UseExceptionless(); + app.UseQuartzJob(); + app.UseHttpsRedirection(); + app.UseMiddleware(); + app.UseAuthorization(); + + app.MapControllers(); + + app.UseHttpLogging(); + + app.Run(); +} +catch (Exception ex) +{ + Log.Fatal(ex, "Host terminated unexpectedly"); +} +finally +{ + Log.CloseAndFlush(); +} \ No newline at end of file diff --git a/SA.WebApi/Properties/launchSettings.json b/SA.WebApi/Properties/launchSettings.json new file mode 100644 index 0000000..a55d806 --- /dev/null +++ b/SA.WebApi/Properties/launchSettings.json @@ -0,0 +1,39 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:5418", + "sslPort": 44306 + } + }, + "profiles": { + "SA.WebApi": { + "commandName": "Project", + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7020;http://localhost:5020", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "Docker": { + "commandName": "Docker", + "launchBrowser": true, + "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger", + "environmentVariables": { + "DOTNET_ENVIRONMENT": "Development", + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} \ No newline at end of file diff --git a/SA.WebApi/SA.WebApi.csproj b/SA.WebApi/SA.WebApi.csproj new file mode 100644 index 0000000..fa0d043 --- /dev/null +++ b/SA.WebApi/SA.WebApi.csproj @@ -0,0 +1,48 @@ + + + + net6.0 + enable + enable + 8f4e2f6e-5ec0-4879-a129-eb6fa6a86d62 + Linux + ..\docker-compose.dcproj + True + + + + + + + + + + + + + + + PreserveNewest + true + PreserveNewest + + + + + + + + + + + + + + + + + + + + + diff --git a/SA.WebApi/Serilog.Production.json b/SA.WebApi/Serilog.Production.json new file mode 100644 index 0000000..89ea7a6 --- /dev/null +++ b/SA.WebApi/Serilog.Production.json @@ -0,0 +1,32 @@ +{ + "Serilog": { + "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File", "Serilog.AspNetCore" ], + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Information", + "System": "Information", + "Microsoft.EntityFrameworkCore": "Information" + } + }, + "WriteTo": [ + { + "Name": "Console", + "Args": { + "encoding": "System.Text.Encoding::UTF8", + "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff}] <{ThreadId}> [{Level:u3}] {Message:lj}{NewLine}{Exception}" + } + }, + { + "Name": "File", + "Args": { + "encoding": "System.Text.Encoding::UTF8", + "path": "logs/log.log", + "rollingInterval": "3", + "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff}] <{ThreadId}> [{Level:u3}] {Message:lj}{NewLine}{Exception}" + } + } + ], + "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ] + } +} diff --git a/SA.WebApi/Serilog.json b/SA.WebApi/Serilog.json new file mode 100644 index 0000000..c49e32a --- /dev/null +++ b/SA.WebApi/Serilog.json @@ -0,0 +1,32 @@ +{ + "Serilog": { + "Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File", "Serilog.AspNetCore" ], + "MinimumLevel": { + "Default": "Information", + "Override": { + "Microsoft": "Information", + "System": "Information", + "Microsoft.EntityFrameworkCore": "Information" + } + }, + "WriteTo": [ + { + "Name": "Console", + "Args": { + "encoding": "System.Text.Encoding::UTF8", + "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff}] <{ThreadId}> [{Level:u3}] {Message:lj}{NewLine}{Exception}" + } + }, + { + "Name": "File", + "Args": { + "encoding": "System.Text.Encoding::UTF8", + "path": "logs/log.log", + "rollingInterval": "3", + "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff}] <{ThreadId}> [{Level:u3}] {Message:lj}{NewLine}{Exception}", + } + } + ], + "Enrich": [ "FromLogContext", "WithMachineName", "WithThreadId" ] + } +} diff --git a/SA.WebApi/appsettings.Production.json b/SA.WebApi/appsettings.Production.json new file mode 100644 index 0000000..d0d4b1f --- /dev/null +++ b/SA.WebApi/appsettings.Production.json @@ -0,0 +1,97 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "ConnectionStrings": { + "zxdcrmMySqlConnection": "Data Source=rm-wz93gzc5262bmsz33.mysql.rds.aliyuncs.com;Port=3306;Initial Catalog=zxdcrm;user id=qianbenjie;password=Hcqianbenjie@123;Old Guids=true;SslMode=None", + "dbcrm": "Server=rm-wz93gzc5262bmsz33.mysql.rds.aliyuncs.com;Database=db_crm;UserId=qianbenjie;Password=Hcqianbenjie@123;port=3306;" + }, + "Exceptionless": { + "ServerUrl": "http://10.22.11.9:5000", + "ApiKey": "UpNOu7MNOK3P8g7t5iQNWR1bMfEJEvSE4ZirgUmq" + }, + "XFYunConfigs": [ + { + "AppId": "8e466f0f64c846ae919999b29890a1c3", + "AppSecret": "5AF382022C9A909F433B3C85A1B89CB0", + "host": "10.1.11.10", + "httpPort": 18081, + "httpsPort": 443, + "IcloudlockEnabled": false, + "publicKey": "305C300D06092A864886F70D0101010500034B003048024100CFC43D9820E73EBC555B96D6FE8D2ED32D42DC81E69CACD6A2B0BF919373A8727D0B52A8E84793200E347650DAE99CF6416B486368001E70A5E58FCA09889BCB0203010001", + "Stage": "RELEASE", + "EquipmentNo": "", + "SignStrategyUrl": "/getSignStrategy", + "tokenUrl": "/getTokenUrl" + } + ], + "XFYunApiConfigs": [ + { + "Key": "singleAdd", + "Url": "/single/add", + "Description": "提交单个号码进行外呼", + "ServiceType": "DUBBO", + "ParamType": "com.iflytek.aisp.service.ability.api.dto.req.AddSingleTaskRequest", + "ParamPosition": "FORM" + }, + { + "Key": "singleQuery", + "Url": "/single/query", + "Description": "主动查询外呼结果", + "ServiceType": "DUBBO", + "ParamType": "com.iflytek.aisp.service.ability.api.dto.req.QrySingleRequest", + "ParamPosition": "FORM" + } + ], + "SystemConfig": { + "ForwardingUrl": "http://api.xunfei.tcfortune.com:8282", + "ZXDUrl": "http://120.77.165.155:8096", + "SmsConfig": { + "TypeCode": "ISVRSMS0001", + "SubTypeCode": "Sms_AiRecord" + }, + "XFYunGroudId": "3bbca61309a344b0ab08c363648ece7d", + "IntervalMinutes": -1, + "CallbackMinutes": -5, + "SalesLeadUrl": "http://sc.soft.dn8188.com/dev.html", + "CRMClientKey": "TDORDERSITE", + "DataClientCode": "DNG8", + "Ext": "{\"createUserId\":\"369002056845169\"}", + "shj": "192.168.11.222:3050", //录音链接用到 + "ClientKey": [ + { + "Id": "UPWEBSITE", + "Name": "UP网站", + "AccessKey": "1622a92d" + }, + { + "Id": "TDORDERSITE", + "Name": "订单接口", + "AccessKey": "622a92d1" + }, + { + "Id": "UPPRODUCT", + "Name": "UP产品端", + "AccessKey": "c268a2cd" + }, + { + "Id": "gd_crm", + "Name": "UPCRM", + "AccessKey": "upchina." + }, + { + "Id": "nj_crm", + "Name": "UPCRM", + "AccessKey": "pchina.1" + }, + { + "Id": "AYCRM2_CTI", + "Name": "CTI", + "AccessKey": "ac910f51" + } + ] + } +} \ No newline at end of file diff --git a/SA.WebApi/appsettings.json b/SA.WebApi/appsettings.json new file mode 100644 index 0000000..90a13f7 --- /dev/null +++ b/SA.WebApi/appsettings.json @@ -0,0 +1,97 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Debug", + "Microsoft.Hosting.Lifetime": "Debug" + } + }, + "ConnectionStrings": { + "zxdcrmMySqlConnection": "Data Source=192.168.11.141;Port=3306;Initial Catalog=zxdcrm;user id=tafadmin;password=tafadmin2017;Old Guids=true;SslMode=None", + "dbcrm": "Data Source=192.168.11.141;Port=3306;Initial Catalog=db_crm;user id=tafadmin;password=tafadmin2017;Old Guids=true;SslMode=None" + }, + "Exceptionless": { + "ServerUrl": "http://10.22.12.9:5000", + "ApiKey": "MqtOo780PwihododhLOCSs3t5hpjqfhYM7f6Qn3L" + }, + "XFYunConfigs": [ + { + "AppId": "a93169a48602420e91cc38247e26d798", + "AppSecret": "AECF89324B6C1144BC07F283B8BEBA08", + "host": "10.1.11.10", + "httpPort": 18081, + "httpsPort": 443, + "IcloudlockEnabled": false, + "publicKey": "305C300D06092A864886F70D0101010500034B003048024100CFC43D9820E73EBC555B96D6FE8D2ED32D42DC81E69CACD6A2B0BF919373A8727D0B52A8E84793200E347650DAE99CF6416B486368001E70A5E58FCA09889BCB0203010001", + "Stage": "RELEASE", + "EquipmentNo": "", + "SignStrategyUrl": "/getSignStrategy", + "tokenUrl": "/getTokenUrl" + } + ], + "XFYunApiConfigs": [ + { + "Key": "singleAdd", + "Url": "/single/add", + "Description": "提交单个号码进行外呼", + "ServiceType": "DUBBO", + "ParamType": "com.iflytek.aisp.service.ability.api.dto.req.AddSingleTaskRequest", + "ParamPosition": "FORM" + }, + { + "Key": "singleQuery", + "Url": "/single/query", + "Description": "主动查询外呼结果", + "ServiceType": "DUBBO", + "ParamType": "com.iflytek.aisp.service.ability.api.dto.req.QrySingleRequest", + "ParamPosition": "FORM" + } + ], + "SystemConfig": { + "ForwardingUrl": "http://192.168.11.147:10080", + "ZXDUrl": "http://120.77.165.155:8096", + "SmsConfig": { + "TypeCode": "ISVRSMS0001", + "SubTypeCode": "Sms_AiRecord" + }, + "XFYunGroudId": "3bbca61309a344b0ab08c363648ece7d", + "IntervalMinutes": -1, + "CallbackMinutes": -15, + "SalesLeadUrl": "http://sc.soft.dn8188.com/dev.html", + "CRMClientKey": "TDORDERSITE", + "DataClientCode": "DNG8", + "Ext": "{\"createUserId\":\"986163788986689\"}", + "shj": "192.168.11.222:3050", //录音链接用到 + "ClientKey": [ + { + "Id": "UPWEBSITE", + "Name": "UP网站", + "AccessKey": "1622a92d" + }, + { + "Id": "TDORDERSITE", + "Name": "订单接口", + "AccessKey": "622a92d1" + }, + { + "Id": "UPPRODUCT", + "Name": "UP产品端", + "AccessKey": "c268a2cd" + }, + { + "Id": "gd_crm", + "Name": "UPCRM", + "AccessKey": "upchina." + }, + { + "Id": "nj_crm", + "Name": "UPCRM", + "AccessKey": "pchina.1" + }, + { + "Id": "AYCRM2_CTI", + "Name": "CTI", + "AccessKey": "ac910f51" + } + ] + } +} \ No newline at end of file diff --git a/SACenter.sln b/SACenter.sln new file mode 100644 index 0000000..c6e249d --- /dev/null +++ b/SACenter.sln @@ -0,0 +1,76 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.2.32526.322 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SA.Core", "SA.Core\SA.Core.csproj", "{10F4B991-9E46-4A5D-AECA-3D73337EA837}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SA.Entity", "SA.Entity\SA.Entity.csproj", "{4C218C84-63BA-4698-89AF-4EAB4B2F1EEB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SA.AppDomain", "SA.AppDomain\SA.AppDomain.csproj", "{F651DEF6-C911-44E8-82C7-DC4D8EC0C715}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SA.ConsoleApp", "SA.ConsoleApp\SA.ConsoleApp.csproj", "{78DC477D-74F6-462E-81DE-3B79DA9E09C4}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SA.Quartz", "SA.Quartz\SA.Quartz.csproj", "{639144B4-63FC-42CF-B65E-ED6AADD69819}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Domain", "Domain", "{6007853D-DD04-44CD-A9E7-0A447AA8BDEB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SA.Domain.XFYun", "SA.Domain.XFYun\SA.Domain.XFYun.csproj", "{D886A459-0859-49DC-AD40-1970723C5889}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SA.WebApi", "SA.WebApi\SA.WebApi.csproj", "{30B2C15E-610F-4C2D-90AD-4231D511D5F7}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Test", "Test", "{56F377B1-64E1-476F-A3FD-064DC3CF0E3D}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SA.Test", "SA.Test\SA.Test.csproj", "{7BDFDE42-C70B-4C4F-8ECD-4926F731BAC4}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {10F4B991-9E46-4A5D-AECA-3D73337EA837}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {10F4B991-9E46-4A5D-AECA-3D73337EA837}.Debug|Any CPU.Build.0 = Debug|Any CPU + {10F4B991-9E46-4A5D-AECA-3D73337EA837}.Release|Any CPU.ActiveCfg = Release|Any CPU + {10F4B991-9E46-4A5D-AECA-3D73337EA837}.Release|Any CPU.Build.0 = Release|Any CPU + {4C218C84-63BA-4698-89AF-4EAB4B2F1EEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4C218C84-63BA-4698-89AF-4EAB4B2F1EEB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4C218C84-63BA-4698-89AF-4EAB4B2F1EEB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4C218C84-63BA-4698-89AF-4EAB4B2F1EEB}.Release|Any CPU.Build.0 = Release|Any CPU + {F651DEF6-C911-44E8-82C7-DC4D8EC0C715}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F651DEF6-C911-44E8-82C7-DC4D8EC0C715}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F651DEF6-C911-44E8-82C7-DC4D8EC0C715}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F651DEF6-C911-44E8-82C7-DC4D8EC0C715}.Release|Any CPU.Build.0 = Release|Any CPU + {78DC477D-74F6-462E-81DE-3B79DA9E09C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {78DC477D-74F6-462E-81DE-3B79DA9E09C4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {78DC477D-74F6-462E-81DE-3B79DA9E09C4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {78DC477D-74F6-462E-81DE-3B79DA9E09C4}.Release|Any CPU.Build.0 = Release|Any CPU + {639144B4-63FC-42CF-B65E-ED6AADD69819}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {639144B4-63FC-42CF-B65E-ED6AADD69819}.Debug|Any CPU.Build.0 = Debug|Any CPU + {639144B4-63FC-42CF-B65E-ED6AADD69819}.Release|Any CPU.ActiveCfg = Release|Any CPU + {639144B4-63FC-42CF-B65E-ED6AADD69819}.Release|Any CPU.Build.0 = Release|Any CPU + {D886A459-0859-49DC-AD40-1970723C5889}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D886A459-0859-49DC-AD40-1970723C5889}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D886A459-0859-49DC-AD40-1970723C5889}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D886A459-0859-49DC-AD40-1970723C5889}.Release|Any CPU.Build.0 = Release|Any CPU + {30B2C15E-610F-4C2D-90AD-4231D511D5F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {30B2C15E-610F-4C2D-90AD-4231D511D5F7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {30B2C15E-610F-4C2D-90AD-4231D511D5F7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {30B2C15E-610F-4C2D-90AD-4231D511D5F7}.Release|Any CPU.Build.0 = Release|Any CPU + {7BDFDE42-C70B-4C4F-8ECD-4926F731BAC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {7BDFDE42-C70B-4C4F-8ECD-4926F731BAC4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {7BDFDE42-C70B-4C4F-8ECD-4926F731BAC4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {7BDFDE42-C70B-4C4F-8ECD-4926F731BAC4}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {F651DEF6-C911-44E8-82C7-DC4D8EC0C715} = {6007853D-DD04-44CD-A9E7-0A447AA8BDEB} + {D886A459-0859-49DC-AD40-1970723C5889} = {6007853D-DD04-44CD-A9E7-0A447AA8BDEB} + {7BDFDE42-C70B-4C4F-8ECD-4926F731BAC4} = {56F377B1-64E1-476F-A3FD-064DC3CF0E3D} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {843E6150-8E90-4D58-ACCA-CB7A2C151D9D} + EndGlobalSection +EndGlobal diff --git a/docker-compose.dcproj b/docker-compose.dcproj new file mode 100644 index 0000000..02d6e9d --- /dev/null +++ b/docker-compose.dcproj @@ -0,0 +1,18 @@ + + + + 2.1 + Linux + b2c2261d-a6f3-4377-b5b8-17a8d96a9ae6 + LaunchBrowser + {Scheme}://localhost:{ServicePort}/swagger + sa.webapi + + + + docker-compose.yml + + + + + \ No newline at end of file diff --git a/docker-compose.override.yml b/docker-compose.override.yml new file mode 100644 index 0000000..5c01078 --- /dev/null +++ b/docker-compose.override.yml @@ -0,0 +1,13 @@ +version: '3.4' + +services: + sa.webapi: + environment: + - ASPNETCORE_ENVIRONMENT=Development + - ASPNETCORE_URLS=https://+:443;http://+:80 + ports: + - "80" + - "443" + volumes: + - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro + - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c2cd6ce --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +version: '3.4' + +services: + sa.webapi: + image: ${DOCKER_REGISTRY-}sawebapi + build: + context: . + dockerfile: SA.WebApi/Dockerfile + + sa.workerservice: + image: ${DOCKER_REGISTRY-}saworkerservice + build: + context: . + dockerfile: SA.WorkerService/Dockerfile + diff --git a/launchSettings.json b/launchSettings.json new file mode 100644 index 0000000..8699155 --- /dev/null +++ b/launchSettings.json @@ -0,0 +1,15 @@ +{ + "profiles": { + "Docker Compose": { + "commandName": "DockerCompose", + "commandVersion": "1.0", + "environmentVariables": { + "DOTNET_ENVIRONMENT": "Development" + }, + "serviceActions": { + "sa.webapi": "StartDebugging", + "sa.workerservice": "StartDebugging" + } + } + } +} \ No newline at end of file diff --git a/testEnvironments.json b/testEnvironments.json new file mode 100644 index 0000000..2c5e929 --- /dev/null +++ b/testEnvironments.json @@ -0,0 +1,17 @@ +{ + "version": "1", + "environments": [ + // 请参阅 https://aka.ms/remotetesting 获取更多信息 + // 了解如何配置远程环境。 + //{ + // "name": "WSL Ubuntu", + // "type": "wsl", + // "wslDistribution": "Ubuntu" + //}, + //{ + // "name": "Docker dotnet/sdk", + // "type": "docker", + // "dockerImage": "mcr.microsoft.com/dotnet/sdk" + //} + ] +} \ No newline at end of file