12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- package thyyxxk.webserver.controller.markmtfees;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.validation.annotation.Validated;
- import org.springframework.web.bind.annotation.*;
- import thyyxxk.webserver.config.auth.PassToken;
- import thyyxxk.webserver.pojo.ResultVo;
- import thyyxxk.webserver.pojo.markmtfees.*;
- import thyyxxk.webserver.service.markmtfees.MarkMtFeesService;
- import java.util.List;
- import java.util.Map;
- @RestController
- @RequestMapping("/markMtFees")
- public class MarkMtFeesController {
- private final MarkMtFeesService service;
- @Autowired
- public MarkMtFeesController(MarkMtFeesService service) {
- this.service = service;
- }
- @PostMapping("/queryMtPersonInfo")
- public ResultVo<Map<String, Object>> queryMtPersonInfo(@RequestBody QueryMtInfoParam param) {
- return service.queryMtPersonInfo(param);
- }
- @PostMapping("/confirmCssybMtApplyInfo")
- public ResultVo<String> confirmCssybMtApplyInfo(@RequestBody CssybApplyInfo param) {
- return service.confirmCssybMtApplyInfo(param);
- }
- @GetMapping("/getMtReceipts")
- public ResultVo<Map<String, Object>> getMtReceipts(@RequestParam("patientId") String patientId,
- @RequestParam("times") Integer times) {
- return service.getMtReceipts(patientId, times);
- }
- @PostMapping("/insertMtFees")
- public ResultVo<String> insertMtFees(@Validated @RequestBody MarkMtFeeParam param) {
- return service.insertMtFees(param);
- }
- @PostMapping("/deleteMtFees")
- public ResultVo<String> deleteMtFees(@RequestBody OrderNo param) {
- return service.deleteMtFees(param);
- }
- @GetMapping("/cssybMtPreCal")
- public ResultVo<Object> cssybMtPreCal(@RequestParam("patientId") String patientId,
- @RequestParam("times") Integer times) {
- return service.cssybMtPreCal(patientId, times);
- }
- @PassToken
- @PostMapping("/uploadFees")
- public Map<String, Object> uploadMtFees(@RequestBody UploadMtFeeParam param) {
- return service.uploadMtFees(param);
- }
- @PassToken
- @PostMapping("/retractFees")
- public Map<String, Object> retractMtFees(@RequestBody UploadMtFeeParam param) {
- return service.retractMtFees(param);
- }
- @PassToken
- @PostMapping("/calculateCost")
- public Map<String, Object> calculateMtFees(@RequestBody UploadMtFeeParam param) {
- return service.calculateMtFees(param);
- }
- }
|