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
329471cf
Commit
329471cf
authored
Aug 24, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
a1522a16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
FinanceModule.cs
Mall.Module.Product/FinanceModule.cs
+7
-7
SupplierController.cs
Mall.WebApi/Controllers/User/SupplierController.cs
+2
-1
No files found.
Mall.Module.Product/FinanceModule.cs
View file @
329471cf
...
...
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using
System.Linq
;
using
System.Text
;
using
System.Text.RegularExpressions
;
using
Mall.AOP.CustomerAttribute
;
using
Mall.Common
;
using
Mall.Common.API
;
using
Mall.Common.Plugin
;
...
...
@@ -236,23 +237,24 @@ namespace Mall.Module.Finance
#
region
财务记录
public
bool
SetFinanceRecord
(
RB_Finance_Record_Extend
model
,
List
<
Model
.
Extend
.
Product
.
RB_Goods_OrderDetail_Extend
>
list
)
[
TransactionCallHandler
]
public
virtual
bool
SetFinanceRecord
(
RB_Finance_Record_Extend
model
,
List
<
Model
.
Extend
.
Product
.
RB_Goods_OrderDetail_Extend
>
list
)
{
bool
flag
=
false
;
var
trans
=
financeRecordRepository
.
DbTransaction
;
try
{
int
recordId
=
0
;
if
(
model
.
ID
==
0
)
{
recordId
=
financeRecordRepository
.
Insert
(
model
,
trans
);
recordId
=
financeRecordRepository
.
Insert
(
model
);
flag
=
recordId
>
0
;
if
(
model
.
RecordDetailList
!=
null
&&
model
.
RecordDetailList
.
Any
())
{
model
.
RecordDetailList
.
ForEach
(
x
=>
x
.
RecordId
=
recordId
);
model
.
RecordDetailList
.
ForEach
(
x
=>
x
.
FinanceId
=
model
.
FinanceId
);
financeRecordDetailRepository
.
InsertBatch
(
model
.
RecordDetailList
,
trans
);
financeRecordDetailRepository
.
InsertBatch
(
model
.
RecordDetailList
);
}
foreach
(
var
item
in
model
.
RecordDetailList
)
...
...
@@ -293,15 +295,13 @@ namespace Mall.Module.Finance
OperatorEnum
=
OperatorEnum
.
Equal
}
};
goods_OrderDetailRepository
.
Update
(
keyValues
,
whereHelpers
,
trans
);
goods_OrderDetailRepository
.
Update
(
keyValues
,
whereHelpers
);
}
}
financeRecordRepository
.
DBSession
.
Commit
();
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"SetFinanceRecord"
);
financeRecordRepository
.
DBSession
.
Rollback
(
"SetFinanceRecord"
);
return
false
;
}
return
flag
;
...
...
Mall.WebApi/Controllers/User/SupplierController.cs
View file @
329471cf
...
...
@@ -2,6 +2,7 @@
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Mall.AOP
;
using
Mall.Common
;
using
Mall.Common.API
;
using
Mall.Common.Plugin
;
...
...
@@ -36,7 +37,7 @@ namespace Mall.WebApi.Controllers.User
/// <summary>
/// 财务
/// </summary>
private
readonly
FinanceModule
financeModule
=
new
FinanceModule
();
private
readonly
FinanceModule
financeModule
=
AOPHelper
.
CreateAOPObject
<
FinanceModule
>
();
...
...
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