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
47c6bd32
Commit
47c6bd32
authored
Dec 21, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加动态列表查询接口
parent
20cc3318
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
base-manager/src/main/java/com/mortals/xhx/module/app/model/vo/AppDatasetVo.java
...ava/com/mortals/xhx/module/app/model/vo/AppDatasetVo.java
+3
-1
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppDatasetController.java
.../com/mortals/xhx/module/app/web/AppDatasetController.java
+1
-0
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
.../main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
+13
-6
No files found.
base-manager/src/main/java/com/mortals/xhx/module/app/model/vo/AppDatasetVo.java
View file @
47c6bd32
...
...
@@ -29,6 +29,8 @@ public class AppDatasetVo extends BaseEntityLong {
*/
private
String
fieldValue
;
private
List
<
Long
>
idList
;
private
Long
appId
;
private
List
<
Long
>
idList
;
}
\ No newline at end of file
base-manager/src/main/java/com/mortals/xhx/module/app/web/AppDatasetController.java
View file @
47c6bd32
...
...
@@ -67,6 +67,7 @@ public class AppDatasetController extends BaseCRUDJsonBodyMappingController<AppD
AppDatasetQuery
appDatasetQuery
=
new
AppDatasetQuery
();
appDatasetQuery
.
setFieldCode
(
query
.
getFieldCode
());
appDatasetQuery
.
setFieldName
(
query
.
getFieldName
());
appDatasetQuery
.
setAppId
(
query
.
getAppId
());
String
fieldValue
=
StrUtil
.
addPrefixIfNot
(
query
.
getFieldValue
(),
"%"
);
fieldValue
=
StrUtil
.
addSuffixIfNot
(
fieldValue
,
"%"
);
appDatasetQuery
.
setFieldValue
(
fieldValue
);
...
...
base-manager/src/main/resources/sqlmap/module/app/AppDatasetMapperExt.xml
View file @
47c6bd32
...
...
@@ -12,15 +12,19 @@
<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>
<if
test=
"condition.fieldCode!=null and condition.fieldCode!=''"
>
and
a
.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
and
b
.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
</if>
<if
test=
"condition.fieldName!=null and condition.fieldName!=''"
>
and
a
.fieldName = #{condition.fieldName,jdbcType=VARCHAR}
and
b
.fieldName = #{condition.fieldName,jdbcType=VARCHAR}
</if>
<if
test=
"condition.fieldValue != null and condition.fieldValue != ''"
>
and
a
.fieldValue like #{condition.fieldValue}
and
b
.fieldValue like #{condition.fieldValue}
</if>
</trim>
</trim>
</select>
...
...
@@ -35,14 +39,17 @@
<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>
<if
test=
"condition.fieldCode!=null and condition.fieldCode!=''"
>
and
a
.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
and
b
.fieldCode = #{condition.fieldCode,jdbcType=VARCHAR}
</if>
<if
test=
"condition.fieldName!=null and condition.fieldName!=''"
>
and
a
.fieldName = #{condition.fieldName,jdbcType=VARCHAR}
and
b
.fieldName = #{condition.fieldName,jdbcType=VARCHAR}
</if>
<if
test=
"condition.fieldValue != null and condition.fieldValue != ''"
>
and
a
.fieldValue like #{condition.fieldValue}
and
b
.fieldValue like #{condition.fieldValue}
</if>
</trim>
</trim>
...
...
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