修改心电功能接口参数
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
lxd 2024-12-09 16:27:11 +08:00
parent 50d11f1743
commit baef69d108
4 changed files with 9 additions and 8 deletions

View File

@ -92,7 +92,7 @@ public class WarningController {
@GetMapping("/updateWarningdate") @GetMapping("/updateWarningdate")
@Operation(summary = "更新危急值接收时间和发送回执记录") @Operation(summary = "更新危急值接收时间和发送回执记录")
public CommonResult<Boolean> updateWarningdate( @RequestParam("id") String id,@RequestParam("readDateTime") String readDateTime,@RequestParam("receiptDateTime") String receiptDateTime) { public CommonResult<Boolean> updateWarningdate( @RequestParam("id") String id,@RequestParam("readDateTime") String readDateTime,@RequestParam("receiptDateTime") String receiptDateTime,@RequestParam("orgID") String orgID) {
WarningDO warningDO=new WarningDO(); WarningDO warningDO=new WarningDO();
warningDO.setId(id); warningDO.setId(id);
@ -107,7 +107,7 @@ public class WarningController {
LocalDateTime dateTime = LocalDateTime.parse(receiptDateTime, DateTimeFormatter.ofPattern("yyyy-M-d H:mm:ss")); LocalDateTime dateTime = LocalDateTime.parse(receiptDateTime, DateTimeFormatter.ofPattern("yyyy-M-d H:mm:ss"));
warningDO.setReceiptDateTime(dateTime); warningDO.setReceiptDateTime(dateTime);
} }
warningDO.setOrgId(orgID);
warningMapper.updateById(warningDO); warningMapper.updateById(warningDO);
return success(true); return success(true);

View File

@ -108,10 +108,11 @@ public class EcganalysisparasController {
} }
@GetMapping("/list") @GetMapping("/list")
@Operation(summary = "获得心电分析所有数据") @Operation(summary = "获得心电分析所有数据")
public CommonResult<List<EcganalysisparasDO>> selectEcglist(@RequestParam("regId") String regId) public CommonResult<List<EcganalysisparasDO>> selectEcglist(@RequestParam("regId") String regId,@RequestParam("orgId") String orgId)
{ {
QueryWrapper<EcganalysisparasDO> queryWrapper = new QueryWrapper<>(); QueryWrapper<EcganalysisparasDO> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("regId", regId); queryWrapper.eq("regId", regId);
queryWrapper.eq("orgId", orgId);
List<EcganalysisparasDO> doList= ecganalysisparasMapper.selectList(queryWrapper); List<EcganalysisparasDO> doList= ecganalysisparasMapper.selectList(queryWrapper);
return success(doList); return success(doList);
} }
@ -131,8 +132,8 @@ public class EcganalysisparasController {
@GetMapping("/getexamIDdata") @GetMapping("/getexamIDdata")
@Operation(summary = "根据examId获得心电数据") @Operation(summary = "根据examId获得心电数据")
@Parameter(name = "examID", description = "检查编号", required = true, example = "1024") @Parameter(name = "examID", description = "检查编号", required = true, example = "1024")
public CommonResult<EcganalysisparasRespVO> getexamIDdata(@RequestParam("examId") String examId) { public CommonResult<EcganalysisparasRespVO> getexamIDdata(@RequestParam("examId") String examId,@RequestParam("orgId") String orgId) {
EcganalysisparasDO ecganalysisparas= ecganalysisparasService.getexamIDdata(examId); EcganalysisparasDO ecganalysisparas= ecganalysisparasService.getexamIDdata(examId,orgId);
return success(BeanUtils.toBean(ecganalysisparas, EcganalysisparasRespVO.class)); return success(BeanUtils.toBean(ecganalysisparas, EcganalysisparasRespVO.class));
} }
} }

View File

@ -68,6 +68,6 @@ public interface EcganalysisparasService extends IService<EcganalysisparasDO> {
* @param examID 编号 * @param examID 编号
* @return 心电分析数据 * @return 心电分析数据
*/ */
EcganalysisparasDO getexamIDdata(String examID); EcganalysisparasDO getexamIDdata(String examID,String orgId);
} }

View File

@ -87,10 +87,10 @@ public class EcganalysisparasServiceImpl extends ServiceImpl<EcganalysisparasMap
} }
@Override @Override
public EcganalysisparasDO getexamIDdata(String examID) { public EcganalysisparasDO getexamIDdata(String examID,String orgId) {
QueryWrapper<EcganalysisparasDO> queryWrapper = new QueryWrapper<>(); QueryWrapper<EcganalysisparasDO> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("examId", examID); queryWrapper.eq("examId", examID);
queryWrapper.eq("orgId", orgId);
return ecganalysisparasMapper.selectOne(queryWrapper); return ecganalysisparasMapper.selectOne(queryWrapper);
} }