ecg打印模板图片签名
This commit is contained in:
parent
69c4cb17e2
commit
b609590d7f
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system
controller/admin/doctor
dal/mysql/doctor
service/doctor
@ -20,11 +20,13 @@ import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||
|
||||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId;
|
||||
|
||||
@ -60,9 +62,7 @@ public class DoctorController {
|
||||
DoctorDO doctorDO = Service.get(createReqVO.getDoctorID());
|
||||
if (doctorDO != null) {
|
||||
Msg = "医生编号已存在";
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
Msg = Service.create(createReqVO);
|
||||
}
|
||||
return success(Msg);
|
||||
@ -106,6 +106,15 @@ public class DoctorController {
|
||||
return success(BeanUtils.toBean(doctorDO, DoctorRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/getBydoctorID")
|
||||
@Operation(summary = "获得医生管理")
|
||||
@Parameter(name = "doctorID", description = "医生id", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('doctor::query')")
|
||||
public CommonResult<DoctorDO> getBydoctorID(@RequestParam("doctorID") String doctorID) {
|
||||
DoctorDO doctorDO = Service.getBydoctorID(doctorID);
|
||||
return success(doctorDO);
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得医生管理分页")
|
||||
@PreAuthorize("@ss.hasPermission('doctor::query')")
|
||||
@ -113,8 +122,7 @@ public class DoctorController {
|
||||
//获取当前登陆用户
|
||||
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||
String creator = user.getCreator();
|
||||
if(!creator.equals("admin"))
|
||||
{
|
||||
if (!creator.equals("admin")) {
|
||||
pageReqVO.setOrgId(user.getOrgId());
|
||||
}
|
||||
PageResult<DoctorDO> pageResult = Service.getPage(pageReqVO);
|
||||
@ -169,6 +177,7 @@ public class DoctorController {
|
||||
List<DoctorDO> doctorDOs = Service.getDoctorList(user.getOrgId());
|
||||
return success(doctorDOs);
|
||||
}
|
||||
|
||||
@GetMapping("/getdoctorlist")
|
||||
@Operation(summary = "根据传入的机构获得医生list")
|
||||
@PreAuthorize("@ss.hasPermission('doctor::query')")
|
||||
|
@ -38,4 +38,9 @@ public interface DoctorMapper extends BaseMapperX<DoctorDO> {
|
||||
.orderByAsc(DoctorDO::getDoctorName));
|
||||
}
|
||||
|
||||
default DoctorDO selectOne(String doctorID) {
|
||||
return selectOne(new LambdaQueryWrapperX<DoctorDO>()
|
||||
.neIfPresent(DoctorDO::getIsdelete, '1')
|
||||
.eq(DoctorDO::getDoctorID, doctorID));
|
||||
}
|
||||
}
|
@ -46,6 +46,14 @@ public interface DoctorService {
|
||||
*/
|
||||
DoctorDO get(String id);
|
||||
|
||||
/**
|
||||
* 获得医生管理
|
||||
*
|
||||
* @param doctorID 编号
|
||||
* @return 医生管理
|
||||
*/
|
||||
DoctorDO getBydoctorID(String doctorID);
|
||||
|
||||
/**
|
||||
* 获得医生管理分页
|
||||
*
|
||||
|
@ -69,6 +69,14 @@ public class DoctorServiceImpl implements DoctorService {
|
||||
return Mapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DoctorDO getBydoctorID(String doctorID) {
|
||||
if (doctorID == null || doctorID.trim().isEmpty())
|
||||
return null;
|
||||
else
|
||||
return Mapper.selectOne(doctorID.trim());
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<DoctorDO> getPage(DoctorPageReqVO pageReqVO) {
|
||||
return Mapper.selectPage(pageReqVO);
|
||||
|
Loading…
Reference in New Issue
Block a user