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
30d92f14
Commit
30d92f14
authored
Aug 30, 2024
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆弹框查询过滤bug
parent
e88f6ae6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
9 deletions
+19
-9
PluginInterceptor.java
...oin/equipmanage/common/interceptor/PluginInterceptor.java
+1
-1
CarStatisticController.java
...eejoin/equipmanage/controller/CarStatisticController.java
+7
-2
CarMapper.java
...c/main/java/com/yeejoin/equipmanage/mapper/CarMapper.java
+1
-1
CarMapper.xml
...boot-system-equip/src/main/resources/mapper/CarMapper.xml
+9
-5
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+1
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/interceptor/PluginInterceptor.java
View file @
30d92f14
...
@@ -83,7 +83,7 @@ public class PluginInterceptor implements Interceptor {
...
@@ -83,7 +83,7 @@ public class PluginInterceptor implements Interceptor {
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
)
||
}
else
if
(
"com.yeejoin.equipmanage.mapper.FireFightingSystemMapper.getSystemInfoPage"
.
equals
(
id
)
||
"com.yeejoin.equipmanage.mapper.EmergencyMapper.alarmList"
.
equals
(
id
))
{
"com.yeejoin.equipmanage.mapper.EmergencyMapper.alarmList"
.
equals
(
id
)
||
"com.yeejoin.equipmanage.mapper.CarMapper.getCarInfoPage"
.
equals
(
id
)
)
{
//执行结果
//执行结果
String
sortField
=
""
;
String
sortField
=
""
;
if
(
parameter
instanceof
HashMap
)
{
if
(
parameter
instanceof
HashMap
)
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/CarStatisticController.java
View file @
30d92f14
...
@@ -68,12 +68,17 @@ public class CarStatisticController extends AbstractBaseController {
...
@@ -68,12 +68,17 @@ public class CarStatisticController extends AbstractBaseController {
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/page"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取车辆分页"
,
notes
=
"获取车辆分页"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"获取车辆分页"
,
notes
=
"获取车辆分页"
)
public
ResponseModel
getCarInfoPage
(
CommonPageable
commonPageable
,
@RequestParam
(
required
=
false
)
String
bizOrgCode
,
public
ResponseModel
getCarInfoPage
(
CommonPageable
commonPageable
,
@RequestParam
(
required
=
false
)
String
bizOrgCode
,
@RequestParam
(
required
=
false
)
String
carNum
)
{
@RequestParam
(
required
=
false
)
String
sorter
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
if
(
commonPageable
.
getPageNumber
()
==
0
)
{
commonPageable
.
setPageNumber
(
1
);
commonPageable
.
setPageNumber
(
1
);
}
}
Page
page
=
new
Page
<>(
commonPageable
.
getPageNumber
(),
commonPageable
.
getPageSize
());
Page
page
=
new
Page
<>(
commonPageable
.
getPageNumber
(),
commonPageable
.
getPageSize
());
Page
<
Map
<
String
,
Object
>>
page1
=
carMapper
.
getCarInfoPage
(
page
,
bizOrgCode
,
carNum
);
String
sortField
=
""
,
sortOrder
=
""
;
if
(
org
.
springframework
.
util
.
StringUtils
.
hasText
(
sorter
))
{
sortField
=
sorter
.
split
(
"@"
)[
0
];
sortOrder
=
sorter
.
split
(
"@"
)[
1
];
}
Page
<
Map
<
String
,
Object
>>
page1
=
carMapper
.
getCarInfoPage
(
page
,
bizOrgCode
,
sortField
,
sortOrder
);
return
CommonResponseUtil
.
success
(
page1
);
return
CommonResponseUtil
.
success
(
page1
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/CarMapper.java
View file @
30d92f14
...
@@ -94,7 +94,7 @@ public interface CarMapper extends BaseMapper<Car> {
...
@@ -94,7 +94,7 @@ public interface CarMapper extends BaseMapper<Car> {
@Update
(
"update wl_car set latitude = #{latitude} , longitude = #{longitude} where iot_code = #{iotCode}"
)
@Update
(
"update wl_car set latitude = #{latitude} , longitude = #{longitude} where iot_code = #{iotCode}"
)
void
updateCarLocationByIotCode
(
String
iotCode
,
Double
latitude
,
Double
longitude
);
void
updateCarLocationByIotCode
(
String
iotCode
,
Double
latitude
,
Double
longitude
);
Page
<
Map
<
String
,
Object
>>
getCarInfoPage
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"
carNum"
)
String
carNum
);
Page
<
Map
<
String
,
Object
>>
getCarInfoPage
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
,
@Param
(
"
sortField"
)
String
sortField
,
@Param
(
"sortOrder"
)
String
sortOrder
);
Page
<
Map
<
String
,
Object
>>
getStationCarInfoPage
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Page
<
Map
<
String
,
Object
>>
getStationCarInfoPage
(
Page
page
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
}
}
amos-boot-system-equip/src/main/resources/mapper/CarMapper.xml
View file @
30d92f14
...
@@ -747,11 +747,15 @@
...
@@ -747,11 +747,15 @@
</where>
</where>
GROUP BY wc.biz_org_code
GROUP BY wc.biz_org_code
) d
) d
<if
test=
"carNum!=null and carNum !='' and carNum=1"
>
<if
test=
"sortField != null and sortField != ''"
>
ORDER BY d.fireCar DESC
<choose>
</if>
<when
test=
"sortOrder == 'ascend'"
>
<if
test=
"carNum!=null and carNum !='' and carNum=0"
>
ORDER BY @SORT_FIELD ASC
ORDER BY d.fireCar ASC
</when>
<otherwise>
ORDER BY @SORT_FIELD DESC
</otherwise>
</choose>
</if>
</if>
</select>
</select>
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
30d92f14
...
@@ -7204,6 +7204,7 @@
...
@@ -7204,6 +7204,7 @@
AND wes.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
AND wes.biz_org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
</if>
</where>
</where>
GROUP BY wes.id
</select>
</select>
<select
id=
"getSystemAlarmNum"
resultType=
"Map"
>
<select
id=
"getSystemAlarmNum"
resultType=
"Map"
>
...
...
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