Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
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
bltdc
DataCenter_Core2.1_20190520
Commits
c0b58793
Commit
c0b58793
authored
Mar 07, 2022
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:组件功能
parent
a7447cdc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
PlatformOrderFeeServices.cs
Bailun.DC.Services/DataWareHouse/PlatformOrderFeeServices.cs
+16
-4
No files found.
Bailun.DC.Services/DataWareHouse/PlatformOrderFeeServices.cs
View file @
c0b58793
...
...
@@ -425,10 +425,17 @@ namespace Bailun.DC.Services.DataWareHouse
int
?
resultCount
=
entity
.
id
>
0
?
db
.
Update
(
entity
)
:
db
.
Insert
(
entity
);
if
(
resultCount
>
0
)
{
if
(
entity
.
id
==
0
)
{
string
sql
=
"select max(id) from flowing_sales_fee"
;
entity
.
id
=
db
.
QueryFirstOrDefault
<
int
>(
sql
);
}
result
=
this
.
ImportFlowingSalesFeeDetail
(
new
[]
{
entity
.
id
},
entity
.
month
);
if
(
result
.
Result
)
{
trans
.
Commit
();
result
.
Result
=
true
;
}
}
}
catch
(
Exception
ex
)
{
...
...
@@ -503,7 +510,7 @@ namespace Bailun.DC.Services.DataWareHouse
return
result
;
}
public
ResultDTO
ImportFlowingSalesFeeDetail
(
int
[]
feeId
)
public
ResultDTO
ImportFlowingSalesFeeDetail
(
int
[]
feeId
,
string
month
=
null
)
{
ResultDTO
result
=
new
ResultDTO
();
...
...
@@ -521,13 +528,18 @@ namespace Bailun.DC.Services.DataWareHouse
List
<
flowing_sales_fee_detail
>
listDetail
=
new
List
<
flowing_sales_fee_detail
>();
if
(
list
?.
Count
>
0
)
{
sql
=
"select * from exchange_rate_finance where month in @month"
;
IList
<
exchange_rate_finance
>
listRate
=
db
.
Query
<
exchange_rate_finance
>(
sql
,
new
{
month
=
list
.
Select
(
l
=>
l
.
month
).
Distinct
()
}).
ToList
();
IList
<
exchange_rate_finance
>
listRate
=
db
.
Query
<
exchange_rate_finance
>(
sql
,
new
{
month
=
!
string
.
IsNullOrWhiteSpace
(
month
)
?
new
string
[]
{
month
}
:
list
.
Select
(
l
=>
l
.
month
).
Distinct
()
}).
ToList
();
if
(
listRate
?.
Count
>
0
)
{
DateTime
date
=
DateTime
.
MinValue
;
foreach
(
flowing_sales_fee
entity
in
list
)
{
if
(!
string
.
IsNullOrWhiteSpace
(
month
))
{
entity
.
month
=
month
;
}
if
(
DateTime
.
TryParse
(
entity
.
month
,
out
date
))
{
DateTime
monthTime
=
date
;
...
...
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