Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
d948c7fd
Commit
d948c7fd
authored
Mar 25, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQL Injection: MyBatis Mapper(SQL注入:MyBatis Mapper)
parent
4bde105b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
23 deletions
+23
-23
bizMessage.xml
...eAutoSysStart/src/main/resources/db/mapper/bizMessage.xml
+9
-9
dbTemplate_fier_station.xml
.../src/main/resources/db/mapper/dbTemplate_fier_station.xml
+3
-3
dbTemplate_fire_equip.xml
...rt/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
+6
-6
dbTemplate_risk_source.xml
...t/src/main/resources/db/mapper/dbTemplate_risk_source.xml
+1
-1
dbTemplate_view3d.xml
...sStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
+4
-4
No files found.
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/bizMessage.xml
View file @
d948c7fd
...
...
@@ -13,19 +13,19 @@
WHERE
1=1
<if
test=
"time!=null"
>
and TO_DAYS(m.time) = TO_DAYS(
'#{time}'
)
and TO_DAYS(m.time) = TO_DAYS(
#{time}
)
</if>
<if
test=
"type!=null"
>
AND m.type =
'#{type}'
AND m.type =
#{type}
</if>
<if
test=
"title!=null"
>
AND m.title LIKE
'%#{title}%'
AND m.title LIKE
CONCAT('%',#{title},'%')
</if>
<if
test=
"orgCode!=null"
>
AND (
m.org_code =
'#{orgCode}'
OR m.org_code LIKE
'#{orgCode}*%'
m.org_code =
#{orgCode}
OR m.org_code LIKE
CONCAT('%',#{orgCode},'*%')
)
</if>
</select>
...
...
@@ -43,15 +43,15 @@
</if>
<if
test=
"type!=null"
>
AND m.type =
'#{type}'
AND m.type =
#{type}
</if>
<if
test=
"title!=null"
>
AND m.title LIKE
'%#{title}%'
AND m.title LIKE
CONCAT('%',#{title},'%')
</if>
<if
test=
"orgCode!=null"
>
AND (
m.org_code =
'#{orgCode}'
OR m.org_code LIKE
'#{orgCode}*%'
m.org_code =
#{orgCode}
OR m.org_code LIKE
CONCAT('%',#{orgCode},'%')
)
</if>
LIMIT #{start},#{length} ;
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_fier_station.xml
View file @
d948c7fd
...
...
@@ -126,14 +126,14 @@
a.instance_id
) s
<if
test=
"name!=null"
>
AND s.name LIKE
'%#{name}%'
AND s.name LIKE
CONCAT('%',#{name},'%')
</if>
<if
test=
"code!=null"
>
AND s.`code` LIKE
'%#{code}%'
AND s.`code` LIKE
CONCAT('%',#{code},'%')
</if>
<if
test=
"type!=null"
>
AND s.`type` LIKE
'%#{type}%'
;
AND s.`type` LIKE
CONCAT('%',#{type},'%')
;
</if>
</select>
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
View file @
d948c7fd
...
...
@@ -139,10 +139,10 @@
) d
<where>
<if
test=
"fireEquipmentName!=null"
>
AND d.fireEquipmentName LIKE
'%#{fireEquipmentName}%'
AND d.fireEquipmentName LIKE
CONCAT('%',#{fireEquipmentName},'%')
</if>
<if
test=
"equipmentName!=null"
>
AND d.equipmentName LIKE
'%#{equipmentName}%'
AND d.equipmentName LIKE
CONCAT('%',#{equipmentName},'%')
</if>
<if
test=
"startTime != null and startTime != ''"
>
AND d.update_date
>
= #{startTime}
...
...
@@ -194,10 +194,10 @@
) d
<where>
<if
test=
"fireEquipmentName!=null"
>
AND d.fireEquipmentName LIKE
'%#{fireEquipmentName}%'
AND d.fireEquipmentName LIKE
CONCAT('%',#{fireEquipmentName},'%')
</if>
<if
test=
"equipmentName!=null"
>
AND d.equipmentName LIKE
'%#{equipmentName}%'
AND d.equipmentName LIKE
CONCAT('%',#{equipmentName},'%')
</if>
<if
test=
"startTime != null and startTime != ''"
>
AND d.create_date
>
= #{startTime}
...
...
@@ -509,7 +509,7 @@
WHERE
efe.equipment_id = #{equipmentId}
<if
test=
"fname != null"
>
AND fe.`name` like
'%#{fname}%'
AND fe.`name` like
CONCAT('%',#{fname},'%')
</if>
<if
test=
"length > 0"
>
LIMIT #{start},#{length} ;
...
...
@@ -527,7 +527,7 @@
WHERE
efe.equipment_id = #{equipmentId}
<if
test=
"fname != null"
>
AND fe.`name` like
'%#{fname}%'
AND fe.`name` like
CONCAT('%',#{fname},'%')
</if>
</select>
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_risk_source.xml
View file @
d948c7fd
...
...
@@ -99,7 +99,7 @@
f_rpn_change_log cl
WHERE
cl.type = 0
and cl.create_date BETWEEN
'#{startTime}' and '#{endTime}'
and cl.create_date BETWEEN
#{startTime} and #{endTime}
)d
</select>
...
...
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
View file @
d948c7fd
...
...
@@ -1070,8 +1070,8 @@
<where>
<if
test=
"inputText!=null and inputText != ''"
>
AND (
tmp.code LIKE
'%#{inputText}%'
OR tmp.name LIKE
'%#{inputText}%'
tmp.code LIKE
CONCAT('%',#{inputText},'%')
OR tmp.name LIKE
CONCAT('%',#{inputText},'%')
)
</if>
<if
test=
"type!=null and type!=''"
>
...
...
@@ -1277,8 +1277,8 @@
<where>
<if
test=
"inputText!=null and inputText != ''"
>
AND (
tmp.code LIKE
'%#{inputText}%'
OR tmp.name LIKE
'%#{inputText}%'
tmp.code LIKE
CONCAT('%',#{inputText},'%')
OR tmp.name LIKE
CONCAT('%',#{inputText},'%')
)
</if>
<if
test=
"type!=null and type!=''"
>
...
...
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