Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hphy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
向怀芳
hphy
Commits
53df22a7
Commit
53df22a7
authored
Jan 29, 2021
by
向怀芳
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预约须知
预约* 取消预约*
parent
9164cbc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
AppointmentController.java
.../sict/theme/hphy/controller/mp/AppointmentController.java
+20
-6
No files found.
smart-health-modules/theme-schema/src/main/java/cn/sh/stc/sict/theme/hphy/controller/mp/AppointmentController.java
View file @
53df22a7
package
cn
.
sh
.
stc
.
sict
.
theme
.
hphy
.
controller
.
mp
;
package
cn
.
sh
.
stc
.
sict
.
theme
.
hphy
.
controller
.
mp
;
import
cn.sh.stc.sict.cloud.common.core.util.R
;
import
cn.sh.stc.sict.cloud.common.core.util.R
;
import
cn.sh.stc.sict.theme.hphy.wd.*
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
/**
* @author F_xh
* @author F_xh
*/
*/
@Slf4j
@Slf4j
@RestController
@RestController
@AllArgsConstructor
@RequestMapping
(
"/c/appointment"
)
@RequestMapping
(
"/c/appointment"
)
@Api
(
tags
=
"[C]预约挂号管理"
)
@Api
(
tags
=
"[C]预约挂号管理"
)
public
class
AppointmentController
{
public
class
AppointmentController
{
@ApiOperation
(
"预约须知"
)
@GetMapping
(
"/app/rule"
)
public
R
getAppRule
(
HosInfo
hosInfo
){
HospitalCfg
cfg
=
WanDaHttpUtil
.
getHospitalCfg
(
hosInfo
);
return
new
R
(
cfg
);
}
@ApiOperation
(
"预约"
)
@ApiOperation
(
"预约"
)
@PostMapping
(
"/app"
)
@PostMapping
(
"/app"
)
public
R
appointment
(){
public
R
appointment
(
@RequestBody
OrderInfo
orderInfo
){
AppResult
result
=
WanDaHttpUtil
.
submitOrderByUserInfo
(
orderInfo
);
// TODO 调用service存入mysql
return
new
R
();
return
new
R
();
}
}
...
@@ -29,7 +39,11 @@ public class AppointmentController {
...
@@ -29,7 +39,11 @@ public class AppointmentController {
@ApiOperation
(
"取消预约"
)
@ApiOperation
(
"取消预约"
)
@PostMapping
(
"/cancel/app"
)
@PostMapping
(
"/cancel/app"
)
public
R
cancelAppointment
(){
public
R
cancelAppointment
(
@RequestBody
CancelOrderInfo
orderInfo
){
boolean
flag
=
WanDaHttpUtil
.
orderCancelInfo
(
orderInfo
);
// TODO 调用service存入mysql
return
new
R
();
return
new
R
();
}
}
...
...
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