修改超声模块
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
b101f92665
commit
bd491299b9
@ -71,5 +71,7 @@ public class UserProfileRespVO {
|
|||||||
private String openid;
|
private String openid;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
private String orgId;
|
||||||
|
|
||||||
|
private String isexamine;
|
||||||
}
|
}
|
||||||
|
@ -37,4 +37,6 @@ public class UserPageReqVO extends PageParam {
|
|||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
|
||||||
|
private String isexamine;
|
||||||
}
|
}
|
||||||
|
@ -72,4 +72,6 @@ public class UserRespVO{
|
|||||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
|
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式")
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
|
||||||
|
private String isexamine;
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,8 @@ public class UserSaveReqVO {
|
|||||||
*/
|
*/
|
||||||
@NotBlank(message = "机构不能为空")
|
@NotBlank(message = "机构不能为空")
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
|
||||||
|
private String isexamine;
|
||||||
// ========== 仅【创建】时,需要传递的字段 ==========
|
// ========== 仅【创建】时,需要传递的字段 ==========
|
||||||
|
|
||||||
@Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
|
@Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456")
|
||||||
|
@ -22,4 +22,6 @@ public class UserSimpleRespVO {
|
|||||||
@Schema(description = "部门名称", example = "IT 部")
|
@Schema(description = "部门名称", example = "IT 部")
|
||||||
private String deptName;
|
private String deptName;
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
|
||||||
|
private String isexamine;
|
||||||
}
|
}
|
||||||
|
@ -97,4 +97,10 @@ public class AdminUserDO extends TenantBaseDO {
|
|||||||
*/
|
*/
|
||||||
@TableField("orgId")
|
@TableField("orgId")
|
||||||
private String orgId;
|
private String orgId;
|
||||||
|
/**
|
||||||
|
* 是否有审核权限
|
||||||
|
*/
|
||||||
|
@TableField("isexamine")
|
||||||
|
private String isexamine;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -120,6 +120,12 @@
|
|||||||
<groupId>com.xingyuv</groupId>
|
<groupId>com.xingyuv</groupId>
|
||||||
<artifactId>spring-boot-starter-captcha-plus</artifactId> <!-- 验证码,一般用于登录使用 -->
|
<artifactId>spring-boot-starter-captcha-plus</artifactId> <!-- 验证码,一般用于登录使用 -->
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>cn.iocoder.boot</groupId>
|
||||||
|
<artifactId>yudao-module-system-biz</artifactId>
|
||||||
|
<version>2.1.0-jdk8-snapshot</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.tblist.controller.admin.patientexamlist;
|
package cn.iocoder.yudao.module.tblist.controller.admin.patientexamlist;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
|
||||||
|
import cn.iocoder.yudao.module.system.service.user.AdminUserService;
|
||||||
import cn.iocoder.yudao.module.tblist.service.patientexamlist.org.OrgService;
|
import cn.iocoder.yudao.module.tblist.service.patientexamlist.org.OrgService;
|
||||||
import com.mzt.logapi.starter.annotation.LogRecord;
|
import com.mzt.logapi.starter.annotation.LogRecord;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
@ -18,6 +20,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
@ -29,6 +32,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.tblist.controller.admin.patientexamlist.vo.*;
|
import cn.iocoder.yudao.module.tblist.controller.admin.patientexamlist.vo.*;
|
||||||
import cn.iocoder.yudao.module.tblist.dal.dataobject.patientexamlist.PatientexamlistDO;
|
import cn.iocoder.yudao.module.tblist.dal.dataobject.patientexamlist.PatientexamlistDO;
|
||||||
@ -48,7 +52,8 @@ public class PatientexamlistController {
|
|||||||
@Resource
|
@Resource
|
||||||
private PatientexamlistService patientexamlistService;
|
private PatientexamlistService patientexamlistService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private AdminUserService userService;
|
||||||
@Resource
|
@Resource
|
||||||
private OrgService OrgService;
|
private OrgService OrgService;
|
||||||
|
|
||||||
@ -91,6 +96,25 @@ public class PatientexamlistController {
|
|||||||
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:query')")
|
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:query')")
|
||||||
public CommonResult<PageResult<PatientexamlistRespVO>> getPatientexamlistPage(@Valid PatientexamlistPageReqVO pageReqVO) {
|
public CommonResult<PageResult<PatientexamlistRespVO>> getPatientexamlistPage(@Valid PatientexamlistPageReqVO pageReqVO) {
|
||||||
PageResult<PatientexamlistDO> pageResult = patientexamlistService.getPatientexamlistPage(pageReqVO);
|
PageResult<PatientexamlistDO> pageResult = patientexamlistService.getPatientexamlistPage(pageReqVO);
|
||||||
|
List<PatientexamlistDO> doList=new ArrayList<>();
|
||||||
|
String devicetype=pageReqVO.getDeviceType();
|
||||||
|
if(devicetype.equals("US"))//表示只查询超声的数据
|
||||||
|
{
|
||||||
|
// 筛选条件:
|
||||||
|
doList = pageResult.getList().stream()
|
||||||
|
.filter(PatientexamlistDO -> (PatientexamlistDO.getDeviceType().equals(devicetype)))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
else//表示只查询影像的数据
|
||||||
|
{
|
||||||
|
// 筛选条件:
|
||||||
|
doList = pageResult.getList().stream()
|
||||||
|
.filter(PatientexamlistDO -> !(PatientexamlistDO.getDeviceType().equals("US")))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
|
pageResult.setList(doList);
|
||||||
|
|
||||||
return success(BeanUtils.toBean(pageResult, PatientexamlistRespVO.class));
|
return success(BeanUtils.toBean(pageResult, PatientexamlistRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,15 +157,35 @@ public class PatientexamlistController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/examineupdate")
|
@PutMapping("/examineupdate")
|
||||||
@Operation(summary = "超声审核更新数据")
|
@Operation(summary = "超声保存更新数据")
|
||||||
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:update')")
|
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:update')")
|
||||||
@LogRecord(type = "超声审核", subType = "审核", bizNo ="{{#updateReqVO.getId}}" , success = "审核ID为{{#updateReqVO.getId}}的患者")
|
@LogRecord(type = "超声保存", subType = "保存", bizNo ="{{#updateReqVO.getId}}" , success = "保存ID为{{#updateReqVO.getId}}的患者")
|
||||||
public CommonResult<Boolean> updateexaminelist(@Valid @RequestBody PatientexamlistSaveReqVO updateReqVO) {
|
public CommonResult<Boolean> updateexaminelist(@Valid @RequestBody PatientexamlistSaveReqVO updateReqVO) {
|
||||||
|
|
||||||
LocalDateTime dateTime= LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),
|
LocalDateTime dateTime= LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),
|
||||||
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||||
updateReqVO.setDiagDate(dateTime);
|
updateReqVO.setDiagDate(dateTime);
|
||||||
updateReqVO.setReviewDate(dateTime);
|
patientexamlistService.updatePatientexamlist(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/examine")
|
||||||
|
@Operation(summary = "超声保存更新数据")
|
||||||
|
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:update')")
|
||||||
|
@LogRecord(type = "超声审核", subType = "审核", bizNo ="{{#updateReqVO.getId}}" , success = "审核ID为{{#id}}的患者")
|
||||||
|
public CommonResult<Boolean> examine(@RequestParam("id") String id) {
|
||||||
|
|
||||||
|
LocalDateTime dateTime= LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),
|
||||||
|
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||||
|
//获取当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
PatientexamlistSaveReqVO updateReqVO=new PatientexamlistSaveReqVO();
|
||||||
|
updateReqVO.setId(id);
|
||||||
|
updateReqVO.setReviewDoctorId(String.valueOf(user.getId()));
|
||||||
|
updateReqVO.setReviewDoctor(user.getUsername());
|
||||||
|
updateReqVO.setReviewDate(dateTime);
|
||||||
|
updateReqVO.setReviewStatus("1");
|
||||||
|
updateReqVO.setReportstatus("已审核");
|
||||||
patientexamlistService.updatePatientexamlist(updateReqVO);
|
patientexamlistService.updatePatientexamlist(updateReqVO);
|
||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
@ -70,6 +70,9 @@ public class PatientexamlistSaveReqVO {
|
|||||||
@Schema(description = "诊断医生")
|
@Schema(description = "诊断医生")
|
||||||
private String diagDoctor;
|
private String diagDoctor;
|
||||||
|
|
||||||
|
@Schema(description = "审核医生ID")
|
||||||
|
private String reviewDoctorId;
|
||||||
|
|
||||||
@Schema(description = "审核医生")
|
@Schema(description = "审核医生")
|
||||||
private String reviewDoctor;
|
private String reviewDoctor;
|
||||||
|
|
||||||
@ -93,5 +96,7 @@ public class PatientexamlistSaveReqVO {
|
|||||||
|
|
||||||
@Schema(description = "开单科室")
|
@Schema(description = "开单科室")
|
||||||
private String billDoctorDepartment;
|
private String billDoctorDepartment;
|
||||||
|
@Schema(description = "审核状态")
|
||||||
|
private String reviewStatus;
|
||||||
|
|
||||||
}
|
}
|
@ -131,6 +131,11 @@ public class PatientexamlistDO extends BaseDO {
|
|||||||
*/
|
*/
|
||||||
@TableField(value = "diagDoctor")
|
@TableField(value = "diagDoctor")
|
||||||
private String diagDoctor;
|
private String diagDoctor;
|
||||||
|
/**
|
||||||
|
* 审核医生ID
|
||||||
|
*/
|
||||||
|
@TableField(value = "reviewDoctorId")
|
||||||
|
private String reviewDoctorId;
|
||||||
/**
|
/**
|
||||||
* 审核医生
|
* 审核医生
|
||||||
*/
|
*/
|
||||||
@ -165,4 +170,7 @@ public class PatientexamlistDO extends BaseDO {
|
|||||||
@TableField(value = "billDoctorDepartment")
|
@TableField(value = "billDoctorDepartment")
|
||||||
private String billDoctorDepartment;
|
private String billDoctorDepartment;
|
||||||
|
|
||||||
|
@TableField(value = "reviewStatus")
|
||||||
|
private String reviewStatus;
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user