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
906985ab
Commit
906985ab
authored
Aug 27, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
011e77de
64c6431e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
37 deletions
+16
-37
SupplierModule.cs
Mall.Module.User/SupplierModule.cs
+14
-35
PayUtil.cs
Mall.WebApi/App_Code/PayUtil.cs
+1
-1
SupplierController.cs
Mall.WebApi/Controllers/User/SupplierController.cs
+1
-1
No files found.
Mall.Module.User/SupplierModule.cs
View file @
906985ab
...
...
@@ -75,12 +75,14 @@ namespace Mall.Module.User
return
list
;
}
/// <summary>
/// 添加修改供应商
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
AddOrUpdateSupplier
(
RB_Supplier_Extend
model
)
{
bool
flag
=
false
;
// var trans = supplierRepository.DbTransaction;
try
{
...
...
@@ -91,30 +93,21 @@ namespace Mall.Module.User
model
.
Status
=
(
int
)
Common
.
Enum
.
DateStateEnum
.
Normal
;
var
id
=
clientBankAccountRepository
.
Insert
(
model
.
ClientBankAccount
);
model
.
BankAccountId
=
id
;
//IDictionary<string, object> fileds = new Dictionary<string, object>()
//{
// { nameof(RB_ClientBankAccount.SupplierId),model.ID}
//};
//IList<WhereHelper> whereHelpers = new List<WhereHelper>()
//{
// new WhereHelper (){ FiledName=nameof(RB_ClientBankAccount.ID),FiledValue=id,OperatorEnum=OperatorEnum.Equal}
//};
//flag = clientBankAccountRepository.Update(fileds, whereHelpers);
flag
=
id
>
0
;
}
else
{
IDictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_ClientBankAccount
.
Type
),(
int
)
model
.
ClientBankAccount
.
Type
},
{
nameof
(
RB_ClientBankAccount
.
ObjID
),
model
.
ClientBankAccount
.
ObjID
},
{
nameof
(
RB_ClientBankAccount
.
BankId
),
model
.
ClientBankAccount
.
BankId
},
{
nameof
(
RB_ClientBankAccount
.
OpenBankName
),
model
.
ClientBankAccount
.
OpenBankName
},
{
nameof
(
RB_ClientBankAccount
.
AccountHolder
),
model
.
ClientBankAccount
.
AccountHolder
},
{
nameof
(
RB_ClientBankAccount
.
CardNum
),
model
.
ClientBankAccount
.
CardNum
},
{
nameof
(
RB_ClientBankAccount
.
AccountAlias
),
model
.
ClientBankAccount
.
AccountAlias
},
{
nameof
(
RB_ClientBankAccount
.
Status
),
model
.
ClientBankAccount
.
Status
},
{
nameof
(
RB_ClientBankAccount
.
AccountClassify
),
model
.
ClientBankAccount
.
AccountClassify
}
{
nameof
(
RB_ClientBankAccount
.
Type
),(
int
)
model
.
ClientBankAccount
.
Type
},
{
nameof
(
RB_ClientBankAccount
.
ObjID
),
model
.
ClientBankAccount
.
ObjID
},
{
nameof
(
RB_ClientBankAccount
.
BankId
),
model
.
ClientBankAccount
.
BankId
},
{
nameof
(
RB_ClientBankAccount
.
OpenBankName
),
model
.
ClientBankAccount
.
OpenBankName
},
{
nameof
(
RB_ClientBankAccount
.
AccountHolder
),
model
.
ClientBankAccount
.
AccountHolder
},
{
nameof
(
RB_ClientBankAccount
.
CardNum
),
model
.
ClientBankAccount
.
CardNum
},
{
nameof
(
RB_ClientBankAccount
.
AccountAlias
),
model
.
ClientBankAccount
.
AccountAlias
},
{
nameof
(
RB_ClientBankAccount
.
Status
),
model
.
ClientBankAccount
.
Status
},
{
nameof
(
RB_ClientBankAccount
.
AccountClassify
),
model
.
ClientBankAccount
.
AccountClassify
}
};
IList
<
WhereHelper
>
whereHelpers
=
new
List
<
WhereHelper
>()
{
...
...
@@ -188,7 +181,6 @@ namespace Mall.Module.User
{
model
.
Status
=
(
int
)
Common
.
Enum
.
DateStateEnum
.
Normal
;
var
id
=
clientBankAccountRepository
.
Insert
(
model
.
ClientBankAccount
);
if
(
id
>
0
)
{
model
.
BankAccountId
=
id
;
...
...
@@ -203,26 +195,13 @@ namespace Mall.Module.User
model
.
SupplierCommissionList
.
ForEach
(
x
=>
x
.
Status
=
0
);
supplierCommissionRepository
.
InsertBatch
(
model
.
SupplierCommissionList
);
}
flag
=
supplierId
>
0
;
//IDictionary<string, object> fileds = new Dictionary<string, object>()
//{
// { nameof(RB_ClientBankAccount.SupplierId),supplierId}
//};
//IList<WhereHelper> whereHelpers = new List<WhereHelper>()
//{
// new WhereHelper (){ FiledName=nameof(RB_ClientBankAccount.ID),FiledValue=id,OperatorEnum=OperatorEnum.Equal}
//};
//flag = clientBankAccountRepository.Update(fileds, whereHelpers);
}
}
// supplierRepository.DBSession.Commit();
}
catch
(
Exception
ex
)
{
LogHelper
.
Write
(
ex
,
"AddOrUpdateSupplier"
);
// supplierRepository.DBSession.Rollback("AddOrUpdateSupplier");
return
false
;
}
return
flag
;
...
...
Mall.WebApi/App_Code/PayUtil.cs
View file @
906985ab
...
...
@@ -68,7 +68,7 @@ namespace Mall.WebApi.App_Code
var
reqXml
=
req
.
ParseXml
();
LogHelper
.
Write
(
null
,
"订单号【"
+
sOrderNo
+
"】请求参数:"
+
reqXml
);
LogHelper
.
Write
Info
(
"订单号【"
+
sOrderNo
+
"】请求参数:"
+
reqXml
);
var
result
=
Common
.
Pay
.
WeChatPat
.
HttpHelper
.
Post
(
new
HttpParam
()
{
Url
=
Mall
.
Common
.
Pay
.
WeChatPat
.
Model
.
ApiList
.
UnifiedOrderUrl
,
...
...
Mall.WebApi/Controllers/User/SupplierController.cs
View file @
906985ab
...
...
@@ -74,7 +74,7 @@ namespace Mall.WebApi.Controllers.User
/// <summary>
/// 添加修改
/// 添加修改
供应商
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
...
...
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