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
8de6ebf7
Commit
8de6ebf7
authored
Jun 25, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断参数不能为空
parent
2078683c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
FireStationInfoController.java
.../module/ccs/biz/controller/FireStationInfoController.java
+5
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-ccs-biz/src/main/java/com/yeejoin/amos/boot/module/ccs/biz/controller/FireStationInfoController.java
View file @
8de6ebf7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
ccs
.
biz
.
controller
;
import
cn.hutool.core.date.DatePattern
;
import
cn.hutool.core.util.StrUtil
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.ccs.api.dto.FireStationInfoDto
;
import
com.yeejoin.amos.boot.module.ccs.api.enums.StationOrderByTypeEnum
;
...
...
@@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
...
...
@@ -111,6 +113,9 @@ public class FireStationInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据换流站code统计消防车"
,
notes
=
"根据换流站code统计消防车"
)
@GetMapping
(
value
=
"/getCarInfoByStationCode"
)
public
ResponseModel
<
List
<
CarInfoVO
>>
getCarInfoByStationCode
(
@ApiParam
(
value
=
"换流站编号"
)
@RequestParam
(
required
=
true
)
String
stationCode
)
{
if
(
StrUtil
.
isEmpty
(
stationCode
))
{
throw
new
BadRequest
(
"换流站编号不能为空"
);
}
return
ResponseHelper
.
buildResponse
(
fireStationInfoServiceImpl
.
getCarInfoByStationCode
(
stationCode
));
}
}
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