修改时间查询条件

This commit is contained in:
Euni4U 2024-12-09 17:51:00 +08:00
parent e5e539603b
commit 96c127133d

View File

@ -139,11 +139,11 @@ public class EcganalysisparasController {
@GetMapping("/getDateStaAndEndData") @GetMapping("/getDateStaAndEndData")
@Operation(summary = "根据时间获得心电数据") @Operation(summary = "根据时间获得心电数据")
public CommonResult<List<EcganalysisparasDO>> getDateStaAndEndData(@RequestParam("orgId") String orgid, @RequestParam("TimeSta") String TimeSta,@RequestParam("TimeEnd") String TimeEnd) public CommonResult<List<EcganalysisparasDO>> getDateStaAndEndData(@RequestParam("doctorName") String doctorName, @RequestParam("TimeSta") String TimeSta,@RequestParam("TimeEnd") String TimeEnd)
{ {
QueryWrapper<EcganalysisparasDO> queryWrapper = new QueryWrapper<>(); QueryWrapper<EcganalysisparasDO> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("orgId",orgid); queryWrapper.eq("doctorName",doctorName);
queryWrapper.ge("doctorDiagTime", TimeSta).le("doctorDiagTime",TimeEnd); queryWrapper.ge("doctorDiagTime", TimeSta).le("doctorDiagTime",TimeEnd);
List<EcganalysisparasDO> doList= ecganalysisparasMapper.selectList(queryWrapper); List<EcganalysisparasDO> doList= ecganalysisparasMapper.selectList(queryWrapper);