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
c8a7ee45
Commit
c8a7ee45
authored
Jun 19, 2023
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl' into develop_dl
parents
73211926
a1df0268
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
CarController.java
...ava/com/yeejoin/equipmanage/controller/CarController.java
+9
-4
ICarService.java
...ain/java/com/yeejoin/equipmanage/service/ICarService.java
+1
-1
CarServiceImpl.java
.../com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
+5
-2
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 @
c8a7ee45
...
...
@@ -1444,8 +1444,8 @@ public class CarController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getCarAreaInfo"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-获取片区车辆归属信息接口"
,
notes
=
"车辆统计-获取片区车辆归属信息接口"
)
public
Page
<
CarAreaInfoDto
>
getCarAreaInfo
(
@RequestParam
Long
id
)
{
return
iCarService
.
getCarAreaInfo
(
id
);
public
Page
<
CarAreaInfoDto
>
getCarAreaInfo
(
@RequestParam
String
areaName
)
{
return
iCarService
.
getCarAreaInfo
(
areaName
);
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getCarMileageInfoByMoth"
,
method
=
RequestMethod
.
GET
)
...
...
@@ -1455,11 +1455,16 @@ public class CarController extends AbstractBaseController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/exportCarMileageInfoByMoth"
,
method
=
RequestMethod
.
GET
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-按照月份统计车辆里程"
,
notes
=
"车辆统计-按照月份统计车辆里程"
)
public
void
exportCarMileageInfoByMoth
(
@RequestParam
String
date
,
HttpServletResponse
response
)
{
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"车辆统计-按照月份统计导出车辆里程"
,
notes
=
"车辆统计-按照月份统计导出车辆里程"
)
public
void
exportCarMileageInfoByMoth
(
@RequestParam
String
date
,
@RequestParam
String
value
,
HttpServletResponse
response
)
{
if
(
value
!=
null
){
List
<
CarExportDto
>
list
=
this
.
iCarService
.
exportCarMileageInfoByMoth
(
date
);
String
name
=
"车辆里程月度统计表-"
+
date
;
FileHelper
.
exportExcel
(
list
,
name
,
name
,
CarExportDto
.
class
,
UUID
.
randomUUID
().
toString
()+
".xls"
,
response
);
}
else
{
response
.
setHeader
(
"content-Type"
,
null
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@RequestMapping
(
value
=
"/getCarMileageInfoByMothOFDay"
,
method
=
RequestMethod
.
GET
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/ICarService.java
View file @
c8a7ee45
...
...
@@ -202,7 +202,7 @@ public interface ICarService extends IService<Car> {
Page
<
CarEquipStateInfoDto
>
getCarEquipStateInfo
();
Page
<
CarEquipAlarmInfoDto
>
getCarEquipAlarmInfoDto
();
List
<
ChartIntegerDto
>
getCarBelongAreaInfo
()
;
Page
<
CarAreaInfoDto
>
getCarAreaInfo
(
Long
id
)
;
Page
<
CarAreaInfoDto
>
getCarAreaInfo
(
String
areaName
)
;
Page
<
MileageDto
>
getCarMileageInfoByMoth
(
String
date
);
List
<
CarExportDto
>
exportCarMileageInfoByMoth
(
String
date
);
ZZChartsDto
getCarMileageInfoByMothOFDay
(
String
iotCode
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/CarServiceImpl.java
View file @
c8a7ee45
...
...
@@ -1826,10 +1826,12 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
}
@Override
public
Page
<
CarAreaInfoDto
>
getCarAreaInfo
(
Long
id
)
{
public
Page
<
CarAreaInfoDto
>
getCarAreaInfo
(
String
areaName
)
{
Page
<
CarAreaInfoDto
>
page
=
new
Page
<>();
List
<
CarAreaInfoDto
>
list
=
new
ArrayList
<>();
FeignClientResult
<
java
.
util
.
Collection
<
CompanyModel
>>
de
=
Privilege
.
companyClient
.
querySubAgencyTree
(
id
);
CompanyModel
companyModelArea
=
Privilege
.
companyClient
.
queryByCompanyName
(
areaName
).
getResult
();
if
(
companyModelArea
!=
null
){
FeignClientResult
<
java
.
util
.
Collection
<
CompanyModel
>>
de
=
Privilege
.
companyClient
.
querySubAgencyTree
(
companyModelArea
.
getSequenceNbr
());
//如果是公司则获取所有片区
ArrayList
<
CompanyModel
>
companyModels
=
(
ArrayList
<
CompanyModel
>)
de
.
getResult
();
if
(
companyModels
.
size
()
>
0
)
{
...
...
@@ -1843,6 +1845,7 @@ public class CarServiceImpl extends ServiceImpl<CarMapper, Car> implements ICarS
list
.
add
(
carAreaInfoDto
);
}
}
}
page
.
setRecords
(
list
);
page
.
setTotal
(
list
.
size
());
page
.
setCurrent
(
1
);
...
...
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