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
64818022
Commit
64818022
authored
Aug 20, 2025
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e7582b68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
SupplierModule.cs
REBORN.Module.DMCModule/SupplierModule.cs
+17
-4
No files found.
REBORN.Module.DMCModule/SupplierModule.cs
View file @
64818022
...
...
@@ -103,11 +103,24 @@ namespace REBORN.Module.DMCModule
{
IList
<
WhereHelper
>
where
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
Name
)
,
FiledValue
=
model
.
Name
.
Trim
()
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
(){
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
Address
)
,
FiledValue
=
model
.
Address
.
Trim
()
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
(){
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
Tel
)
,
FiledValue
=
model
.
Tel
.
Trim
()
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
(){
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
RB_Group_id
)
,
FiledValue
=
model
.
RB_Group_id
,
OperatorEnum
=
OperatorEnum
.
Equal
}
//new WhereHelper (){ FiledName=nameof(Model.Entity.RB_Supplier.Name) , FiledValue= model.Name , OperatorEnum = OperatorEnum.Equal},
//new WhereHelper (){ FiledName=nameof(Model.Entity.RB_Supplier.Address) , FiledValue= model.Address , OperatorEnum = OperatorEnum.Equal},
//new WhereHelper (){ FiledName=nameof(Model.Entity.RB_Supplier.Tel) , FiledValue= model.Tel , OperatorEnum = OperatorEnum.Equal},
new
WhereHelper
(){
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
RB_Group_id
)
,
FiledValue
=
model
.
RB_Group_id
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
(){
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
Type
)
,
FiledValue
=
(
int
)
model
.
Type
,
OperatorEnum
=
OperatorEnum
.
Equal
}
};
if
(!
string
.
IsNullOrWhiteSpace
(
model
.
Name
))
{
where
.
Add
(
new
WhereHelper
()
{
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
Name
),
FiledValue
=
model
.
Name
.
Trim
(),
OperatorEnum
=
OperatorEnum
.
Equal
});
}
if
(!
string
.
IsNullOrWhiteSpace
(
model
.
Address
))
{
where
.
Add
(
new
WhereHelper
()
{
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
Address
),
FiledValue
=
model
.
Address
.
Trim
(),
OperatorEnum
=
OperatorEnum
.
Equal
});
}
if
(!
string
.
IsNullOrWhiteSpace
(
model
.
Tel
))
{
where
.
Add
(
new
WhereHelper
()
{
FiledName
=
nameof
(
Model
.
Entity
.
RB_Supplier
.
Tel
),
FiledValue
=
model
.
Tel
.
Trim
(),
OperatorEnum
=
OperatorEnum
.
Equal
});
}
if
(
model
.
ID
>
0
)
{
where
.
Add
(
new
WhereHelper
()
{
FiledName
=
nameof
(
Model
.
Entity
.
RB_Hotel_Product
.
ID
),
FiledValue
=
model
.
ID
.
ToString
(),
OperatorEnum
=
OperatorEnum
.
NotEqual
});
...
...
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