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
04aadfd1
Commit
04aadfd1
authored
Dec 22, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改车辆统计过滤
parent
a3344114
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
15 deletions
+85
-15
CarController.java
...ava/com/yeejoin/equipmanage/controller/CarController.java
+73
-3
CarMapper.java
...c/main/java/com/yeejoin/equipmanage/mapper/CarMapper.java
+1
-1
ICarService.java
...ain/java/com/yeejoin/equipmanage/service/ICarService.java
+11
-11
CarServiceImpl.java
.../com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
+0
-0
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+0
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/CarController.java
View file @
04aadfd1
...
...
@@ -1400,20 +1400,41 @@ public class CarController extends AbstractBaseController {
@RequestMapping
(
value
=
"/getCountOfCar"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-获取车辆总数"
,
notes
=
"车辆统计-获取车辆总数"
)
public
Map
<
String
,
Integer
>
getCountOfCar
()
{
return
iCarService
.
getCountOfCar
();
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
iCarService
.
getCountOfCar
(
orgCode
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getCountOfCarBelongCompany"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-获取车辆归属单位总数"
,
notes
=
"车辆统计-获取车辆归属单位总数"
)
public
ResponseModel
<
Integer
>
getCountOfCarBelongCompany
()
{
return
CommonResponseUtil
.
success
(
iCarService
.
getCountOfCarBelongCompany
());
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
CommonResponseUtil
.
success
(
iCarService
.
getCountOfCarBelongCompany
(
orgCode
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getCarCategoryInfo"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-获取车辆分类用途信息"
,
notes
=
"车辆统计-获取车辆分类用途信息"
)
public
List
<
ChartIntegerDto
>
getCarCategoryInfo
()
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
iCarService
.
getCarCategoryInfo
();
}
...
...
@@ -1421,6 +1442,13 @@ public class CarController extends AbstractBaseController {
@RequestMapping
(
value
=
"/getCarEquipStateInfo"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-获取设备状态信息"
,
notes
=
"车辆统计-获取设备状态信息"
)
public
Page
<
CarEquipStateInfoDto
>
getCarEquipStateInfo
(
@RequestParam
(
required
=
false
)
String
keyWord
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
iCarService
.
getCarEquipStateInfo
(
keyWord
);
}
...
...
@@ -1429,6 +1457,13 @@ public class CarController extends AbstractBaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-获取设备告警信息"
,
notes
=
"车辆统计-获取设备告警信息"
)
public
Page
<
CarEquipAlarmInfoDto
>
getCarEquipAlarmInfoDto
(
@RequestParam
(
required
=
false
)
String
keyWord
,
@RequestParam
String
flag
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
iCarService
.
getCarEquipAlarmInfoDto
(
keyWord
);
}
...
...
@@ -1451,6 +1486,13 @@ public class CarController extends AbstractBaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-按照月份统计车辆里程"
,
notes
=
"车辆统计-按照月份统计车辆里程"
)
public
BasicTableDataDto
getCarMileageInfoByMoth
(
@RequestParam
(
required
=
false
)
String
date
,
@RequestParam
Integer
current
,
@RequestParam
Integer
size
,
@RequestParam
(
required
=
false
)
String
keyWord
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
iCarService
.
getCarMileageInfoByMoth
(
date
,
current
,
size
,
keyWord
);
}
...
...
@@ -1459,6 +1501,13 @@ public class CarController extends AbstractBaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-按照月份统计导出车辆里程"
,
notes
=
"车辆统计-按照月份统计导出车辆里程"
)
public
void
exportCarMileageInfoByMoth
(
@RequestParam
(
required
=
false
)
String
date
,
@RequestParam
(
required
=
false
)
String
keyWord
,
HttpServletResponse
response
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
List
<
CarExportDto
>
list
=
this
.
iCarService
.
exportCarMileageInfoByMoth
(
date
,
keyWord
);
if
(
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
date
))
{
date
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM"
);
...
...
@@ -1471,7 +1520,7 @@ public class CarController extends AbstractBaseController {
@RequestMapping
(
value
=
"/getCarMileageInfoByMothOFDay"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-按照月份统计每天的车辆里程"
,
notes
=
"车辆统计-按照月份统计每天的车辆里程"
)
public
ZZChartsDto
getCarMileageInfoByMothOFDay
(
@RequestParam
String
iotCode
)
{
return
iCarService
.
getCarMileageInfoByMothOFDay
(
iotCode
);
return
iCarService
.
getCarMileageInfoByMothOFDay
();
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
...
...
@@ -1479,6 +1528,13 @@ public class CarController extends AbstractBaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-按照日期范围获取异常车辆"
,
notes
=
"车辆统计-按照日期范围获取异常车辆"
)
public
Page
<
CarExceptionDto
>
getCarExcepitonTrack
(
@RequestParam
Integer
type
,
@RequestParam
(
required
=
false
)
String
keyWord
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
iCarService
.
getCarExcepitonTrack
(
type
,
keyWord
);
}
...
...
@@ -1487,6 +1543,13 @@ public class CarController extends AbstractBaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-获取超速信息"
,
notes
=
"车辆统计-获取超速信息"
)
public
BasicTableDataDto
getCarWarningRecord
(
@RequestParam
(
required
=
false
)
String
keyWord
,
@RequestParam
Integer
current
,
@RequestParam
Integer
size
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
iCarService
.
getCarWarningRecord
(
keyWord
,
current
,
size
);
}
...
...
@@ -1494,6 +1557,13 @@ public class CarController extends AbstractBaseController {
@RequestMapping
(
value
=
"/getBizOrgName"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-获取归属单位下拉框值"
,
notes
=
"车辆统计-获取归属单位下拉框值"
)
public
List
<
Map
<
String
,
String
>>
getBizOrgName
(
@RequestParam
(
required
=
false
)
String
keyWord
)
{
ReginParams
reginParams
=
JSONObject
.
parseObject
(
redisUtils
.
get
(
RedisKey
.
buildReginKey
(
RequestContext
.
getExeUserId
(),
RequestContext
.
getToken
())).
toString
(),
ReginParams
.
class
);
String
orgCode
=
null
;
if
(
reginParams
!=
null
&&
reginParams
.
getCompany
()!=
null
&&!
ObjectUtils
.
isEmpty
(
reginParams
.
getCompany
().
getOrgCode
()))
{
orgCode
=
reginParams
.
getCompany
().
getOrgCode
();
}
return
iCarService
.
getBizOrgName
();
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/CarMapper.java
View file @
04aadfd1
...
...
@@ -85,7 +85,7 @@ public interface CarMapper extends BaseMapper<Car> {
List
<
Map
<
String
,
Object
>>
getCarState
();
List
<
Map
<
String
,
Object
>>
getFirePowerInfo
();
Integer
getCarCategoryCountByCategoryID
(
Long
categoryID
);
Integer
getCarCategoryCountByCategoryID
(
@Param
(
"categoryID"
)
Long
categoryID
,
@Param
(
"orgCode"
)
String
orgCode
);
List
<
CarEquipStateInfoDto
>
getCarEquipStateInfo
();
List
<
CarEquipAlarmInfoDto
>
getCarEquipAlarmInfo
(
Integer
batteryNumber
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/ICarService.java
View file @
04aadfd1
...
...
@@ -190,21 +190,21 @@ public interface ICarService extends IService<Car> {
List
<
Car
>
location
(
String
orgCode
);
// 获取车辆总数
Map
<
String
,
Integer
>
getCountOfCar
();
Map
<
String
,
Integer
>
getCountOfCar
(
String
orgCode
);
// 获取车辆归属单位总数
Map
<
String
,
Integer
>
getCountOfCarBelongCompany
();
List
<
ChartIntegerDto
>
getCarCategoryInfo
()
;
Page
<
CarEquipStateInfoDto
>
getCarEquipStateInfo
(
String
keyWord
);
Page
<
CarEquipAlarmInfoDto
>
getCarEquipAlarmInfoDto
(
String
keyWord
);
Map
<
String
,
Integer
>
getCountOfCarBelongCompany
(
String
orgCode
);
List
<
ChartIntegerDto
>
getCarCategoryInfo
(
String
orgCode
)
;
Page
<
CarEquipStateInfoDto
>
getCarEquipStateInfo
(
String
keyWord
,
String
orgCode
);
Page
<
CarEquipAlarmInfoDto
>
getCarEquipAlarmInfoDto
(
String
keyWord
,
String
orgCode
);
List
<
ChartIntegerDto
>
getCarBelongAreaInfo
()
;
Page
<
CarAreaInfoDto
>
getCarAreaInfo
(
String
areaName
)
;
BasicTableDataDto
getCarMileageInfoByMoth
(
String
date
,
Integer
current
,
Integer
pageSize
,
String
keyWord
);
List
<
CarExportDto
>
exportCarMileageInfoByMoth
(
String
date
,
String
keyWord
);
Page
<
CarAreaInfoDto
>
getCarAreaInfo
(
String
areaName
)
;
BasicTableDataDto
getCarMileageInfoByMoth
(
String
date
,
Integer
current
,
Integer
pageSize
,
String
keyWord
,
String
orgCode
);
List
<
CarExportDto
>
exportCarMileageInfoByMoth
(
String
date
,
String
keyWord
,
String
orgCode
);
ZZChartsDto
getCarMileageInfoByMothOFDay
(
String
iotCode
);
Page
<
CarExceptionDto
>
getCarExcepitonTrack
(
Integer
type
,
String
keyWord
);
BasicTableDataDto
getCarWarningRecord
(
String
keyWord
,
Integer
current
,
Integer
pageSize
);
Page
<
CarExceptionDto
>
getCarExcepitonTrack
(
Integer
type
,
String
keyWord
,
String
orgCode
);
BasicTableDataDto
getCarWarningRecord
(
String
keyWord
,
Integer
current
,
Integer
pageSize
,
String
orgCode
);
List
<
Map
<
String
,
String
>>
getBizOrgName
();
List
<
Map
<
String
,
String
>>
getBizOrgName
(
String
orgCode
);
/**
* 查询车辆启动状态,赋码
*/
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
View file @
04aadfd1
This diff is collapsed.
Click to expand it.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
04aadfd1
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