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
8d7301e3
Commit
8d7301e3
authored
Nov 01, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
当天车辆排班的次数
parent
48937377
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
DutyCarController.java
.../boot/module/common/biz/controller/DutyCarController.java
+13
-2
DutyCarServiceImpl.java
...ot/module/common/biz/service/impl/DutyCarServiceImpl.java
+12
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/controller/DutyCarController.java
View file @
8d7301e3
...
...
@@ -27,6 +27,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.common.api.dto.DutyCarDto
;
import
com.yeejoin.amos.boot.module.common.api.service.IDutyCarService
;
import
com.yeejoin.amos.boot.module.common.biz.service.impl.DutyCarServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
...
...
@@ -46,7 +47,9 @@ public class DutyCarController extends BaseController {
@Autowired
IDutyCarService
iDutyCarService
;
@Autowired
DutyCarServiceImpl
dutyCarServiceImpl
;
/**
* 值班列表视图--分页
...
...
@@ -165,5 +168,12 @@ public class DutyCarController extends BaseController {
@ApiParam
(
value
=
"岗位"
)
@RequestParam
(
required
=
false
)
String
postType
){
return
ResponseHelper
.
buildResponse
(
iDutyCarService
.
getSchedulingDutyForSpecifyDate
(
dutyDay
,
shiftId
,
postType
));
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
"查询指定日期值班人信息列表"
)
@GetMapping
(
"/getDutyCarCount"
)
public
ResponseModel
getDutyCarCount
(
@ApiParam
(
value
=
"车辆id"
)
@RequestParam
(
required
=
false
)
String
carId
){
return
ResponseHelper
.
buildResponse
(
dutyCarServiceImpl
.
getDutyCarCount
(
carId
));
}
}
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/DutyCarServiceImpl.java
View file @
8d7301e3
...
...
@@ -219,4 +219,16 @@ public class DutyCarServiceImpl extends DutyCommonServiceImpl implements IDutyCa
return
detailList
;
}
public
Object
getDutyCarCount
(
String
carId
)
{
List
<
Map
<
String
,
Object
>>
equipmentList
=
dutyPersonShiftMapper
.
getEquipmentForSpecifyDate
(
DateUtils
.
getDateNowShortStr
(),
this
.
getGroupCode
(),
"carId"
,
"carName"
,
"teamName"
,
"result.carId"
);
int
count
=
0
;
for
(
Map
<
String
,
Object
>
map
:
equipmentList
)
{
if
(
map
.
containsKey
(
"carId"
)
&&
map
.
get
(
"carId"
).
equals
(
carId
))
{
count
++;
}
}
return
count
;
}
}
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