|
@@ -170,7 +170,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
c.Remark = dto.CRemark;
|
|
|
c.PayPercentage = 100;
|
|
|
c.CTable = 80;
|
|
|
- c.CId = id;
|
|
|
+ c.CId = dto.Id;
|
|
|
c.IsAuditGM = 0;
|
|
|
if (c.PayDId == 72)
|
|
|
{
|
|
@@ -207,6 +207,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
id = await AddAsyncReturnId(grp_Visa1);
|
|
|
if (id!=0)
|
|
|
{
|
|
|
+ c.CId = id;
|
|
|
int cId = await _sqlSugar.Insertable(c).ExecuteReturnIdentityAsync();
|
|
|
if (cId != 0)
|
|
|
{
|
|
@@ -229,7 +230,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
}
|
|
|
else if (dto.Status==2)//修改
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
bool res = await UpdateAsync(a => a.Id == dto.Id, a => new Grp_VisaInfo
|
|
|
{
|
|
|
VisaClient = grp_Visa1.VisaClient,
|
|
@@ -243,7 +244,6 @@ namespace OASystem.Infrastructure.Repositories.Groups
|
|
|
});
|
|
|
if (res)
|
|
|
{
|
|
|
-
|
|
|
int CTable = await _sqlSugar.Updateable<Grp_CreditCardPayment>().Where(a => a.CId == grp_Visa1.Id && a.CTable==80).SetColumns(a => new Grp_CreditCardPayment
|
|
|
{
|
|
|
PayDId = dto.PayDId,
|