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
a0862604
Commit
a0862604
authored
Jan 30, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交下单页面返回自定义表单
parent
a7e50a4f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
293 additions
and
226 deletions
+293
-226
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+244
-25
ProductModule.cs
Mall.Module.Product/ProductModule.cs
+1
-201
RB_Custom_FormRepository.cs
Mall.Repository/TradePavilion/RB_Custom_FormRepository.cs
+48
-0
No files found.
Mall.Module.Product/OrderModule.cs
View file @
a0862604
This diff is collapsed.
Click to expand it.
Mall.Module.Product/ProductModule.cs
View file @
a0862604
This diff is collapsed.
Click to expand it.
Mall.Repository/TradePavilion/RB_Custom_FormRepository.cs
View file @
a0862604
...
...
@@ -96,5 +96,53 @@ WHERE 1=1
}
return
Get
<
RB_Custom_Form_Extend
>(
builder
.
ToString
(),
parameters
).
ToList
();
}
/// <summary>
/// 获取自定义表单列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Custom_Form_Extend
>
GetCustomFormByIdsListRepository
(
RB_Custom_Form_Extend
query
,
string
FormIds
)
{
var
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT A.*
FROM RB_Custom_Form AS A
WHERE 1=1
"
);
// builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Custom_Form_Extend.Status), (int)DateStateEnum.Normal);
if
(
query
!=
null
)
{
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Custom_Form_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Custom_Form_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
FormName
))
{
builder
.
AppendFormat
(
" AND A.{0} LIKE @FormName "
,
nameof
(
RB_Custom_Form_Extend
.
FormName
));
parameters
.
Add
(
"FormName"
,
"%"
+
query
.
FormName
.
Trim
()
+
"%"
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Custom_Form_Extend
.
Id
),
query
.
Id
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
FormIds
))
{
builder
.
AppendFormat
(
" AND A.{0} in ({1}) "
,
nameof
(
RB_Custom_Form_Extend
.
Id
),
FormIds
);
}
if
(
query
.
FormType
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Custom_Form_Extend
.
FormType
),
(
int
)
query
.
FormType
);
}
}
return
Get
<
RB_Custom_Form_Extend
>(
builder
.
ToString
(),
parameters
).
ToList
();
}
}
}
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