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
abff60b6
Commit
abff60b6
authored
Mar 01, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询差集没有条件的时候sql异常
parent
ea836d5b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
...als/xhx/module/matter/service/impl/MatterServiceImpl.java
+1
-0
base-manager/src/main/resources/sqlmap/module/matter/MatterMapperExt.xml
...c/main/resources/sqlmap/module/matter/MatterMapperExt.xml
+3
-3
No files found.
base-manager/src/main/java/com/mortals/xhx/module/matter/service/impl/MatterServiceImpl.java
View file @
abff60b6
...
...
@@ -284,6 +284,7 @@ public class MatterServiceImpl extends AbstractCRUDServiceImpl<MatterDao, Matter
@Override
public
Result
<
MatterEntity
>
findSubList
(
MatterEntity
matterQuery
,
PageInfo
pageInfo
,
Context
context
)
throws
AppException
{
SiteEntity
siteCache
=
siteService
.
getCache
(
matterQuery
.
getSiteId
().
toString
());
if
(
ObjectUtils
.
isEmpty
(
siteCache
))
throw
new
AppException
(
"查询站点id不能为空!"
);
if
(
ObjectUtils
.
isEmpty
(
matterQuery
.
getAreaCode
()))
{
matterQuery
.
setAreaCode
(
siteCache
==
null
?
null
:
siteCache
.
getAreaCode
());
}
...
...
base-manager/src/main/resources/sqlmap/module/matter/MatterMapperExt.xml
View file @
abff60b6
...
...
@@ -10,12 +10,12 @@
LEFT JOIN ( SELECT matterCode FROM mortals_sys_site_matter
<trim
suffixOverrides=
"where"
suffix=
""
>
<if
test=
"condition.siteId!=null and condition.siteId!=''"
>
where siteId = #{condition.siteId
,jdbcType=VARCHAR
}
where siteId = #{condition.siteId}
</if>
</trim>
)AS b ON a.matterNo = b.matterCode
<trim
suffixOverrides=
"where"
suffix=
""
>
where b.matterCode IS NULL
where b.matterCode IS NULL
and
<trim
prefixOverrides=
"and"
prefix=
""
>
<if
test=
"condition.areaCode!=null and condition.areaCode!=''"
>
and a.areaCode = #{condition.areaCode,jdbcType=VARCHAR}
...
...
@@ -47,7 +47,7 @@
</trim>
) AS b ON a.matterNo = b.matterCode
<trim
suffixOverrides=
"where"
suffix=
""
>
where b.matterCode IS NULL
where b.matterCode IS NULL
and
<trim
prefixOverrides=
"and"
prefix=
""
>
<if
test=
"condition.areaCode!=null and condition.areaCode!=''"
>
and a.areaCode = #{condition.areaCode,jdbcType=VARCHAR}
...
...
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