去掉多租户
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
0b378f2f21
commit
ab1d59637c
@ -86,4 +86,12 @@ public class DeviceuserController {
|
||||
BeanUtils.toBean(list, DeviceuserRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/getDeviceuserByDeviceId")
|
||||
@Operation(summary = "根据设备ID获得设备人员关联")
|
||||
@Parameter(name = "deviceid", description = "设备编号", required = true)
|
||||
public CommonResult<List<DeviceuserRespVO>> getDeviceuserByDeviceId(@RequestParam("deviceid") Integer deviceid) {
|
||||
List<DeviceuserDO> deviceusers = deviceuserService.getDeviceuserByDeviceId(deviceid);
|
||||
return success(BeanUtils.toBean(deviceusers, DeviceuserRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@ -15,12 +15,11 @@ import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
@TableName("tb_deviceuser")
|
||||
@KeySequence("tb_deviceuser_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class DeviceuserDO extends BaseDO {
|
||||
public class DeviceuserDO {
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
|
||||
@ -17,12 +17,11 @@ import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
@TableName("tb_ecgdata")
|
||||
@KeySequence("tb_ecgdata_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class EcgdataDO extends BaseDO {
|
||||
public class EcgdataDO {
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
|
||||
@ -52,4 +52,12 @@ public interface DeviceuserService {
|
||||
*/
|
||||
PageResult<DeviceuserDO> getDeviceuserPage(DeviceuserPageReqVO pageReqVO);
|
||||
|
||||
/**
|
||||
* 根据设备ID获得设备人员关联列表
|
||||
*
|
||||
* @param deviceid 设备编号
|
||||
* @return 设备人员关联列表
|
||||
*/
|
||||
List<DeviceuserDO> getDeviceuserByDeviceId(Integer deviceid);
|
||||
|
||||
}
|
||||
@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.system.service.deviceuser;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@ -71,4 +72,10 @@ public class DeviceuserServiceImpl implements DeviceuserService {
|
||||
return deviceuserMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DeviceuserDO> getDeviceuserByDeviceId(Integer deviceid) {
|
||||
return deviceuserMapper.selectList(new LambdaQueryWrapper<DeviceuserDO>()
|
||||
.eq(DeviceuserDO::getDeviceid, deviceid));
|
||||
}
|
||||
|
||||
}
|
||||
@ -281,6 +281,11 @@ yudao:
|
||||
- tb_person_archive # 忽略人员档案表
|
||||
- tb_user # 忽略小程序用户表
|
||||
- visit_record # 忽略电话回访记录表
|
||||
- tb_device # 忽略设备表
|
||||
- tb_deviceuser # 忽略设备用户表
|
||||
- tb_devicedata # 忽略设备数据表
|
||||
- tb_tb_ecgdata # 忽略ECG设备数据类型表
|
||||
- tb_doctornotice # 忽略医生通知表
|
||||
ignore-caches:
|
||||
- user_role_ids
|
||||
- permission_menu_ids
|
||||
|
||||
Loading…
Reference in New Issue
Block a user