Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
c0c29522
Commit
c0c29522
authored
Jan 07, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加应用serviceApi参数字段
parent
7c2dec62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppDatasetController.java
.../com/mortals/xhx/module/app/web/AppDatasetController.java
+2
-2
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
.../main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
+8
-8
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppDatasetController.java
View file @
c0c29522
...
...
@@ -60,7 +60,7 @@ public class AppDatasetController extends BaseCRUDJsonBodyMappingController<AppD
@Override
protected
void
doListBefore
(
AppDatasetEntity
query
,
Map
<
String
,
Object
>
model
,
Context
context
)
throws
AppException
{
if
(!
ObjectUtils
.
isEmpty
(
query
.
getOrConditionList
())){
/*
if(!ObjectUtils.isEmpty(query.getOrConditionList())){
AppDatasetQuery appDatasetQuery = new AppDatasetQuery();
appDatasetQuery.setAndConditionList(query.getOrConditionList());
appDatasetQuery.setAppId(query.getAppId());
...
...
@@ -73,7 +73,7 @@ public class AppDatasetController extends BaseCRUDJsonBodyMappingController<AppD
}
query.setOrConditionList(null);
}
}
*/
if
(!
ObjectUtils
.
isEmpty
(
query
.
getFieldCode
())||!
ObjectUtils
.
isEmpty
(
query
.
getFieldName
()))
{
AppDatasetQuery
appDatasetQuery
=
new
AppDatasetQuery
();
...
...
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
View file @
c0c29522
...
...
@@ -8,7 +8,7 @@
count( 1 )
FROM
mortals_sys_app_dataset a
LEFT JOIN mortals_sys_app_info_field b ON
b
.id = b.datasetId
LEFT JOIN mortals_sys_app_info_field b ON
a
.id = b.datasetId
<trim
suffixOverrides=
"where"
suffix=
""
>
where 1=1 and
<trim
prefixOverrides=
"and"
prefix=
""
>
...
...
@@ -16,8 +16,8 @@
and a.appId = #{condition.appId,jdbcType=VARCHAR}
</if>
<!-- <include refid="_second_condition_"/>--
>
<if
test=
"condition.fieldCode!=null and condition.fieldCode!=''"
>
<include
refid=
"_second_condition_"
/
>
<!--
<if test="condition.fieldCode!=null and condition.fieldCode!=''">
and b.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
</if>
<if test="condition.fieldName!=null and condition.fieldName!=''">
...
...
@@ -25,7 +25,7 @@
</if>
<if test="condition.fieldValue != null and condition.fieldValue != ''">
and b.fieldValue like #{condition.fieldValue}
</if>
</if>
-->
</trim>
</trim>
...
...
@@ -37,16 +37,16 @@
<include
refid=
"_columns_sub"
/>
FROM
mortals_sys_app_dataset a
LEFT JOIN mortals_sys_app_info_field b ON
b
.id = b.datasetId
LEFT JOIN mortals_sys_app_info_field b ON
a
.id = b.datasetId
<trim
suffixOverrides=
"where"
suffix=
""
>
where 1=1 and
<trim
prefixOverrides=
"and"
prefix=
""
>
<if
test=
"condition.appId!=null and condition.appId!=''"
>
and a.appId = #{condition.appId,jdbcType=VARCHAR}
</if>
<!-- <include refid="_second_condition_"/>--
>
<include
refid=
"_second_condition_"
/
>
<if
test=
"condition.fieldCode!=null and condition.fieldCode!=''"
>
<!--
<if test="condition.fieldCode!=null and condition.fieldCode!=''">
and b.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
</if>
<if test="condition.fieldName!=null and condition.fieldName!=''">
...
...
@@ -54,7 +54,7 @@
</if>
<if test="condition.fieldValue != null and condition.fieldValue != ''">
and b.fieldValue like #{condition.fieldValue}
</if>
</if>
-->
</trim>
</trim>
</select>
...
...
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