|
@@ -14,6 +14,7 @@ using OASystem.Infrastructure.Tools;
|
|
using Org.BouncyCastle.Asn1.Cms;
|
|
using Org.BouncyCastle.Asn1.Cms;
|
|
using System;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
|
+using System.Drawing;
|
|
using System.Linq;
|
|
using System.Linq;
|
|
using System.Security.Cryptography;
|
|
using System.Security.Cryptography;
|
|
using System.Text;
|
|
using System.Text;
|
|
@@ -69,6 +70,12 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
UserId = "0";
|
|
UserId = "0";
|
|
}
|
|
}
|
|
sqlWhere += string.Format(@" And v.CreateUserId in ({0})", UserId);
|
|
sqlWhere += string.Format(@" And v.CreateUserId in ({0})", UserId);
|
|
|
|
+
|
|
|
|
+ if (dto.IsPaySign != -1)
|
|
|
|
+ {
|
|
|
|
+ sqlWhere += string.Format(@" And c.IsPay = {0} ", dto.IsPaySign);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (!string.IsNullOrEmpty(sqlWhere.Trim()))
|
|
if (!string.IsNullOrEmpty(sqlWhere.Trim()))
|
|
{
|
|
{
|
|
Regex r = new Regex("And");
|
|
Regex r = new Regex("And");
|
|
@@ -80,9 +87,15 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
int endIndex = startIndex + dto.PageSize - 1;
|
|
int endIndex = startIndex + dto.PageSize - 1;
|
|
if (dto.PortType==1)
|
|
if (dto.PortType==1)
|
|
{
|
|
{
|
|
- string sql = string.Format(@"select *,(select IsAuditGM from Grp_CreditCardPayment where CTable=80 and CId=v.Id and IsDel=0) IsAuditGM,
|
|
|
|
- (select Name from Sys_SetData where isdel=0 and v.VisaCurrency=Id) VisaCurrencyStr from
|
|
|
|
- Grp_VisaInfo v {0} order by CreateTime desc",sqlWhere);
|
|
|
|
|
|
+ //string sql = string.Format(@"select *,(select IsAuditGM from Grp_CreditCardPayment where CTable=80 and CId=v.Id and IsDel=0) IsAuditGM,
|
|
|
|
+ // (select Name from Sys_SetData where isdel=0 and v.VisaCurrency=Id) VisaCurrencyStr from
|
|
|
|
+ // Grp_VisaInfo v {0} order by CreateTime desc",sqlWhere);
|
|
|
|
+
|
|
|
|
+ string sql = string.Format(@" Select v.*, c.IsAuditGM,c.IsPay,sd1.[Name] as VisaCurrencyStr
|
|
|
|
+From Grp_VisaInfo as v With(Nolock) Left Join Grp_CreditCardPayment as c With(Nolock) On v.Id = c.CId
|
|
|
|
+Left Join Sys_SetData as sd1 With(Nolock) On v.VisaCurrency = sd1.Id
|
|
|
|
+{0} And c.CTable = 80 And c.IsDel = 0 And sd1.IsDel = 0 ", sqlWhere);
|
|
|
|
+
|
|
List<VisaInfoView> infoViews = _sqlSugar.SqlQueryable<VisaInfoView>(sql).ToList();
|
|
List<VisaInfoView> infoViews = _sqlSugar.SqlQueryable<VisaInfoView>(sql).ToList();
|
|
var parseIntValue = 0;
|
|
var parseIntValue = 0;
|
|
var CrmIds = (from item in infoViews
|
|
var CrmIds = (from item in infoViews
|
|
@@ -244,7 +257,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- catch (Exception)
|
|
|
|
|
|
+ catch (Exception ex)
|
|
{
|
|
{
|
|
return result = new Result() { Code = -2, Msg = "未知错误" };
|
|
return result = new Result() { Code = -2, Msg = "未知错误" };
|
|
throw;
|
|
throw;
|