Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
159cdb8f
Commit
159cdb8f
authored
Aug 21, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码扫描问题修改
parent
d82b1899
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
2 deletions
+23
-2
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+2
-0
PluginInterceptor.java
...oin/equipmanage/common/interceptor/PluginInterceptor.java
+19
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+2
-2
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
159cdb8f
...
@@ -1664,6 +1664,7 @@
...
@@ -1664,6 +1664,7 @@
GROUP BY
GROUP BY
a.sequenceNbr
a.sequenceNbr
ORDER BY a.personStatus DESC
ORDER BY a.personStatus DESC
LIMIT #{map.pageNum}, #{map.pageSize}
LIMIT #{map.pageNum}, #{map.pageSize}
</select>
</select>
...
@@ -1718,6 +1719,7 @@
...
@@ -1718,6 +1719,7 @@
a.biz_org_name IS NOT NULL
a.biz_org_name IS NOT NULL
AND a.is_delete = 0
AND a.is_delete = 0
AND a.biz_org_type = 'PERSON'
AND a.biz_org_type = 'PERSON'
and fp.is_delete = 0
<if
test=
'bizOrgCode!=null and bizOrgCode!=""'
>
and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')
</if>
<if
test=
'bizOrgCode!=null and bizOrgCode!=""'
>
and LEFT(a.biz_org_code,18) like concat (#{bizOrgCode},'%')
</if>
<if
test=
'peopleTypeCode != null and peopleTypeCode != ""'
>
and a.peopleType like concat ('%', #{peopleTypeCode},'%')
</if>
<if
test=
'peopleTypeCode != null and peopleTypeCode != ""'
>
and a.peopleType like concat ('%', #{peopleTypeCode},'%')
</if>
</select>
</select>
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/interceptor/PluginInterceptor.java
View file @
159cdb8f
...
@@ -82,6 +82,25 @@ public class PluginInterceptor implements Interceptor {
...
@@ -82,6 +82,25 @@ public class PluginInterceptor implements Interceptor {
ReflectionUtils
.
makeAccessible
(
field
);
ReflectionUtils
.
makeAccessible
(
field
);
field
.
set
(
boundSql
,
sql
);
field
.
set
(
boundSql
,
sql
);
return
executor
.
query
(
mappedStatement
,
parameter
,
rowBounds
,
resultHandler
,
cacheKey
,
boundSql
);
return
executor
.
query
(
mappedStatement
,
parameter
,
rowBounds
,
resultHandler
,
cacheKey
,
boundSql
);
}
else
if
(
"com.yeejoin.equipmanage.mapper.FireFightingSystemMapper.getSystemInfoPage"
.
equals
(
id
))
{
//执行结果
HashMap
<
String
,
String
>
par
=
new
LinkedHashMap
<>();
if
(
parameter
instanceof
HashMap
)
{
par
=
(
HashMap
<
String
,
String
>)
((
HashMap
<?,
?>)
parameter
).
get
(
"sortField"
);
}
Iterator
<
String
>
iterator
=
par
.
keySet
().
stream
().
iterator
();
while
(
iterator
.
hasNext
())
{
String
next
=
iterator
.
next
();
sql
=
sql
.
replace
(
"_sortField"
,
next
);
}
//通过反射修改sql语句
Field
field
=
boundSql
.
getClass
().
getDeclaredField
(
"sql"
);
ReflectionUtils
.
makeAccessible
(
field
);
field
.
set
(
boundSql
,
sql
);
return
executor
.
query
(
mappedStatement
,
parameter
,
rowBounds
,
resultHandler
,
cacheKey
,
boundSql
);
}
else
{
}
else
{
return
invocation
.
proceed
();
return
invocation
.
proceed
();
}
}
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
159cdb8f
...
@@ -6984,10 +6984,10 @@
...
@@ -6984,10 +6984,10 @@
<if
test=
"sortField != null and sortField != ''"
>
<if
test=
"sortField != null and sortField != ''"
>
<choose>
<choose>
<when
test=
"sortOrder == 'ascend'"
>
<when
test=
"sortOrder == 'ascend'"
>
${sortField}
ASC
_sortField
ASC
</when>
</when>
<otherwise>
<otherwise>
${sortField}
DESC
_sortField
DESC
</otherwise>
</otherwise>
</choose>
</choose>
</if>
</if>
...
...
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