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 map=new HashMap<>(); map.put("BeginOutDate","'"+kssj+"'"); map.put("EndOutDate","'"+jssj+"'"); map.put("ccmc", "'"+ccmc+"'"); List> maps= orderService.getTjTongJiJieKou(map); return AjaxResult.success(maps); } }