zjh
2025-03-07 5d26355c3c630ffc26be575f5ed52b1b2cae46e4
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.ltkj.web.controller.system;
/**
 * @Authot:zjh
 * @Date:  2024-07-18   11:58
 */
 
import com.ltkj.common.core.domain.AjaxResult;
import com.ltkj.common.core.domain.entity.SysUser;
import com.ltkj.framework.config.UserHoder;
import com.ltkj.hosp.service.ITjOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
 
 
@RestController
@RequestMapping ("/hosp/yqorder")
@Api (tags = "体检延期记录接口")
@Slf4j
public class TjTongJiController {
 
    @Resource
    private ITjOrderService orderService;
 
 
    @GetMapping ("/getTjTongJiJieKou")
    @ApiOperation (value = "体检统计接口(根据不同的存储过程名称查询)")
    public AjaxResult getTjTongJiJieKou(@RequestParam (required = false) @ApiParam (value = "开始时间") String kssj,
                                                  @RequestParam(required = false) @ApiParam (value = "结束时间") String jssj,
                                                  @RequestParam(required = false) @ApiParam (value = "存储过程名称") String ccmc){
        SysUser user = UserHoder.getLoginUser().getUser();
        String userName = user.getUserName();
 
 
        Map<String,Object> map=new HashMap<>();
        map.put("BeginOutDate","'"+kssj+"'");
        map.put("EndOutDate","'"+jssj+"'");
        map.put("ccmc", "'"+ccmc+"'");
        List<Map<String,Object>> maps= orderService.getTjTongJiJieKou(map);
        return AjaxResult.success(maps);
    }
}