Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
cf8eda5e
Commit
cf8eda5e
authored
Aug 10, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
638eed58
1c77f2e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
0 deletions
+68
-0
FinanceModule.cs
Mall.WindowsService/Module/FinanceModule.cs
+68
-0
No files found.
Mall.WindowsService/Module/FinanceModule.cs
View file @
cf8eda5e
...
...
@@ -1153,6 +1153,40 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
}
}
}
//更新推荐供应商返佣
try
{
var
oiList
=
goods_OrderIntroductionRepository
.
GetList
(
new
RB_Goods_OrderIntroduction_Extend
()
{
TenantId
=
item
.
TenantId
,
MallBaseId
=
item
.
MallBaseId
,
OrderId
=
Order
.
OrderId
});
if
(
oiList
.
Any
())
{
foreach
(
var
qitem
in
oiList
)
{
//查询是否有申请退款
var
afterSaleList
=
goods_OrderAfterSaleRepository
.
GetList
(
new
RB_Goods_OrderAfterSale_Extend
()
{
OrderDetialId
=
qitem
.
OrderDetailId
,
Type
=
1
,
MallBaseId
=
item
.
MallBaseId
,
TenantId
=
item
.
TenantId
});
if
(!
afterSaleList
.
Any
())
{
//更新返佣状态
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderIntroduction_Extend
.
CommissionState
),
2
},
{
nameof
(
RB_Goods_OrderIntroduction_Extend
.
UpdateDate
),
DateTime
.
Now
},
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Goods_OrderIntroduction_Extend
.
Id
),
FiledValue
=
qitem
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
goods_OrderIntroductionRepository
.
Update
(
keyValues1
,
wheres1
);
}
}
}
}
catch
(
Exception
)
{
Helper
.
LogHelper
.
Write
(
"AutoAfterSaleOrderSendCommission:更新推荐供应商返佣失败"
);
}
}
}
else
...
...
@@ -1212,6 +1246,40 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
}
}
}
//更新推荐供应商返佣
try
{
var
oiList
=
goods_OrderIntroductionRepository
.
GetList
(
new
RB_Goods_OrderIntroduction_Extend
()
{
TenantId
=
item
.
TenantId
,
MallBaseId
=
item
.
MallBaseId
,
OrderId
=
Order
.
OrderId
});
if
(
oiList
.
Any
())
{
foreach
(
var
qitem
in
oiList
)
{
//查询是否有申请退款
var
afterSaleList
=
goods_OrderAfterSaleRepository
.
GetList
(
new
RB_Goods_OrderAfterSale_Extend
()
{
OrderDetialId
=
qitem
.
OrderDetailId
,
Type
=
1
,
MallBaseId
=
item
.
MallBaseId
,
TenantId
=
item
.
TenantId
});
if
(!
afterSaleList
.
Any
())
{
//更新返佣状态
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderIntroduction_Extend
.
CommissionState
),
2
},
{
nameof
(
RB_Goods_OrderIntroduction_Extend
.
UpdateDate
),
DateTime
.
Now
},
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Goods_OrderIntroduction_Extend
.
Id
),
FiledValue
=
qitem
.
Id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
goods_OrderIntroductionRepository
.
Update
(
keyValues1
,
wheres1
);
}
}
}
}
catch
(
Exception
)
{
Helper
.
LogHelper
.
Write
(
"AutoAfterSaleOrderSendCommission:更新推荐供应商返佣失败"
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment