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