路泰机电科技体检——数据平台后端
zhaowenxuan
2024-12-30 6ac675b3608076ff77a7cebba94a1da161c60128
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.example.controller;
 
import com.example.factory.ServiceFactory;
import com.example.service.LisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.Map;
 
/**
 * @Company: 西安路泰科技有限公司
 * @Author: zhaowenxuan
 * @Date: 2024/12/25 10:13
 */
@RestController
@RequestMapping("/api/his")
public class LisController {
 
    private final ServiceFactory serviceFactory;
 
    @Autowired
    public LisController(ServiceFactory serviceFactory) {
        this.serviceFactory = serviceFactory;
    }
 
    /**
     * 生成申请单
     * @param hospName
     * @param map
     * @return
     */
    @PostMapping("/{hospName}/create")
    public String makeSqd(@PathVariable("hospName") String hospName, @RequestBody Map<String ,Object > map){
        LisService lisService = serviceFactory.getLisService(hospName);
        return lisService.makeSqd(map);
    }
 
 
}