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
99505546
Commit
99505546
authored
Sep 28, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
7bf89c5b
93e212e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
23 deletions
+22
-23
FinanceModule.cs
Mall.Module.Product/FinanceModule.cs
+22
-23
No files found.
Mall.Module.Product/FinanceModule.cs
View file @
99505546
...
...
@@ -240,8 +240,7 @@ namespace Mall.Module.Finance
[
TransactionCallHandler
]
public
virtual
bool
SetFinanceRecord
(
RB_Finance_Record_Extend
model
,
List
<
Model
.
Extend
.
Product
.
RB_Goods_OrderDetail_Extend
>
list
)
{
bool
flag
=
false
;
bool
flag
=
false
;
try
{
int
recordId
=
0
;
...
...
@@ -253,30 +252,28 @@ namespace Mall.Module.Finance
{
model
.
RecordDetailList
.
ForEach
(
x
=>
x
.
RecordId
=
recordId
);
model
.
RecordDetailList
.
ForEach
(
x
=>
x
.
FinanceId
=
model
.
FinanceId
);
financeRecordDetailRepository
.
InsertBatch
(
model
.
RecordDetailList
);
}
foreach
(
var
item
in
model
.
RecordDetailList
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>();
if
(
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
1
)&&
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
2
))
if
(
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
1
)
&&
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
2
))
{
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail
.
CostFinanceId
),
model
.
FinanceId
},
{
nameof
(
RB_Goods_OrderDetail
.
FreightFinanceId
),
model
.
FinanceId
},
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
};
}
else
if
(
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
1
)
&&
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
3
))
else
if
(
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
1
)
&&
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
3
))
{
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail
.
CostFinanceId
),
model
.
FinanceId
},
{
nameof
(
RB_Goods_OrderDetail
.
InsuranceFinanceId
),
model
.
FinanceId
},
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
};
}
else
if
(
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
1
))
...
...
@@ -284,8 +281,7 @@ namespace Mall.Module.Finance
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail
.
CostFinanceId
),
model
.
FinanceId
},
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
};
}
else
if
(
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
2
))
...
...
@@ -293,27 +289,30 @@ namespace Mall.Module.Finance
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail
.
FreightFinanceId
),
model
.
FinanceId
},
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
};
}
else
if
(
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
3
))
else
if
(
list
.
Any
(
x
=>
x
.
Id
==
item
.
OrderDetailId
&&
x
.
FinanceType
==
3
))
{
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail
.
InsuranceFinanceId
),
model
.
FinanceId
},
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
{
nameof
(
RB_Goods_OrderDetail
.
PaidCostMoney
),
item
.
OrderDetailPaid
}
};
}
List
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Finance_Configurine_Extend
.
Id
),
FiledValue
=
item
.
OrderDetailId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
goods_OrderDetailRepository
.
Update
(
keyValues
,
whereHelpers
);
List
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Finance_Configurine_Extend
.
Id
),
FiledValue
=
item
.
OrderDetailId
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
if
(
keyValues
!=
null
&&
keyValues
.
Count
>
0
)
{
goods_OrderDetailRepository
.
Update
(
keyValues
,
whereHelpers
);
}
}
}
}
...
...
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