修改BUG
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
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:
parent
ab1d59637c
commit
00ad7b3fb9
@ -86,4 +86,12 @@ public class EcgdataController {
|
|||||||
BeanUtils.toBean(list, EcgdataRespVO.class));
|
BeanUtils.toBean(list, EcgdataRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getByUserId")
|
||||||
|
@Operation(summary = "根据用户ID获得心电数据采集")
|
||||||
|
@Parameter(name = "userId", description = "用户编号", required = true, example = "1024")
|
||||||
|
public CommonResult<List<EcgdataRespVO>> getEcgdataByUserId(@RequestParam("userId") Integer userId) {
|
||||||
|
List<EcgdataDO> ecgdataList = ecgdataService.getEcgdataByUserId(userId);
|
||||||
|
return success(BeanUtils.toBean(ecgdataList, EcgdataRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -52,4 +52,12 @@ public interface EcgdataService {
|
|||||||
*/
|
*/
|
||||||
PageResult<EcgdataDO> getEcgdataPage(EcgdataPageReqVO pageReqVO);
|
PageResult<EcgdataDO> getEcgdataPage(EcgdataPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据用户ID获得心电数据采集列表
|
||||||
|
*
|
||||||
|
* @param userId 用户编号
|
||||||
|
* @return 心电数据采集列表
|
||||||
|
*/
|
||||||
|
List<EcgdataDO> getEcgdataByUserId(Integer userId);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,5 +1,6 @@
|
|||||||
package cn.iocoder.yudao.module.system.service.ecgdata;
|
package cn.iocoder.yudao.module.system.service.ecgdata;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@ -71,4 +72,11 @@ public class EcgdataServiceImpl implements EcgdataService {
|
|||||||
return ecgdataMapper.selectPage(pageReqVO);
|
return ecgdataMapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<EcgdataDO> getEcgdataByUserId(Integer userId) {
|
||||||
|
return ecgdataMapper.selectList(new LambdaQueryWrapperX<EcgdataDO>()
|
||||||
|
.eq(EcgdataDO::getUserid, userId)
|
||||||
|
.orderByDesc(EcgdataDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -284,7 +284,7 @@ yudao:
|
|||||||
- tb_device # 忽略设备表
|
- tb_device # 忽略设备表
|
||||||
- tb_deviceuser # 忽略设备用户表
|
- tb_deviceuser # 忽略设备用户表
|
||||||
- tb_devicedata # 忽略设备数据表
|
- tb_devicedata # 忽略设备数据表
|
||||||
- tb_tb_ecgdata # 忽略ECG设备数据类型表
|
- tb_ecgdata # 忽略ECG设备数据类型表
|
||||||
- tb_doctornotice # 忽略医生通知表
|
- tb_doctornotice # 忽略医生通知表
|
||||||
ignore-caches:
|
ignore-caches:
|
||||||
- user_role_ids
|
- user_role_ids
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user