修改登记单列表业务逻辑、检查项目
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
This commit is contained in:
parent
2edb0b4a3e
commit
a4470879c6
@ -84,7 +84,6 @@ public class ApplyformRespVO {
|
|||||||
private LocalDateTime createDate;
|
private LocalDateTime createDate;
|
||||||
|
|
||||||
@Schema(description = "检查项目代码")
|
@Schema(description = "检查项目代码")
|
||||||
@ExcelProperty("检查项目代码")
|
|
||||||
private String examItemCode;
|
private String examItemCode;
|
||||||
|
|
||||||
@Schema(description = "机构ID", example = "31976")
|
@Schema(description = "机构ID", example = "31976")
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.system.controller.admin.examitems;
|
package cn.iocoder.yudao.module.system.controller.admin.examitems;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
|
||||||
|
import cn.iocoder.yudao.module.system.service.user.AdminUserService;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@ -24,6 +26,7 @@ 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 cn.iocoder.yudao.module.system.controller.admin.examitems.vo.*;
|
import cn.iocoder.yudao.module.system.controller.admin.examitems.vo.*;
|
||||||
import cn.iocoder.yudao.module.system.dal.dataobject.examitems.examitemsDO;
|
import cn.iocoder.yudao.module.system.dal.dataobject.examitems.examitemsDO;
|
||||||
@ -41,7 +44,8 @@ public class examitemsController {
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private examitemsService examitemsService;
|
private examitemsService examitemsService;
|
||||||
|
@Resource
|
||||||
|
private AdminUserService userService;
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建检查部位")
|
@Operation(summary = "创建检查部位")
|
||||||
@PreAuthorize("@ss.hasPermission('examitems:examitems:create')")
|
@PreAuthorize("@ss.hasPermission('examitems:examitems:create')")
|
||||||
@ -109,6 +113,13 @@ public class examitemsController {
|
|||||||
@Operation(summary = "获得检查部位分页")
|
@Operation(summary = "获得检查部位分页")
|
||||||
@PreAuthorize("@ss.hasPermission('examitems:examitems:query')")
|
@PreAuthorize("@ss.hasPermission('examitems:examitems:query')")
|
||||||
public CommonResult<PageResult<examitemsRespVO>> getexamitemsPage(@Valid examitemsPageReqVO pageReqVO) {
|
public CommonResult<PageResult<examitemsRespVO>> getexamitemsPage(@Valid examitemsPageReqVO pageReqVO) {
|
||||||
|
//获取当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
String creator=user.getCreator();
|
||||||
|
if(!creator.equals("admin"))
|
||||||
|
{
|
||||||
|
pageReqVO.setOrgId(user.getOrgId());
|
||||||
|
}
|
||||||
PageResult<examitemsDO> pageResult = examitemsService.getexamitemsPage(pageReqVO);
|
PageResult<examitemsDO> pageResult = examitemsService.getexamitemsPage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, examitemsRespVO.class));
|
return success(BeanUtils.toBean(pageResult, examitemsRespVO.class));
|
||||||
}
|
}
|
||||||
|
@ -23,5 +23,7 @@ public class examitemsPageReqVO extends PageParam {
|
|||||||
|
|
||||||
@Schema(description = "检查部位代码")
|
@Schema(description = "检查部位代码")
|
||||||
private String examPartCode;
|
private String examPartCode;
|
||||||
|
@Schema(description = "机构ID", example = "32037")
|
||||||
|
private String orgId;
|
||||||
|
|
||||||
}
|
}
|
@ -27,6 +27,7 @@ public interface examitemsMapper extends BaseMapperX<examitemsDO> {
|
|||||||
.likeIfPresent(examitemsDO::getExamItemCode, reqVO.getExamItemCode())
|
.likeIfPresent(examitemsDO::getExamItemCode, reqVO.getExamItemCode())
|
||||||
.likeIfPresent(examitemsDO::getExamPartCode, reqVO.getExamPartCode())
|
.likeIfPresent(examitemsDO::getExamPartCode, reqVO.getExamPartCode())
|
||||||
.eq(examitemsDO::getIsdelete, '0')
|
.eq(examitemsDO::getIsdelete, '0')
|
||||||
|
.eqIfPresent(examitemsDO::getOrgId,reqVO.getOrgId())
|
||||||
.orderByDesc(examitemsDO::getId));
|
.orderByDesc(examitemsDO::getId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ public class ultrasonicController {
|
|||||||
public CommonResult<String> GetDcmList()
|
public CommonResult<String> GetDcmList()
|
||||||
{
|
{
|
||||||
|
|
||||||
String Res="{\"status\":\"success\",\"patientname\":\"朱晓珍\",\"hospital\":\"东营康惠健康体检中心\",\"seriesList\":[{\"thumbUrl\":\"/public/static/101缩略图.jpg\",\"seriesdesc\":\"CHEST\",\"instanceList\":[{\"imageid\":\"/public/static/49814@101@1@1.2.156.112605.189250948694021.20221211000237.4.28076.1.dcm\"}]},{\"thumbUrl\":\"/public/static/201缩略图.jpg\",\"seriesdesc\":\"CHEST\",\"instanceList\":[{\"imageid\":\"/public/static/49814@201@1@1.2.156.112605.189250948694021.20221211000325.4.16016.1.dcm\"},{\"imageid\":\"/public/static/49814@201@2@1.2.156.112605.189250948694021.20221211000325.4.16016.2.dcm\"},{\"imageid\":\"/public/static/49814@201@3@1.2.156.112605.189250948694021.20221211000325.4.16016.3.dcm\"},{\"imageid\":\"/public/static/49814@201@4@1.2.156.112605.189250948694021.20221211000326.4.16016.1.dcm\"},{\"imageid\":\"/public/static/49814@201@5@1.2.156.112605.189250948694021.20221211000326.4.16016.2.dcm\"}]}]}";
|
String Res="{\"status\":\"success\",\"patientname\":\"朱晓珍\",\"hospital\":\"东营康惠健康体检中心\",\"seriesList\":[{\"thumbUrl\":\"/static/101缩略图.jpg\",\"seriesdesc\":\"CHEST\",\"instanceList\":[{\"imageid\":\"/static/49814@101@1@1.2.156.112605.189250948694021.20221211000237.4.28076.1.dcm\"}]},{\"thumbUrl\":\"/static/201缩略图.jpg\",\"seriesdesc\":\"CHEST\",\"instanceList\":[{\"imageid\":\"/static/49814@201@1@1.2.156.112605.189250948694021.20221211000325.4.16016.1.dcm\"},{\"imageid\":\"/static/49814@201@2@1.2.156.112605.189250948694021.20221211000325.4.16016.2.dcm\"},{\"imageid\":\"/static/49814@201@3@1.2.156.112605.189250948694021.20221211000325.4.16016.3.dcm\"},{\"imageid\":\"/static/49814@201@4@1.2.156.112605.189250948694021.20221211000326.4.16016.1.dcm\"},{\"imageid\":\"/static/49814@201@5@1.2.156.112605.189250948694021.20221211000326.4.16016.2.dcm\"}]}]}";
|
||||||
|
|
||||||
return success(Res);
|
return success(Res);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user