Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
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
王衍超
cloud-fb
Commits
270a9e15
Commit
270a9e15
authored
Apr 23, 2021
by
焦凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提供场站和购砂单位用的场站获取接口
parent
55f23aea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
Station2Controller.java
.../main/java/com/xyst/dinas/biz/web/Station2Controller.java
+57
-0
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/Station2Controller.java
0 → 100644
View file @
270a9e15
package
com
.
xyst
.
dinas
.
biz
.
web
;
import
java.util.UUID
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.xyst.dinas.biz.service.StationService
;
/**
* @author Joker
*/
@RestController
()
public
class
Station2Controller
{
// private static final Logger logger = LoggerFactory.getLogger(Station2Controller.class);
@Autowired
private
StationService
stationService
;
/**
* 根据id获取场站
* @param id
* @return
*/
@SuppressWarnings
(
"rawtypes"
)
@GetMapping
(
"/warehouse/api/{id}"
)
public
ResponseObj
getByIdStation
(
@PathVariable
(
"id"
)
UUID
id
){
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
KObject
station
=
stationService
.
getById
(
id
);
return
ResponseObj
.
success
(
"获取成功"
,
station
);
}
/**
* 根据id获取场站
* @param id
* @return
*/
@SuppressWarnings
(
"rawtypes"
)
@GetMapping
(
"/sand/user/{id}"
)
public
ResponseObj
getByIdCompany
(
@PathVariable
(
"id"
)
UUID
id
){
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
KObject
station
=
stationService
.
getById
(
id
);
return
ResponseObj
.
success
(
"获取成功"
,
station
);
}
}
\ No newline at end of file
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