批量修改
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
9d7962a0c9
commit
15e6916209
@ -28,10 +28,18 @@ public interface DeviceMapper extends BaseMapperX<DeviceDO> {
|
|||||||
@Update(" UPDATE tb_device t1 SET t1.isDelete=#{isdelete},t1.deletePerson=#{deletePerson},t1.deleteDate=#{deleteDate} WHERE t1.ID=#{ID} ")
|
@Update(" UPDATE tb_device t1 SET t1.isDelete=#{isdelete},t1.deletePerson=#{deletePerson},t1.deleteDate=#{deleteDate} WHERE t1.ID=#{ID} ")
|
||||||
int deleteDataById(DeviceDO device);
|
int deleteDataById(DeviceDO device);
|
||||||
|
|
||||||
//分页查询
|
//查询
|
||||||
|
default List<DeviceDO> selectList(String orgId) {
|
||||||
|
return selectList(new LambdaQueryWrapperX<DeviceDO>()
|
||||||
|
.neIfPresent(DeviceDO::getIsdelete, '1')
|
||||||
|
.eqIfPresent(DeviceDO::getOrgId, orgId)
|
||||||
|
.orderByAsc(DeviceDO::getDeviceName));
|
||||||
|
}
|
||||||
|
|
||||||
default PageResult<DeviceDO> selectPage(DevicePageReqVO reqVO) {
|
default PageResult<DeviceDO> selectPage(DevicePageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<DeviceDO>()
|
||||||
.neIfPresent(DeviceDO::getIsdelete, '1')
|
.neIfPresent(DeviceDO::getIsdelete, '1')
|
||||||
|
.eqIfPresent(DeviceDO::getOrgId, reqVO.getOrgId())
|
||||||
.likeIfPresent(DeviceDO::getDeviceName, reqVO.getDeviceName())
|
.likeIfPresent(DeviceDO::getDeviceName, reqVO.getDeviceName())
|
||||||
.likeIfPresent(DeviceDO::getDeviceModel, reqVO.getDeviceModel())
|
.likeIfPresent(DeviceDO::getDeviceModel, reqVO.getDeviceModel())
|
||||||
.eqIfPresent(DeviceDO::getDeviceType, reqVO.getDeviceType())
|
.eqIfPresent(DeviceDO::getDeviceType, reqVO.getDeviceType())
|
||||||
|
@ -3,6 +3,7 @@ package cn.iocoder.yudao.module.applyregistration.service.applyform.device;
|
|||||||
import cn.iocoder.yudao.module.applyregistration.dal.device.DeviceDO;
|
import cn.iocoder.yudao.module.applyregistration.dal.device.DeviceDO;
|
||||||
import cn.iocoder.yudao.module.applyregistration.controller.admin.device.vo.*;
|
import cn.iocoder.yudao.module.applyregistration.controller.admin.device.vo.*;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
|
||||||
import javax.validation.*;
|
import javax.validation.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
@ -27,7 +28,6 @@ public interface DeviceService {
|
|||||||
|
|
||||||
PageResult<DeviceDO> getDevicePage(DevicePageReqVO pageReqVO);
|
PageResult<DeviceDO> getDevicePage(DevicePageReqVO pageReqVO);
|
||||||
|
|
||||||
//临时方法
|
|
||||||
List<DeviceDO> getDevicelist();
|
List<DeviceDO> getDevicelist();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -103,6 +103,14 @@ public class DeviceServiceImpl implements DeviceService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageResult<DeviceDO> getDevicePage(DevicePageReqVO pageReqVO) {
|
public PageResult<DeviceDO> getDevicePage(DevicePageReqVO pageReqVO) {
|
||||||
|
|
||||||
|
//当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
|
||||||
|
if (pageReqVO != null) {
|
||||||
|
pageReqVO.setOrgId(user.getOrgId());
|
||||||
|
}
|
||||||
|
|
||||||
return DeviceMapper.selectPage(pageReqVO);
|
return DeviceMapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,11 +121,13 @@ public class DeviceServiceImpl implements DeviceService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//临时方法
|
|
||||||
@Override
|
@Override
|
||||||
public List<DeviceDO> getDevicelist() {
|
public List<DeviceDO> getDevicelist() {
|
||||||
return DeviceMapper.selectList();
|
|
||||||
|
//当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
|
||||||
|
return DeviceMapper.selectList(user.getOrgId());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -106,7 +106,6 @@ public class DepartmentController {
|
|||||||
@PreAuthorize("@ss.hasPermission('system:department:query')")
|
@PreAuthorize("@ss.hasPermission('system:department:query')")
|
||||||
public CommonResult<List<DepartmentRespVO>> getDepartmentListr() {
|
public CommonResult<List<DepartmentRespVO>> getDepartmentListr() {
|
||||||
List<DepartmentDO> department = departmentService.getgetDepartmentList();
|
List<DepartmentDO> department = departmentService.getgetDepartmentList();
|
||||||
|
|
||||||
return success(BeanUtils.toBean(department, DepartmentRespVO.class));
|
return success(BeanUtils.toBean(department, DepartmentRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.system.controller.admin.doctor;
|
package cn.iocoder.yudao.module.system.controller.admin.doctor;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
|
||||||
|
import cn.iocoder.yudao.module.system.service.user.*;
|
||||||
import com.mzt.logapi.starter.annotation.LogRecord;
|
import com.mzt.logapi.starter.annotation.LogRecord;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@ -24,10 +26,11 @@ 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.doctor.vo.*;
|
import cn.iocoder.yudao.module.system.controller.admin.doctor.vo.*;
|
||||||
import cn.iocoder.yudao.module.system.dal.dataobject.doctor.DoctorDO;
|
import cn.iocoder.yudao.module.system.dal.dataobject.doctor.DoctorDO;
|
||||||
import cn.iocoder.yudao.module.system.service.doctor.DoctorService;
|
import cn.iocoder.yudao.module.system.service.doctor.*;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
@ -39,9 +42,14 @@ import javax.validation.Valid;
|
|||||||
@Validated
|
@Validated
|
||||||
public class DoctorController {
|
public class DoctorController {
|
||||||
|
|
||||||
|
//属性
|
||||||
@Resource
|
@Resource
|
||||||
private DoctorService Service;
|
private DoctorService Service;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private AdminUserService userService;
|
||||||
|
|
||||||
|
//接口方法
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
@Operation(summary = "创建医生管理")
|
@Operation(summary = "创建医生管理")
|
||||||
@PreAuthorize("@ss.hasPermission('doctor::create')")
|
@PreAuthorize("@ss.hasPermission('doctor::create')")
|
||||||
@ -119,13 +127,23 @@ public class DoctorController {
|
|||||||
return success(true);
|
return success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getAlllist")
|
||||||
|
@Operation(summary = "获得医生全部list")
|
||||||
|
@PreAuthorize("@ss.hasPermission('doctor::query')")
|
||||||
|
public CommonResult<List<DoctorDO>> getAlllist() {
|
||||||
|
List<DoctorDO> doctorDOs= Service.getDoctorList(null);
|
||||||
|
return success(doctorDOs);
|
||||||
|
}
|
||||||
|
|
||||||
//临时接口
|
|
||||||
@GetMapping("/getlist")
|
@GetMapping("/getlist")
|
||||||
@Operation(summary = "获得医生管理list")
|
@Operation(summary = "获得医生list")
|
||||||
@PreAuthorize("@ss.hasPermission('doctor::query')")
|
@PreAuthorize("@ss.hasPermission('doctor::query')")
|
||||||
public CommonResult<List<DoctorDO>> getlist() {
|
public CommonResult<List<DoctorDO>> getlist() {
|
||||||
List<DoctorDO> doctorDOs= Service.getDoctorList();
|
|
||||||
|
//当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
|
||||||
|
List<DoctorDO> doctorDOs= Service.getDoctorList(user.getOrgId());
|
||||||
return success(doctorDOs);
|
return success(doctorDOs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,14 +20,21 @@ import cn.iocoder.yudao.module.system.controller.admin.department.vo.*;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface DepartmentMapper extends BaseMapperX<DepartmentDO> {
|
public interface DepartmentMapper extends BaseMapperX<DepartmentDO> {
|
||||||
|
|
||||||
|
//查询
|
||||||
default PageResult<DepartmentDO> selectPage(DepartmentPageReqVO reqVO) {
|
default PageResult<DepartmentDO> selectPage(DepartmentPageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<DepartmentDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<DepartmentDO>()
|
||||||
.likeIfPresent(DepartmentDO::getDepartmentName, reqVO.getDepartmentName())
|
.likeIfPresent(DepartmentDO::getDepartmentName, reqVO.getDepartmentName())
|
||||||
.eqIfPresent(DepartmentDO::getOrgId, reqVO.getOrgId())
|
.eqIfPresent(DepartmentDO::getOrgId, reqVO.getOrgId())
|
||||||
.eq(DepartmentDO::getIsDelete, '0')
|
.eq(DepartmentDO::getIsDelete, '0')
|
||||||
.orderByDesc(DepartmentDO::getId));
|
.orderByAsc(DepartmentDO::getDepartmentName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
default List<DepartmentDO> selectList(String orgId) {
|
||||||
|
return selectList(new LambdaQueryWrapperX<DepartmentDO>()
|
||||||
|
.neIfPresent(DepartmentDO::getIsDelete, '1')
|
||||||
|
.eqIfPresent(DepartmentDO::getOrgId, orgId)
|
||||||
|
.orderByAsc(DepartmentDO::getDepartmentName));
|
||||||
|
}
|
||||||
|
|
||||||
List<DepartmentDO> getDepartmentList();
|
List<DepartmentDO> getDepartmentList();
|
||||||
}
|
}
|
@ -21,12 +21,20 @@ import cn.iocoder.yudao.module.system.controller.admin.doctor.vo.*;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface DoctorMapper extends BaseMapperX<DoctorDO> {
|
public interface DoctorMapper extends BaseMapperX<DoctorDO> {
|
||||||
|
|
||||||
|
//查询
|
||||||
|
default List<DoctorDO> selectList(String orgId) {
|
||||||
|
return selectList(new LambdaQueryWrapperX<DoctorDO>()
|
||||||
|
.neIfPresent(DoctorDO::getIsdelete, '1')
|
||||||
|
.eqIfPresent(DoctorDO::getOrgId, orgId)
|
||||||
|
.orderByAsc(DoctorDO::getDoctorName));
|
||||||
|
}
|
||||||
|
|
||||||
default PageResult<DoctorDO> selectPage(DoctorPageReqVO reqVO) {
|
default PageResult<DoctorDO> selectPage(DoctorPageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<DoctorDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<DoctorDO>()
|
||||||
.likeIfPresent(DoctorDO::getDoctorName, reqVO.getDoctorName())
|
.likeIfPresent(DoctorDO::getDoctorName, reqVO.getDoctorName())
|
||||||
.likeIfPresent(DoctorDO::getDepartmentName, reqVO.getDepartmentName())
|
.likeIfPresent(DoctorDO::getDepartmentName, reqVO.getDepartmentName())
|
||||||
.eq(DoctorDO::getIsdelete, '0')
|
.eq(DoctorDO::getIsdelete, '0')
|
||||||
.orderByDesc(DoctorDO::getDoctorID));
|
.orderByAsc(DoctorDO::getDoctorName));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -21,17 +21,25 @@ import java.util.List;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface examitemsMapper extends BaseMapperX<examitemsDO> {
|
public interface examitemsMapper extends BaseMapperX<examitemsDO> {
|
||||||
|
|
||||||
|
//查询
|
||||||
|
default List<examitemsDO> selectList(String orgId) {
|
||||||
|
return selectList(new LambdaQueryWrapperX<examitemsDO>()
|
||||||
|
.neIfPresent(examitemsDO::getIsdelete, '1')
|
||||||
|
.eqIfPresent(examitemsDO::getOrgId, orgId)
|
||||||
|
.orderByAsc(examitemsDO::getExamItemName));
|
||||||
|
}
|
||||||
|
|
||||||
default PageResult<examitemsDO> selectPage(examitemsPageReqVO reqVO) {
|
default PageResult<examitemsDO> selectPage(examitemsPageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<examitemsDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<examitemsDO>()
|
||||||
.likeIfPresent(examitemsDO::getExamItemName, reqVO.getExamItemName())
|
.likeIfPresent(examitemsDO::getExamItemName, reqVO.getExamItemName())
|
||||||
.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())
|
.eqIfPresent(examitemsDO::getOrgId, reqVO.getOrgId())
|
||||||
.orderByDesc(examitemsDO::getId));
|
.orderByAsc(examitemsDO::getExamItemName));
|
||||||
}
|
}
|
||||||
|
|
||||||
int selectItemCount(@Param("examItemCode") String examItemCode);
|
|
||||||
//返回检查项目字典
|
|
||||||
List<examitemsDO> getexamitemsList();
|
List<examitemsDO> getexamitemsList();
|
||||||
|
|
||||||
|
int selectItemCount(@Param("examItemCode") String examItemCode);
|
||||||
}
|
}
|
@ -32,6 +32,7 @@ public interface ExampartMapper extends BaseMapperX<ExampartDO> {
|
|||||||
default PageResult<ExampartDO> selectPage(ExampartPageReqVO reqVO) {
|
default PageResult<ExampartDO> selectPage(ExampartPageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<ExampartDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<ExampartDO>()
|
||||||
.neIfPresent(ExampartDO::getIsDelete, '1')
|
.neIfPresent(ExampartDO::getIsDelete, '1')
|
||||||
|
.eqIfPresent(ExampartDO::getOrgId, reqVO.getOrgId())
|
||||||
.likeIfPresent(ExampartDO::getExamPartName, reqVO.getExamPartName())
|
.likeIfPresent(ExampartDO::getExamPartName, reqVO.getExamPartName())
|
||||||
.likeIfPresent(ExampartDO::getExamPartCode, reqVO.getExamPartCode())
|
.likeIfPresent(ExampartDO::getExamPartCode, reqVO.getExamPartCode())
|
||||||
.orderByAsc(ExampartDO::getExamPartName));
|
.orderByAsc(ExampartDO::getExamPartName));
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package cn.iocoder.yudao.module.system.service.department;
|
package cn.iocoder.yudao.module.system.service.department;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||||
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.*;
|
||||||
|
import cn.iocoder.yudao.module.system.service.user.*;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
@ -17,6 +19,7 @@ import cn.iocoder.yudao.module.system.dal.mysql.department.DepartmentMapper;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId;
|
||||||
import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
|
import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -28,9 +31,14 @@ import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
|
|||||||
@Validated
|
@Validated
|
||||||
public class DepartmentServiceImpl implements DepartmentService {
|
public class DepartmentServiceImpl implements DepartmentService {
|
||||||
|
|
||||||
|
//属性
|
||||||
@Resource
|
@Resource
|
||||||
private DepartmentMapper departmentMapper;
|
private DepartmentMapper departmentMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private AdminUserService userService;
|
||||||
|
|
||||||
|
//接口方法
|
||||||
@Override
|
@Override
|
||||||
public String createDepartment(DepartmentSaveReqVO createReqVO) {
|
public String createDepartment(DepartmentSaveReqVO createReqVO) {
|
||||||
// 插入
|
// 插入
|
||||||
@ -75,7 +83,11 @@ public class DepartmentServiceImpl implements DepartmentService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<DepartmentDO> getgetDepartmentList() {
|
public List<DepartmentDO> getgetDepartmentList() {
|
||||||
return departmentMapper.getDepartmentList();
|
|
||||||
|
//当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
|
||||||
|
return departmentMapper.selectList(user.getOrgId());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,6 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.system.service.doctor;
|
package cn.iocoder.yudao.module.system.service.doctor;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.system.controller.admin.doctor.vo.*;
|
import cn.iocoder.yudao.module.system.controller.admin.doctor.vo.*;
|
||||||
import cn.iocoder.yudao.module.system.dal.dataobject.doctor.DoctorDO;
|
import cn.iocoder.yudao.module.system.dal.dataobject.doctor.DoctorDO;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
@ -53,7 +54,12 @@ public interface DoctorService {
|
|||||||
*/
|
*/
|
||||||
PageResult<DoctorDO> getPage(DoctorPageReqVO pageReqVO);
|
PageResult<DoctorDO> getPage(DoctorPageReqVO pageReqVO);
|
||||||
|
|
||||||
//临时方法
|
/**
|
||||||
List<DoctorDO> getDoctorList();
|
* 获得医生数据
|
||||||
|
*
|
||||||
|
* @param orgId
|
||||||
|
* @return 医生数据列表
|
||||||
|
*/
|
||||||
|
List<DoctorDO> getDoctorList(String orgId);
|
||||||
|
|
||||||
}
|
}
|
@ -6,6 +6,7 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.system.controller.admin.doctor.vo.*;
|
import cn.iocoder.yudao.module.system.controller.admin.doctor.vo.*;
|
||||||
import cn.iocoder.yudao.module.system.dal.dataobject.doctor.DoctorDO;
|
import cn.iocoder.yudao.module.system.dal.dataobject.doctor.DoctorDO;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
@ -34,7 +35,7 @@ public class DoctorServiceImpl implements DoctorService {
|
|||||||
@Override
|
@Override
|
||||||
public String create(DoctorSaveReqVO createReqVO) {
|
public String create(DoctorSaveReqVO createReqVO) {
|
||||||
// 插入
|
// 插入
|
||||||
DoctorDO doctorDO = BeanUtils.toBean(createReqVO, DoctorDO.class);
|
DoctorDO doctorDO = BeanUtils.toBean(createReqVO, DoctorDO.class);
|
||||||
Mapper.insert(doctorDO);
|
Mapper.insert(doctorDO);
|
||||||
// 返回
|
// 返回
|
||||||
return doctorDO.getDoctorID();
|
return doctorDO.getDoctorID();
|
||||||
@ -59,7 +60,7 @@ public class DoctorServiceImpl implements DoctorService {
|
|||||||
|
|
||||||
private void validateExists(String id) {
|
private void validateExists(String id) {
|
||||||
if (Mapper.selectById(id) == null) {
|
if (Mapper.selectById(id) == null) {
|
||||||
throw exception(new ErrorCode(1,"用户ID为空"));
|
throw exception(new ErrorCode(1, "用户ID为空"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,10 +74,15 @@ public class DoctorServiceImpl implements DoctorService {
|
|||||||
return Mapper.selectPage(pageReqVO);
|
return Mapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
//临时方法
|
/**
|
||||||
|
* 获得医生数据
|
||||||
|
*
|
||||||
|
* @param orgId
|
||||||
|
* @return 医生数据列表
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<DoctorDO> getDoctorList() {
|
public List<DoctorDO> getDoctorList(String orgId) {
|
||||||
return Mapper.selectList();
|
return Mapper.selectList(orgId);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,12 +1,15 @@
|
|||||||
package cn.iocoder.yudao.module.system.service.examitems;
|
package cn.iocoder.yudao.module.system.service.examitems;
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||||
|
import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO;
|
||||||
|
import cn.iocoder.yudao.module.system.service.user.*;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
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;
|
||||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
@ -18,6 +21,7 @@ import cn.iocoder.yudao.module.system.dal.mysql.examitems.examitemsMapper;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils.getLoginUserId;
|
||||||
import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
|
import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -29,9 +33,14 @@ import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
|
|||||||
@Validated
|
@Validated
|
||||||
public class examitemsServiceImpl implements examitemsService {
|
public class examitemsServiceImpl implements examitemsService {
|
||||||
|
|
||||||
|
//属性
|
||||||
@Resource
|
@Resource
|
||||||
private examitemsMapper examitemsMapper;
|
private examitemsMapper examitemsMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private AdminUserService userService;
|
||||||
|
|
||||||
|
//接口方法
|
||||||
@Override
|
@Override
|
||||||
public String createexamitems(examitemsSaveReqVO createReqVO) {
|
public String createexamitems(examitemsSaveReqVO createReqVO) {
|
||||||
// 插入
|
// 插入
|
||||||
@ -60,7 +69,7 @@ public class examitemsServiceImpl implements examitemsService {
|
|||||||
|
|
||||||
private void validateexamitemsExists(String id) {
|
private void validateexamitemsExists(String id) {
|
||||||
if (examitemsMapper.selectById(id) == null) {
|
if (examitemsMapper.selectById(id) == null) {
|
||||||
throw exception(new ErrorCode(1,"ID不存在"));
|
throw exception(new ErrorCode(1, "ID不存在"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,23 +85,23 @@ public class examitemsServiceImpl implements examitemsService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getexamItemcodexist(String examItemCode) {
|
public boolean getexamItemcodexist(String examItemCode) {
|
||||||
boolean bol=false;
|
boolean bol = false;
|
||||||
int count = examitemsMapper.selectItemCount(examItemCode);
|
int count = examitemsMapper.selectItemCount(examItemCode);
|
||||||
if(count>0)
|
if (count > 0) {
|
||||||
{
|
bol = true;
|
||||||
bol=true;
|
} else {
|
||||||
|
bol = false;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
bol=false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return bol;
|
return bol;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<examitemsDO> getexamitemsList() {
|
public List<examitemsDO> getexamitemsList() {
|
||||||
return examitemsMapper.getexamitemsList();
|
|
||||||
|
//当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
|
||||||
|
return examitemsMapper.selectList(user.getOrgId());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -104,6 +104,13 @@ public class ExampartServiceImpl implements ExampartService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageResult<ExampartDO> getExampartPage(ExampartPageReqVO pageReqVO) {
|
public PageResult<ExampartDO> getExampartPage(ExampartPageReqVO pageReqVO) {
|
||||||
|
//当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
|
||||||
|
if (pageReqVO != null) {
|
||||||
|
pageReqVO.setOrgId(user.getOrgId());
|
||||||
|
}
|
||||||
|
|
||||||
return exampartMapper.selectPage(pageReqVO);
|
return exampartMapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,9 +154,18 @@ public class PatientexamlistController {
|
|||||||
@GetMapping("/dicomDataSync")
|
@GetMapping("/dicomDataSync")
|
||||||
@Operation(summary = "dicom数据同步")
|
@Operation(summary = "dicom数据同步")
|
||||||
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:query')")
|
@PreAuthorize("@ss.hasPermission('tblist:patientexamlist:query')")
|
||||||
public CommonResult<Boolean> dicomDataSync() {
|
public CommonResult<Map<String, Object>> dicomDataSync() {
|
||||||
patientexamlistService.dicomDataSync();
|
Map<String, Object> _out = new HashMap<>();
|
||||||
return success(true);
|
List<String> ids = null;
|
||||||
|
try {
|
||||||
|
ids = patientexamlistService.dicomDataSync();
|
||||||
|
_out.put("code", "success");
|
||||||
|
} catch (Exception ex) {
|
||||||
|
ids = null;
|
||||||
|
_out.put("code", "error");
|
||||||
|
}
|
||||||
|
_out.put("syncItems", ids == null ? 0 : ids.size());
|
||||||
|
return success(_out);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/dicomDataRefresh")
|
@GetMapping("/dicomDataRefresh")
|
||||||
|
@ -23,6 +23,7 @@ public interface PatientexamlistMapper extends BaseMapperX<PatientexamlistDO> {
|
|||||||
//IllnessCasePageReqVO分页
|
//IllnessCasePageReqVO分页
|
||||||
default PageResult<PatientexamlistDO> selectPage(IllnessCasePageReqVO reqVO) {
|
default PageResult<PatientexamlistDO> selectPage(IllnessCasePageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<PatientexamlistDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<PatientexamlistDO>()
|
||||||
|
.eqIfPresent(PatientexamlistDO::getOrgId, reqVO.getOrgId())
|
||||||
.likeIfPresent(PatientexamlistDO::getRegId, reqVO.getRegId())
|
.likeIfPresent(PatientexamlistDO::getRegId, reqVO.getRegId())
|
||||||
.likeIfPresent(PatientexamlistDO::getExamId, reqVO.getExamId())
|
.likeIfPresent(PatientexamlistDO::getExamId, reqVO.getExamId())
|
||||||
.geIfPresent(PatientexamlistDO::getExamDate, reqVO.getExamDate_ge())
|
.geIfPresent(PatientexamlistDO::getExamDate, reqVO.getExamDate_ge())
|
||||||
@ -40,6 +41,7 @@ public interface PatientexamlistMapper extends BaseMapperX<PatientexamlistDO> {
|
|||||||
//ReportPrintPageReqVO分页
|
//ReportPrintPageReqVO分页
|
||||||
default PageResult<PatientexamlistDO> selectPage(ReportPrintPageReqVO reqVO) {
|
default PageResult<PatientexamlistDO> selectPage(ReportPrintPageReqVO reqVO) {
|
||||||
return selectPage(reqVO, new LambdaQueryWrapperX<PatientexamlistDO>()
|
return selectPage(reqVO, new LambdaQueryWrapperX<PatientexamlistDO>()
|
||||||
|
.eqIfPresent(PatientexamlistDO::getOrgId, reqVO.getOrgId())
|
||||||
.likeIfPresent(PatientexamlistDO::getRegId, reqVO.getRegId())
|
.likeIfPresent(PatientexamlistDO::getRegId, reqVO.getRegId())
|
||||||
.likeIfPresent(PatientexamlistDO::getExamId, reqVO.getExamId())
|
.likeIfPresent(PatientexamlistDO::getExamId, reqVO.getExamId())
|
||||||
.geIfPresent(PatientexamlistDO::getExamDate, reqVO.getExamDate_ge())
|
.geIfPresent(PatientexamlistDO::getExamDate, reqVO.getExamDate_ge())
|
||||||
@ -74,27 +76,29 @@ public interface PatientexamlistMapper extends BaseMapperX<PatientexamlistDO> {
|
|||||||
.orderByDesc(PatientexamlistDO::getId));
|
.orderByDesc(PatientexamlistDO::getId));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询需要刷新的数据
|
// 查询需要刷新的数据
|
||||||
@Select("select * from tb_patientexamlist where reportstatus='已分检' and examDate is null and orgId=#{orgId}")
|
@Select("select * from tb_patientexamlist where reportstatus='已分检' and examDate is null and orgId=#{orgId}")
|
||||||
List<PatientexamlistDO> GetSortingDataList(@Param("orgId") String orgId);
|
List<PatientexamlistDO> GetSortingDataList(@Param("orgId") String orgId);
|
||||||
// 查询已检查数据的阴性阳性重大阳性统计
|
|
||||||
|
//查询已检查数据的阴性阳性重大阳性统计
|
||||||
@Select(" SELECT COUNT(*) AS totalcount, SUM(CASE WHEN diagFlag = '0' THEN 1 ELSE 0 END) AS yx, SUM(CASE WHEN diagFlag = '1' THEN 1 ELSE 0 END) AS y, SUM(CASE WHEN diagFlag = '2' THEN 1 ELSE 0 END) AS zdyx " +
|
@Select(" SELECT COUNT(*) AS totalcount, SUM(CASE WHEN diagFlag = '0' THEN 1 ELSE 0 END) AS yx, SUM(CASE WHEN diagFlag = '1' THEN 1 ELSE 0 END) AS y, SUM(CASE WHEN diagFlag = '2' THEN 1 ELSE 0 END) AS zdyx " +
|
||||||
" ,SUM( CASE WHEN gender = '男' THEN 1 ELSE 0 END ) AS F,SUM( CASE WHEN gender = '女' THEN 1 ELSE 0 END ) AS M FROM tb_patientexamlist WHERE examDate IS NOT NULL and orgId=#{orgId}")
|
" ,SUM( CASE WHEN gender = '男' THEN 1 ELSE 0 END ) AS F,SUM( CASE WHEN gender = '女' THEN 1 ELSE 0 END ) AS M FROM tb_patientexamlist WHERE examDate IS NOT NULL and orgId=#{orgId}")
|
||||||
PatientexamlistCountVO GetWholeDiagFlagCount(@Param("orgId") String orgId);
|
PatientexamlistCountVO GetWholeDiagFlagCount(@Param("orgId") String orgId);
|
||||||
|
|
||||||
// 统计一周内的数据已检查数据的阴性阳性重大阳性
|
//统计一周内的数据已检查数据的阴性阳性重大阳性
|
||||||
@Select("SELECT "
|
@Select("SELECT "
|
||||||
+ "DATE_FORMAT(examDate, '%Y-%m-%d') AS date, "
|
+ "DATE_FORMAT(examDate, '%Y-%m-%d') AS date, "
|
||||||
+ "COUNT(*) AS totalcount, "
|
+ "COUNT(*) AS totalcount, "
|
||||||
+ "SUM(CASE WHEN diagFlag = '0' THEN 1 ELSE 0 END) AS yx, "
|
+ "SUM(CASE WHEN diagFlag = '0' THEN 1 ELSE 0 END) AS yx, "
|
||||||
+ "SUM(CASE WHEN diagFlag = '1' THEN 1 ELSE 0 END) AS y, "
|
+ "SUM(CASE WHEN diagFlag = '1' THEN 1 ELSE 0 END) AS y, "
|
||||||
+ "SUM(CASE WHEN diagFlag = '2' THEN 1 ELSE 0 END) AS zdyx "
|
+ "SUM(CASE WHEN diagFlag = '2' THEN 1 ELSE 0 END) AS zdyx "
|
||||||
+ "FROM tb_patientexamlist "
|
+ "FROM tb_patientexamlist "
|
||||||
+ "WHERE examDate IS NOT NULL "
|
+ "WHERE examDate IS NOT NULL "
|
||||||
+ "AND examDate >= CURDATE() - INTERVAL 7 DAY "
|
+ "AND examDate >= CURDATE() - INTERVAL 7 DAY "
|
||||||
+ "AND orgId = #{orgId} "
|
+ "AND orgId = #{orgId} "
|
||||||
+ "GROUP BY date "
|
+ "GROUP BY date "
|
||||||
+ " ORDER BY date")
|
+ " ORDER BY date")
|
||||||
List<PatientexamlistCountVO> GetDateYYZDCount(@Param("orgId") String orgId);
|
List<PatientexamlistCountVO> GetDateYYZDCount(@Param("orgId") String orgId);
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ public interface PatientexamlistService extends IService<PatientexamlistDO> {
|
|||||||
* @param
|
* @param
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
void dicomDataSync();
|
List<String> dicomDataSync();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新examItemName
|
* 更新examItemName
|
||||||
|
@ -90,16 +90,34 @@ public class PatientexamlistServiceImpl extends ServiceImpl<PatientexamlistMappe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageResult<PatientexamlistDO> getIllnessCasePage(IllnessCasePageReqVO pageReqVO) {
|
public PageResult<PatientexamlistDO> getIllnessCasePage(IllnessCasePageReqVO pageReqVO) {
|
||||||
|
|
||||||
|
//当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
|
||||||
|
if (pageReqVO != null) {
|
||||||
|
pageReqVO.setOrgId(user.getOrgId());
|
||||||
|
}
|
||||||
|
|
||||||
return patientexamlistMapper.selectPage(pageReqVO);
|
return patientexamlistMapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageResult<PatientexamlistDO> getReportPrintStatisticsPage(ReportPrintPageReqVO pageReqVO) {
|
public PageResult<PatientexamlistDO> getReportPrintStatisticsPage(ReportPrintPageReqVO pageReqVO) {
|
||||||
|
|
||||||
|
//当前登陆用户
|
||||||
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
|
|
||||||
|
if (pageReqVO != null) {
|
||||||
|
pageReqVO.setOrgId(user.getOrgId());
|
||||||
|
}
|
||||||
|
|
||||||
return patientexamlistMapper.selectPage(pageReqVO);
|
return patientexamlistMapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void dicomDataSync() {
|
public List<String> dicomDataSync() {
|
||||||
|
|
||||||
|
List<String> _out = new ArrayList<String>();
|
||||||
|
|
||||||
//当前登陆用户
|
//当前登陆用户
|
||||||
AdminUserDO user = userService.getUser(getLoginUserId());
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
@ -156,11 +174,15 @@ public class PatientexamlistServiceImpl extends ServiceImpl<PatientexamlistMappe
|
|||||||
//patientexamlist.setExamId(null);
|
//patientexamlist.setExamId(null);
|
||||||
//patientexamlist.setExamId(null);
|
//patientexamlist.setExamId(null);
|
||||||
patientexamlistMapper.insert(patientexamlist);
|
patientexamlistMapper.insert(patientexamlist);
|
||||||
|
_out.add(patientexamlist.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dicomworklistMapper.UpdateDataSyncOfDicompatientsByPatientID(dicomPatient.getPatientID());
|
dicomworklistMapper.UpdateDataSyncOfDicompatientsByPatientID(dicomPatient.getPatientID());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!(_out != null && _out.size() > 0))
|
||||||
|
_out = Collections.emptyList();
|
||||||
|
return _out;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -240,7 +262,7 @@ public class PatientexamlistServiceImpl extends ServiceImpl<PatientexamlistMappe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PatientexamlistCountVO GetWholeDiagFlagCount(String orgId) {
|
public PatientexamlistCountVO GetWholeDiagFlagCount(String orgId) {
|
||||||
return patientexamlistMapper.GetWholeDiagFlagCount(orgId);
|
return patientexamlistMapper.GetWholeDiagFlagCount(orgId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user