Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
huatu_API
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
liudong1993
huatu_API
Commits
8ab4ab80
Commit
8ab4ab80
authored
Aug 28, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d9252b72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
SupplierModule.cs
REBORN.Module.DMCModule/SupplierModule.cs
+39
-0
No files found.
REBORN.Module.DMCModule/SupplierModule.cs
View file @
8ab4ab80
...
...
@@ -232,6 +232,45 @@ namespace REBORN.Module.DMCModule
if
(
id
>
0
)
{
flag
=
true
;
if
(!
string
.
IsNullOrEmpty
(
model
.
BankNo
)
&&
!
string
.
IsNullOrEmpty
(
model
.
OpeningBank
))
{
//查询一下 卡号是否存在, 不存在 就插入
string
bankNo
=
System
.
Text
.
RegularExpressions
.
Regex
.
Replace
(
model
.
BankNo
,
@"[^0-9]+"
,
""
);
if
(!
string
.
IsNullOrEmpty
(
bankNo
))
{
bool
IsCreate
=
true
;
var
list
=
clientBankAccountRepository
.
GetBankAccountListRepository
(
new
Model
.
Extend
.
Finance
.
RB_ClientBankAccount_Extend
()
{
RB_Group_Id
=
model
.
RB_Group_id
,
CardNum
=
bankNo
});
if
(
list
.
Any
())
{
foreach
(
var
item
in
list
)
{
string
cardNum2
=
System
.
Text
.
RegularExpressions
.
Regex
.
Replace
(
item
.
CardNum
,
@"[^0-9]+"
,
""
);
if
(
bankNo
.
Replace
(
" "
,
""
)
==
cardNum2
.
Replace
(
" "
,
""
))
{
IsCreate
=
false
;
}
}
}
if
(
IsCreate
)
{
clientBankAccountRepository
.
Insert
(
new
Model
.
Entity
.
Finance
.
RB_ClientBankAccount
()
{
ID
=
0
,
Type
=
Common
.
Enum
.
Finance
.
ClientTypeEnum
.
HotelSupplier
,
ObjID
=
id
,
BankId
=
0
,
OpenBankName
=
model
.
OpeningBank
,
CardNum
=
model
.
BankNo
,
AccountHolder
=
!
string
.
IsNullOrEmpty
(
model
.
CompanyName
)
?
model
.
CompanyName
:
model
.
Name
,
AccountAlias
=
model
.
Name
,
AccountClassify
=
2
,
Status
=
0
,
CreateBy
=
model
.
UpdateBy
,
CreateDate
=
DateTime
.
Now
,
RB_Group_Id
=
model
.
RB_Group_id
,
AccountType
=
1
});
}
}
}
}
}
if
(
flag
)
//新增供应商类型
...
...
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