Merge branch 'youxilong_2.26_院后第一增量' of http://192.168.16.64:3000/jihan/PostDischargePatientManage into youxilong_2.26_院后第一增量
This commit is contained in:
commit
e45bcd2901
1
pom.xml
1
pom.xml
@ -33,6 +33,7 @@
|
||||
<velocity.version>2.3</velocity.version>
|
||||
<jwt.version>0.9.1</jwt.version>
|
||||
<lombok.version>1.18.4</lombok.version>
|
||||
<knife4j.version>3.0.3</knife4j.version>
|
||||
</properties>
|
||||
|
||||
<!-- 依赖声明 -->
|
||||
|
||||
@ -33,6 +33,12 @@
|
||||
<artifactId>swagger-models</artifactId>
|
||||
<version>1.6.2</version>
|
||||
</dependency>
|
||||
<!-- Swagger3增强插件 knife4j -->
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
<version>3.0.3</version>
|
||||
</dependency>
|
||||
<!-- Mysql驱动包 -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
|
||||
@ -1,22 +1,22 @@
|
||||
package com.xinelu.web.core.config;
|
||||
|
||||
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
|
||||
import com.xinelu.common.config.SystemBusinessConfig;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.models.auth.In;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import springfox.documentation.builders.ApiInfoBuilder;
|
||||
import springfox.documentation.builders.PathSelectors;
|
||||
import springfox.documentation.builders.RequestHandlerSelectors;
|
||||
import springfox.documentation.service.*;
|
||||
import springfox.documentation.spi.DocumentationType;
|
||||
import springfox.documentation.spi.service.contexts.SecurityContext;
|
||||
import springfox.documentation.spring.web.plugins.Docket;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import springfox.documentation.builders.ApiInfoBuilder;
|
||||
import springfox.documentation.service.ApiInfo;
|
||||
import springfox.documentation.service.ApiKey;
|
||||
import springfox.documentation.service.AuthorizationScope;
|
||||
import springfox.documentation.service.Contact;
|
||||
import springfox.documentation.service.SecurityReference;
|
||||
import springfox.documentation.service.SecurityScheme;
|
||||
import springfox.documentation.spi.service.contexts.SecurityContext;
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
/**
|
||||
* Swagger2的接口配置
|
||||
@ -24,6 +24,8 @@ import java.util.List;
|
||||
* @author xinelu
|
||||
*/
|
||||
@Configuration
|
||||
@EnableKnife4j
|
||||
@EnableSwagger2
|
||||
public class SwaggerConfig {
|
||||
/**
|
||||
* 系统基础配置
|
||||
@ -46,27 +48,27 @@ public class SwaggerConfig {
|
||||
/**
|
||||
* 创建API
|
||||
*/
|
||||
@Bean
|
||||
public Docket createRestApi() {
|
||||
return new Docket(DocumentationType.OAS_30)
|
||||
// 是否启用Swagger
|
||||
.enable(enabled)
|
||||
// 用来创建该API的基本信息,展示在文档的页面中(自定义展示的信息)
|
||||
.apiInfo(apiInfo())
|
||||
// 设置哪些接口暴露给Swagger展示
|
||||
.select()
|
||||
// 扫描所有有注解的api,用这种方式更灵活
|
||||
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
|
||||
// 扫描指定包中的swagger注解
|
||||
// .apis(RequestHandlerSelectors.basePackage("com.xinelu.project.tool.swagger"))
|
||||
// 扫描所有 .apis(RequestHandlerSelectors.any())
|
||||
.paths(PathSelectors.any())
|
||||
.build()
|
||||
/* 设置安全模式,swagger可以设置访问token */
|
||||
.securitySchemes(securitySchemes())
|
||||
.securityContexts(securityContexts())
|
||||
.pathMapping(pathMapping);
|
||||
}
|
||||
//@Bean
|
||||
//public Docket createRestApi() {
|
||||
// return new Docket(DocumentationType.OAS_30)
|
||||
// // 是否启用Swagger
|
||||
// .enable(enabled)
|
||||
// // 用来创建该API的基本信息,展示在文档的页面中(自定义展示的信息)
|
||||
// .apiInfo(apiInfo())
|
||||
// // 设置哪些接口暴露给Swagger展示
|
||||
// .select()
|
||||
// // 扫描所有有注解的api,用这种方式更灵活
|
||||
// .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
|
||||
// // 扫描指定包中的swagger注解
|
||||
// // .apis(RequestHandlerSelectors.basePackage("com.xinelu.project.tool.swagger"))
|
||||
// // 扫描所有 .apis(RequestHandlerSelectors.any())
|
||||
// .paths(PathSelectors.any())
|
||||
// .build()
|
||||
// /* 设置安全模式,swagger可以设置访问token */
|
||||
// .securitySchemes(securitySchemes())
|
||||
// .securityContexts(securityContexts())
|
||||
// .pathMapping(pathMapping);
|
||||
//}
|
||||
|
||||
/**
|
||||
* 安全模式,这里指定token通过Authorization头请求头传递
|
||||
|
||||
@ -10,6 +10,8 @@ xinelu:
|
||||
demoEnabled: true
|
||||
# 文件路径 示例( Windows配置D:/postdischarge/uploadPath,Linux配置 /home/postdischarge/uploadPath)
|
||||
profile: D:/postdischarge/uploadPath
|
||||
# 签约知情书上传
|
||||
sign-informed-file-url: /signInformed
|
||||
# 获取ip地址开关
|
||||
addressEnabled: false
|
||||
# 验证码类型 math 数组计算 char 字符验证
|
||||
@ -68,7 +70,7 @@ spring:
|
||||
# 数据库索引
|
||||
database: 6
|
||||
# 密码
|
||||
password: xinelu@6990
|
||||
password:
|
||||
# 连接超时时间
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
@ -161,6 +163,9 @@ swagger:
|
||||
# 请求前缀
|
||||
pathMapping: /dev-api
|
||||
|
||||
swagger-ui:
|
||||
base-url: com.xinelu
|
||||
|
||||
# 防止XSS攻击
|
||||
xss:
|
||||
# 过滤开关
|
||||
|
||||
@ -46,6 +46,11 @@ public class SystemBusinessConfig {
|
||||
*/
|
||||
private static String captchaType;
|
||||
|
||||
/**
|
||||
* 签约知情书地址
|
||||
*/
|
||||
private String signInformedFileUrl;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@ -129,4 +134,12 @@ public class SystemBusinessConfig {
|
||||
public static String getUploadPath() {
|
||||
return getProfile() + "/upload";
|
||||
}
|
||||
|
||||
public String getSignInformedFileUrl() {
|
||||
return signInformedFileUrl;
|
||||
}
|
||||
|
||||
public void setSignInformedFileUrl(String signInformedFileUrl) {
|
||||
this.signInformedFileUrl = signInformedFileUrl;
|
||||
}
|
||||
}
|
||||
|
||||
@ -134,6 +134,16 @@ public class Constants {
|
||||
public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
|
||||
"org.springframework", "org.apache", "com.xinelu.common.utils.file"};
|
||||
|
||||
/**
|
||||
* 图片上传文件带.的
|
||||
*/
|
||||
public static final String FILE_NAME_SPOT = ".";
|
||||
|
||||
/**
|
||||
* 字符串空格标识
|
||||
*/
|
||||
public static final String EMPTY = " ";
|
||||
|
||||
/**
|
||||
* Excel文件格式后缀
|
||||
*/
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
package com.xinelu.common.constant;
|
||||
|
||||
/**
|
||||
* @description: 缴费状态
|
||||
* @author: haown
|
||||
* @create: 2024-02-29 09:59
|
||||
**/
|
||||
public class PaymentStatusConstants {
|
||||
/**
|
||||
* 已缴费
|
||||
*/
|
||||
public static final String PAID = "PAID";
|
||||
|
||||
/**
|
||||
* 未交费
|
||||
*/
|
||||
public static final String UNPAID_FEES = "UNPAID_FEES";
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.xinelu.common.constant;
|
||||
|
||||
/**
|
||||
* @description: 签约记录服务状态
|
||||
* @author: haown
|
||||
* @create: 2024-02-29 09:56
|
||||
**/
|
||||
public class SignRecordServiceStatusConstants {
|
||||
/**
|
||||
* 意向签约
|
||||
*/
|
||||
public static final String INTENTIONAL_SIGNING = "INTENTIONAL_SIGNING";
|
||||
|
||||
/**
|
||||
* 服务中
|
||||
*/
|
||||
public static final String SERVICE_CENTER = "SERVICE_CENTER";
|
||||
|
||||
/**
|
||||
* 服务结束
|
||||
*/
|
||||
public static final String SERVICE_END = "SERVICE_END";
|
||||
|
||||
/**
|
||||
* 在签
|
||||
*/
|
||||
public static final String IN_SIGN = "IN_SIGN";
|
||||
|
||||
/**
|
||||
* 忽略
|
||||
*/
|
||||
public static final String IGNORE_SIGN = "IGNORE_SIGN";
|
||||
|
||||
/**
|
||||
* 解约
|
||||
*/
|
||||
public static final String SEPARATE_SIGN = "SEPARATE_SIGN";
|
||||
|
||||
/**
|
||||
* 续约
|
||||
*/
|
||||
public static final String CONTINUOUS_SIGN = "CONTINUOUS_SIGN";
|
||||
|
||||
}
|
||||
@ -2,19 +2,20 @@ package com.xinelu.common.utils.file;
|
||||
|
||||
import com.xinelu.common.config.SystemBusinessConfig;
|
||||
import com.xinelu.common.constant.Constants;
|
||||
import com.xinelu.common.exception.ServiceException;
|
||||
import com.xinelu.common.exception.file.FileNameLengthLimitExceededException;
|
||||
import com.xinelu.common.exception.file.FileSizeLimitExceededException;
|
||||
import com.xinelu.common.exception.file.InvalidExtensionException;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.common.utils.StringUtils;
|
||||
import com.xinelu.common.utils.uuid.Seq;
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import com.xinelu.common.utils.uuid.UUID;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Objects;
|
||||
import org.apache.commons.io.FilenameUtils;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* 文件上传工具类
|
||||
@ -195,4 +196,70 @@ public class FileUploadUtils {
|
||||
}
|
||||
return extension;
|
||||
}
|
||||
|
||||
/**
|
||||
* 文件上传
|
||||
*
|
||||
* @param baseDir 相对应用的基目录
|
||||
* @param file 上传的文件
|
||||
* @param allowedExtension 上传文件类型
|
||||
* @return 返回上传成功的文件名
|
||||
* @throws FileSizeLimitExceededException 如果超出最大大小
|
||||
* @throws FileNameLengthLimitExceededException 文件名太长
|
||||
* @throws IOException 比如读写文件出错时
|
||||
* @throws InvalidExtensionException 文件校验异常
|
||||
*/
|
||||
public static String uploadSystemBusinessPath(String baseDir, MultipartFile file, String[] allowedExtension)
|
||||
throws FileSizeLimitExceededException, IOException, FileNameLengthLimitExceededException,
|
||||
InvalidExtensionException {
|
||||
int fileNameLength = Objects.requireNonNull(file.getOriginalFilename()).length();
|
||||
if (fileNameLength > FileUploadUtils.DEFAULT_FILE_NAME_LENGTH) {
|
||||
throw new FileNameLengthLimitExceededException(FileUploadUtils.DEFAULT_FILE_NAME_LENGTH);
|
||||
}
|
||||
//校验文件大小
|
||||
assertAllowed(file, allowedExtension);
|
||||
String uuid = UUID.randomUUID().toString().replaceAll("-", "");
|
||||
String substring = uuid.substring(uuid.length() - 10);
|
||||
//编码文件名
|
||||
String fileName = extractFilenames(file);
|
||||
if (StringUtils.isBlank(fileName)) {
|
||||
throw new ServiceException("文件名称不能为空!");
|
||||
}
|
||||
//获取文件路径
|
||||
String newFileName = "";
|
||||
if (fileName.contains(Constants.FILE_NAME_SPOT)) {
|
||||
String firstFileName = fileName.substring(0, fileName.indexOf(".")) + substring;
|
||||
String lastFileName = fileName.substring(fileName.indexOf("."));
|
||||
newFileName = firstFileName + lastFileName;
|
||||
}
|
||||
if (StringUtils.isBlank(newFileName)) {
|
||||
throw new ServiceException("文件名称不能为空!");
|
||||
}
|
||||
String absPath = getAbsoluteFile(baseDir, newFileName).getAbsolutePath();
|
||||
file.transferTo(Paths.get(absPath));
|
||||
return getSystemPathFileName(baseDir, newFileName);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编码文件名
|
||||
*/
|
||||
public static String extractFilenames(MultipartFile file) {
|
||||
String uuid = UUID.randomUUID().toString().replaceAll("-", "");
|
||||
String substring = uuid.substring(uuid.length() - 10);
|
||||
return StringUtils.format("{}/{}_{}.{}", DateUtils.datePath(),
|
||||
FilenameUtils.getBaseName(substring), Seq.getId(Seq.uploadSeqType), getExtension(file));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取文件名称
|
||||
*
|
||||
* @param uploadDir 上传路径
|
||||
* @param fileName 文件名称
|
||||
* @return 文件路径
|
||||
*/
|
||||
public static String getSystemPathFileName(String uploadDir, String fileName) {
|
||||
int dirLastIndex = SystemBusinessConfig.getProfile().length() + 1;
|
||||
String currentDir = StringUtils.substring(uploadDir, dirLastIndex);
|
||||
return Constants.RESOURCE_PREFIX + "/" + currentDir + "/" + fileName;
|
||||
}
|
||||
}
|
||||
|
||||
@ -58,6 +58,11 @@
|
||||
<artifactId>mybatis-plus-extension</artifactId>
|
||||
<version>${mybatis-plus.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
<version>${knife4j.version}</version>
|
||||
</dependency>
|
||||
<!-- 系统模块-->
|
||||
<dependency>
|
||||
<groupId>com.xinelu</groupId>
|
||||
|
||||
@ -0,0 +1,82 @@
|
||||
package com.xinelu.framework.config;
|
||||
|
||||
import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.Import;
|
||||
import org.springframework.core.env.Environment;
|
||||
import org.springframework.core.env.Profiles;
|
||||
import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration;
|
||||
import springfox.documentation.builders.ApiInfoBuilder;
|
||||
import springfox.documentation.builders.PathSelectors;
|
||||
import springfox.documentation.builders.RequestHandlerSelectors;
|
||||
import springfox.documentation.builders.RequestParameterBuilder;
|
||||
import springfox.documentation.service.ApiInfo;
|
||||
import springfox.documentation.service.ApiKey;
|
||||
import springfox.documentation.service.AuthorizationScope;
|
||||
import springfox.documentation.service.ParameterType;
|
||||
import springfox.documentation.service.RequestParameter;
|
||||
import springfox.documentation.service.SecurityReference;
|
||||
import springfox.documentation.spi.DocumentationType;
|
||||
import springfox.documentation.spi.service.contexts.SecurityContext;
|
||||
import springfox.documentation.spring.web.plugins.Docket;
|
||||
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
||||
|
||||
/**
|
||||
* swagger2接口文档配置
|
||||
*/
|
||||
@Configuration
|
||||
@EnableKnife4j
|
||||
@EnableSwagger2
|
||||
@Import(BeanValidatorPluginsConfiguration.class)
|
||||
public class Knife4jConfig {
|
||||
@Value("${token.header}")
|
||||
private String tokenHeader;
|
||||
@Value("${spring.profiles.active}")
|
||||
private String profile;
|
||||
@Value("${swagger-ui.base-url}")
|
||||
private String swaggerUrl;
|
||||
|
||||
@Bean
|
||||
public Docket docket(Environment environment) {
|
||||
Profiles profiles = Profiles.of(profile);
|
||||
RequestParameterBuilder tokenPar = new RequestParameterBuilder();
|
||||
List<RequestParameter> pars = new ArrayList<>();
|
||||
tokenPar.name(tokenHeader).in(ParameterType.HEADER).description("令牌").required(false).build();
|
||||
pars.add(tokenPar.build());
|
||||
return new Docket(DocumentationType.SWAGGER_2)
|
||||
.enable(environment.acceptsProfiles(profiles))
|
||||
.apiInfo(apiInfo())
|
||||
.securityContexts(Collections.singletonList(securityContext()))
|
||||
.securitySchemes(Collections.singletonList(apiKey()))
|
||||
.select()
|
||||
.paths(PathSelectors.any())
|
||||
.apis(RequestHandlerSelectors.basePackage(swaggerUrl))
|
||||
.build()
|
||||
.globalRequestParameters(pars);
|
||||
}
|
||||
|
||||
|
||||
private ApiInfo apiInfo() {
|
||||
return new ApiInfoBuilder().version("v3.0.0")
|
||||
.title("新医路平台接口文档")
|
||||
.build();
|
||||
}
|
||||
|
||||
private ApiKey apiKey() {
|
||||
return new ApiKey("token令牌", "Authorization", "header");
|
||||
}
|
||||
|
||||
private SecurityContext securityContext() {
|
||||
return SecurityContext.builder().securityReferences(securityReferences()).build();
|
||||
}
|
||||
|
||||
private List<SecurityReference> securityReferences() {
|
||||
AuthorizationScope[] scopes = {new AuthorizationScope("global", "accessEverything")};
|
||||
return Collections.singletonList(new SecurityReference("token令牌", scopes));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,99 @@
|
||||
package com.xinelu.manage.controller.materialsinfo;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.materialsinfo.MaterialsInfo;
|
||||
import com.xinelu.manage.service.materialsinfo.IMaterialsInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 素材信息Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Api(tags = "素材信息控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/materials")
|
||||
public class MaterialsInfoController extends BaseController {
|
||||
@Resource
|
||||
private IMaterialsInfoService materialsInfoService;
|
||||
|
||||
/**
|
||||
* 查询素材信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:materials:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(MaterialsInfo materialsInfo) {
|
||||
startPage();
|
||||
List<MaterialsInfo> list = materialsInfoService.selectMaterialsInfoList(materialsInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出素材信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:materials:export')")
|
||||
@Log(title = "素材信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MaterialsInfo materialsInfo) {
|
||||
List<MaterialsInfo> list = materialsInfoService.selectMaterialsInfoList(materialsInfo);
|
||||
ExcelUtil<MaterialsInfo> util = new ExcelUtil<MaterialsInfo>(MaterialsInfo. class);
|
||||
util.exportExcel(response, list, "素材信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取素材信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:materials:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(materialsInfoService.selectMaterialsInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增素材信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:materials:add')")
|
||||
@Log(title = "素材信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MaterialsInfo materialsInfo) {
|
||||
return toAjax(materialsInfoService.insertMaterialsInfo(materialsInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改素材信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:materials:edit')")
|
||||
@Log(title = "素材信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MaterialsInfo materialsInfo) {
|
||||
return toAjax(materialsInfoService.updateMaterialsInfo(materialsInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除素材信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:materials:remove')")
|
||||
@Log(title = "素材信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(materialsInfoService.deleteMaterialsInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,99 @@
|
||||
package com.xinelu.manage.controller.patientblacklist;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.patientblacklist.PatientBlacklist;
|
||||
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto;
|
||||
import com.xinelu.manage.service.patientblacklist.IPatientBlacklistService;
|
||||
import com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 患者-黑明单关系Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/manage/blacklist")
|
||||
public class PatientBlacklistController extends BaseController {
|
||||
@Resource
|
||||
private IPatientBlacklistService patientBlacklistService;
|
||||
|
||||
/**
|
||||
* 查询患者-黑明单关系列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:blacklist:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientBlacklistDto patientBlacklist) {
|
||||
startPage();
|
||||
List<PatientBlacklistVo> list = patientBlacklistService.selectPatientBlacklistList(patientBlacklist);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出患者-黑明单关系列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:blacklist:export')")
|
||||
@Log(title = "患者-黑明单关系", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PatientBlacklistDto patientBlacklist) {
|
||||
List<PatientBlacklistVo> list = patientBlacklistService.selectPatientBlacklistList(patientBlacklist);
|
||||
ExcelUtil<PatientBlacklistVo> util = new ExcelUtil<PatientBlacklistVo>(PatientBlacklistVo. class);
|
||||
util.exportExcel(response, list, "患者-黑明单关系数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者-黑明单关系详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:blacklist:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientBlacklistService.selectPatientBlacklistById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者-黑明单关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:blacklist:add')")
|
||||
@Log(title = "患者-黑明单关系", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientBlacklist patientBlacklist) {
|
||||
return toAjax(patientBlacklistService.insertPatientBlacklist(patientBlacklist));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者-黑明单关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:blacklist:edit')")
|
||||
@Log(title = "患者-黑明单关系", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PatientBlacklist patientBlacklist) {
|
||||
return toAjax(patientBlacklistService.updatePatientBlacklist(patientBlacklist));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者-黑明单关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:blacklist:remove')")
|
||||
@Log(title = "患者-黑明单关系", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientBlacklistService.deletePatientBlacklistByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package com.xinelu.manage.controller.patientinfo;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.patientinfo.PatientInfo;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import com.xinelu.manage.service.patientinfo.IPatientInfoService;
|
||||
import io.swagger.annotations.Api;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 患者信息Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/manage/patientInfo")
|
||||
@Api(tags = "患者信息控制器")
|
||||
public class PatientInfoController extends BaseController {
|
||||
@Resource
|
||||
private IPatientInfoService patientInfoService;
|
||||
|
||||
/**
|
||||
* 查询患者信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientInfoDto patientInfo) {
|
||||
startPage();
|
||||
List<PatientInfo> list = patientInfoService.selectPatientInfoList(patientInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出患者信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:export')")
|
||||
@Log(title = "患者信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PatientInfoDto patientInfo) {
|
||||
List<PatientInfo> list = patientInfoService.selectPatientInfoList(patientInfo);
|
||||
ExcelUtil<PatientInfo> util = new ExcelUtil<PatientInfo>(PatientInfo. class);
|
||||
util.exportExcel(response, list, "患者信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientInfoService.selectPatientInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:add')")
|
||||
@Log(title = "患者信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientInfo patientInfo) {
|
||||
return toAjax(patientInfoService.insertPatientInfo(patientInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:edit')")
|
||||
@Log(title = "患者信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PatientInfo patientInfo) {
|
||||
return toAjax(patientInfoService.updatePatientInfo(patientInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientInfo:remove')")
|
||||
@Log(title = "患者信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientInfoService.deletePatientInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
package com.xinelu.manage.controller.patientpropaganda;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.manage.domain.patientpropaganda.PatientPropaganda;
|
||||
import com.xinelu.manage.service.patientpropaganda.IPatientPropagandaService;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 患者宣教信息Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "患者宣教信息控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/patientPropaganda")
|
||||
public class PatientPropagandaController extends BaseController {
|
||||
@Resource
|
||||
private IPatientPropagandaService patientPropagandaService;
|
||||
|
||||
/**
|
||||
* 查询患者宣教信息列表
|
||||
*/
|
||||
@ApiOperation("分页查询患者宣教信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientPropaganda:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientPropaganda patientPropaganda) {
|
||||
startPage();
|
||||
List<PatientPropaganda> list = patientPropagandaService.selectPatientPropagandaList(patientPropaganda);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者宣教信息列表
|
||||
*/
|
||||
@ApiOperation("查询患者宣教信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientPropaganda:list')")
|
||||
@GetMapping("/getList")
|
||||
public AjaxResult getList(PatientPropaganda patientPropaganda) {
|
||||
List<PatientPropaganda> list = patientPropagandaService.selectPatientPropagandaList(patientPropaganda);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出患者宣教信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientPropaganda:export')")
|
||||
@Log(title = "患者宣教信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PatientPropaganda patientPropaganda) {
|
||||
List<PatientPropaganda> list = patientPropagandaService.selectPatientPropagandaList(patientPropaganda);
|
||||
ExcelUtil<PatientPropaganda> util = new ExcelUtil<PatientPropaganda>(PatientPropaganda. class);
|
||||
util.exportExcel(response, list, "患者宣教信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者宣教信息详细信息
|
||||
*/
|
||||
@ApiOperation("根据主键获取患者宣教信息详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientPropaganda:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientPropagandaService.selectPatientPropagandaById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者宣教信息
|
||||
*/
|
||||
@ApiOperation("新增患者宣教信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientPropaganda:add')")
|
||||
@Log(title = "患者宣教信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientPropaganda patientPropaganda) {
|
||||
return toAjax(patientPropagandaService.insertPatientPropaganda(patientPropaganda));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者宣教信息
|
||||
*/
|
||||
@ApiOperation("修改患者宣教信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientPropaganda:edit')")
|
||||
@Log(title = "患者宣教信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PatientPropaganda patientPropaganda) {
|
||||
return toAjax(patientPropagandaService.updatePatientPropaganda(patientPropaganda));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者宣教信息
|
||||
*/
|
||||
@ApiOperation("批量删除患者宣教信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:patientPropaganda:remove')")
|
||||
@Log(title = "患者宣教信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientPropagandaService.deletePatientPropagandaByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,110 @@
|
||||
package com.xinelu.manage.controller.patientvisitinhospital;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.manage.domain.patientvisitinhospital.PatientVisitInHospital;
|
||||
import com.xinelu.manage.service.patientvisitinhospital.IPatientVisitInHospitalService;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 患者就诊入院记录信息Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Api(tags = "患者就诊入院记录信息控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/visitIn")
|
||||
public class PatientVisitInHospitalController extends BaseController {
|
||||
@Resource
|
||||
private IPatientVisitInHospitalService patientVisitInHospitalService;
|
||||
|
||||
/**
|
||||
* 查询患者就诊入院记录信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientVisitInHospital patientVisitInHospital) {
|
||||
startPage();
|
||||
List<PatientVisitInHospital> list = patientVisitInHospitalService.selectPatientVisitInHospitalList(patientVisitInHospital);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据患者就诊记录查询患者入院记录信息
|
||||
*/
|
||||
@ApiOperation("根据患者就诊记录查询患者入院记录信息")
|
||||
@GetMapping("/getByVisitRecord/{patientVisitRecordId}")
|
||||
public AjaxResult getByVisitRecord(@PathVariable("patientVisitRecordId") Long patientVisitRecordId) {
|
||||
return AjaxResult.success(patientVisitInHospitalService.getByVisitRecord(patientVisitRecordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出患者就诊入院记录信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:export')")
|
||||
@Log(title = "患者就诊入院记录信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PatientVisitInHospital patientVisitInHospital) {
|
||||
List<PatientVisitInHospital> list = patientVisitInHospitalService.selectPatientVisitInHospitalList(patientVisitInHospital);
|
||||
ExcelUtil<PatientVisitInHospital> util = new ExcelUtil<PatientVisitInHospital>(PatientVisitInHospital. class);
|
||||
util.exportExcel(response, list, "患者就诊入院记录信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者就诊入院记录信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientVisitInHospitalService.selectPatientVisitInHospitalById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者就诊入院记录信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:add')")
|
||||
@Log(title = "患者就诊入院记录信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientVisitInHospital patientVisitInHospital) {
|
||||
return toAjax(patientVisitInHospitalService.insertPatientVisitInHospital(patientVisitInHospital));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者就诊入院记录信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:edit')")
|
||||
@Log(title = "患者就诊入院记录信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PatientVisitInHospital patientVisitInHospital) {
|
||||
return toAjax(patientVisitInHospitalService.updatePatientVisitInHospital(patientVisitInHospital));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者就诊入院记录信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:remove')")
|
||||
@Log(title = "患者就诊入院记录信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientVisitInHospitalService.deletePatientVisitInHospitalByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,115 @@
|
||||
package com.xinelu.manage.controller.patientvisitoperation;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.manage.domain.patientvisitoperation.PatientVisitOperation;
|
||||
import com.xinelu.manage.service.patientvisitoperation.IPatientVisitOperationService;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 患者就诊手术记录信息Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Api(tags = "患者就诊手术记录控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/visitOperation")
|
||||
public class PatientVisitOperationController extends BaseController {
|
||||
@Resource
|
||||
private IPatientVisitOperationService patientVisitOperationService;
|
||||
|
||||
/**
|
||||
* 查询患者就诊手术记录信息列表
|
||||
*/
|
||||
@ApiOperation("分页查询患者就诊手术记录信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientVisitOperation patientVisitOperation) {
|
||||
startPage();
|
||||
List<PatientVisitOperation> list = patientVisitOperationService.selectPatientVisitOperationList(patientVisitOperation);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据患者就诊记录查询患者入院记录信息
|
||||
*/
|
||||
@ApiOperation("根据患者就诊记录查询患者入院记录信息")
|
||||
@GetMapping("/getByVisitRecord/{patientVisitRecordId}")
|
||||
public AjaxResult getByVisitRecord(@PathVariable("patientVisitRecordId") Long patientVisitRecordId) {
|
||||
return AjaxResult.success(patientVisitOperationService.getByVisitRecord(patientVisitRecordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出患者就诊手术记录信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:export')")
|
||||
@Log(title = "患者就诊手术记录信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PatientVisitOperation patientVisitOperation) {
|
||||
List<PatientVisitOperation> list = patientVisitOperationService.selectPatientVisitOperationList(patientVisitOperation);
|
||||
ExcelUtil<PatientVisitOperation> util = new ExcelUtil<PatientVisitOperation>(PatientVisitOperation. class);
|
||||
util.exportExcel(response, list, "患者就诊手术记录信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者就诊手术记录信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取患者就诊手术记录信息详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientVisitOperationService.selectPatientVisitOperationById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者就诊手术记录信息
|
||||
*/
|
||||
@ApiOperation("新增患者就诊手术记录信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:add')")
|
||||
@Log(title = "患者就诊手术记录信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientVisitOperation patientVisitOperation) {
|
||||
return toAjax(patientVisitOperationService.insertPatientVisitOperation(patientVisitOperation));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者就诊手术记录信息
|
||||
*/
|
||||
@ApiOperation("修改患者就诊手术记录信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:edit')")
|
||||
@Log(title = "患者就诊手术记录信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PatientVisitOperation patientVisitOperation) {
|
||||
return toAjax(patientVisitOperationService.updatePatientVisitOperation(patientVisitOperation));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者就诊手术记录信息
|
||||
*/
|
||||
@ApiOperation("删除患者就诊手术记录信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:remove')")
|
||||
@Log(title = "患者就诊手术记录信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientVisitOperationService.deletePatientVisitOperationByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,108 @@
|
||||
package com.xinelu.manage.controller.patientvisitouthospital;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.manage.domain.patientvisitouthospital.PatientVisitOutHospital;
|
||||
import com.xinelu.manage.service.patientvisitouthospital.IPatientVisitOutHospitalService;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 患者就诊出院记录信息Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Api(tags = "患者就诊出院记录信息控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/visitOut")
|
||||
public class PatientVisitOutHospitalController extends BaseController {
|
||||
@Resource
|
||||
private IPatientVisitOutHospitalService patientVisitOutHospitalService;
|
||||
|
||||
/**
|
||||
* 查询患者就诊出院记录信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientVisitOutHospital patientVisitOutHospital) {
|
||||
startPage();
|
||||
List<PatientVisitOutHospital> list = patientVisitOutHospitalService.selectPatientVisitOutHospitalList(patientVisitOutHospital);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据患者就诊记录查询患者入院记录信息
|
||||
*/
|
||||
@GetMapping("/getByVisitRecord/{patientVisitRecordId}")
|
||||
public AjaxResult getByVisitRecord(@PathVariable("patientVisitRecordId") Long patientVisitRecordId) {
|
||||
return AjaxResult.success(patientVisitOutHospitalService.getByVisitRecord(patientVisitRecordId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出患者就诊出院记录信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:export')")
|
||||
@Log(title = "患者就诊出院记录信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PatientVisitOutHospital patientVisitOutHospital) {
|
||||
List<PatientVisitOutHospital> list = patientVisitOutHospitalService.selectPatientVisitOutHospitalList(patientVisitOutHospital);
|
||||
ExcelUtil<PatientVisitOutHospital> util = new ExcelUtil<PatientVisitOutHospital>(PatientVisitOutHospital. class);
|
||||
util.exportExcel(response, list, "患者就诊出院记录信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者就诊出院记录信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientVisitOutHospitalService.selectPatientVisitOutHospitalById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者就诊出院记录信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:add')")
|
||||
@Log(title = "患者就诊出院记录信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientVisitOutHospital patientVisitOutHospital) {
|
||||
return toAjax(patientVisitOutHospitalService.insertPatientVisitOutHospital(patientVisitOutHospital));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者就诊出院记录信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:edit')")
|
||||
@Log(title = "患者就诊出院记录信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PatientVisitOutHospital patientVisitOutHospital) {
|
||||
return toAjax(patientVisitOutHospitalService.updatePatientVisitOutHospital(patientVisitOutHospital));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者就诊出院记录信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:remove')")
|
||||
@Log(title = "患者就诊出院记录信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientVisitOutHospitalService.deletePatientVisitOutHospitalByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,113 @@
|
||||
package com.xinelu.manage.controller.patientvisitrecord;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.patientvisitrecord.PatientVisitRecord;
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import com.xinelu.manage.service.patientvisitrecord.IPatientVisitRecordService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Api(tags = "患者就诊记录控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/visitRecord")
|
||||
public class PatientVisitRecordController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private IPatientVisitRecordService patientVisitRecordService;
|
||||
|
||||
/**
|
||||
* 查询患者就诊记录基本信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PatientVisitRecordDto patientVisitRecord) {
|
||||
startPage();
|
||||
List<PatientVisitRecord> list = patientVisitRecordService.selectPatientVisitRecordList(patientVisitRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者就诊记录基本信息列表
|
||||
*/
|
||||
@ApiOperation("查询患者就诊记录基本信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:list')")
|
||||
@GetMapping("/getList")
|
||||
public AjaxResult getList(PatientVisitRecordDto patientVisitRecord) {
|
||||
List<PatientVisitRecord> list = patientVisitRecordService.selectPatientVisitRecordList(patientVisitRecord);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出患者就诊记录基本信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:export')")
|
||||
@Log(title = "患者就诊记录基本信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PatientVisitRecordDto patientVisitRecord) {
|
||||
List<PatientVisitRecord> list = patientVisitRecordService.selectPatientVisitRecordList(patientVisitRecord);
|
||||
ExcelUtil<PatientVisitRecord> util = new ExcelUtil<PatientVisitRecord>(PatientVisitRecord. class);
|
||||
util.exportExcel(response, list, "患者就诊记录基本信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取患者就诊记录基本信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(patientVisitRecordService.selectPatientVisitRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者就诊记录基本信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:add')")
|
||||
@Log(title = "患者就诊记录基本信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PatientVisitRecord patientVisitRecord) {
|
||||
return toAjax(patientVisitRecordService.insertPatientVisitRecord(patientVisitRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者就诊记录基本信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:edit')")
|
||||
@Log(title = "患者就诊记录基本信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PatientVisitRecord patientVisitRecord) {
|
||||
return toAjax(patientVisitRecordService.updatePatientVisitRecord(patientVisitRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者就诊记录基本信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:visit:remove')")
|
||||
@Log(title = "患者就诊记录基本信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(patientVisitRecordService.deletePatientVisitRecordByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
package com.xinelu.manage.controller.propagandainfo;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
|
||||
import com.xinelu.manage.service.propagandainfo.IPropagandaInfoService;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 宣教库管理Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "宣教库管理控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/propaganda")
|
||||
public class PropagandaInfoController extends BaseController {
|
||||
@Resource
|
||||
private IPropagandaInfoService propagandaInfoService;
|
||||
|
||||
/**
|
||||
* 查询宣教库管理列表
|
||||
*/
|
||||
@ApiOperation("分页查询宣教库管理列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:propaganda:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PropagandaInfo propagandaInfo) {
|
||||
startPage();
|
||||
List<PropagandaInfo> list = propagandaInfoService.selectPropagandaInfoList(propagandaInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出宣教库管理列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:propaganda:export')")
|
||||
@Log(title = "宣教库管理", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PropagandaInfo propagandaInfo) {
|
||||
List<PropagandaInfo> list = propagandaInfoService.selectPropagandaInfoList(propagandaInfo);
|
||||
ExcelUtil<PropagandaInfo> util = new ExcelUtil<PropagandaInfo>(PropagandaInfo. class);
|
||||
util.exportExcel(response, list, "宣教库管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取宣教库管理详细信息
|
||||
*/
|
||||
@ApiOperation("根据id获取宣教库管理详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:propaganda:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(propagandaInfoService.selectPropagandaInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增宣教库管理
|
||||
*/
|
||||
@ApiOperation("新增宣教库信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:propaganda:add')")
|
||||
@Log(title = "宣教库管理", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PropagandaInfo propagandaInfo) {
|
||||
return toAjax(propagandaInfoService.insertPropagandaInfo(propagandaInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改宣教库管理
|
||||
*/
|
||||
@ApiOperation("修改宣教库信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:propaganda:edit')")
|
||||
@Log(title = "宣教库管理", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PropagandaInfo propagandaInfo) {
|
||||
return toAjax(propagandaInfoService.updatePropagandaInfo(propagandaInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除宣教库管理
|
||||
*/
|
||||
@ApiOperation("批量删除宣教库信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:propaganda:remove')")
|
||||
@Log(title = "宣教库管理", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(propagandaInfoService.deletePropagandaInfoByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
package com.xinelu.manage.controller.propagandamaterials;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.manage.domain.propagandamaterials.PropagandaMaterials;
|
||||
import com.xinelu.manage.service.propagandamaterials.IPropagandaMaterialsService;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 宣教素材关系Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/manage/propagandaMaterials")
|
||||
public class PropagandaMaterialsController extends BaseController {
|
||||
@Resource
|
||||
private IPropagandaMaterialsService propagandaMaterialsService;
|
||||
|
||||
/**
|
||||
* 查询宣教素材关系列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:propagandaMaterials:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PropagandaMaterials propagandaMaterials) {
|
||||
startPage();
|
||||
List<PropagandaMaterials> list = propagandaMaterialsService.selectPropagandaMaterialsList(propagandaMaterials);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出宣教素材关系列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:propagandaMaterials:export')")
|
||||
@Log(title = "宣教素材关系", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PropagandaMaterials propagandaMaterials) {
|
||||
List<PropagandaMaterials> list = propagandaMaterialsService.selectPropagandaMaterialsList(propagandaMaterials);
|
||||
ExcelUtil<PropagandaMaterials> util = new ExcelUtil<PropagandaMaterials>(PropagandaMaterials. class);
|
||||
util.exportExcel(response, list, "宣教素材关系数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取宣教素材关系详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:propagandaMaterials:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(propagandaMaterialsService.selectPropagandaMaterialsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增宣教素材关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:propagandaMaterials:add')")
|
||||
@Log(title = "宣教素材关系", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PropagandaMaterials propagandaMaterials) {
|
||||
return toAjax(propagandaMaterialsService.insertPropagandaMaterials(propagandaMaterials));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改宣教素材关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:propagandaMaterials:edit')")
|
||||
@Log(title = "宣教素材关系", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PropagandaMaterials propagandaMaterials) {
|
||||
return toAjax(propagandaMaterialsService.updatePropagandaMaterials(propagandaMaterials));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除宣教素材关系
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:propagandaMaterials:remove')")
|
||||
@Log(title = "宣教素材关系", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(propagandaMaterialsService.deletePropagandaMaterialsByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.xinelu.manage.controller.signpatientinformed;
|
||||
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.constant.Constants;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
|
||||
import com.xinelu.manage.service.signpatientinformed.ISignPatientInformedService;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* 签约知情同意书信息Controller
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/manage/signInformed")
|
||||
public class SignPatientInformedController extends BaseController {
|
||||
@Resource
|
||||
private ISignPatientInformedService signPatientInformedService;
|
||||
|
||||
/**
|
||||
* 查询签约知情同意书信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signInformed:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SignPatientInformed signPatientInformed) {
|
||||
startPage();
|
||||
List<SignPatientInformed> list = signPatientInformedService.selectSignPatientInformedList(signPatientInformed);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出签约知情同意书信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signInformed:export')")
|
||||
@Log(title = "签约知情同意书信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SignPatientInformed signPatientInformed) {
|
||||
List<SignPatientInformed> list = signPatientInformedService.selectSignPatientInformedList(signPatientInformed);
|
||||
ExcelUtil<SignPatientInformed> util = new ExcelUtil<SignPatientInformed>(SignPatientInformed. class);
|
||||
util.exportExcel(response, list, "签约知情同意书信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取签约知情同意书信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signInformed:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(signPatientInformedService.selectSignPatientInformedById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增签约知情同意书信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signInformed:add')")
|
||||
@Log(title = "签约知情同意书信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SignPatientInformed signPatientInformed) {
|
||||
return toAjax(signPatientInformedService.insertSignPatientInformed(signPatientInformed));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改签约知情同意书信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signInformed:edit')")
|
||||
@Log(title = "签约知情同意书信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SignPatientInformed signPatientInformed) {
|
||||
return toAjax(signPatientInformedService.updateSignPatientInformed(signPatientInformed));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除签约知情同意书信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signInformed:remove')")
|
||||
@Log(title = "签约知情同意书信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(signPatientInformedService.deleteSignPatientInformedByIds(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 问诊聊天上传文件接口
|
||||
*/
|
||||
@PostMapping("/uploadFile")
|
||||
public AjaxResult uploadFile(@RequestParam("file") MultipartFile multipartFile) throws Exception {
|
||||
if (Objects.isNull(multipartFile) || StringUtils.isBlank(multipartFile.getOriginalFilename())) {
|
||||
return AjaxResult.error("当前文件不存在,无法上传!");
|
||||
}
|
||||
if (multipartFile.getOriginalFilename().contains(Constants.EMPTY)) {
|
||||
return AjaxResult.error("当前文件名含有空格,请先去除空格在上传!");
|
||||
}
|
||||
return signPatientInformedService.uploadFile(multipartFile);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
package com.xinelu.manage.controller.signpatientpackage;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.manage.domain.signpatientpackage.SignPatientPackage;
|
||||
import com.xinelu.manage.service.signpatientpackage.ISignPatientPackageService;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 签约患者服务包信息Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Api(tags = "签约患者服务包控制器")
|
||||
@RestController
|
||||
@RequestMapping("/manage/signPackage")
|
||||
public class SignPatientPackageController extends BaseController {
|
||||
@Resource
|
||||
private ISignPatientPackageService signPatientPackageService;
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包信息列表
|
||||
*/
|
||||
@ApiOperation("分页查询签约患者服务包信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signPackage:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SignPatientPackage signPatientPackage) {
|
||||
startPage();
|
||||
List<SignPatientPackage> list = signPatientPackageService.selectSignPatientPackageList(signPatientPackage);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出签约患者服务包信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signPackage:export')")
|
||||
@Log(title = "签约患者服务包信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SignPatientPackage signPatientPackage) {
|
||||
List<SignPatientPackage> list = signPatientPackageService.selectSignPatientPackageList(signPatientPackage);
|
||||
ExcelUtil<SignPatientPackage> util = new ExcelUtil<SignPatientPackage>(SignPatientPackage. class);
|
||||
util.exportExcel(response, list, "签约患者服务包信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取签约患者服务包信息详细信息
|
||||
*/
|
||||
@ApiOperation("获取患者签约服务包信息详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signPackage:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(signPatientPackageService.selectSignPatientPackageById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增签约患者服务包信息
|
||||
*/
|
||||
@ApiOperation("新增签约患者服务包信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signPackage:add')")
|
||||
@Log(title = "签约患者服务包信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SignPatientPackage signPatientPackage) {
|
||||
return toAjax(signPatientPackageService.insertSignPatientPackage(signPatientPackage));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改签约患者服务包信息
|
||||
*/
|
||||
@ApiOperation("修改签约患者服务包信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signPackage:edit')")
|
||||
@Log(title = "签约患者服务包信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SignPatientPackage signPatientPackage) {
|
||||
return toAjax(signPatientPackageService.updateSignPatientPackage(signPatientPackage));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除签约患者服务包信息
|
||||
*/
|
||||
@ApiOperation("删除签约患者服务包信息")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signPackage:remove')")
|
||||
@Log(title = "签约患者服务包信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(signPatientPackageService.deleteSignPatientPackageByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,98 @@
|
||||
package com.xinelu.manage.controller.signpatientpackagehardware;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.xinelu.common.annotation.Log;
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.enums.BusinessType;
|
||||
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
|
||||
import com.xinelu.manage.service.signpatientpackagehardware.ISignPatientPackageHardwareService;
|
||||
import com.xinelu.common.utils.poi.ExcelUtil;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 签约患者服务包硬件信息Controller
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/manage/signHardware")
|
||||
public class SignPatientPackageHardwareController extends BaseController {
|
||||
@Resource
|
||||
private ISignPatientPackageHardwareService signPatientPackageHardwareService;
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包硬件信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signHardware:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SignPatientPackageHardware signPatientPackageHardware) {
|
||||
startPage();
|
||||
List<SignPatientPackageHardware> list = signPatientPackageHardwareService.selectSignPatientPackageHardwareList(signPatientPackageHardware);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出签约患者服务包硬件信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signHardware:export')")
|
||||
@Log(title = "签约患者服务包硬件信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SignPatientPackageHardware signPatientPackageHardware) {
|
||||
List<SignPatientPackageHardware> list = signPatientPackageHardwareService.selectSignPatientPackageHardwareList(signPatientPackageHardware);
|
||||
ExcelUtil<SignPatientPackageHardware> util = new ExcelUtil<SignPatientPackageHardware>(SignPatientPackageHardware. class);
|
||||
util.exportExcel(response, list, "签约患者服务包硬件信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取签约患者服务包硬件信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signHardware:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(signPatientPackageHardwareService.selectSignPatientPackageHardwareById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增签约患者服务包硬件信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signHardware:add')")
|
||||
@Log(title = "签约患者服务包硬件信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SignPatientPackageHardware signPatientPackageHardware) {
|
||||
return toAjax(signPatientPackageHardwareService.insertSignPatientPackageHardware(signPatientPackageHardware));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改签约患者服务包硬件信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signHardware:edit')")
|
||||
@Log(title = "签约患者服务包硬件信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SignPatientPackageHardware signPatientPackageHardware) {
|
||||
return toAjax(signPatientPackageHardwareService.updateSignPatientPackageHardware(signPatientPackageHardware));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除签约患者服务包硬件信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('manage:signHardware:remove')")
|
||||
@Log(title = "签约患者服务包硬件信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(signPatientPackageHardwareService.deleteSignPatientPackageHardwareByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.xinelu.manage.controller.signpatientrecord;
|
||||
|
||||
import com.xinelu.common.core.controller.BaseController;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.core.page.TableDataInfo;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientStatusDto;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientAddDto;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto;
|
||||
import com.xinelu.manage.service.signpatientrecord.ISignPatientRecordService;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientListVo;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @description: 患者签约记录Controller
|
||||
* @author: haown
|
||||
* @create: 2024-02-28 16:03
|
||||
**/
|
||||
@RestController
|
||||
@RequestMapping("/manage/signRecord")
|
||||
public class SignPatientRecordController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private ISignPatientRecordService signPatientRecordService;
|
||||
|
||||
/**
|
||||
* 查询签约患者列表
|
||||
*/
|
||||
@ApiOperation("查询签约患者列表")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signRecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SignPatientListDto signPatientRecord) {
|
||||
startPage();
|
||||
List<SignPatientListVo> list = signPatientRecordService.selectList(signPatientRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 签约
|
||||
*/
|
||||
@ApiOperation("签约")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signRecord:add')")
|
||||
@PostMapping("/sign")
|
||||
public AjaxResult sign(@RequestBody SignPatientAddDto body) {
|
||||
return toAjax(signPatientRecordService.add(body));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据患者主键查询签约记录
|
||||
*/
|
||||
@ApiOperation("根据患者主键查询签约记录")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signRecord:list')")
|
||||
@GetMapping("/getByPatient/{patientId}")
|
||||
public AjaxResult getByPatient(@PathVariable("patientId") Long patientId) {
|
||||
List<SignPatientRecordVo> list = signPatientRecordService.getByPatient(patientId);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据签约记录表主键查询签约详情
|
||||
*/
|
||||
@ApiOperation("根据签约记录表主键查询签约详情")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signRecord:list')")
|
||||
@GetMapping("/getByRecordId/{patientSignRecordId}")
|
||||
public AjaxResult getByRecordId(@PathVariable("patientSignRecordId") Long patientSignRecordId) {
|
||||
SignPatientInfoVo signInfo = signPatientRecordService.getByRecordId(patientSignRecordId);
|
||||
return AjaxResult.success(signInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 解约
|
||||
*/
|
||||
@ApiOperation("解约")
|
||||
@PreAuthorize("@ss.hasPermi('manage:signRecord:edit')")
|
||||
@PostMapping("/updateSignStatus")
|
||||
public AjaxResult updateSignStatus(@RequestBody SignPatientStatusDto updateSignStatus) {
|
||||
int flag = signPatientRecordService.updateSignStatus(updateSignStatus);
|
||||
return flag < 0 ? AjaxResult.error() : AjaxResult.success();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,120 @@
|
||||
package com.xinelu.manage.domain.materialsinfo;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 素材信息对象 materials_info
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "素材信息对象", description = "materials_info")
|
||||
public class MaterialsInfo extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 素材名称 */
|
||||
@ApiModelProperty(value = "素材名称")
|
||||
@Excel(name = "素材名称")
|
||||
private String materialsName;
|
||||
|
||||
/** 素材类型,图文:IMAGE_TEXT,视频:VIDEO */
|
||||
@ApiModelProperty(value = "素材类型,图文:IMAGE_TEXT,视频:VIDEO")
|
||||
@Excel(name = "素材类型,图文:IMAGE_TEXT,视频:VIDEO")
|
||||
private String materialsType;
|
||||
|
||||
/** 素材选择,AI生成:AI_GENERATION,手动上传:MANUAL_UPLOAD */
|
||||
@ApiModelProperty(value = "素材选择,AI生成:AI_GENERATION,手动上传:MANUAL_UPLOAD")
|
||||
@Excel(name = "素材选择,AI生成:AI_GENERATION,手动上传:MANUAL_UPLOAD")
|
||||
private String materialsOption;
|
||||
|
||||
/** 素材图片/者视频文件存放路径 */
|
||||
@ApiModelProperty(value = "素材图片/者视频文件存放路径")
|
||||
@Excel(name = "素材图片/者视频文件存放路径")
|
||||
private String materialsFilePath;
|
||||
|
||||
/** 视频封面类型,视频首帧:VIDEO_FIRST_FRAME,手动上传:MANUAL_UPLOAD */
|
||||
@ApiModelProperty(value = "视频封面类型,视频首帧:VIDEO_FIRST_FRAME,手动上传:MANUAL_UPLOAD")
|
||||
@Excel(name = "视频封面类型,视频首帧:VIDEO_FIRST_FRAME,手动上传:MANUAL_UPLOAD")
|
||||
private String videoCoverType;
|
||||
|
||||
/** 视频封面存放路径 */
|
||||
@ApiModelProperty(value = "视频封面存放路径")
|
||||
@Excel(name = "视频封面存放路径")
|
||||
private String videoCoverFilePath;
|
||||
|
||||
/** 素材摘要 */
|
||||
@ApiModelProperty(value = "素材摘要")
|
||||
@Excel(name = "素材摘要")
|
||||
private String materialsAbstract;
|
||||
|
||||
/** 适用症状 */
|
||||
@ApiModelProperty(value = "适用症状")
|
||||
@Excel(name = "适用症状")
|
||||
private String indications;
|
||||
|
||||
/** 适用疾病 */
|
||||
@ApiModelProperty(value = "适用疾病")
|
||||
@Excel(name = "适用疾病")
|
||||
private String applicableDiseases;
|
||||
|
||||
/** 药物名称 */
|
||||
@ApiModelProperty(value = "药物名称")
|
||||
@Excel(name = "药物名称")
|
||||
private String drugName;
|
||||
|
||||
/** 手术名称 */
|
||||
@ApiModelProperty(value = "手术名称")
|
||||
@Excel(name = "手术名称")
|
||||
private String surgicalName;
|
||||
|
||||
/** 检查项目 */
|
||||
@ApiModelProperty(value = "检查项目")
|
||||
@Excel(name = "检查项目")
|
||||
private String checkItems;
|
||||
|
||||
/** 检验项目 */
|
||||
@ApiModelProperty(value = "检验项目")
|
||||
@Excel(name = "检验项目")
|
||||
private String inspectionItems;
|
||||
|
||||
/** 所属人群表id(如果使用人群为多个,需要扩展表) */
|
||||
@ApiModelProperty(value = "所属人群表id")
|
||||
@Excel(name = "所属人群表id", readConverterExp = "如=果使用人群为多个,需要扩展表")
|
||||
private Long crowdId;
|
||||
|
||||
/** 人群名称 */
|
||||
@ApiModelProperty(value = "人群名称")
|
||||
@Excel(name = "人群名称")
|
||||
private String crowName;
|
||||
|
||||
/** 素材状态,全部:ALL,已上架:LISTED,未上架:NOT_LISTED */
|
||||
@ApiModelProperty(value = "素材状态,全部:ALL,已上架:LISTED,未上架:NOT_LISTED")
|
||||
@Excel(name = "素材状态,全部:ALL,已上架:LISTED,未上架:NOT_LISTED")
|
||||
private String materialsStatus;
|
||||
|
||||
/** 素材备注 */
|
||||
@ApiModelProperty(value = "素材备注")
|
||||
@Excel(name = "素材备注")
|
||||
private String materialsRemark;
|
||||
|
||||
/** 素材排序,值越小排序越靠前 */
|
||||
@ApiModelProperty(value = "素材排序,值越小排序越靠前")
|
||||
@Excel(name = "素材排序,值越小排序越靠前")
|
||||
private Integer materialsSort;
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.domain.patientblacklist;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 患者-黑明单关系对象 patient_blacklist
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者-黑明单关系对象", description = "patient_blacklist")
|
||||
public class PatientBlacklist extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者id */
|
||||
private Long patientId;
|
||||
|
||||
/** 异常原因字典表id */
|
||||
@ApiModelProperty(value = "异常原因字典表id")
|
||||
@Excel(name = "异常原因字典表id")
|
||||
private Long abnormalCauseId;
|
||||
|
||||
/** 异常原因字典表值 */
|
||||
@ApiModelProperty(value = "异常原因字典表值")
|
||||
@Excel(name = "异常原因字典表值")
|
||||
private String abnormalCauseValue;
|
||||
|
||||
/** 补充说明字典表id */
|
||||
private Long supplementIllustrateId;
|
||||
|
||||
/** 补充说明字典表值 */
|
||||
private String supplementIllustrateValue;
|
||||
|
||||
/** 功能限制(具体来源未知?) */
|
||||
private String functionLimitation;
|
||||
|
||||
/**
|
||||
* 来源(CALL_DETECTION:通话检测,MANUAL_BLACKOUT:手动拉黑, MANUAL_ADDITION:手动添加,HIS_CONNECT:HIS对接)
|
||||
*/
|
||||
@ApiModelProperty(value = "来源(CALL_DETECTION:通话检测,MANUAL_BLACKOUT:手动拉黑,MANUAL_ADDITION:手动添加,HIS_CONNECT:HIS对接)")
|
||||
@Excel(name = "来源(CALL_DETECTION:通话检测,MANUAL_BLACKOUT:手动拉黑,MANUAL_ADDITION:手动添加,HIS_CONNECT:HIS对接)")
|
||||
private String blacklistSource;
|
||||
|
||||
/** 删除标识,0:未删除,1:已删除 */
|
||||
@ApiModelProperty(value = "删除标识,0:未删除,1:已删除")
|
||||
private Integer delFlag;
|
||||
}
|
||||
@ -0,0 +1,212 @@
|
||||
package com.xinelu.manage.domain.patientinfo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 患者信息对象 patient_info
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者信息对象", description = "patient_info")
|
||||
public class PatientInfo extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者姓名 */
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
@Excel(name = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 患者电话 */
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
@Excel(name = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 家属电话 */
|
||||
@ApiModelProperty(value = "家属电话")
|
||||
private String familyMemberPhone;
|
||||
|
||||
/** 出生日期,格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "出生日期,格式:yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date birthDate;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/** 性别,男:MALE,女:FEMALE */
|
||||
@ApiModelProperty(value = "性别,男:MALE,女:FEMALE")
|
||||
@Excel(name = "性别,男:MALE,女:FEMALE")
|
||||
private String sex;
|
||||
|
||||
/** 住址 */
|
||||
@ApiModelProperty(value = "住址")
|
||||
@Excel(name = "住址")
|
||||
private String address;
|
||||
|
||||
/** 患者类型,预住院患者:PRE_HOSPITALIZED_PATIENT,在院患者:IN_HOSPITAL_PATIENT,门诊患者:OUTPATIENT,出院患者:DISCHARGED_PATIENT,
|
||||
签约患者:CONTRACTED_PATIENT */
|
||||
@ApiModelProperty(value = "患者类型,预住院患者:PRE_HOSPITALIZED_PATIENT,在院患者:IN_HOSPITAL_PATIENT,门诊患者:OUTPATIENT,出院患者:DISCHARGED_PATIENT,签约患者:CONTRACTED_PATIENT")
|
||||
private String patientType;
|
||||
|
||||
/** 签约状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN */
|
||||
@ApiModelProperty(value = "签约状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN")
|
||||
@Excel(name = "签约状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN")
|
||||
private String signStatus;
|
||||
|
||||
/** 签约时间,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "签约时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "签约时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date signTime;
|
||||
|
||||
/** 开证医生(预住院患者) */
|
||||
@ApiModelProperty(value = "开证医生")
|
||||
@Excel(name = "开证医生", readConverterExp = "预住院患者")
|
||||
private String certificateIssuingDoctor;
|
||||
|
||||
/** 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL */
|
||||
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||
@Excel(name = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||
private String visitMethod;
|
||||
|
||||
/** 主要诊断 */
|
||||
@ApiModelProperty(value = "主要诊断")
|
||||
private String mainDiagnosis;
|
||||
|
||||
/** 主治医生 */
|
||||
@ApiModelProperty(value = "主治医生")
|
||||
@Excel(name = "主治医生")
|
||||
private String attendingPhysician;
|
||||
|
||||
/** 所属医院id */
|
||||
@ApiModelProperty(value = "所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/** 所属医院名称 */
|
||||
@ApiModelProperty(value = "所属医院名称")
|
||||
@Excel(name = "所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/** 所属院区id */
|
||||
@ApiModelProperty(value = "所属院区id")
|
||||
private Long campusAgencyId;
|
||||
|
||||
/** 所属院区名称 */
|
||||
@ApiModelProperty(value = "所属院区名称")
|
||||
@Excel(name = "所属院区名称")
|
||||
private String campusAgencyName;
|
||||
|
||||
/** 所属科室id */
|
||||
@ApiModelProperty(value = "所属科室id")
|
||||
private Long departmentId;
|
||||
|
||||
/** 所属科室名称 */
|
||||
@ApiModelProperty(value = "所属科室名称")
|
||||
@Excel(name = "所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/** 所属病区id */
|
||||
@ApiModelProperty(value = "所属病区id")
|
||||
private Long wardId;
|
||||
|
||||
/** 所属病区名称 */
|
||||
@ApiModelProperty(value = "所属病区名称")
|
||||
@Excel(name = "所属病区名称")
|
||||
private String wardName;
|
||||
|
||||
/** 住院号 */
|
||||
@ApiModelProperty(value = "住院号")
|
||||
@Excel(name = "住院号")
|
||||
private String admissionNumber;
|
||||
|
||||
/** 责任护士 */
|
||||
@ApiModelProperty(value = "责任护士")
|
||||
private String responsibleNurse;
|
||||
|
||||
/** 就诊流水号 */
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/** 手术名称 */
|
||||
@ApiModelProperty(value = "手术名称")
|
||||
private String surgicalName;
|
||||
|
||||
/** 入院时间,时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "入院时间")
|
||||
private Date admissionDate;
|
||||
|
||||
/** 出院时间(出院患者),时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "出院时间(出院患者)")
|
||||
private Date dischargeDate;
|
||||
|
||||
/** 病历内容 */
|
||||
@ApiModelProperty(value = "病历内容")
|
||||
private String medicalRecordContent;
|
||||
|
||||
/** 预约治疗组(取值以及枚举未知?) */
|
||||
@ApiModelProperty(value = "预约治疗组(取值以及枚举未知?)")
|
||||
private String appointmentTreatmentGroup;
|
||||
|
||||
/** 登记号(预住院患者) */
|
||||
@ApiModelProperty(value = "登记号(预住院患者)")
|
||||
private String registrationNo;
|
||||
|
||||
/** 登记日期(预住院患者),时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "登记日期(预住院患者),时间格式:yyyy-MM-dd")
|
||||
private Date registrationDate;
|
||||
|
||||
/** 预约时间(预住院患者),时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "预约时间(预住院患者),时间格式:yyyy-MM-dd")
|
||||
private Date appointmentDate;
|
||||
|
||||
/** 门诊号(门诊患者) */
|
||||
@ApiModelProperty(value = "门诊号")
|
||||
@Excel(name = "门诊号", readConverterExp = "门=诊患者")
|
||||
private String outpatientNumber;
|
||||
|
||||
/** 就诊时间(门诊患者),时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "就诊时间")
|
||||
@Excel(name = "就诊时间", readConverterExp = "门=诊患者")
|
||||
private Date visitTime;
|
||||
|
||||
/** 出院方式(出院患者) */
|
||||
@ApiModelProperty(value = "出院方式")
|
||||
@Excel(name = "出院方式", readConverterExp = "出=院患者")
|
||||
private String dischargeMethod;
|
||||
|
||||
/** 微信openid,微信小程序唯一标识 */
|
||||
@ApiModelProperty(value = "微信openid,微信小程序唯一标识")
|
||||
private String openId;
|
||||
|
||||
/** 微信unionid,微信小程序和微信公众号统一标识 */
|
||||
@ApiModelProperty(value = "微信unionid,微信小程序和微信公众号统一标识 ")
|
||||
private String unionId;
|
||||
|
||||
/** 患者来源,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END */
|
||||
@ApiModelProperty(value = "患者来源,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END")
|
||||
@Excel(name = "患者来源,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END")
|
||||
private String patientSource;
|
||||
|
||||
/** 删除标识,0:未删除,1:已删除 */
|
||||
private Integer delFlag;
|
||||
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
package com.xinelu.manage.domain.patientpropaganda;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 患者宣教信息对象 patient_propaganda
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者宣教信息对象", description = "patient_propaganda")
|
||||
public class PatientPropaganda extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者信息表id */
|
||||
@ApiModelProperty(value = "患者信息表id")
|
||||
@Excel(name = "患者信息表id")
|
||||
private Long patientId;
|
||||
|
||||
/** 宣教表id */
|
||||
@ApiModelProperty(value = "宣教表id")
|
||||
@Excel(name = "宣教表id")
|
||||
private Long propagandaId;
|
||||
|
||||
/** 所属科室名称 */
|
||||
@ApiModelProperty(value = "所属科室名称")
|
||||
@Excel(name = "所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/** 宣教标题(宣教名称) */
|
||||
@ApiModelProperty(value = "宣教标题")
|
||||
@Excel(name = "宣教标题", readConverterExp = "宣=教名称")
|
||||
private String propagandaTitle;
|
||||
|
||||
/** 宣教类型,用药知识:MEDICATION_KNOWLEDGE,疾病科普:DISEASE_POPULARIZATION,运动营养:SPORT_NUTRITION,其他知识:OTHER_KNOWLEDGE,
|
||||
定制内容:CUSTOMIZED_CONTENT */
|
||||
@ApiModelProperty(value = "宣教类型,用药知识:MEDICATION_KNOWLEDGE,疾病科普:DISEASE_POPULARIZATION,运动营养:SPORT_NUTRITION,其他知识:OTHER_KNOWLEDGE,定制内容:CUSTOMIZED_CONTENT")
|
||||
@Excel(name = "宣教类型,用药知识:MEDICATION_KNOWLEDGE,疾病科普:DISEASE_POPULARIZATION,运动营养:SPORT_NUTRITION,其他知识:OTHER_KNOWLEDGE,定制内容:CUSTOMIZED_CONTENT")
|
||||
private String propagandaType;
|
||||
|
||||
/** 宣教ID */
|
||||
@ApiModelProperty(value = "宣教ID")
|
||||
@Excel(name = "宣教ID")
|
||||
private String propagandaCode;
|
||||
|
||||
/** 宣教正文内容 */
|
||||
@ApiModelProperty(value = "宣教正文内容")
|
||||
@Excel(name = "宣教正文内容")
|
||||
private String propagandaContent;
|
||||
|
||||
/** 宣教封面文件存放地址 */
|
||||
@ApiModelProperty(value = "宣教封面文件存放地址")
|
||||
@Excel(name = "宣教封面文件存放地址")
|
||||
private String propagandaCoverPath;
|
||||
|
||||
/** 宣教文章摘要 */
|
||||
@ApiModelProperty(value = "宣教文章摘要")
|
||||
@Excel(name = "宣教文章摘要")
|
||||
private String articleSummary;
|
||||
|
||||
/** 语音播报 */
|
||||
@ApiModelProperty(value = "语音播报")
|
||||
@Excel(name = "语音播报")
|
||||
private String voicebroadcast;
|
||||
|
||||
/** 所属病种名称 */
|
||||
@ApiModelProperty(value = "所属病种名称")
|
||||
@Excel(name = "所属病种名称")
|
||||
private String diseaseTypeName;
|
||||
|
||||
/** 宣教链接 */
|
||||
@ApiModelProperty(value = "宣教链接")
|
||||
@Excel(name = "宣教链接")
|
||||
private String propagandaLink;
|
||||
|
||||
/** 宣教二维码图片存放地址 */
|
||||
@ApiModelProperty(value = "宣教二维码图片存放地址")
|
||||
private String propagandaBarcodePath;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,112 @@
|
||||
package com.xinelu.manage.domain.patientvisitinhospital;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 患者就诊入院记录信息对象 patient_visit_in_hospital
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者就诊入院记录信息对象", description = "patient_visit_in_hospital")
|
||||
public class PatientVisitInHospital extends BaseEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者就诊记录表id */
|
||||
@ApiModelProperty(value = "患者就诊记录表id")
|
||||
@Excel(name = "患者就诊记录表id")
|
||||
private Long patientVisitRecordId;
|
||||
|
||||
/** 主诉 */
|
||||
@ApiModelProperty(value = "主诉")
|
||||
@Excel(name = "主诉")
|
||||
private String chiefComplaint;
|
||||
|
||||
/** 现病史 */
|
||||
@ApiModelProperty(value = "现病史")
|
||||
@Excel(name = "现病史")
|
||||
private String presentIllnessHistory;
|
||||
|
||||
/** 既往史 */
|
||||
@ApiModelProperty(value = "既往史")
|
||||
@Excel(name = "既往史")
|
||||
private String pastHistory;
|
||||
|
||||
/** 个人史 */
|
||||
@ApiModelProperty(value = "个人史")
|
||||
@Excel(name = "个人史")
|
||||
private String personalHistory;
|
||||
|
||||
/** 婚姻史 */
|
||||
@ApiModelProperty(value = "婚姻史")
|
||||
@Excel(name = "婚姻史")
|
||||
private String maritalHistory;
|
||||
|
||||
/** 月经生育史 */
|
||||
@ApiModelProperty(value = "月经生育史")
|
||||
@Excel(name = "月经生育史")
|
||||
private String menstrualFertilityHistory;
|
||||
|
||||
/** 家族史 */
|
||||
@ApiModelProperty(value = "家族史")
|
||||
@Excel(name = "家族史")
|
||||
private String familyHistory;
|
||||
|
||||
/** 患方签字,图片路径或者签名名称 */
|
||||
@ApiModelProperty(value = "患方签字,图片路径或者签名名称")
|
||||
@Excel(name = "患方签字,图片路径或者签名名称")
|
||||
private String patientsSignature;
|
||||
|
||||
/** 患者/家属确认签字,图片路径或者签名名称 */
|
||||
@ApiModelProperty(value = "患者/家属确认签字,图片路径或者签名名称")
|
||||
@Excel(name = "患者/家属确认签字,图片路径或者签名名称")
|
||||
private String confirmedSignature;
|
||||
|
||||
/** 签名日期,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "签名日期,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "签名日期,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date signatureDate;
|
||||
|
||||
/** 体格检查 */
|
||||
@ApiModelProperty(value = "体格检查")
|
||||
@Excel(name = "体格检查")
|
||||
private String physicalExamination;
|
||||
|
||||
/** 专科检查 */
|
||||
@ApiModelProperty(value = "专科检查")
|
||||
@Excel(name = "专科检查")
|
||||
private String specialityExamination;
|
||||
|
||||
/** 辅助检查 */
|
||||
@ApiModelProperty(value = "辅助检查")
|
||||
@Excel(name = "辅助检查")
|
||||
private String assistantExamination;
|
||||
|
||||
/** 初步诊断 */
|
||||
@ApiModelProperty(value = "初步诊断")
|
||||
@Excel(name = "初步诊断")
|
||||
private String primaryDiagnosis;
|
||||
|
||||
/** 医师签名,图片路径或者签名名称 */
|
||||
@ApiModelProperty(value = "医师签名,图片路径或者签名名称")
|
||||
@Excel(name = "医师签名,图片路径或者签名名称")
|
||||
private String physicianSignature;
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.domain.patientvisitoperation;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 患者就诊手术记录信息对象 patient_visit_operation
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者就诊手术记录信息对象", description = "patient_visit_operation")
|
||||
public class PatientVisitOperation extends BaseEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者就诊记录表id */
|
||||
@ApiModelProperty(value = "患者就诊记录表id")
|
||||
@Excel(name = "患者就诊记录表id")
|
||||
private Long patientVisitRecordId;
|
||||
|
||||
/** 手术名称 */
|
||||
@ApiModelProperty(value = "手术名称")
|
||||
@Excel(name = "手术名称")
|
||||
private String operationName;
|
||||
|
||||
/** 手术日期,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "手术日期,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "手术日期,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date operationDate;
|
||||
|
||||
/** 手术麻醉方式,全身麻醉:GENERAL_ANESTHESIA,局部麻醉:LOCAL_ANESTHESIA */
|
||||
@ApiModelProperty(value = "手术麻醉方式,全身麻醉:GENERAL_ANESTHESIA,局部麻醉:LOCAL_ANESTHESIA")
|
||||
@Excel(name = "手术麻醉方式,全身麻醉:GENERAL_ANESTHESIA,局部麻醉:LOCAL_ANESTHESIA")
|
||||
private String operationAnesthesiaWay;
|
||||
|
||||
/** 手术入路 */
|
||||
@ApiModelProperty(value = "手术入路")
|
||||
@Excel(name = "手术入路")
|
||||
private String operationApproach;
|
||||
|
||||
/** 手术方式 */
|
||||
@ApiModelProperty(value = "手术方式")
|
||||
@Excel(name = "手术方式")
|
||||
private String operationWay;
|
||||
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package com.xinelu.manage.domain.patientvisitouthospital;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 患者就诊出院记录信息对象 patient_visit_out_hospital
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者就诊出院记录信息对象", description = "patient_visit_out_hospital")
|
||||
public class PatientVisitOutHospital extends BaseEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者就诊记录表id */
|
||||
@ApiModelProperty(value = "患者就诊记录表id")
|
||||
@Excel(name = "患者就诊记录表id")
|
||||
private Long patientVisitRecordId;
|
||||
|
||||
/** 入院诊断(新) */
|
||||
@ApiModelProperty(value = "入院诊断")
|
||||
@Excel(name = "入院诊断", readConverterExp = "新=")
|
||||
private String admissionDiagnosis;
|
||||
|
||||
/** 入院情况(新) */
|
||||
@ApiModelProperty(value = "入院情况")
|
||||
@Excel(name = "入院情况", readConverterExp = "新=")
|
||||
private String admissionSituation;
|
||||
|
||||
/** 诊疗经过(新) */
|
||||
@ApiModelProperty(value = "诊疗经过")
|
||||
@Excel(name = "诊疗经过", readConverterExp = "新=")
|
||||
private String diagnosisTreatmentProcess;
|
||||
|
||||
/** 出院诊断(新) */
|
||||
@ApiModelProperty(value = "出院诊断")
|
||||
@Excel(name = "出院诊断", readConverterExp = "新=")
|
||||
private String dischargeDiagnosis;
|
||||
|
||||
/** 出院情况(新) */
|
||||
@ApiModelProperty(value = "出院情况")
|
||||
@Excel(name = "出院情况", readConverterExp = "新=")
|
||||
private String dischargeStatus;
|
||||
|
||||
/** 出院医嘱(新) */
|
||||
@ApiModelProperty(value = "出院医嘱")
|
||||
@Excel(name = "出院医嘱", readConverterExp = "新=")
|
||||
private String dischargeOrder;
|
||||
|
||||
}
|
||||
@ -0,0 +1,121 @@
|
||||
package com.xinelu.manage.domain.patientvisitrecord;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息对象 patient_visit_record
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者就诊记录基本信息对象", description = "patient_visit_record")
|
||||
public class PatientVisitRecord extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键Id */
|
||||
private Long id;
|
||||
|
||||
/** 患者表id */
|
||||
@ApiModelProperty(value = "患者表id")
|
||||
@Excel(name = "患者表id")
|
||||
private Long patientId;
|
||||
|
||||
/** 就诊科室 */
|
||||
@ApiModelProperty(value = "就诊科室")
|
||||
@Excel(name = "就诊科室")
|
||||
private String visitDept;
|
||||
|
||||
/** 就诊名称 */
|
||||
@ApiModelProperty(value = "就诊名称")
|
||||
@Excel(name = "就诊名称")
|
||||
private String visitName;
|
||||
|
||||
/** 就诊时间,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "就诊时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "就诊时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date visitDate;
|
||||
|
||||
/** 就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED */
|
||||
@ApiModelProperty(value = "就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED")
|
||||
@Excel(name = "就诊类型,门诊:OUTPATIENT_SERVICE,住院:BE_HOSPITALIZED")
|
||||
private String visitType;
|
||||
|
||||
/** 姓名 */
|
||||
@ApiModelProperty(value = "姓名")
|
||||
@Excel(name = "姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 出生地 */
|
||||
@ApiModelProperty(value = "出生地")
|
||||
@Excel(name = "出生地")
|
||||
private String birthplace;
|
||||
|
||||
/** 性别,男:MALE,女:FEMALE */
|
||||
@ApiModelProperty(value = "性别,男:MALE,女:FEMALE")
|
||||
@Excel(name = "性别,男:MALE,女:FEMALE")
|
||||
private String sex;
|
||||
|
||||
/** 年龄 */
|
||||
@ApiModelProperty(value = "年龄")
|
||||
@Excel(name = "年龄")
|
||||
private Integer age;
|
||||
|
||||
/** 民族 */
|
||||
@ApiModelProperty(value = "民族")
|
||||
@Excel(name = "民族")
|
||||
private String nation;
|
||||
|
||||
/** 婚姻,已婚:MARRIED,未婚:UNMARRIED,丧偶:BEREAVE */
|
||||
@ApiModelProperty(value = "婚姻,已婚:MARRIED,未婚:UNMARRIED,丧偶:BEREAVE")
|
||||
@Excel(name = "婚姻,已婚:MARRIED,未婚:UNMARRIED,丧偶:BEREAVE")
|
||||
private String marriage;
|
||||
|
||||
/** _病史陈述者(入院记录) */
|
||||
@ApiModelProperty(value = "_病史陈述者")
|
||||
@Excel(name = "_病史陈述者", readConverterExp = "入=院记录")
|
||||
private String medicalHistoryNarrator;
|
||||
|
||||
/** 入院时间 */
|
||||
@ApiModelProperty(value = "入院时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "入院时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date admissionTime;
|
||||
|
||||
/** 出院时间 */
|
||||
@ApiModelProperty(value = "出院时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "出院时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date dischargeTime;
|
||||
|
||||
/** _记录时间(入院记录) */
|
||||
@ApiModelProperty(value = "_记录时间")
|
||||
@Excel(name = "_记录时间", readConverterExp = "入=院记录")
|
||||
private Date recordTime;
|
||||
|
||||
/** 门诊就诊信息(就诊类型) */
|
||||
@ApiModelProperty(value = "门诊就诊信息")
|
||||
@Excel(name = "门诊就诊信息", readConverterExp = "就=诊类型")
|
||||
private String outpatientVisitInfo;
|
||||
|
||||
/** 住院天数(出院记录),单位为:天 */
|
||||
@ApiModelProperty(value = "住院天数")
|
||||
@Excel(name = "住院天数", readConverterExp = "出=院记录")
|
||||
private Integer hospitalizationDays;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.xinelu.manage.domain.propagandainfo;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 宣教库管理对象 propaganda_info
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "宣教库管理对象", description = "propaganda_info")
|
||||
public class PropagandaInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 所属医院id */
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/** 所属医院名称 */
|
||||
@ApiModelProperty(value = "所属医院名称")
|
||||
@Excel(name = "所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/** 所属科室id */
|
||||
private Long departmentId;
|
||||
|
||||
/** 所属科室名称 */
|
||||
@ApiModelProperty(value = "所属科室名称")
|
||||
@Excel(name = "所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/** 宣教标题(宣教名称) */
|
||||
@ApiModelProperty(value = "宣教标题")
|
||||
@Excel(name = "宣教标题", readConverterExp = "宣=教名称")
|
||||
private String propagandaTitle;
|
||||
|
||||
/** 宣教类型,用药知识:MEDICATION_KNOWLEDGE,疾病科普:DISEASE_POPULARIZATION,运动营养:SPORT_NUTRITION,其他知识:OTHER_KNOWLEDGE,
|
||||
定制内容:CUSTOMIZED_CONTENT */
|
||||
@ApiModelProperty(value = "宣教类型,用药知识:MEDICATION_KNOWLEDGE,疾病科普:DISEASE_POPULARIZATION,运动营养:SPORT_NUTRITION,其他知识:OTHER_KNOWLEDGE,定制内容:CUSTOMIZED_CONTENT")
|
||||
@Excel(name = "宣教类型,用药知识:MEDICATION_KNOWLEDGE,疾病科普:DISEASE_POPULARIZATION,运动营养:SPORT_NUTRITION,其他知识:OTHER_KNOWLEDGE,定制内容:CUSTOMIZED_CONTENT")
|
||||
private String propagandaType;
|
||||
|
||||
/** 宣教ID */
|
||||
private String propagandaCode;
|
||||
|
||||
/** 宣教状态,创作中:CREATE_PROCESS,创作完成:CREATE_COMPLETE,审核中:IN_REVIEW,审核通过:APPROVED,审核不通过:REVIEW_FAILED */
|
||||
@ApiModelProperty(value = "宣教状态,创作中:CREATE_PROCESS,创作完成:CREATE_COMPLETE,审核中:IN_REVIEW,审核通过:APPROVED,审核不通过:REVIEW_FAILED")
|
||||
@Excel(name = "宣教状态,创作中:CREATE_PROCESS,创作完成:CREATE_COMPLETE,审核中:IN_REVIEW,审核通过:APPROVED,审核不通过:REVIEW_FAILED")
|
||||
private String propagandaStatus;
|
||||
|
||||
/** 宣教正文内容 */
|
||||
private String propagandaContent;
|
||||
|
||||
/** 宣教封面文件存放地址 */
|
||||
private String propagandaCoverPath;
|
||||
|
||||
/** 宣教文章摘要 */
|
||||
private String articleSummary;
|
||||
|
||||
/** 语音播报 */
|
||||
private String voicebroadcast;
|
||||
|
||||
/** 所属病种id */
|
||||
private Long diseaseTypeId;
|
||||
|
||||
/** 所属病种名称 */
|
||||
@ApiModelProperty(value = "所属病种名称")
|
||||
@Excel(name = "所属病种名称")
|
||||
private String diseaseTypeName;
|
||||
|
||||
/** 宣教链接 */
|
||||
private String propagandaLink;
|
||||
|
||||
/** 宣教二维码图片存放地址 */
|
||||
private String propagandaBarcodePath;
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package com.xinelu.manage.domain.propagandamaterials;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 宣教素材关系对象 propaganda_materials
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "宣教素材关系对象", description = "propaganda_materials")
|
||||
public class PropagandaMaterials extends BaseEntity {
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 宣教表id */
|
||||
@ApiModelProperty(value = "宣教表id")
|
||||
@Excel(name = "宣教表id")
|
||||
private Long propagandaId;
|
||||
|
||||
/** 宣教名称(宣教标题) */
|
||||
@ApiModelProperty(value = "宣教名称")
|
||||
@Excel(name = "宣教名称", readConverterExp = "宣=教标题")
|
||||
private String propagandaTitle;
|
||||
|
||||
/** 素材表id */
|
||||
@ApiModelProperty(value = "素材表id")
|
||||
@Excel(name = "素材表id")
|
||||
private Long materialsId;
|
||||
|
||||
/** 素材名称 */
|
||||
@ApiModelProperty(value = "素材名称")
|
||||
@Excel(name = "素材名称")
|
||||
private String materialsName;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package com.xinelu.manage.domain.signpatientinformed;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 签约知情同意书信息对象 sign_patient_informed
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "签约知情同意书信息对象", description = "sign_patient_informed")
|
||||
public class SignPatientInformed extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者签约记录表id */
|
||||
@ApiModelProperty(value = "患者签约记录表id")
|
||||
@Excel(name = "患者签约记录表id")
|
||||
private Long signPatientRecordId;
|
||||
|
||||
/** 患者id */
|
||||
@ApiModelProperty(value = "患者id")
|
||||
private Long patientId;
|
||||
|
||||
/** 知情书文件名称 */
|
||||
@ApiModelProperty(value = "知情书文件名称")
|
||||
private String informedFileName;
|
||||
|
||||
/** 知情书文件存放路径 */
|
||||
@ApiModelProperty(value = "知情书文件存放路径")
|
||||
private String informedFilePath;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
package com.xinelu.manage.domain.signpatientpackage;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 签约患者服务包信息对象 sign_patient_package
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "签约患者服务包信息对象", description = "sign_patient_package")
|
||||
public class SignPatientPackage extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者信息表id */
|
||||
@ApiModelProperty(value = "患者信息表id")
|
||||
@Excel(name = "患者信息表id")
|
||||
private Long patientId;
|
||||
|
||||
/** 患者签约记录表id */
|
||||
@ApiModelProperty(value = "患者签约记录表id")
|
||||
@Excel(name = "患者签约记录表id")
|
||||
private Long signPatientRecordId;
|
||||
|
||||
/** 服务包表id */
|
||||
@ApiModelProperty(value = "服务包表id")
|
||||
@Excel(name = "服务包表id")
|
||||
private Long servicePackageId;
|
||||
|
||||
/** 服务包名称 */
|
||||
@ApiModelProperty(value = "服务包名称")
|
||||
@Excel(name = "服务包名称")
|
||||
private String packageName;
|
||||
|
||||
/** 服务包缴费状态,已缴费:PAID,未交费:UNPAID_FEES */
|
||||
@ApiModelProperty(value = "服务包缴费状态,已缴费:PAID,未交费:UNPAID_FEES")
|
||||
@Excel(name = "服务包缴费状态,已缴费:PAID,未交费:UNPAID_FEES")
|
||||
private String packagePaymentStatus;
|
||||
|
||||
/** 服务包价格,小数点后两位 */
|
||||
@ApiModelProperty(value = "服务包价格,小数点后两位")
|
||||
@Excel(name = "服务包价格,小数点后两位")
|
||||
private BigDecimal packagePrice;
|
||||
|
||||
/** 服务开始时间,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "服务开始时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "服务开始时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date serviceStartTime;
|
||||
|
||||
/** 服务结束时间,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "服务结束时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "服务结束时间,格式:yyyy-MM-dd HH:mm:ss", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date serviceEndTime;
|
||||
|
||||
/** 服务周期,单位是月 */
|
||||
@ApiModelProperty(value = "服务周期,单位是月")
|
||||
@Excel(name = "服务周期,单位是月")
|
||||
private Integer serviceCycle;
|
||||
|
||||
}
|
||||
@ -0,0 +1,72 @@
|
||||
package com.xinelu.manage.domain.signpatientpackagehardware;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.math.BigDecimal;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 签约患者服务包硬件信息对象 sign_patient_package_hardware
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "签约患者服务包硬件信息对象", description = "sign_patient_package_hardware")
|
||||
public class SignPatientPackageHardware extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/** 主键id */
|
||||
private Long id;
|
||||
|
||||
/** 患者签约记录表id */
|
||||
@ApiModelProperty(value = "患者签约记录表id")
|
||||
@Excel(name = "患者签约记录表id")
|
||||
private Long signPatientRecordId;
|
||||
|
||||
/** 签约患者服务包表id */
|
||||
@ApiModelProperty(value = "签约患者服务包表id")
|
||||
@Excel(name = "签约患者服务包表id")
|
||||
private Long signPatientPackageId;
|
||||
|
||||
/** 硬件类型,血压仪:BLOOD_PRESSURE,血糖仪:GLUCOSE_METER,心电仪:ELECTROCARDIOGRA */
|
||||
@ApiModelProperty(value = "硬件类型,血压仪:BLOOD_PRESSURE,血糖仪:GLUCOSE_METER,心电仪:ELECTROCARDIOGRA")
|
||||
@Excel(name = "硬件类型,血压仪:BLOOD_PRESSURE,血糖仪:GLUCOSE_METER,心电仪:ELECTROCARDIOGRA")
|
||||
private String hardwareType;
|
||||
|
||||
/** SN码 */
|
||||
@ApiModelProperty(value = "SN码")
|
||||
@Excel(name = "SN码")
|
||||
private String snCode;
|
||||
|
||||
/** 硬件金额 */
|
||||
@ApiModelProperty(value = "硬件金额")
|
||||
@Excel(name = "硬件金额")
|
||||
private BigDecimal hardwarePrice;
|
||||
|
||||
/** 硬件状态 */
|
||||
@ApiModelProperty(value = "硬件状态")
|
||||
@Excel(name = "硬件状态")
|
||||
private String hardwareStatus;
|
||||
|
||||
/** 硬件厂商 */
|
||||
@ApiModelProperty(value = "硬件厂商")
|
||||
@Excel(name = "硬件厂商")
|
||||
private String hardwareManufacturer;
|
||||
|
||||
/** 硬件使用说明 */
|
||||
@ApiModelProperty(value = "硬件使用说明")
|
||||
@Excel(name = "硬件使用说明")
|
||||
private String hardwareIntroduce;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,185 @@
|
||||
package com.xinelu.manage.domain.signpatientrecord;
|
||||
|
||||
import com.xinelu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 患者签约记录表
|
||||
* @TableName sign_patient_record
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ApiModel(value = "患者签约记录表", description = "sign_patient_record")
|
||||
public class SignPatientRecord extends BaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者信息表id
|
||||
*/
|
||||
@ApiModelProperty(value = "患者信息表id")
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 患者电话
|
||||
*/
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/**
|
||||
* 签约时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
private Date signTime;
|
||||
|
||||
/**
|
||||
* 签约时所属医院id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/**
|
||||
* 签约时所属医院名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/**
|
||||
* 签约时所属院区id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属院区id")
|
||||
private Long campusAgencyId;
|
||||
|
||||
/**
|
||||
* 签约时所属院区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属院区名称")
|
||||
private String campusAgencyName;
|
||||
|
||||
/**
|
||||
* 签约时所属科室id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属科室id")
|
||||
private Long departmentId;
|
||||
|
||||
/**
|
||||
* 签约时所属科室名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/**
|
||||
* 签约时所属病区id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属病区id")
|
||||
private Long wardId;
|
||||
|
||||
/**
|
||||
* 签约时所属病区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属病区名称")
|
||||
private String wardName;
|
||||
|
||||
/**
|
||||
* 就诊流水号
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/**
|
||||
* 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||
private String visitMethod;
|
||||
|
||||
/**
|
||||
* 签约时诊断
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时诊断")
|
||||
private String signDiagnosis;
|
||||
|
||||
/**
|
||||
* 审核后诊断
|
||||
*/
|
||||
@ApiModelProperty(value = "审核后诊断")
|
||||
private String reviewDiagnosis;
|
||||
|
||||
/**
|
||||
* 服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END
|
||||
*/
|
||||
@ApiModelProperty(value = "服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END")
|
||||
private String serviceStatus;
|
||||
|
||||
/**
|
||||
* 签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN
|
||||
*/
|
||||
@ApiModelProperty(value = "签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN")
|
||||
private String signStatus;
|
||||
|
||||
/**
|
||||
* 意向来源(意向签约,字典枚举)
|
||||
*/
|
||||
@ApiModelProperty(value = "意向来源(意向签约,字典枚举)")
|
||||
private String intentionalSource;
|
||||
|
||||
/**
|
||||
* 加入意向时间(意向签约)
|
||||
*/
|
||||
@ApiModelProperty(value = "加入意向时间(意向签约)")
|
||||
private Date intentionalTime;
|
||||
|
||||
/**
|
||||
* 开单医生id(意向签约)
|
||||
*/
|
||||
@ApiModelProperty(value = "开单医生id(意向签约)")
|
||||
private Long billingDoctorId;
|
||||
|
||||
/**
|
||||
* 开单医生姓名(意向签约)
|
||||
*/
|
||||
@ApiModelProperty(value = "开单医生姓名(意向签约)")
|
||||
private String billingDoctorName;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@ApiModelProperty(value = "金额")
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 缴费状态,已缴费:PAID,未交费:UNPAID_FEES
|
||||
*/
|
||||
@ApiModelProperty(value = "缴费状态,已缴费:PAID,未交费:UNPAID_FEES")
|
||||
private String paymentStatus;
|
||||
|
||||
/**
|
||||
* 删除标识,0:未删除,1:已删除
|
||||
*/
|
||||
@ApiModelProperty(value = "删除标识,0:未删除,1:已删除")
|
||||
private Integer delFlag;
|
||||
|
||||
}
|
||||
@ -1,16 +0,0 @@
|
||||
package com.xinelu.manage.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Description 测试
|
||||
* @Author 纪寒
|
||||
* @Date 2024-02-18 16:31:10
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class ManageTestDTO {
|
||||
// id
|
||||
private Long id;
|
||||
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.xinelu.manage.dto.patientblacklist;
|
||||
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 黑名单列表传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-02-28 13:15
|
||||
**/
|
||||
@Data
|
||||
public class PatientBlacklistDto {
|
||||
/** 患者姓名 */
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
@Excel(name = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 患者电话 */
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
@Excel(name = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/** 所属医院id */
|
||||
@ApiModelProperty(value = "所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/** 所属科室id */
|
||||
@ApiModelProperty(value = "所属科室id")
|
||||
private Long departmentId;
|
||||
|
||||
/** 异常原因字典表id */
|
||||
@ApiModelProperty(value = "异常原因字典表id")
|
||||
private Long abnormalCauseId;
|
||||
|
||||
/** 异常原因字典表值 */
|
||||
@ApiModelProperty(value = "异常原因字典表值")
|
||||
private String abnormalCauseValue;
|
||||
|
||||
@ApiModelProperty(value = "来源(CALL_DETECTION:通话检测,MANUAL_BLACKOUT:手动拉黑,MANUAL_ADDITION:手动添加,HIS_CONNECT:HIS对接)")
|
||||
private String blacklistSource;
|
||||
}
|
||||
@ -0,0 +1,111 @@
|
||||
package com.xinelu.manage.dto.patientinfo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 患者列表查询传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-02-27 16:20
|
||||
**/
|
||||
@ApiModel("患者列表查询传输对象")
|
||||
@Data
|
||||
public class PatientInfoDto {
|
||||
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 患者电话 */
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 主要诊断 */
|
||||
@ApiModelProperty(value = "主要诊断")
|
||||
private String mainDiagnosis;
|
||||
|
||||
/** 所属医院id */
|
||||
@ApiModelProperty(value = "所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/** 所属院区id */
|
||||
@ApiModelProperty(value = "所属院区id")
|
||||
private Long campusAgencyId;
|
||||
|
||||
/** 所属科室id */
|
||||
@ApiModelProperty(value = "所属科室id")
|
||||
private Long departmentId;
|
||||
|
||||
/** 所属病区id */
|
||||
@ApiModelProperty(value = "所属病区id")
|
||||
private Long wardId;
|
||||
|
||||
/** 患者类型,预住院患者:PRE_HOSPITALIZED_PATIENT,在院患者:IN_HOSPITAL_PATIENT,门诊患者:OUTPATIENT,出院患者:DISCHARGED_PATIENT,
|
||||
签约患者:CONTRACTED_PATIENT */
|
||||
@ApiModelProperty(value = "患者类型,预住院患者:PRE_HOSPITALIZED_PATIENT,在院患者:IN_HOSPITAL_PATIENT,门诊患者:OUTPATIENT,出院患者:DISCHARGED_PATIENT,签约患者:CONTRACTED_PATIENT")
|
||||
private String patientType;
|
||||
|
||||
/** 主治医生 */
|
||||
@ApiModelProperty(value = "主治医生")
|
||||
private String attendingPhysician;
|
||||
|
||||
/** 患者来源,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END */
|
||||
@ApiModelProperty(value = "患者来源,微信小程序:WE_CHAT_APPLET,微信公众号:WE_CHAT_OFFICIAL_ACCOUNT,管理端:MANAGE_END")
|
||||
private String patientSource;
|
||||
|
||||
/** 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL */
|
||||
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||
private String visitMethod;
|
||||
|
||||
/** 就诊时间开始(门诊患者),时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "就诊时间开始")
|
||||
private Date visitTimeStart;
|
||||
|
||||
/** 就诊时间结束(门诊患者),时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "就诊时间结束")
|
||||
private Date visitTimeEnd;
|
||||
|
||||
/** 入院时间开始,时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "入院时间开始")
|
||||
private Date admissionDateStart;
|
||||
|
||||
/** 入院时间结束,时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "入院时间结束")
|
||||
private Date admissionDateEnd;
|
||||
|
||||
/** 预约时间开始(预住院患者),时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "预约时间开始(预住院患者),时间格式:yyyy-MM-dd")
|
||||
private Date appointmentDateStart;
|
||||
|
||||
/** 预约时间开始(预住院患者),时间格式:yyyy-MM-dd */
|
||||
@ApiModelProperty(value = "预约时间结束(预住院患者),时间格式:yyyy-MM-dd")
|
||||
private Date appointmentDateEnd;
|
||||
|
||||
/** 预约治疗组(取值以及枚举未知?) */
|
||||
@ApiModelProperty(value = "预约治疗组(取值以及枚举未知?)")
|
||||
private String appointmentTreatmentGroup;
|
||||
|
||||
/** 开证医生(预住院患者) */
|
||||
@ApiModelProperty(value = "开证医生")
|
||||
private String certificateIssuingDoctor;
|
||||
|
||||
/** 登记号(预住院患者) */
|
||||
@ApiModelProperty(value = "登记号(预住院患者)")
|
||||
private String registrationNo;
|
||||
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/** 责任护士 */
|
||||
@ApiModelProperty(value = "责任护士")
|
||||
private String responsibleNurse;
|
||||
|
||||
/** 手术名称 */
|
||||
@ApiModelProperty(value = "手术名称")
|
||||
private String surgicalName;
|
||||
|
||||
/** 年龄 */
|
||||
@ApiModelProperty(value = "年龄")
|
||||
private Integer age;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.xinelu.manage.dto.patientvisitrecord;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 患者就诊记录查询传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-02-26 14:44
|
||||
**/
|
||||
@Data
|
||||
public class PatientVisitRecordDto {
|
||||
|
||||
/** 患者表id */
|
||||
@ApiModelProperty(value = "患者表id")
|
||||
private Long patientId;
|
||||
|
||||
@ApiModelProperty(value = "就诊时间开始")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date visitDateStart;
|
||||
|
||||
@ApiModelProperty(value = "就诊时间结束")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date visitDateEnd;
|
||||
}
|
||||
@ -0,0 +1,28 @@
|
||||
package com.xinelu.manage.dto.signpatientrecord;
|
||||
|
||||
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
|
||||
import com.xinelu.manage.domain.signpatientpackage.SignPatientPackage;
|
||||
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
|
||||
import com.xinelu.manage.domain.signpatientrecord.SignPatientRecord;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 患者签约传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-02-29 09:26
|
||||
**/
|
||||
@ApiModel("患者签约传输对象")
|
||||
@Data
|
||||
public class SignPatientAddDto {
|
||||
|
||||
private SignPatientRecord record;
|
||||
|
||||
private SignPatientPackage signPackage;
|
||||
|
||||
private List<SignPatientPackageHardware> devices;
|
||||
|
||||
private SignPatientInformed signPatientInformed;
|
||||
|
||||
}
|
||||
@ -0,0 +1,101 @@
|
||||
package com.xinelu.manage.dto.signpatientrecord;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 签约患者查询传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-02-28 17:16
|
||||
**/
|
||||
@ApiModel("签约患者查询传输对象")
|
||||
@Data
|
||||
public class SignPatientListDto {
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 患者电话
|
||||
*/
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/**
|
||||
* 就诊流水号
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/**
|
||||
* 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||
private String visitMethod;
|
||||
|
||||
/**
|
||||
* 加入意向时间(意向签约)
|
||||
*/
|
||||
@ApiModelProperty(value = "加入意向时间开始(意向签约)")
|
||||
private Date intentionalTimeStart;
|
||||
|
||||
/**
|
||||
* 加入意向时间(意向签约)
|
||||
*/
|
||||
@ApiModelProperty(value = "加入意向时间结束(意向签约)")
|
||||
private Date intentionalTimeEnd;
|
||||
|
||||
/**
|
||||
* 意向来源(意向签约,字典枚举)
|
||||
*/
|
||||
@ApiModelProperty(value = "意向来源(意向签约,字典枚举)")
|
||||
private String intentionalSource;
|
||||
|
||||
/**
|
||||
* 签约时间,格式:yyyy-MM-dd
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时间开始,格式:yyyy-MM-dd")
|
||||
private Date signTimeStart;
|
||||
|
||||
@ApiModelProperty(value = "签约时间结束,格式:yyyy-MM-dd")
|
||||
private Date signTimeEnd;
|
||||
/**
|
||||
* 签约时所属医院id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/**
|
||||
* 签约时所属院区id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属院区id")
|
||||
private Long campusAgencyId;
|
||||
|
||||
/**
|
||||
* 签约时所属科室id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属科室id")
|
||||
private Long departmentId;
|
||||
|
||||
/**
|
||||
* 签约时所属病区id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属病区id")
|
||||
private Long wardId;
|
||||
|
||||
/**
|
||||
* 签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN
|
||||
*/
|
||||
@ApiModelProperty(value = "签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN")
|
||||
private String signStatus;
|
||||
|
||||
/**
|
||||
* 服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END
|
||||
*/
|
||||
@ApiModelProperty(value = "服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END")
|
||||
private String serviceStatus;
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
package com.xinelu.manage.dto.signpatientrecord;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 修改签约记录状态传输对象
|
||||
* @author: haown
|
||||
* @create: 2024-02-29 10:29
|
||||
**/
|
||||
@Data
|
||||
public class SignPatientStatusDto {
|
||||
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END
|
||||
*/
|
||||
@ApiModelProperty(value = "服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END")
|
||||
private String serviceStatus;
|
||||
|
||||
/**
|
||||
* 签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN
|
||||
*/
|
||||
@ApiModelProperty(value = "签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN")
|
||||
private String signStatus;
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.materialsinfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.materialsinfo.MaterialsInfo;
|
||||
|
||||
/**
|
||||
* 素材信息Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface MaterialsInfoMapper {
|
||||
/**
|
||||
* 查询素材信息
|
||||
*
|
||||
* @param id 素材信息主键
|
||||
* @return 素材信息
|
||||
*/
|
||||
public MaterialsInfo selectMaterialsInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询素材信息列表
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 素材信息集合
|
||||
*/
|
||||
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfo materialsInfo);
|
||||
|
||||
/**
|
||||
* 新增素材信息
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMaterialsInfo(MaterialsInfo materialsInfo);
|
||||
|
||||
/**
|
||||
* 修改素材信息
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMaterialsInfo(MaterialsInfo materialsInfo);
|
||||
|
||||
/**
|
||||
* 删除素材信息
|
||||
*
|
||||
* @param id 素材信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMaterialsInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除素材信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMaterialsInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.mapper.patientblacklist;
|
||||
|
||||
import com.xinelu.manage.domain.patientblacklist.PatientBlacklist;
|
||||
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto;
|
||||
import com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者-黑明单关系Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface PatientBlacklistMapper {
|
||||
/**
|
||||
* 查询患者-黑明单关系
|
||||
*
|
||||
* @param id 患者-黑明单关系主键
|
||||
* @return 患者-黑明单关系
|
||||
*/
|
||||
public PatientBlacklist selectPatientBlacklistById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者-黑明单关系列表
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 患者-黑明单关系集合
|
||||
*/
|
||||
public List<PatientBlacklistVo> selectPatientBlacklistList(PatientBlacklistDto patientBlacklist);
|
||||
|
||||
/**
|
||||
* 新增患者-黑明单关系
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientBlacklist(PatientBlacklist patientBlacklist);
|
||||
|
||||
/**
|
||||
* 修改患者-黑明单关系
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientBlacklist(PatientBlacklist patientBlacklist);
|
||||
|
||||
/**
|
||||
* 删除患者-黑明单关系
|
||||
*
|
||||
* @param id 患者-黑明单关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientBlacklistById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者-黑明单关系
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientBlacklistByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.patientinfo;
|
||||
|
||||
import com.xinelu.manage.domain.patientinfo.PatientInfo;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者信息Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface PatientInfoMapper {
|
||||
/**
|
||||
* 查询患者信息
|
||||
*
|
||||
* @param id 患者信息主键
|
||||
* @return 患者信息
|
||||
*/
|
||||
public PatientInfo selectPatientInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者信息列表
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 患者信息集合
|
||||
*/
|
||||
List<PatientInfo> selectPatientInfoList(PatientInfoDto patientInfo);
|
||||
|
||||
/**
|
||||
* 新增患者信息
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPatientInfo(PatientInfo patientInfo);
|
||||
|
||||
/**
|
||||
* 修改患者信息
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePatientInfo(PatientInfo patientInfo);
|
||||
|
||||
/**
|
||||
* 删除患者信息
|
||||
*
|
||||
* @param id 患者信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.patientpropaganda;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientpropaganda.PatientPropaganda;
|
||||
|
||||
/**
|
||||
* 患者宣教信息Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface PatientPropagandaMapper {
|
||||
/**
|
||||
* 查询患者宣教信息
|
||||
*
|
||||
* @param id 患者宣教信息主键
|
||||
* @return 患者宣教信息
|
||||
*/
|
||||
public PatientPropaganda selectPatientPropagandaById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者宣教信息列表
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 患者宣教信息集合
|
||||
*/
|
||||
public List<PatientPropaganda> selectPatientPropagandaList(PatientPropaganda patientPropaganda);
|
||||
|
||||
/**
|
||||
* 新增患者宣教信息
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientPropaganda(PatientPropaganda patientPropaganda);
|
||||
|
||||
/**
|
||||
* 修改患者宣教信息
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientPropaganda(PatientPropaganda patientPropaganda);
|
||||
|
||||
/**
|
||||
* 删除患者宣教信息
|
||||
*
|
||||
* @param id 患者宣教信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientPropagandaById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者宣教信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientPropagandaByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.patientvisitinhospital;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitinhospital.PatientVisitInHospital;
|
||||
|
||||
/**
|
||||
* 患者就诊入院记录信息Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface PatientVisitInHospitalMapper {
|
||||
/**
|
||||
* 查询患者就诊入院记录信息
|
||||
*
|
||||
* @param id 患者就诊入院记录信息主键
|
||||
* @return 患者就诊入院记录信息
|
||||
*/
|
||||
public PatientVisitInHospital selectPatientVisitInHospitalById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者就诊入院记录信息列表
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 患者就诊入院记录信息集合
|
||||
*/
|
||||
public List<PatientVisitInHospital> selectPatientVisitInHospitalList(PatientVisitInHospital patientVisitInHospital);
|
||||
|
||||
/**
|
||||
* 新增患者就诊入院记录信息
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientVisitInHospital(PatientVisitInHospital patientVisitInHospital);
|
||||
|
||||
/**
|
||||
* 修改患者就诊入院记录信息
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientVisitInHospital(PatientVisitInHospital patientVisitInHospital);
|
||||
|
||||
/**
|
||||
* 删除患者就诊入院记录信息
|
||||
*
|
||||
* @param id 患者就诊入院记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitInHospitalById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊入院记录信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitInHospitalByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.patientvisitoperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitoperation.PatientVisitOperation;
|
||||
|
||||
/**
|
||||
* 患者就诊手术记录信息Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface PatientVisitOperationMapper {
|
||||
/**
|
||||
* 查询患者就诊手术记录信息
|
||||
*
|
||||
* @param id 患者就诊手术记录信息主键
|
||||
* @return 患者就诊手术记录信息
|
||||
*/
|
||||
public PatientVisitOperation selectPatientVisitOperationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者就诊手术记录信息列表
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 患者就诊手术记录信息集合
|
||||
*/
|
||||
public List<PatientVisitOperation> selectPatientVisitOperationList(PatientVisitOperation patientVisitOperation);
|
||||
|
||||
/**
|
||||
* 新增患者就诊手术记录信息
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientVisitOperation(PatientVisitOperation patientVisitOperation);
|
||||
|
||||
/**
|
||||
* 修改患者就诊手术记录信息
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientVisitOperation(PatientVisitOperation patientVisitOperation);
|
||||
|
||||
/**
|
||||
* 删除患者就诊手术记录信息
|
||||
*
|
||||
* @param id 患者就诊手术记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitOperationById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊手术记录信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitOperationByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.patientvisitouthospital;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitouthospital.PatientVisitOutHospital;
|
||||
|
||||
/**
|
||||
* 患者就诊出院记录信息Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface PatientVisitOutHospitalMapper {
|
||||
/**
|
||||
* 查询患者就诊出院记录信息
|
||||
*
|
||||
* @param id 患者就诊出院记录信息主键
|
||||
* @return 患者就诊出院记录信息
|
||||
*/
|
||||
public PatientVisitOutHospital selectPatientVisitOutHospitalById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者就诊出院记录信息列表
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 患者就诊出院记录信息集合
|
||||
*/
|
||||
public List<PatientVisitOutHospital> selectPatientVisitOutHospitalList(PatientVisitOutHospital patientVisitOutHospital);
|
||||
|
||||
/**
|
||||
* 新增患者就诊出院记录信息
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientVisitOutHospital(PatientVisitOutHospital patientVisitOutHospital);
|
||||
|
||||
/**
|
||||
* 修改患者就诊出院记录信息
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientVisitOutHospital(PatientVisitOutHospital patientVisitOutHospital);
|
||||
|
||||
/**
|
||||
* 删除患者就诊出院记录信息
|
||||
*
|
||||
* @param id 患者就诊出院记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitOutHospitalById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊出院记录信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitOutHospitalByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.mapper.patientvisitrecord;
|
||||
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitrecord.PatientVisitRecord;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface PatientVisitRecordMapper {
|
||||
/**
|
||||
* 查询患者就诊记录基本信息
|
||||
*
|
||||
* @param id 患者就诊记录基本信息主键
|
||||
* @return 患者就诊记录基本信息
|
||||
*/
|
||||
public PatientVisitRecord selectPatientVisitRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者就诊记录基本信息列表
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 患者就诊记录基本信息集合
|
||||
*/
|
||||
public List<PatientVisitRecord> selectPatientVisitRecordList(PatientVisitRecordDto patientVisitRecord);
|
||||
|
||||
/**
|
||||
* 新增患者就诊记录基本信息
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientVisitRecord(PatientVisitRecord patientVisitRecord);
|
||||
|
||||
/**
|
||||
* 修改患者就诊记录基本信息
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientVisitRecord(PatientVisitRecord patientVisitRecord);
|
||||
|
||||
/**
|
||||
* 删除患者就诊记录基本信息
|
||||
*
|
||||
* @param id 患者就诊记录基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊记录基本信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitRecordByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.propagandainfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
|
||||
|
||||
/**
|
||||
* 宣教库管理Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface PropagandaInfoMapper {
|
||||
/**
|
||||
* 查询宣教库管理
|
||||
*
|
||||
* @param id 宣教库管理主键
|
||||
* @return 宣教库管理
|
||||
*/
|
||||
public PropagandaInfo selectPropagandaInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询宣教库管理列表
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 宣教库管理集合
|
||||
*/
|
||||
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfo propagandaInfo);
|
||||
|
||||
/**
|
||||
* 新增宣教库管理
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPropagandaInfo(PropagandaInfo propagandaInfo);
|
||||
|
||||
/**
|
||||
* 修改宣教库管理
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePropagandaInfo(PropagandaInfo propagandaInfo);
|
||||
|
||||
/**
|
||||
* 删除宣教库管理
|
||||
*
|
||||
* @param id 宣教库管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePropagandaInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除宣教库管理
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePropagandaInfoByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.propagandamaterials;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.propagandamaterials.PropagandaMaterials;
|
||||
|
||||
/**
|
||||
* 宣教素材关系Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface PropagandaMaterialsMapper {
|
||||
/**
|
||||
* 查询宣教素材关系
|
||||
*
|
||||
* @param id 宣教素材关系主键
|
||||
* @return 宣教素材关系
|
||||
*/
|
||||
public PropagandaMaterials selectPropagandaMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询宣教素材关系列表
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 宣教素材关系集合
|
||||
*/
|
||||
public List<PropagandaMaterials> selectPropagandaMaterialsList(PropagandaMaterials propagandaMaterials);
|
||||
|
||||
/**
|
||||
* 新增宣教素材关系
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPropagandaMaterials(PropagandaMaterials propagandaMaterials);
|
||||
|
||||
/**
|
||||
* 修改宣教素材关系
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePropagandaMaterials(PropagandaMaterials propagandaMaterials);
|
||||
|
||||
/**
|
||||
* 删除宣教素材关系
|
||||
*
|
||||
* @param id 宣教素材关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePropagandaMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除宣教素材关系
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePropagandaMaterialsByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.signpatientinformed;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
|
||||
|
||||
/**
|
||||
* 签约知情同意书信息Mapper接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface SignPatientInformedMapper {
|
||||
/**
|
||||
* 查询签约知情同意书信息
|
||||
*
|
||||
* @param id 签约知情同意书信息主键
|
||||
* @return 签约知情同意书信息
|
||||
*/
|
||||
public SignPatientInformed selectSignPatientInformedById(Long id);
|
||||
|
||||
/**
|
||||
* 查询签约知情同意书信息列表
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 签约知情同意书信息集合
|
||||
*/
|
||||
public List<SignPatientInformed> selectSignPatientInformedList(SignPatientInformed signPatientInformed);
|
||||
|
||||
/**
|
||||
* 新增签约知情同意书信息
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSignPatientInformed(SignPatientInformed signPatientInformed);
|
||||
|
||||
/**
|
||||
* 修改签约知情同意书信息
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSignPatientInformed(SignPatientInformed signPatientInformed);
|
||||
|
||||
/**
|
||||
* 删除签约知情同意书信息
|
||||
*
|
||||
* @param id 签约知情同意书信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientInformedById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除签约知情同意书信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientInformedByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.signpatientpackage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.signpatientpackage.SignPatientPackage;
|
||||
|
||||
/**
|
||||
* 签约患者服务包信息Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface SignPatientPackageMapper {
|
||||
/**
|
||||
* 查询签约患者服务包信息
|
||||
*
|
||||
* @param id 签约患者服务包信息主键
|
||||
* @return 签约患者服务包信息
|
||||
*/
|
||||
public SignPatientPackage selectSignPatientPackageById(Long id);
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包信息列表
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 签约患者服务包信息集合
|
||||
*/
|
||||
public List<SignPatientPackage> selectSignPatientPackageList(SignPatientPackage signPatientPackage);
|
||||
|
||||
/**
|
||||
* 新增签约患者服务包信息
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSignPatientPackage(SignPatientPackage signPatientPackage);
|
||||
|
||||
/**
|
||||
* 修改签约患者服务包信息
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSignPatientPackage(SignPatientPackage signPatientPackage);
|
||||
|
||||
/**
|
||||
* 删除签约患者服务包信息
|
||||
*
|
||||
* @param id 签约患者服务包信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientPackageById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除签约患者服务包信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientPackageByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.mapper.signpatientpackagehardware;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
|
||||
|
||||
/**
|
||||
* 签约患者服务包硬件信息Mapper接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface SignPatientPackageHardwareMapper {
|
||||
/**
|
||||
* 查询签约患者服务包硬件信息
|
||||
*
|
||||
* @param id 签约患者服务包硬件信息主键
|
||||
* @return 签约患者服务包硬件信息
|
||||
*/
|
||||
public SignPatientPackageHardware selectSignPatientPackageHardwareById(Long id);
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包硬件信息列表
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 签约患者服务包硬件信息集合
|
||||
*/
|
||||
public List<SignPatientPackageHardware> selectSignPatientPackageHardwareList(SignPatientPackageHardware signPatientPackageHardware);
|
||||
|
||||
/**
|
||||
* 新增签约患者服务包硬件信息
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSignPatientPackageHardware(SignPatientPackageHardware signPatientPackageHardware);
|
||||
|
||||
/**
|
||||
* 修改签约患者服务包硬件信息
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSignPatientPackageHardware(SignPatientPackageHardware signPatientPackageHardware);
|
||||
|
||||
/**
|
||||
* 删除签约患者服务包硬件信息
|
||||
*
|
||||
* @param id 签约患者服务包硬件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientPackageHardwareById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除签约患者服务包硬件信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientPackageHardwareByIds(Long[] ids);
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.xinelu.manage.mapper.signpatientrecord;
|
||||
|
||||
import com.xinelu.manage.domain.signpatientrecord.SignPatientRecord;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientListVo;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【sign_patient_record(签约记录表)】的数据库操作Mapper
|
||||
* @createDate 2024-02-28 15:05:17
|
||||
* @Entity com.xinelu.manage.domain.SignPatientRecord
|
||||
*/
|
||||
public interface SignPatientRecordMapper {
|
||||
|
||||
int deleteByPrimaryKey(Long id);
|
||||
|
||||
int insert(SignPatientRecord record);
|
||||
|
||||
int insertSelective(SignPatientRecord record);
|
||||
|
||||
SignPatientRecord selectByPrimaryKey(Long id);
|
||||
|
||||
int updateByPrimaryKeySelective(SignPatientRecord record);
|
||||
|
||||
int updateByPrimaryKey(SignPatientRecord record);
|
||||
|
||||
List<SignPatientListVo> selectList(SignPatientListDto signPatientRecord);
|
||||
|
||||
SignPatientInfoVo getByRecordId(Long patientSignRecordId);
|
||||
|
||||
List<SignPatientRecordVo> getByPatient(Long patientId);
|
||||
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.materialsinfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.materialsinfo.MaterialsInfo;
|
||||
|
||||
/**
|
||||
* 素材信息Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface IMaterialsInfoService {
|
||||
/**
|
||||
* 查询素材信息
|
||||
*
|
||||
* @param id 素材信息主键
|
||||
* @return 素材信息
|
||||
*/
|
||||
public MaterialsInfo selectMaterialsInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询素材信息列表
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 素材信息集合
|
||||
*/
|
||||
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfo materialsInfo);
|
||||
|
||||
/**
|
||||
* 新增素材信息
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMaterialsInfo(MaterialsInfo materialsInfo);
|
||||
|
||||
/**
|
||||
* 修改素材信息
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMaterialsInfo(MaterialsInfo materialsInfo);
|
||||
|
||||
/**
|
||||
* 批量删除素材信息
|
||||
*
|
||||
* @param ids 需要删除的素材信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMaterialsInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除素材信息信息
|
||||
*
|
||||
* @param id 素材信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMaterialsInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package com.xinelu.manage.service.materialsinfo.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.materialsinfo.MaterialsInfoMapper;
|
||||
import com.xinelu.manage.domain.materialsinfo.MaterialsInfo;
|
||||
import com.xinelu.manage.service.materialsinfo.IMaterialsInfoService;
|
||||
|
||||
/**
|
||||
* 素材信息Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Service
|
||||
public class MaterialsInfoServiceImpl implements IMaterialsInfoService {
|
||||
@Resource
|
||||
private MaterialsInfoMapper materialsInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询素材信息
|
||||
*
|
||||
* @param id 素材信息主键
|
||||
* @return 素材信息
|
||||
*/
|
||||
@Override
|
||||
public MaterialsInfo selectMaterialsInfoById(Long id) {
|
||||
return materialsInfoMapper.selectMaterialsInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询素材信息列表
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 素材信息
|
||||
*/
|
||||
@Override
|
||||
public List<MaterialsInfo> selectMaterialsInfoList(MaterialsInfo materialsInfo) {
|
||||
return materialsInfoMapper.selectMaterialsInfoList(materialsInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增素材信息
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMaterialsInfo(MaterialsInfo materialsInfo) {
|
||||
materialsInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return materialsInfoMapper.insertMaterialsInfo(materialsInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改素材信息
|
||||
*
|
||||
* @param materialsInfo 素材信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMaterialsInfo(MaterialsInfo materialsInfo) {
|
||||
materialsInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return materialsInfoMapper.updateMaterialsInfo(materialsInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除素材信息
|
||||
*
|
||||
* @param ids 需要删除的素材信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMaterialsInfoByIds(Long[] ids) {
|
||||
return materialsInfoMapper.deleteMaterialsInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除素材信息信息
|
||||
*
|
||||
* @param id 素材信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMaterialsInfoById(Long id) {
|
||||
return materialsInfoMapper.deleteMaterialsInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.service.patientblacklist;
|
||||
|
||||
import com.xinelu.manage.domain.patientblacklist.PatientBlacklist;
|
||||
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto;
|
||||
import com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者-黑明单关系Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface IPatientBlacklistService {
|
||||
/**
|
||||
* 查询患者-黑明单关系
|
||||
*
|
||||
* @param id 患者-黑明单关系主键
|
||||
* @return 患者-黑明单关系
|
||||
*/
|
||||
public PatientBlacklist selectPatientBlacklistById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者-黑明单关系列表
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 患者-黑明单关系集合
|
||||
*/
|
||||
public List<PatientBlacklistVo> selectPatientBlacklistList(PatientBlacklistDto patientBlacklist);
|
||||
|
||||
/**
|
||||
* 新增患者-黑明单关系
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientBlacklist(PatientBlacklist patientBlacklist);
|
||||
|
||||
/**
|
||||
* 修改患者-黑明单关系
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientBlacklist(PatientBlacklist patientBlacklist);
|
||||
|
||||
/**
|
||||
* 批量删除患者-黑明单关系
|
||||
*
|
||||
* @param ids 需要删除的患者-黑明单关系主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientBlacklistByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者-黑明单关系信息
|
||||
*
|
||||
* @param id 患者-黑明单关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientBlacklistById(Long id);
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package com.xinelu.manage.service.patientblacklist.impl;
|
||||
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.manage.domain.patientblacklist.PatientBlacklist;
|
||||
import com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto;
|
||||
import com.xinelu.manage.mapper.patientblacklist.PatientBlacklistMapper;
|
||||
import com.xinelu.manage.service.patientblacklist.IPatientBlacklistService;
|
||||
import com.xinelu.manage.vo.patientblacklist.PatientBlacklistVo;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 患者-黑明单关系Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Service
|
||||
public class PatientBlacklistServiceImpl implements IPatientBlacklistService {
|
||||
@Resource
|
||||
private PatientBlacklistMapper patientBlacklistMapper;
|
||||
|
||||
/**
|
||||
* 查询患者-黑明单关系
|
||||
*
|
||||
* @param id 患者-黑明单关系主键
|
||||
* @return 患者-黑明单关系
|
||||
*/
|
||||
@Override
|
||||
public PatientBlacklist selectPatientBlacklistById(Long id) {
|
||||
return patientBlacklistMapper.selectPatientBlacklistById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者-黑明单关系列表
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 患者-黑明单关系
|
||||
*/
|
||||
@Override
|
||||
public List<PatientBlacklistVo> selectPatientBlacklistList(PatientBlacklistDto patientBlacklist) {
|
||||
return patientBlacklistMapper.selectPatientBlacklistList(patientBlacklist);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者-黑明单关系
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientBlacklist(PatientBlacklist patientBlacklist) {
|
||||
patientBlacklist.setDelFlag(0);
|
||||
patientBlacklist.setCreateTime(DateUtils.getNowDate());
|
||||
return patientBlacklistMapper.insertPatientBlacklist(patientBlacklist);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者-黑明单关系
|
||||
*
|
||||
* @param patientBlacklist 患者-黑明单关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientBlacklist(PatientBlacklist patientBlacklist) {
|
||||
patientBlacklist.setUpdateTime(DateUtils.getNowDate());
|
||||
return patientBlacklistMapper.updatePatientBlacklist(patientBlacklist);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者-黑明单关系
|
||||
*
|
||||
* @param ids 需要删除的患者-黑明单关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientBlacklistByIds(Long[] ids) {
|
||||
return patientBlacklistMapper.deletePatientBlacklistByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者-黑明单关系信息
|
||||
*
|
||||
* @param id 患者-黑明单关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientBlacklistById(Long id) {
|
||||
PatientBlacklist patientBlacklist = new PatientBlacklist();
|
||||
patientBlacklist.setId(id);
|
||||
patientBlacklist.setDelFlag(1);
|
||||
patientBlacklist.setUpdateTime(new Date());
|
||||
return patientBlacklistMapper.updatePatientBlacklist(patientBlacklist);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.patientinfo;
|
||||
|
||||
import com.xinelu.manage.domain.patientinfo.PatientInfo;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者信息Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface IPatientInfoService {
|
||||
/**
|
||||
* 查询患者信息
|
||||
*
|
||||
* @param id 患者信息主键
|
||||
* @return 患者信息
|
||||
*/
|
||||
public PatientInfo selectPatientInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者信息列表
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 患者信息集合
|
||||
*/
|
||||
public List<PatientInfo> selectPatientInfoList(PatientInfoDto patientInfo);
|
||||
|
||||
/**
|
||||
* 新增患者信息
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientInfo(PatientInfo patientInfo);
|
||||
|
||||
/**
|
||||
* 修改患者信息
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientInfo(PatientInfo patientInfo);
|
||||
|
||||
/**
|
||||
* 批量删除患者信息
|
||||
*
|
||||
* @param ids 需要删除的患者信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者信息信息
|
||||
*
|
||||
* @param id 患者信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,92 @@
|
||||
package com.xinelu.manage.service.patientinfo.impl;
|
||||
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.manage.domain.patientinfo.PatientInfo;
|
||||
import com.xinelu.manage.dto.patientinfo.PatientInfoDto;
|
||||
import com.xinelu.manage.mapper.patientinfo.PatientInfoMapper;
|
||||
import com.xinelu.manage.service.patientinfo.IPatientInfoService;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 患者信息Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Service
|
||||
public class PatientInfoServiceImpl implements IPatientInfoService {
|
||||
|
||||
@Resource
|
||||
private PatientInfoMapper patientInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询患者信息
|
||||
*
|
||||
* @param id 患者信息主键
|
||||
* @return 患者信息
|
||||
*/
|
||||
@Override
|
||||
public PatientInfo selectPatientInfoById(Long id) {
|
||||
return patientInfoMapper.selectPatientInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者信息列表
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 患者信息
|
||||
*/
|
||||
@Override
|
||||
public List<PatientInfo> selectPatientInfoList(PatientInfoDto patientInfo) {
|
||||
return patientInfoMapper.selectPatientInfoList(patientInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者信息
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientInfo(PatientInfo patientInfo) {
|
||||
patientInfo.setCreateTime(DateUtils.getNowDate());
|
||||
patientInfo.setDelFlag(0);
|
||||
return patientInfoMapper.insertPatientInfo(patientInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者信息
|
||||
*
|
||||
* @param patientInfo 患者信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientInfo(PatientInfo patientInfo) {
|
||||
patientInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return patientInfoMapper.updatePatientInfo(patientInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者信息
|
||||
*
|
||||
* @param ids 需要删除的患者信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientInfoByIds(Long[] ids) {
|
||||
return patientInfoMapper.deletePatientInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者信息信息
|
||||
*
|
||||
* @param id 患者信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientInfoById(Long id) {
|
||||
return patientInfoMapper.deletePatientInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.patientpropaganda;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientpropaganda.PatientPropaganda;
|
||||
|
||||
/**
|
||||
* 患者宣教信息Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface IPatientPropagandaService {
|
||||
/**
|
||||
* 查询患者宣教信息
|
||||
*
|
||||
* @param id 患者宣教信息主键
|
||||
* @return 患者宣教信息
|
||||
*/
|
||||
public PatientPropaganda selectPatientPropagandaById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者宣教信息列表
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 患者宣教信息集合
|
||||
*/
|
||||
public List<PatientPropaganda> selectPatientPropagandaList(PatientPropaganda patientPropaganda);
|
||||
|
||||
/**
|
||||
* 新增患者宣教信息
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientPropaganda(PatientPropaganda patientPropaganda);
|
||||
|
||||
/**
|
||||
* 修改患者宣教信息
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientPropaganda(PatientPropaganda patientPropaganda);
|
||||
|
||||
/**
|
||||
* 批量删除患者宣教信息
|
||||
*
|
||||
* @param ids 需要删除的患者宣教信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientPropagandaByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者宣教信息信息
|
||||
*
|
||||
* @param id 患者宣教信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientPropagandaById(Long id);
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package com.xinelu.manage.service.patientpropaganda.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.patientpropaganda.PatientPropagandaMapper;
|
||||
import com.xinelu.manage.domain.patientpropaganda.PatientPropaganda;
|
||||
import com.xinelu.manage.service.patientpropaganda.IPatientPropagandaService;
|
||||
|
||||
/**
|
||||
* 患者宣教信息Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Service
|
||||
public class PatientPropagandaServiceImpl implements IPatientPropagandaService {
|
||||
@Resource
|
||||
private PatientPropagandaMapper patientPropagandaMapper;
|
||||
|
||||
/**
|
||||
* 查询患者宣教信息
|
||||
*
|
||||
* @param id 患者宣教信息主键
|
||||
* @return 患者宣教信息
|
||||
*/
|
||||
@Override
|
||||
public PatientPropaganda selectPatientPropagandaById(Long id) {
|
||||
return patientPropagandaMapper.selectPatientPropagandaById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者宣教信息列表
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 患者宣教信息
|
||||
*/
|
||||
@Override
|
||||
public List<PatientPropaganda> selectPatientPropagandaList(PatientPropaganda patientPropaganda) {
|
||||
return patientPropagandaMapper.selectPatientPropagandaList(patientPropaganda);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者宣教信息
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientPropaganda(PatientPropaganda patientPropaganda) {
|
||||
patientPropaganda.setCreateTime(DateUtils.getNowDate());
|
||||
return patientPropagandaMapper.insertPatientPropaganda(patientPropaganda);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者宣教信息
|
||||
*
|
||||
* @param patientPropaganda 患者宣教信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientPropaganda(PatientPropaganda patientPropaganda) {
|
||||
patientPropaganda.setUpdateTime(DateUtils.getNowDate());
|
||||
return patientPropagandaMapper.updatePatientPropaganda(patientPropaganda);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者宣教信息
|
||||
*
|
||||
* @param ids 需要删除的患者宣教信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientPropagandaByIds(Long[] ids) {
|
||||
return patientPropagandaMapper.deletePatientPropagandaByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者宣教信息信息
|
||||
*
|
||||
* @param id 患者宣教信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientPropagandaById(Long id) {
|
||||
return patientPropagandaMapper.deletePatientPropagandaById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.xinelu.manage.service.patientvisitinhospital;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitinhospital.PatientVisitInHospital;
|
||||
|
||||
/**
|
||||
* 患者就诊入院记录信息Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface IPatientVisitInHospitalService {
|
||||
/**
|
||||
* 查询患者就诊入院记录信息
|
||||
*
|
||||
* @param id 患者就诊入院记录信息主键
|
||||
* @return 患者就诊入院记录信息
|
||||
*/
|
||||
public PatientVisitInHospital selectPatientVisitInHospitalById(Long id);
|
||||
|
||||
/**
|
||||
* 根据患者就诊信息查询患者就诊入院记录信息
|
||||
*
|
||||
* @param patientVisitRecordId 患者就诊记录信息主键
|
||||
* @return 患者就诊入院记录信息
|
||||
*/
|
||||
PatientVisitInHospital getByVisitRecord(Long patientVisitRecordId);
|
||||
|
||||
/**
|
||||
* 查询患者就诊入院记录信息列表
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 患者就诊入院记录信息集合
|
||||
*/
|
||||
public List<PatientVisitInHospital> selectPatientVisitInHospitalList(PatientVisitInHospital patientVisitInHospital);
|
||||
|
||||
/**
|
||||
* 新增患者就诊入院记录信息
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientVisitInHospital(PatientVisitInHospital patientVisitInHospital);
|
||||
|
||||
/**
|
||||
* 修改患者就诊入院记录信息
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientVisitInHospital(PatientVisitInHospital patientVisitInHospital);
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊入院记录信息
|
||||
*
|
||||
* @param ids 需要删除的患者就诊入院记录信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitInHospitalByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者就诊入院记录信息信息
|
||||
*
|
||||
* @param id 患者就诊入院记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitInHospitalById(Long id);
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package com.xinelu.manage.service.patientvisitinhospital.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.patientvisitinhospital.PatientVisitInHospitalMapper;
|
||||
import com.xinelu.manage.domain.patientvisitinhospital.PatientVisitInHospital;
|
||||
import com.xinelu.manage.service.patientvisitinhospital.IPatientVisitInHospitalService;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* 患者就诊入院记录信息Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Service
|
||||
public class PatientVisitInHospitalServiceImpl implements IPatientVisitInHospitalService {
|
||||
@Resource
|
||||
private PatientVisitInHospitalMapper patientVisitInHospitalMapper;
|
||||
|
||||
/**
|
||||
* 查询患者就诊入院记录信息
|
||||
*
|
||||
* @param id 患者就诊入院记录信息主键
|
||||
* @return 患者就诊入院记录信息
|
||||
*/
|
||||
@Override
|
||||
public PatientVisitInHospital selectPatientVisitInHospitalById(Long id) {
|
||||
return patientVisitInHospitalMapper.selectPatientVisitInHospitalById(id);
|
||||
}
|
||||
|
||||
@Override public PatientVisitInHospital getByVisitRecord(Long patientVisitRecordId) {
|
||||
PatientVisitInHospital patientVisitInHospital = new PatientVisitInHospital();
|
||||
patientVisitInHospital.setPatientVisitRecordId(patientVisitRecordId);
|
||||
List<PatientVisitInHospital> list = patientVisitInHospitalMapper.selectPatientVisitInHospitalList(patientVisitInHospital);
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
return null;
|
||||
}
|
||||
return list.get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者就诊入院记录信息列表
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 患者就诊入院记录信息
|
||||
*/
|
||||
@Override
|
||||
public List<PatientVisitInHospital> selectPatientVisitInHospitalList(PatientVisitInHospital patientVisitInHospital) {
|
||||
return patientVisitInHospitalMapper.selectPatientVisitInHospitalList(patientVisitInHospital);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者就诊入院记录信息
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientVisitInHospital(PatientVisitInHospital patientVisitInHospital) {
|
||||
patientVisitInHospital.setCreateTime(DateUtils.getNowDate());
|
||||
return patientVisitInHospitalMapper.insertPatientVisitInHospital(patientVisitInHospital);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者就诊入院记录信息
|
||||
*
|
||||
* @param patientVisitInHospital 患者就诊入院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientVisitInHospital(PatientVisitInHospital patientVisitInHospital) {
|
||||
patientVisitInHospital.setUpdateTime(DateUtils.getNowDate());
|
||||
return patientVisitInHospitalMapper.updatePatientVisitInHospital(patientVisitInHospital);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊入院记录信息
|
||||
*
|
||||
* @param ids 需要删除的患者就诊入院记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientVisitInHospitalByIds(Long[] ids) {
|
||||
return patientVisitInHospitalMapper.deletePatientVisitInHospitalByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者就诊入院记录信息信息
|
||||
*
|
||||
* @param id 患者就诊入院记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientVisitInHospitalById(Long id) {
|
||||
return patientVisitInHospitalMapper.deletePatientVisitInHospitalById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package com.xinelu.manage.service.patientvisitoperation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitoperation.PatientVisitOperation;
|
||||
|
||||
/**
|
||||
* 患者就诊手术记录信息Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface IPatientVisitOperationService {
|
||||
/**
|
||||
* 查询患者就诊手术记录信息
|
||||
*
|
||||
* @param id 患者就诊手术记录信息主键
|
||||
* @return 患者就诊手术记录信息
|
||||
*/
|
||||
public PatientVisitOperation selectPatientVisitOperationById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者就诊手术记录信息列表
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 患者就诊手术记录信息集合
|
||||
*/
|
||||
public List<PatientVisitOperation> selectPatientVisitOperationList(PatientVisitOperation patientVisitOperation);
|
||||
|
||||
/**
|
||||
* 根据患者就诊记录查询患者就诊手术记录信息
|
||||
*
|
||||
* @param patientVisitRecordId 患者就诊记录信息主键
|
||||
* @return 患者就诊手术记录信息
|
||||
*/
|
||||
PatientVisitOperation getByVisitRecord(Long patientVisitRecordId);
|
||||
|
||||
/**
|
||||
* 新增患者就诊手术记录信息
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientVisitOperation(PatientVisitOperation patientVisitOperation);
|
||||
|
||||
/**
|
||||
* 修改患者就诊手术记录信息
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientVisitOperation(PatientVisitOperation patientVisitOperation);
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊手术记录信息
|
||||
*
|
||||
* @param ids 需要删除的患者就诊手术记录信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitOperationByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者就诊手术记录信息信息
|
||||
*
|
||||
* @param id 患者就诊手术记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitOperationById(Long id);
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package com.xinelu.manage.service.patientvisitoperation.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.patientvisitoperation.PatientVisitOperationMapper;
|
||||
import com.xinelu.manage.domain.patientvisitoperation.PatientVisitOperation;
|
||||
import com.xinelu.manage.service.patientvisitoperation.IPatientVisitOperationService;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* 患者就诊手术记录信息Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Service
|
||||
public class PatientVisitOperationServiceImpl implements IPatientVisitOperationService {
|
||||
@Resource
|
||||
private PatientVisitOperationMapper patientVisitOperationMapper;
|
||||
|
||||
/**
|
||||
* 查询患者就诊手术记录信息
|
||||
*
|
||||
* @param id 患者就诊手术记录信息主键
|
||||
* @return 患者就诊手术记录信息
|
||||
*/
|
||||
@Override
|
||||
public PatientVisitOperation selectPatientVisitOperationById(Long id) {
|
||||
return patientVisitOperationMapper.selectPatientVisitOperationById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者就诊手术记录信息列表
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 患者就诊手术记录信息
|
||||
*/
|
||||
@Override
|
||||
public List<PatientVisitOperation> selectPatientVisitOperationList(PatientVisitOperation patientVisitOperation) {
|
||||
return patientVisitOperationMapper.selectPatientVisitOperationList(patientVisitOperation);
|
||||
}
|
||||
|
||||
@Override public PatientVisitOperation getByVisitRecord(Long patientVisitRecordId) {
|
||||
PatientVisitOperation patientVisitOperation = new PatientVisitOperation();
|
||||
patientVisitOperation.setPatientVisitRecordId(patientVisitRecordId);
|
||||
List<PatientVisitOperation> operations = patientVisitOperationMapper.selectPatientVisitOperationList(patientVisitOperation);
|
||||
if (CollectionUtils.isEmpty(operations)) {
|
||||
return null;
|
||||
}
|
||||
return operations.get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者就诊手术记录信息
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientVisitOperation(PatientVisitOperation patientVisitOperation) {
|
||||
patientVisitOperation.setCreateTime(DateUtils.getNowDate());
|
||||
return patientVisitOperationMapper.insertPatientVisitOperation(patientVisitOperation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者就诊手术记录信息
|
||||
*
|
||||
* @param patientVisitOperation 患者就诊手术记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientVisitOperation(PatientVisitOperation patientVisitOperation) {
|
||||
patientVisitOperation.setUpdateTime(DateUtils.getNowDate());
|
||||
return patientVisitOperationMapper.updatePatientVisitOperation(patientVisitOperation);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊手术记录信息
|
||||
*
|
||||
* @param ids 需要删除的患者就诊手术记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientVisitOperationByIds(Long[] ids) {
|
||||
return patientVisitOperationMapper.deletePatientVisitOperationByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者就诊手术记录信息信息
|
||||
*
|
||||
* @param id 患者就诊手术记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientVisitOperationById(Long id) {
|
||||
return patientVisitOperationMapper.deletePatientVisitOperationById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package com.xinelu.manage.service.patientvisitouthospital;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitouthospital.PatientVisitOutHospital;
|
||||
|
||||
/**
|
||||
* 患者就诊出院记录信息Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface IPatientVisitOutHospitalService {
|
||||
/**
|
||||
* 查询患者就诊出院记录信息
|
||||
*
|
||||
* @param id 患者就诊出院记录信息主键
|
||||
* @return 患者就诊出院记录信息
|
||||
*/
|
||||
public PatientVisitOutHospital selectPatientVisitOutHospitalById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者就诊出院记录信息列表
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 患者就诊出院记录信息集合
|
||||
*/
|
||||
public List<PatientVisitOutHospital> selectPatientVisitOutHospitalList(PatientVisitOutHospital patientVisitOutHospital);
|
||||
|
||||
PatientVisitOutHospital getByVisitRecord(Long patientVisitRecordId);
|
||||
|
||||
/**
|
||||
* 新增患者就诊出院记录信息
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientVisitOutHospital(PatientVisitOutHospital patientVisitOutHospital);
|
||||
|
||||
/**
|
||||
* 修改患者就诊出院记录信息
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientVisitOutHospital(PatientVisitOutHospital patientVisitOutHospital);
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊出院记录信息
|
||||
*
|
||||
* @param ids 需要删除的患者就诊出院记录信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitOutHospitalByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者就诊出院记录信息信息
|
||||
*
|
||||
* @param id 患者就诊出院记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitOutHospitalById(Long id);
|
||||
}
|
||||
@ -0,0 +1,100 @@
|
||||
package com.xinelu.manage.service.patientvisitouthospital.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.patientvisitouthospital.PatientVisitOutHospitalMapper;
|
||||
import com.xinelu.manage.domain.patientvisitouthospital.PatientVisitOutHospital;
|
||||
import com.xinelu.manage.service.patientvisitouthospital.IPatientVisitOutHospitalService;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* 患者就诊出院记录信息Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Service
|
||||
public class PatientVisitOutHospitalServiceImpl implements IPatientVisitOutHospitalService {
|
||||
@Resource
|
||||
private PatientVisitOutHospitalMapper patientVisitOutHospitalMapper;
|
||||
|
||||
/**
|
||||
* 查询患者就诊出院记录信息
|
||||
*
|
||||
* @param id 患者就诊出院记录信息主键
|
||||
* @return 患者就诊出院记录信息
|
||||
*/
|
||||
@Override
|
||||
public PatientVisitOutHospital selectPatientVisitOutHospitalById(Long id) {
|
||||
return patientVisitOutHospitalMapper.selectPatientVisitOutHospitalById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者就诊出院记录信息列表
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 患者就诊出院记录信息
|
||||
*/
|
||||
@Override
|
||||
public List<PatientVisitOutHospital> selectPatientVisitOutHospitalList(PatientVisitOutHospital patientVisitOutHospital) {
|
||||
return patientVisitOutHospitalMapper.selectPatientVisitOutHospitalList(patientVisitOutHospital);
|
||||
}
|
||||
|
||||
@Override public PatientVisitOutHospital getByVisitRecord(Long patientVisitRecordId) {
|
||||
PatientVisitOutHospital patientVisitOutHospital = new PatientVisitOutHospital();
|
||||
patientVisitOutHospital.setPatientVisitRecordId(patientVisitRecordId);
|
||||
List<PatientVisitOutHospital> list = patientVisitOutHospitalMapper.selectPatientVisitOutHospitalList(patientVisitOutHospital);
|
||||
if (CollectionUtils.isEmpty(list)) {
|
||||
return null;
|
||||
}
|
||||
return list.get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者就诊出院记录信息
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientVisitOutHospital(PatientVisitOutHospital patientVisitOutHospital) {
|
||||
patientVisitOutHospital.setCreateTime(DateUtils.getNowDate());
|
||||
return patientVisitOutHospitalMapper.insertPatientVisitOutHospital(patientVisitOutHospital);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者就诊出院记录信息
|
||||
*
|
||||
* @param patientVisitOutHospital 患者就诊出院记录信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientVisitOutHospital(PatientVisitOutHospital patientVisitOutHospital) {
|
||||
patientVisitOutHospital.setUpdateTime(DateUtils.getNowDate());
|
||||
return patientVisitOutHospitalMapper.updatePatientVisitOutHospital(patientVisitOutHospital);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊出院记录信息
|
||||
*
|
||||
* @param ids 需要删除的患者就诊出院记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientVisitOutHospitalByIds(Long[] ids) {
|
||||
return patientVisitOutHospitalMapper.deletePatientVisitOutHospitalByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者就诊出院记录信息信息
|
||||
*
|
||||
* @param id 患者就诊出院记录信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientVisitOutHospitalById(Long id) {
|
||||
return patientVisitOutHospitalMapper.deletePatientVisitOutHospitalById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package com.xinelu.manage.service.patientvisitrecord;
|
||||
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.patientvisitrecord.PatientVisitRecord;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
public interface IPatientVisitRecordService {
|
||||
/**
|
||||
* 查询患者就诊记录基本信息
|
||||
*
|
||||
* @param id 患者就诊记录基本信息主键
|
||||
* @return 患者就诊记录基本信息
|
||||
*/
|
||||
public PatientVisitRecord selectPatientVisitRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询患者就诊记录基本信息列表
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 患者就诊记录基本信息集合
|
||||
*/
|
||||
public List<PatientVisitRecord> selectPatientVisitRecordList(PatientVisitRecordDto patientVisitRecord);
|
||||
|
||||
/**
|
||||
* 新增患者就诊记录基本信息
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPatientVisitRecord(PatientVisitRecord patientVisitRecord);
|
||||
|
||||
/**
|
||||
* 修改患者就诊记录基本信息
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePatientVisitRecord(PatientVisitRecord patientVisitRecord);
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊记录基本信息
|
||||
*
|
||||
* @param ids 需要删除的患者就诊记录基本信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除患者就诊记录基本信息信息
|
||||
*
|
||||
* @param id 患者就诊记录基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePatientVisitRecordById(Long id);
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package com.xinelu.manage.service.patientvisitrecord.impl;
|
||||
|
||||
import com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto;
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.patientvisitrecord.PatientVisitRecordMapper;
|
||||
import com.xinelu.manage.domain.patientvisitrecord.PatientVisitRecord;
|
||||
import com.xinelu.manage.service.patientvisitrecord.IPatientVisitRecordService;
|
||||
|
||||
/**
|
||||
* 患者就诊记录基本信息Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-26
|
||||
*/
|
||||
@Service
|
||||
public class PatientVisitRecordServiceImpl implements IPatientVisitRecordService {
|
||||
@Resource
|
||||
private PatientVisitRecordMapper patientVisitRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询患者就诊记录基本信息
|
||||
*
|
||||
* @param id 患者就诊记录基本信息主键
|
||||
* @return 患者就诊记录基本信息
|
||||
*/
|
||||
@Override
|
||||
public PatientVisitRecord selectPatientVisitRecordById(Long id) {
|
||||
return patientVisitRecordMapper.selectPatientVisitRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询患者就诊记录基本信息列表
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 患者就诊记录基本信息
|
||||
*/
|
||||
@Override
|
||||
public List<PatientVisitRecord> selectPatientVisitRecordList(PatientVisitRecordDto patientVisitRecord) {
|
||||
return patientVisitRecordMapper.selectPatientVisitRecordList(patientVisitRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增患者就诊记录基本信息
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPatientVisitRecord(PatientVisitRecord patientVisitRecord) {
|
||||
patientVisitRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return patientVisitRecordMapper.insertPatientVisitRecord(patientVisitRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改患者就诊记录基本信息
|
||||
*
|
||||
* @param patientVisitRecord 患者就诊记录基本信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePatientVisitRecord(PatientVisitRecord patientVisitRecord) {
|
||||
patientVisitRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return patientVisitRecordMapper.updatePatientVisitRecord(patientVisitRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除患者就诊记录基本信息
|
||||
*
|
||||
* @param ids 需要删除的患者就诊记录基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientVisitRecordByIds(Long[] ids) {
|
||||
return patientVisitRecordMapper.deletePatientVisitRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除患者就诊记录基本信息信息
|
||||
*
|
||||
* @param id 患者就诊记录基本信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePatientVisitRecordById(Long id) {
|
||||
return patientVisitRecordMapper.deletePatientVisitRecordById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.propagandainfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
|
||||
|
||||
/**
|
||||
* 宣教库管理Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface IPropagandaInfoService {
|
||||
/**
|
||||
* 查询宣教库管理
|
||||
*
|
||||
* @param id 宣教库管理主键
|
||||
* @return 宣教库管理
|
||||
*/
|
||||
public PropagandaInfo selectPropagandaInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询宣教库管理列表
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 宣教库管理集合
|
||||
*/
|
||||
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfo propagandaInfo);
|
||||
|
||||
/**
|
||||
* 新增宣教库管理
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPropagandaInfo(PropagandaInfo propagandaInfo);
|
||||
|
||||
/**
|
||||
* 修改宣教库管理
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePropagandaInfo(PropagandaInfo propagandaInfo);
|
||||
|
||||
/**
|
||||
* 批量删除宣教库管理
|
||||
*
|
||||
* @param ids 需要删除的宣教库管理主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePropagandaInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除宣教库管理信息
|
||||
*
|
||||
* @param id 宣教库管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePropagandaInfoById(Long id);
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package com.xinelu.manage.service.propagandainfo.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.propagandainfo.PropagandaInfoMapper;
|
||||
import com.xinelu.manage.domain.propagandainfo.PropagandaInfo;
|
||||
import com.xinelu.manage.service.propagandainfo.IPropagandaInfoService;
|
||||
|
||||
/**
|
||||
* 宣教库管理Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Service
|
||||
public class PropagandaInfoServiceImpl implements IPropagandaInfoService {
|
||||
@Resource
|
||||
private PropagandaInfoMapper propagandaInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询宣教库管理
|
||||
*
|
||||
* @param id 宣教库管理主键
|
||||
* @return 宣教库管理
|
||||
*/
|
||||
@Override
|
||||
public PropagandaInfo selectPropagandaInfoById(Long id) {
|
||||
return propagandaInfoMapper.selectPropagandaInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询宣教库管理列表
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 宣教库管理
|
||||
*/
|
||||
@Override
|
||||
public List<PropagandaInfo> selectPropagandaInfoList(PropagandaInfo propagandaInfo) {
|
||||
return propagandaInfoMapper.selectPropagandaInfoList(propagandaInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增宣教库管理
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPropagandaInfo(PropagandaInfo propagandaInfo) {
|
||||
propagandaInfo.setCreateTime(DateUtils.getNowDate());
|
||||
return propagandaInfoMapper.insertPropagandaInfo(propagandaInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改宣教库管理
|
||||
*
|
||||
* @param propagandaInfo 宣教库管理
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePropagandaInfo(PropagandaInfo propagandaInfo) {
|
||||
propagandaInfo.setUpdateTime(DateUtils.getNowDate());
|
||||
return propagandaInfoMapper.updatePropagandaInfo(propagandaInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除宣教库管理
|
||||
*
|
||||
* @param ids 需要删除的宣教库管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePropagandaInfoByIds(Long[] ids) {
|
||||
return propagandaInfoMapper.deletePropagandaInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除宣教库管理信息
|
||||
*
|
||||
* @param id 宣教库管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePropagandaInfoById(Long id) {
|
||||
return propagandaInfoMapper.deletePropagandaInfoById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.propagandamaterials;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.propagandamaterials.PropagandaMaterials;
|
||||
|
||||
/**
|
||||
* 宣教素材关系Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface IPropagandaMaterialsService {
|
||||
/**
|
||||
* 查询宣教素材关系
|
||||
*
|
||||
* @param id 宣教素材关系主键
|
||||
* @return 宣教素材关系
|
||||
*/
|
||||
public PropagandaMaterials selectPropagandaMaterialsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询宣教素材关系列表
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 宣教素材关系集合
|
||||
*/
|
||||
public List<PropagandaMaterials> selectPropagandaMaterialsList(PropagandaMaterials propagandaMaterials);
|
||||
|
||||
/**
|
||||
* 新增宣教素材关系
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPropagandaMaterials(PropagandaMaterials propagandaMaterials);
|
||||
|
||||
/**
|
||||
* 修改宣教素材关系
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePropagandaMaterials(PropagandaMaterials propagandaMaterials);
|
||||
|
||||
/**
|
||||
* 批量删除宣教素材关系
|
||||
*
|
||||
* @param ids 需要删除的宣教素材关系主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePropagandaMaterialsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除宣教素材关系信息
|
||||
*
|
||||
* @param id 宣教素材关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePropagandaMaterialsById(Long id);
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package com.xinelu.manage.service.propagandamaterials.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.propagandamaterials.PropagandaMaterialsMapper;
|
||||
import com.xinelu.manage.domain.propagandamaterials.PropagandaMaterials;
|
||||
import com.xinelu.manage.service.propagandamaterials.IPropagandaMaterialsService;
|
||||
|
||||
/**
|
||||
* 宣教素材关系Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Service
|
||||
public class PropagandaMaterialsServiceImpl implements IPropagandaMaterialsService {
|
||||
@Resource
|
||||
private PropagandaMaterialsMapper propagandaMaterialsMapper;
|
||||
|
||||
/**
|
||||
* 查询宣教素材关系
|
||||
*
|
||||
* @param id 宣教素材关系主键
|
||||
* @return 宣教素材关系
|
||||
*/
|
||||
@Override
|
||||
public PropagandaMaterials selectPropagandaMaterialsById(Long id) {
|
||||
return propagandaMaterialsMapper.selectPropagandaMaterialsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询宣教素材关系列表
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 宣教素材关系
|
||||
*/
|
||||
@Override
|
||||
public List<PropagandaMaterials> selectPropagandaMaterialsList(PropagandaMaterials propagandaMaterials) {
|
||||
return propagandaMaterialsMapper.selectPropagandaMaterialsList(propagandaMaterials);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增宣教素材关系
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPropagandaMaterials(PropagandaMaterials propagandaMaterials) {
|
||||
propagandaMaterials.setCreateTime(DateUtils.getNowDate());
|
||||
return propagandaMaterialsMapper.insertPropagandaMaterials(propagandaMaterials);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改宣教素材关系
|
||||
*
|
||||
* @param propagandaMaterials 宣教素材关系
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePropagandaMaterials(PropagandaMaterials propagandaMaterials) {
|
||||
propagandaMaterials.setUpdateTime(DateUtils.getNowDate());
|
||||
return propagandaMaterialsMapper.updatePropagandaMaterials(propagandaMaterials);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除宣教素材关系
|
||||
*
|
||||
* @param ids 需要删除的宣教素材关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePropagandaMaterialsByIds(Long[] ids) {
|
||||
return propagandaMaterialsMapper.deletePropagandaMaterialsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除宣教素材关系信息
|
||||
*
|
||||
* @param id 宣教素材关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePropagandaMaterialsById(Long id) {
|
||||
return propagandaMaterialsMapper.deletePropagandaMaterialsById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package com.xinelu.manage.service.signpatientinformed;
|
||||
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.exception.file.InvalidExtensionException;
|
||||
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* 签约知情同意书信息Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface ISignPatientInformedService {
|
||||
/**
|
||||
* 查询签约知情同意书信息
|
||||
*
|
||||
* @param id 签约知情同意书信息主键
|
||||
* @return 签约知情同意书信息
|
||||
*/
|
||||
public SignPatientInformed selectSignPatientInformedById(Long id);
|
||||
|
||||
/**
|
||||
* 查询签约知情同意书信息列表
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 签约知情同意书信息集合
|
||||
*/
|
||||
public List<SignPatientInformed> selectSignPatientInformedList(SignPatientInformed signPatientInformed);
|
||||
|
||||
/**
|
||||
* 新增签约知情同意书信息
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSignPatientInformed(SignPatientInformed signPatientInformed);
|
||||
|
||||
/**
|
||||
* 修改签约知情同意书信息
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSignPatientInformed(SignPatientInformed signPatientInformed);
|
||||
|
||||
/**
|
||||
* 批量删除签约知情同意书信息
|
||||
*
|
||||
* @param ids 需要删除的签约知情同意书信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientInformedByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除签约知情同意书信息信息
|
||||
*
|
||||
* @param id 签约知情同意书信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientInformedById(Long id);
|
||||
|
||||
AjaxResult uploadFile(MultipartFile multipartFile) throws IOException, InvalidExtensionException;
|
||||
|
||||
}
|
||||
@ -0,0 +1,116 @@
|
||||
package com.xinelu.manage.service.signpatientinformed.impl;
|
||||
|
||||
import com.xinelu.common.config.SystemBusinessConfig;
|
||||
import com.xinelu.common.core.domain.AjaxResult;
|
||||
import com.xinelu.common.exception.ServiceException;
|
||||
import com.xinelu.common.exception.file.InvalidExtensionException;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.common.utils.file.FileUploadUtils;
|
||||
import com.xinelu.common.utils.file.MimeTypeUtils;
|
||||
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
|
||||
import com.xinelu.manage.mapper.signpatientinformed.SignPatientInformedMapper;
|
||||
import com.xinelu.manage.service.signpatientinformed.ISignPatientInformedService;
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
* 签约知情同意书信息Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Service
|
||||
public class SignPatientInformedServiceImpl implements ISignPatientInformedService {
|
||||
@Resource
|
||||
private SignPatientInformedMapper signPatientInformedMapper;
|
||||
@Resource
|
||||
private SystemBusinessConfig systemBusinessConfig;
|
||||
|
||||
/**
|
||||
* 查询签约知情同意书信息
|
||||
*
|
||||
* @param id 签约知情同意书信息主键
|
||||
* @return 签约知情同意书信息
|
||||
*/
|
||||
@Override
|
||||
public SignPatientInformed selectSignPatientInformedById(Long id) {
|
||||
return signPatientInformedMapper.selectSignPatientInformedById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询签约知情同意书信息列表
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 签约知情同意书信息
|
||||
*/
|
||||
@Override
|
||||
public List<SignPatientInformed> selectSignPatientInformedList(SignPatientInformed signPatientInformed) {
|
||||
return signPatientInformedMapper.selectSignPatientInformedList(signPatientInformed);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增签约知情同意书信息
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSignPatientInformed(SignPatientInformed signPatientInformed) {
|
||||
signPatientInformed.setCreateTime(DateUtils.getNowDate());
|
||||
return signPatientInformedMapper.insertSignPatientInformed(signPatientInformed);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改签约知情同意书信息
|
||||
*
|
||||
* @param signPatientInformed 签约知情同意书信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSignPatientInformed(SignPatientInformed signPatientInformed) {
|
||||
signPatientInformed.setUpdateTime(DateUtils.getNowDate());
|
||||
return signPatientInformedMapper.updateSignPatientInformed(signPatientInformed);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除签约知情同意书信息
|
||||
*
|
||||
* @param ids 需要删除的签约知情同意书信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSignPatientInformedByIds(Long[] ids) {
|
||||
return signPatientInformedMapper.deleteSignPatientInformedByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除签约知情同意书信息信息
|
||||
*
|
||||
* @param id 签约知情同意书信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSignPatientInformedById(Long id) {
|
||||
return signPatientInformedMapper.deleteSignPatientInformedById(id);
|
||||
}
|
||||
|
||||
@Override public AjaxResult uploadFile(MultipartFile multipartFile) throws IOException, InvalidExtensionException {
|
||||
//获取不同的文件路径
|
||||
String uploadPathUrl = SystemBusinessConfig.getProfile() + systemBusinessConfig.getSignInformedFileUrl();
|
||||
if (StringUtils.isBlank(uploadPathUrl)) {
|
||||
return AjaxResult.success();
|
||||
}
|
||||
//上传
|
||||
String pictureName = FileUploadUtils.uploadSystemBusinessPath(uploadPathUrl, multipartFile, MimeTypeUtils.DEFAULT_ALLOWED_EXTENSION);
|
||||
if (StringUtils.isBlank(pictureName)) {
|
||||
throw new ServiceException("文件上传失败,请联系管理员!");
|
||||
}
|
||||
AjaxResult ajax = AjaxResult.success("上传成功!");
|
||||
ajax.put("fileUrl", pictureName);
|
||||
return ajax;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.signpatientpackage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.signpatientpackage.SignPatientPackage;
|
||||
|
||||
/**
|
||||
* 签约患者服务包信息Service接口
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface ISignPatientPackageService {
|
||||
/**
|
||||
* 查询签约患者服务包信息
|
||||
*
|
||||
* @param id 签约患者服务包信息主键
|
||||
* @return 签约患者服务包信息
|
||||
*/
|
||||
public SignPatientPackage selectSignPatientPackageById(Long id);
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包信息列表
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 签约患者服务包信息集合
|
||||
*/
|
||||
public List<SignPatientPackage> selectSignPatientPackageList(SignPatientPackage signPatientPackage);
|
||||
|
||||
/**
|
||||
* 新增签约患者服务包信息
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSignPatientPackage(SignPatientPackage signPatientPackage);
|
||||
|
||||
/**
|
||||
* 修改签约患者服务包信息
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSignPatientPackage(SignPatientPackage signPatientPackage);
|
||||
|
||||
/**
|
||||
* 批量删除签约患者服务包信息
|
||||
*
|
||||
* @param ids 需要删除的签约患者服务包信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientPackageByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除签约患者服务包信息信息
|
||||
*
|
||||
* @param id 签约患者服务包信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientPackageById(Long id);
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package com.xinelu.manage.service.signpatientpackage.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.signpatientpackage.SignPatientPackageMapper;
|
||||
import com.xinelu.manage.domain.signpatientpackage.SignPatientPackage;
|
||||
import com.xinelu.manage.service.signpatientpackage.ISignPatientPackageService;
|
||||
|
||||
/**
|
||||
* 签约患者服务包信息Service业务层处理
|
||||
*
|
||||
* @author haown
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Service
|
||||
public class SignPatientPackageServiceImpl implements ISignPatientPackageService {
|
||||
@Resource
|
||||
private SignPatientPackageMapper signPatientPackageMapper;
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包信息
|
||||
*
|
||||
* @param id 签约患者服务包信息主键
|
||||
* @return 签约患者服务包信息
|
||||
*/
|
||||
@Override
|
||||
public SignPatientPackage selectSignPatientPackageById(Long id) {
|
||||
return signPatientPackageMapper.selectSignPatientPackageById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包信息列表
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 签约患者服务包信息
|
||||
*/
|
||||
@Override
|
||||
public List<SignPatientPackage> selectSignPatientPackageList(SignPatientPackage signPatientPackage) {
|
||||
return signPatientPackageMapper.selectSignPatientPackageList(signPatientPackage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增签约患者服务包信息
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSignPatientPackage(SignPatientPackage signPatientPackage) {
|
||||
signPatientPackage.setCreateTime(DateUtils.getNowDate());
|
||||
return signPatientPackageMapper.insertSignPatientPackage(signPatientPackage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改签约患者服务包信息
|
||||
*
|
||||
* @param signPatientPackage 签约患者服务包信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSignPatientPackage(SignPatientPackage signPatientPackage) {
|
||||
signPatientPackage.setUpdateTime(DateUtils.getNowDate());
|
||||
return signPatientPackageMapper.updateSignPatientPackage(signPatientPackage);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除签约患者服务包信息
|
||||
*
|
||||
* @param ids 需要删除的签约患者服务包信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSignPatientPackageByIds(Long[] ids) {
|
||||
return signPatientPackageMapper.deleteSignPatientPackageByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除签约患者服务包信息信息
|
||||
*
|
||||
* @param id 签约患者服务包信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSignPatientPackageById(Long id) {
|
||||
return signPatientPackageMapper.deleteSignPatientPackageById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
package com.xinelu.manage.service.signpatientpackagehardware;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
|
||||
|
||||
/**
|
||||
* 签约患者服务包硬件信息Service接口
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
public interface ISignPatientPackageHardwareService {
|
||||
/**
|
||||
* 查询签约患者服务包硬件信息
|
||||
*
|
||||
* @param id 签约患者服务包硬件信息主键
|
||||
* @return 签约患者服务包硬件信息
|
||||
*/
|
||||
public SignPatientPackageHardware selectSignPatientPackageHardwareById(Long id);
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包硬件信息列表
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 签约患者服务包硬件信息集合
|
||||
*/
|
||||
public List<SignPatientPackageHardware> selectSignPatientPackageHardwareList(SignPatientPackageHardware signPatientPackageHardware);
|
||||
|
||||
/**
|
||||
* 新增签约患者服务包硬件信息
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSignPatientPackageHardware(SignPatientPackageHardware signPatientPackageHardware);
|
||||
|
||||
/**
|
||||
* 修改签约患者服务包硬件信息
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSignPatientPackageHardware(SignPatientPackageHardware signPatientPackageHardware);
|
||||
|
||||
/**
|
||||
* 批量删除签约患者服务包硬件信息
|
||||
*
|
||||
* @param ids 需要删除的签约患者服务包硬件信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientPackageHardwareByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除签约患者服务包硬件信息信息
|
||||
*
|
||||
* @param id 签约患者服务包硬件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSignPatientPackageHardwareById(Long id);
|
||||
}
|
||||
@ -0,0 +1,89 @@
|
||||
package com.xinelu.manage.service.signpatientpackagehardware.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.xinelu.manage.mapper.signpatientpackagehardware.SignPatientPackageHardwareMapper;
|
||||
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
|
||||
import com.xinelu.manage.service.signpatientpackagehardware.ISignPatientPackageHardwareService;
|
||||
|
||||
/**
|
||||
* 签约患者服务包硬件信息Service业务层处理
|
||||
*
|
||||
* @author xinelu
|
||||
* @date 2024-02-27
|
||||
*/
|
||||
@Service
|
||||
public class SignPatientPackageHardwareServiceImpl implements ISignPatientPackageHardwareService {
|
||||
@Resource
|
||||
private SignPatientPackageHardwareMapper signPatientPackageHardwareMapper;
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包硬件信息
|
||||
*
|
||||
* @param id 签约患者服务包硬件信息主键
|
||||
* @return 签约患者服务包硬件信息
|
||||
*/
|
||||
@Override
|
||||
public SignPatientPackageHardware selectSignPatientPackageHardwareById(Long id) {
|
||||
return signPatientPackageHardwareMapper.selectSignPatientPackageHardwareById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询签约患者服务包硬件信息列表
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 签约患者服务包硬件信息
|
||||
*/
|
||||
@Override
|
||||
public List<SignPatientPackageHardware> selectSignPatientPackageHardwareList(SignPatientPackageHardware signPatientPackageHardware) {
|
||||
return signPatientPackageHardwareMapper.selectSignPatientPackageHardwareList(signPatientPackageHardware);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增签约患者服务包硬件信息
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSignPatientPackageHardware(SignPatientPackageHardware signPatientPackageHardware) {
|
||||
signPatientPackageHardware.setCreateTime(DateUtils.getNowDate());
|
||||
return signPatientPackageHardwareMapper.insertSignPatientPackageHardware(signPatientPackageHardware);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改签约患者服务包硬件信息
|
||||
*
|
||||
* @param signPatientPackageHardware 签约患者服务包硬件信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSignPatientPackageHardware(SignPatientPackageHardware signPatientPackageHardware) {
|
||||
signPatientPackageHardware.setUpdateTime(DateUtils.getNowDate());
|
||||
return signPatientPackageHardwareMapper.updateSignPatientPackageHardware(signPatientPackageHardware);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除签约患者服务包硬件信息
|
||||
*
|
||||
* @param ids 需要删除的签约患者服务包硬件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSignPatientPackageHardwareByIds(Long[] ids) {
|
||||
return signPatientPackageHardwareMapper.deleteSignPatientPackageHardwareByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除签约患者服务包硬件信息信息
|
||||
*
|
||||
* @param id 签约患者服务包硬件信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSignPatientPackageHardwareById(Long id) {
|
||||
return signPatientPackageHardwareMapper.deleteSignPatientPackageHardwareById(id);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package com.xinelu.manage.service.signpatientrecord;
|
||||
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientStatusDto;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientAddDto;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientListVo;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【sign_patient_record(签约记录表)】的数据库操作Service
|
||||
* @createDate 2024-02-28 15:05:02
|
||||
*/
|
||||
public interface ISignPatientRecordService {
|
||||
|
||||
List<SignPatientListVo> selectList(SignPatientListDto signPatientRecord);
|
||||
|
||||
/**
|
||||
* 根据签约编号查询居民签约信息
|
||||
* @param patientSignRecordId
|
||||
* @return
|
||||
*/
|
||||
SignPatientInfoVo getByRecordId(Long patientSignRecordId);
|
||||
|
||||
/**
|
||||
* 根据患者主键查询患者签约记录列表
|
||||
* @param patientId
|
||||
* @return
|
||||
*/
|
||||
List<SignPatientRecordVo> getByPatient(Long patientId);
|
||||
|
||||
int add(SignPatientAddDto body);
|
||||
|
||||
int updateSignStatus(SignPatientStatusDto patientCancelSignDto);
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
package com.xinelu.manage.service.signpatientrecord.impl;
|
||||
|
||||
import com.xinelu.common.constant.PaymentStatusConstants;
|
||||
import com.xinelu.common.constant.SignRecordServiceStatusConstants;
|
||||
import com.xinelu.common.exception.ServiceException;
|
||||
import com.xinelu.common.utils.DateUtils;
|
||||
import com.xinelu.manage.domain.signpatientinformed.SignPatientInformed;
|
||||
import com.xinelu.manage.domain.signpatientpackage.SignPatientPackage;
|
||||
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
|
||||
import com.xinelu.manage.domain.signpatientrecord.SignPatientRecord;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientStatusDto;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientAddDto;
|
||||
import com.xinelu.manage.dto.signpatientrecord.SignPatientListDto;
|
||||
import com.xinelu.manage.mapper.signpatientinformed.SignPatientInformedMapper;
|
||||
import com.xinelu.manage.mapper.signpatientpackagehardware.SignPatientPackageHardwareMapper;
|
||||
import com.xinelu.manage.mapper.signpatientpackage.SignPatientPackageMapper;
|
||||
import com.xinelu.manage.mapper.signpatientrecord.SignPatientRecordMapper;
|
||||
import com.xinelu.manage.service.signpatientrecord.ISignPatientRecordService;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientInfoVo;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientRecordVo;
|
||||
import com.xinelu.manage.vo.signpatientrecord.SignPatientListVo;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* @author haown
|
||||
* @description 针对表【sign_patient_record(签约记录表)】的数据库操作Service实现
|
||||
* @createDate 2024-02-28 15:05:02
|
||||
*/
|
||||
@Service
|
||||
public class SignPatientRecordServiceImpl implements ISignPatientRecordService {
|
||||
|
||||
@Resource
|
||||
private SignPatientRecordMapper signPatientRecordMapper;
|
||||
|
||||
@Resource
|
||||
private SignPatientPackageMapper signPatientPackageMapper;
|
||||
@Resource
|
||||
private SignPatientPackageHardwareMapper hardwareMapper;
|
||||
@Resource
|
||||
private SignPatientInformedMapper informedMapper;
|
||||
|
||||
@Override public List<SignPatientListVo> selectList(SignPatientListDto signPatientRecord) {
|
||||
return signPatientRecordMapper.selectList(signPatientRecord);
|
||||
}
|
||||
|
||||
@Override public SignPatientInfoVo getByRecordId(Long patientSignRecordId) {
|
||||
return signPatientRecordMapper.getByRecordId(patientSignRecordId);
|
||||
}
|
||||
|
||||
@Override public List<SignPatientRecordVo> getByPatient(Long patientId) {
|
||||
return signPatientRecordMapper.getByPatient(patientId);
|
||||
}
|
||||
|
||||
@Override public int add(SignPatientAddDto body) {
|
||||
SignPatientPackage signPatientPackage = body.getSignPackage();
|
||||
if (ObjectUtils.isNotEmpty(body.getRecord())) {
|
||||
SignPatientRecord signPatientRecord = body.getRecord();
|
||||
if (signPatientRecord.getPatientId() == null) {
|
||||
throw new ServiceException("数据错误");
|
||||
}
|
||||
signPatientRecord.setServiceStatus(SignRecordServiceStatusConstants.SERVICE_CENTER);
|
||||
signPatientRecord.setDelFlag(0);
|
||||
signPatientRecord.setPaymentStatus(PaymentStatusConstants.UNPAID_FEES);
|
||||
signPatientRecord.setSignStatus(SignRecordServiceStatusConstants.IN_SIGN);
|
||||
|
||||
if (signPatientPackage != null) {
|
||||
signPatientRecord.setPrice(signPatientPackage.getPackagePrice());
|
||||
} else {
|
||||
throw new ServiceException("请选择服务包");
|
||||
}
|
||||
|
||||
// 保存签约记录
|
||||
int flag = signPatientRecordMapper.insert(signPatientRecord);
|
||||
if (flag > 0) {
|
||||
// 保存签约服务包信息
|
||||
if (signPatientPackage != null) {
|
||||
signPatientPackage.setSignPatientRecordId(signPatientRecord.getId());
|
||||
signPatientPackage.setPatientId(signPatientRecord.getPatientId());
|
||||
signPatientPackage.setPackagePaymentStatus(PaymentStatusConstants.UNPAID_FEES);
|
||||
signPatientPackageMapper.insertSignPatientPackage(signPatientPackage);
|
||||
// 保存硬件
|
||||
if (!CollectionUtils.isEmpty(body.getDevices())) {
|
||||
for(SignPatientPackageHardware hardware : body.getDevices()) {
|
||||
hardware.setSignPatientRecordId(signPatientRecord.getId());
|
||||
hardwareMapper.insertSignPatientPackageHardware(hardware);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 保存告知书
|
||||
if (body.getSignPatientInformed() != null) {
|
||||
SignPatientInformed informed = new SignPatientInformed();
|
||||
informed.setSignPatientRecordId(signPatientRecord.getId());
|
||||
informed.setPatientId(signPatientRecord.getPatientId());
|
||||
informedMapper.insertSignPatientInformed(informed);
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override public int updateSignStatus(SignPatientStatusDto patientCancelSignDto) {
|
||||
// 修改签约记录状态
|
||||
SignPatientRecord signRecord = new SignPatientRecord();
|
||||
signRecord.setId(patientCancelSignDto.getId());
|
||||
signRecord.setSignStatus(patientCancelSignDto.getSignStatus());
|
||||
signRecord.setServiceStatus(patientCancelSignDto.getServiceStatus());
|
||||
signRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
int flag = signPatientRecordMapper.updateByPrimaryKeySelective(signRecord);
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.xinelu.manage.vo.patientblacklist;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 黑名单列表查询返回视图类
|
||||
* @author: haown
|
||||
* @create: 2024-02-28 13:44
|
||||
**/
|
||||
@Data
|
||||
@ApiModel("黑名单列表查询返回视图类")
|
||||
public class PatientBlacklistVo {
|
||||
|
||||
/** 主键id */
|
||||
@ApiModelProperty(value = "黑名单列表主键")
|
||||
private Long id;
|
||||
|
||||
/** 患者姓名 */
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/** 患者电话 */
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/** 所属医院id */
|
||||
@ApiModelProperty(value = "所属医院id")
|
||||
private Long hospitalAgencyId;
|
||||
|
||||
/** 所属医院名称 */
|
||||
@ApiModelProperty(value = "所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/** 所属院区id */
|
||||
@ApiModelProperty(value = "所属院区id")
|
||||
private Long campusAgencyId;
|
||||
|
||||
/** 所属院区名称 */
|
||||
@ApiModelProperty(value = "所属院区名称")
|
||||
private String campusAgencyName;
|
||||
|
||||
/** 所属科室id */
|
||||
@ApiModelProperty(value = "所属科室id")
|
||||
private Long departmentId;
|
||||
|
||||
/** 所属科室名称 */
|
||||
@ApiModelProperty(value = "所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/** 患者id */
|
||||
@ApiModelProperty(value = "患者表主键")
|
||||
private Long patientId;
|
||||
|
||||
/** 异常原因字典表id */
|
||||
@ApiModelProperty(value = "异常原因字典表id")
|
||||
private Long abnormalCauseId;
|
||||
|
||||
/** 异常原因字典表值 */
|
||||
@ApiModelProperty(value = "异常原因字典表值")
|
||||
private String abnormalCauseValue;
|
||||
|
||||
/**
|
||||
* 来源(CALL_DETECTION:通话检测,MANUAL_BLACKOUT:手动拉黑, MANUAL_ADDITION:手动添加,HIS_CONNECT:HIS对接)
|
||||
*/
|
||||
@ApiModelProperty(value = "来源(CALL_DETECTION:通话检测,MANUAL_BLACKOUT:手动拉黑,MANUAL_ADDITION:手动添加,HIS_CONNECT:HIS对接)")
|
||||
private String blacklistSource;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
}
|
||||
@ -0,0 +1,152 @@
|
||||
package com.xinelu.manage.vo.signpatientrecord;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.xinelu.common.annotation.Excel;
|
||||
import com.xinelu.manage.domain.signpatientpackagehardware.SignPatientPackageHardware;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 患者签约信息查询返回视图类
|
||||
* @author: haown
|
||||
* @create: 2024-02-28 16:17
|
||||
**/
|
||||
@ApiModel("患者签约信息查询返回视图类")
|
||||
@Data
|
||||
public class SignPatientInfoVo {
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约记录主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者信息表id
|
||||
*/
|
||||
@ApiModelProperty(value = "患者信息表id")
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 患者电话
|
||||
*/
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/**
|
||||
* 签约时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
private Date signTime;
|
||||
|
||||
/**
|
||||
* 签约时所属医院名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/**
|
||||
* 签约时所属院区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属院区名称")
|
||||
private String campusAgencyName;
|
||||
|
||||
/**
|
||||
* 签约时所属科室名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/**
|
||||
* 签约时所属病区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属病区名称")
|
||||
private String wardName;
|
||||
|
||||
/**
|
||||
* 就诊流水号
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/**
|
||||
* 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||
private String visitMethod;
|
||||
|
||||
/**
|
||||
* 签约时诊断
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时诊断")
|
||||
private String signDiagnosis;
|
||||
|
||||
/**
|
||||
* 审核后诊断
|
||||
*/
|
||||
@ApiModelProperty(value = "审核后诊断")
|
||||
private String reviewDiagnosis;
|
||||
|
||||
/**
|
||||
* 服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END
|
||||
*/
|
||||
@ApiModelProperty(value = "服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END")
|
||||
private String serviceStatus;
|
||||
|
||||
/**
|
||||
* 签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN
|
||||
*/
|
||||
@ApiModelProperty(value = "签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN,过期:EXPIRE_SIGN")
|
||||
private String signStatus;
|
||||
|
||||
@ApiModelProperty(value = "患者签约记录表id")
|
||||
@Excel(name = "患者签约记录表id")
|
||||
private Long signPatientRecordId;
|
||||
|
||||
/** 服务包表id */
|
||||
@ApiModelProperty(value = "服务包表id")
|
||||
private Long servicePackageId;
|
||||
|
||||
/** 服务包名称 */
|
||||
@ApiModelProperty(value = "服务包名称")
|
||||
private String packageName;
|
||||
|
||||
/** 服务包缴费状态,已缴费:PAID,未交费:UNPAID_FEES */
|
||||
@ApiModelProperty(value = "服务包缴费状态,已缴费:PAID,未交费:UNPAID_FEES")
|
||||
private String packagePaymentStatus;
|
||||
|
||||
/** 服务包价格,小数点后两位 */
|
||||
@ApiModelProperty(value = "服务包价格,小数点后两位")
|
||||
private BigDecimal packagePrice;
|
||||
|
||||
/** 服务开始时间,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "服务开始时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date serviceStartTime;
|
||||
|
||||
/** 服务结束时间,格式:yyyy-MM-dd HH:mm:ss */
|
||||
@ApiModelProperty(value = "服务结束时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private Date serviceEndTime;
|
||||
|
||||
/** 服务周期,单位是月 */
|
||||
@ApiModelProperty(value = "服务周期,单位是月")
|
||||
private Integer serviceCycle;
|
||||
|
||||
@ApiModelProperty(value = "签约硬件设备列表")
|
||||
private List<SignPatientPackageHardware> signDevices;
|
||||
|
||||
}
|
||||
@ -0,0 +1,137 @@
|
||||
package com.xinelu.manage.vo.signpatientrecord;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 签约患者列表查询返回视图类
|
||||
* @author: haown
|
||||
* @create: 2024-02-28 17:10
|
||||
**/
|
||||
@ApiModel("签约患者列表查询返回视图类")
|
||||
@Data
|
||||
public class SignPatientListVo {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(value = "主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者信息表id
|
||||
*/
|
||||
@ApiModelProperty(value = "患者信息表id")
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
/**
|
||||
* 患者电话
|
||||
*/
|
||||
@ApiModelProperty(value = "患者电话")
|
||||
private String patientPhone;
|
||||
|
||||
/** 身份证号 */
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
private String cardNo;
|
||||
|
||||
/**
|
||||
* 签约时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
private Date signTime;
|
||||
|
||||
/**
|
||||
* 签约时所属医院名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属医院名称")
|
||||
private String hospitalAgencyName;
|
||||
|
||||
/**
|
||||
* 签约时所属院区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属院区名称")
|
||||
private String campusAgencyName;
|
||||
|
||||
/**
|
||||
* 签约时所属科室名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属科室名称")
|
||||
private String departmentName;
|
||||
|
||||
/**
|
||||
* 签约时所属病区名称
|
||||
*/
|
||||
@ApiModelProperty(value = "签约时所属病区名称")
|
||||
private String wardName;
|
||||
|
||||
/**
|
||||
* 就诊流水号
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊流水号")
|
||||
private String visitSerialNumber;
|
||||
|
||||
/**
|
||||
* 就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL
|
||||
*/
|
||||
@ApiModelProperty(value = "就诊方式,门诊:OUTPATIENT_SERVICE,住院:BE_IN_HOSPITAL")
|
||||
private String visitMethod;
|
||||
|
||||
/**
|
||||
* 服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END
|
||||
*/
|
||||
@ApiModelProperty(value = "服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END")
|
||||
private String serviceStatus;
|
||||
|
||||
/**
|
||||
* 签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN
|
||||
*/
|
||||
@ApiModelProperty(value = "签约状态,在签:IN_SIGN,忽略:IGNORE_SIGN,解约:SEPARATE_SIGN,续约:CONTINUOUS_SIGN")
|
||||
private String signStatus;
|
||||
|
||||
/**
|
||||
* 意向来源(意向签约,字典枚举)
|
||||
*/
|
||||
@ApiModelProperty(value = "意向来源(意向签约,字典枚举)")
|
||||
private String intentionalSource;
|
||||
|
||||
/**
|
||||
* 加入意向时间(意向签约)
|
||||
*/
|
||||
@ApiModelProperty(value = "加入意向时间(意向签约)")
|
||||
private Date intentionalTime;
|
||||
|
||||
/**
|
||||
* 开单医生姓名(意向签约)
|
||||
*/
|
||||
@ApiModelProperty(value = "开单医生姓名(意向签约)")
|
||||
private String billingDoctorName;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
*/
|
||||
@ApiModelProperty(value = "金额")
|
||||
private BigDecimal price;
|
||||
|
||||
/**
|
||||
* 缴费状态,已缴费:PAID,未交费:UNPAID_FEES
|
||||
*/
|
||||
@ApiModelProperty(value = "缴费状态,已缴费:PAID,未交费:UNPAID_FEES")
|
||||
private String paymentStatus;
|
||||
|
||||
/** 服务包名称 */
|
||||
@ApiModelProperty(value = "服务包名称")
|
||||
private String packageName;
|
||||
|
||||
/** 服务周期,单位是月 */
|
||||
@ApiModelProperty(value = "服务周期,单位是月")
|
||||
private Integer serviceCycle;
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
package com.xinelu.manage.vo.signpatientrecord;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @description: 查询患者签约记录返回视图类
|
||||
* @author: haown
|
||||
* @create: 2024-02-29 09:09
|
||||
**/
|
||||
@ApiModel("查询患者签约记录返回视图类")
|
||||
@Data
|
||||
public class SignPatientRecordVo {
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(value = "签约记录主键id")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 患者信息表id
|
||||
*/
|
||||
@ApiModelProperty(value = "患者信息表id")
|
||||
private Long patientId;
|
||||
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String patientName;
|
||||
|
||||
@ApiModelProperty(value = "签约时间,格式:yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date signTime;
|
||||
|
||||
/**
|
||||
* 服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END
|
||||
*/
|
||||
@ApiModelProperty(value = "服务状态,意向签约:INTENTIONAL_SIGNING,服务中:SERVICE_CENTER,服务结束:SERVICE_END")
|
||||
private String serviceStatus;
|
||||
|
||||
/** 服务包名称 */
|
||||
@ApiModelProperty(value = "服务包名称")
|
||||
private String packageName;
|
||||
}
|
||||
@ -0,0 +1,238 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.materialsinfo.MaterialsInfoMapper">
|
||||
|
||||
<resultMap type="MaterialsInfo" id="MaterialsInfoResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="materialsName" column="materials_name"/>
|
||||
<result property="materialsType" column="materials_type"/>
|
||||
<result property="materialsOption" column="materials_option"/>
|
||||
<result property="materialsFilePath" column="materials_file_path"/>
|
||||
<result property="videoCoverType" column="video_cover_type"/>
|
||||
<result property="videoCoverFilePath" column="video_cover_file_path"/>
|
||||
<result property="materialsAbstract" column="materials_abstract"/>
|
||||
<result property="indications" column="indications"/>
|
||||
<result property="applicableDiseases" column="applicable_diseases"/>
|
||||
<result property="drugName" column="drug_name"/>
|
||||
<result property="surgicalName" column="surgical_name"/>
|
||||
<result property="checkItems" column="check_items"/>
|
||||
<result property="inspectionItems" column="inspection_items"/>
|
||||
<result property="crowdId" column="crowd_id"/>
|
||||
<result property="crowName" column="crow_name"/>
|
||||
<result property="materialsStatus" column="materials_status"/>
|
||||
<result property="materialsRemark" column="materials_remark"/>
|
||||
<result property="materialsSort" column="materials_sort"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMaterialsInfoVo">
|
||||
select id, materials_name, materials_type, materials_option, materials_file_path, video_cover_type, video_cover_file_path, materials_abstract, indications, applicable_diseases, drug_name, surgical_name, check_items, inspection_items, crowd_id, crow_name, materials_status, materials_remark, materials_sort, create_by, create_time, update_by, update_time from materials_info
|
||||
</sql>
|
||||
|
||||
<select id="selectMaterialsInfoList" parameterType="MaterialsInfo" resultMap="MaterialsInfoResult">
|
||||
<include refid="selectMaterialsInfoVo"/>
|
||||
<where>
|
||||
<if test="materialsName != null and materialsName != ''">
|
||||
and materials_name like concat('%', #{materialsName}, '%')
|
||||
</if>
|
||||
<if test="materialsStatus != null and materialsStatus != ''">
|
||||
and materials_status = #{materialsStatus}
|
||||
</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''">
|
||||
and create_time between #{params.beginCreateTime} and #{params.endCreateTime}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMaterialsInfoById" parameterType="Long"
|
||||
resultMap="MaterialsInfoResult">
|
||||
<include refid="selectMaterialsInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMaterialsInfo" parameterType="MaterialsInfo" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into materials_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="materialsName != null">materials_name,
|
||||
</if>
|
||||
<if test="materialsType != null">materials_type,
|
||||
</if>
|
||||
<if test="materialsOption != null">materials_option,
|
||||
</if>
|
||||
<if test="materialsFilePath != null">materials_file_path,
|
||||
</if>
|
||||
<if test="videoCoverType != null">video_cover_type,
|
||||
</if>
|
||||
<if test="videoCoverFilePath != null">video_cover_file_path,
|
||||
</if>
|
||||
<if test="materialsAbstract != null">materials_abstract,
|
||||
</if>
|
||||
<if test="indications != null">indications,
|
||||
</if>
|
||||
<if test="applicableDiseases != null">applicable_diseases,
|
||||
</if>
|
||||
<if test="drugName != null">drug_name,
|
||||
</if>
|
||||
<if test="surgicalName != null">surgical_name,
|
||||
</if>
|
||||
<if test="checkItems != null">check_items,
|
||||
</if>
|
||||
<if test="inspectionItems != null">inspection_items,
|
||||
</if>
|
||||
<if test="crowdId != null">crowd_id,
|
||||
</if>
|
||||
<if test="crowName != null">crow_name,
|
||||
</if>
|
||||
<if test="materialsStatus != null">materials_status,
|
||||
</if>
|
||||
<if test="materialsRemark != null">materials_remark,
|
||||
</if>
|
||||
<if test="materialsSort != null">materials_sort,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="materialsName != null">#{materialsName},
|
||||
</if>
|
||||
<if test="materialsType != null">#{materialsType},
|
||||
</if>
|
||||
<if test="materialsOption != null">#{materialsOption},
|
||||
</if>
|
||||
<if test="materialsFilePath != null">#{materialsFilePath},
|
||||
</if>
|
||||
<if test="videoCoverType != null">#{videoCoverType},
|
||||
</if>
|
||||
<if test="videoCoverFilePath != null">#{videoCoverFilePath},
|
||||
</if>
|
||||
<if test="materialsAbstract != null">#{materialsAbstract},
|
||||
</if>
|
||||
<if test="indications != null">#{indications},
|
||||
</if>
|
||||
<if test="applicableDiseases != null">#{applicableDiseases},
|
||||
</if>
|
||||
<if test="drugName != null">#{drugName},
|
||||
</if>
|
||||
<if test="surgicalName != null">#{surgicalName},
|
||||
</if>
|
||||
<if test="checkItems != null">#{checkItems},
|
||||
</if>
|
||||
<if test="inspectionItems != null">#{inspectionItems},
|
||||
</if>
|
||||
<if test="crowdId != null">#{crowdId},
|
||||
</if>
|
||||
<if test="crowName != null">#{crowName},
|
||||
</if>
|
||||
<if test="materialsStatus != null">#{materialsStatus},
|
||||
</if>
|
||||
<if test="materialsRemark != null">#{materialsRemark},
|
||||
</if>
|
||||
<if test="materialsSort != null">#{materialsSort},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMaterialsInfo" parameterType="MaterialsInfo">
|
||||
update materials_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="materialsName != null">materials_name =
|
||||
#{materialsName},
|
||||
</if>
|
||||
<if test="materialsType != null">materials_type =
|
||||
#{materialsType},
|
||||
</if>
|
||||
<if test="materialsOption != null">materials_option =
|
||||
#{materialsOption},
|
||||
</if>
|
||||
<if test="materialsFilePath != null">materials_file_path =
|
||||
#{materialsFilePath},
|
||||
</if>
|
||||
<if test="videoCoverType != null">video_cover_type =
|
||||
#{videoCoverType},
|
||||
</if>
|
||||
<if test="videoCoverFilePath != null">video_cover_file_path =
|
||||
#{videoCoverFilePath},
|
||||
</if>
|
||||
<if test="materialsAbstract != null">materials_abstract =
|
||||
#{materialsAbstract},
|
||||
</if>
|
||||
<if test="indications != null">indications =
|
||||
#{indications},
|
||||
</if>
|
||||
<if test="applicableDiseases != null">applicable_diseases =
|
||||
#{applicableDiseases},
|
||||
</if>
|
||||
<if test="drugName != null">drug_name =
|
||||
#{drugName},
|
||||
</if>
|
||||
<if test="surgicalName != null">surgical_name =
|
||||
#{surgicalName},
|
||||
</if>
|
||||
<if test="checkItems != null">check_items =
|
||||
#{checkItems},
|
||||
</if>
|
||||
<if test="inspectionItems != null">inspection_items =
|
||||
#{inspectionItems},
|
||||
</if>
|
||||
<if test="crowdId != null">crowd_id =
|
||||
#{crowdId},
|
||||
</if>
|
||||
<if test="crowName != null">crow_name =
|
||||
#{crowName},
|
||||
</if>
|
||||
<if test="materialsStatus != null">materials_status =
|
||||
#{materialsStatus},
|
||||
</if>
|
||||
<if test="materialsRemark != null">materials_remark =
|
||||
#{materialsRemark},
|
||||
</if>
|
||||
<if test="materialsSort != null">materials_sort =
|
||||
#{materialsSort},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMaterialsInfoById" parameterType="Long">
|
||||
delete from materials_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMaterialsInfoByIds" parameterType="String">
|
||||
delete from materials_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,175 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientblacklist.PatientBlacklistMapper">
|
||||
|
||||
<resultMap type="PatientBlacklist" id="PatientBlacklistResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="abnormalCauseId" column="abnormal_cause_id"/>
|
||||
<result property="abnormalCauseValue" column="abnormal_cause_value"/>
|
||||
<result property="supplementIllustrateId" column="supplement_illustrate_id"/>
|
||||
<result property="supplementIllustrateValue" column="supplement_illustrate_value"/>
|
||||
<result property="functionLimitation" column="function_limitation"/>
|
||||
<result property="blacklistSource" column="blacklist_source"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientBlacklistVo">
|
||||
select id, patient_id, abnormal_cause_id, abnormal_cause_value, supplement_illustrate_id, supplement_illustrate_value,
|
||||
function_limitation, blacklist_source, del_flag, create_by, create_time, update_by, update_time from patient_blacklist
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientBlacklistList" parameterType="com.xinelu.manage.dto.patientblacklist.PatientBlacklistDto" resultMap="PatientBlacklistResult">
|
||||
select b.id, b.patient_id, b.abnormal_cause_id, b.abnormal_cause_value, b.supplement_illustrate_id,
|
||||
b.supplement_illustrate_value, b.function_limitation, b.blacklist_source,
|
||||
b.create_time, p.patient_name,
|
||||
p.patient_phone, p.card_no, p.hospital_agency_id, p.hospital_agency_name, p.campus_agency_id, p.campus_agency_name,
|
||||
p.department_id, p.department_name from patient_blacklist b left join patient_info p on b.patient_id = p.id
|
||||
<where>
|
||||
b.del_flag = 0
|
||||
<if test="patientName != null and patientName != ''">
|
||||
and p.patient_name like concat('%', #{patientName}, '%')
|
||||
</if>
|
||||
<if test="patientPhone != null and patientPhone != ''">
|
||||
and p.patient_phone like concat('%', #{patientPhone}, '%')
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null ">
|
||||
and p.hospital_agency_id = #{hospitalAgencyId}
|
||||
</if>
|
||||
<if test="departmentId != null ">
|
||||
and p.department_id = #{departmentId}
|
||||
</if>
|
||||
<if test="abnormalCauseValue != null and abnormalCauseValue != ''">
|
||||
and b.abnormal_cause_value like concat('%', #{abnormalCauseValue}, '%')
|
||||
</if>
|
||||
<if test="blacklistSource != null and blacklistSource != ''">
|
||||
and b.blacklist_source = #{blacklistSource}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientBlacklistById" parameterType="Long"
|
||||
resultMap="PatientBlacklistResult">
|
||||
<include refid="selectPatientBlacklistVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientBlacklist" parameterType="PatientBlacklist" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into patient_blacklist
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id,
|
||||
</if>
|
||||
<if test="abnormalCauseId != null">abnormal_cause_id,
|
||||
</if>
|
||||
<if test="abnormalCauseValue != null">abnormal_cause_value,
|
||||
</if>
|
||||
<if test="supplementIllustrateId != null">supplement_illustrate_id,
|
||||
</if>
|
||||
<if test="supplementIllustrateValue != null">supplement_illustrate_value,
|
||||
</if>
|
||||
<if test="functionLimitation != null">function_limitation,
|
||||
</if>
|
||||
<if test="blacklistSource != null">blacklist_source,
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
del_flag,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">#{patientId},
|
||||
</if>
|
||||
<if test="abnormalCauseId != null">#{abnormalCauseId},
|
||||
</if>
|
||||
<if test="abnormalCauseValue != null">#{abnormalCauseValue},
|
||||
</if>
|
||||
<if test="supplementIllustrateId != null">#{supplementIllustrateId},
|
||||
</if>
|
||||
<if test="supplementIllustrateValue != null">#{supplementIllustrateValue},
|
||||
</if>
|
||||
<if test="functionLimitation != null">#{functionLimitation},
|
||||
</if>
|
||||
<if test="blacklistSource != null">#{blacklistSource},
|
||||
</if>
|
||||
<if test="delFlag != null">
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePatientBlacklist" parameterType="PatientBlacklist">
|
||||
update patient_blacklist
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id =
|
||||
#{patientId},
|
||||
</if>
|
||||
<if test="abnormalCauseId != null">abnormal_cause_id =
|
||||
#{abnormalCauseId},
|
||||
</if>
|
||||
<if test="abnormalCauseValue != null">abnormal_cause_value =
|
||||
#{abnormalCauseValue},
|
||||
</if>
|
||||
<if test="supplementIllustrateId != null">supplement_illustrate_id =
|
||||
#{supplementIllustrateId},
|
||||
</if>
|
||||
<if test="supplementIllustrateValue != null">supplement_illustrate_value =
|
||||
#{supplementIllustrateValue},
|
||||
</if>
|
||||
<if test="functionLimitation != null">function_limitation =
|
||||
#{functionLimitation},
|
||||
</if>
|
||||
<if test="blacklistSource != null">blacklist_source =
|
||||
#{blacklistSource},
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag =
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePatientBlacklistById" parameterType="Long">
|
||||
delete from patient_blacklist where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePatientBlacklistByIds" parameterType="String">
|
||||
update patient_blacklist set del_flag = 1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,505 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientinfo.PatientInfoMapper">
|
||||
<resultMap type="com.xinelu.manage.domain.patientinfo.PatientInfo" id="PatientInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="patientName" column="patient_name" />
|
||||
<result property="patientPhone" column="patient_phone" />
|
||||
<result property="familyMemberPhone" column="family_member_phone" />
|
||||
<result property="birthDate" column="birth_date" />
|
||||
<result property="cardNo" column="card_no" />
|
||||
<result property="sex" column="sex" />
|
||||
<result property="address" column="address" />
|
||||
<result property="patientType" column="patient_type" />
|
||||
<result property="signStatus" column="sign_status" />
|
||||
<result property="signTime" column="sign_time" />
|
||||
<result property="certificateIssuingDoctor" column="certificate_issuing_doctor" />
|
||||
<result property="visitMethod" column="visit_method" />
|
||||
<result property="mainDiagnosis" column="main_diagnosis" />
|
||||
<result property="attendingPhysician" column="attending_physician" />
|
||||
<result property="hospitalAgencyId" column="hospital_agency_id" />
|
||||
<result property="hospitalAgencyName" column="hospital_agency_name" />
|
||||
<result property="campusAgencyId" column="campus_agency_id" />
|
||||
<result property="campusAgencyName" column="campus_agency_name" />
|
||||
<result property="departmentId" column="department_id" />
|
||||
<result property="departmentName" column="department_name" />
|
||||
<result property="wardId" column="ward_id" />
|
||||
<result property="wardName" column="ward_name" />
|
||||
<result property="admissionNumber" column="admission_number" />
|
||||
<result property="responsibleNurse" column="responsible_nurse" />
|
||||
<result property="visitSerialNumber" column="visit_serial_number" />
|
||||
<result property="surgicalName" column="surgical_name" />
|
||||
<result property="admissionDate" column="admission_date" />
|
||||
<result property="dischargeDate" column="discharge_date" />
|
||||
<result property="medicalRecordContent" column="medical_record_content" />
|
||||
<result property="appointmentTreatmentGroup" column="appointment_treatment_group" />
|
||||
<result property="registrationNo" column="registration_no" />
|
||||
<result property="registrationDate" column="registration_date" />
|
||||
<result property="appointmentDate" column="appointment_date" />
|
||||
<result property="outpatientNumber" column="outpatient_number" />
|
||||
<result property="visitTime" column="visit_time" />
|
||||
<result property="dischargeMethod" column="discharge_method" />
|
||||
<result property="openId" column="open_id" />
|
||||
<result property="unionId" column="union_id" />
|
||||
<result property="patientSource" column="patient_source" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientInfoVo">
|
||||
select id,
|
||||
patient_name,
|
||||
patient_phone,
|
||||
family_member_phone,
|
||||
birth_date,
|
||||
card_no,
|
||||
sex,
|
||||
address,
|
||||
patient_type,
|
||||
sign_status,
|
||||
sign_time,
|
||||
certificate_issuing_doctor, visit_method, main_diagnosis, attending_physician,
|
||||
hospital_agency_id, hospital_agency_name, campus_agency_id, campus_agency_name, department_id, department_name, ward_id, ward_name,
|
||||
admission_number, responsible_nurse, visit_serial_number, surgical_name,
|
||||
admission_date, discharge_date, medical_record_content, appointment_treatment_group,
|
||||
registration_no, registration_date, appointment_date, outpatient_number, visit_time, discharge_method,
|
||||
open_id, union_id, patient_source, del_flag, create_by, create_time, update_by, update_time
|
||||
from patient_info
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientInfoList" parameterType="com.xinelu.manage.dto.patientinfo.PatientInfoDto" resultMap="PatientInfoResult">
|
||||
<include refid="selectPatientInfoVo" />
|
||||
<where>
|
||||
del_flag = 0
|
||||
<if test="patientName != null and patientName != ''">
|
||||
and patient_name like concat('%', #{patientName}, '%')
|
||||
</if>
|
||||
<if test="patientPhone != null and patientPhone != ''">
|
||||
and patient_phone like concat('%', #{patientPhone}, '%')
|
||||
</if>
|
||||
<if test="patientType != null and patientType != ''">
|
||||
<choose>
|
||||
<when test="patientType == 'OUTPATIENT_DISCHARGE'.toString()">
|
||||
and (patient_type = 'OUTPATIENT' or patient_type = 'DISCHARGED_PATIENT')
|
||||
</when>
|
||||
<otherwise>
|
||||
and patient_type = #{patientType}
|
||||
</otherwise>
|
||||
</choose>
|
||||
</if>
|
||||
<if test="mainDiagnosis != null and mainDiagnosis != ''">
|
||||
and main_diagnosis like concat('%', #{mainDiagnosis}, '%')
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null ">
|
||||
and hospital_agency_id = #{hospitalAgencyId}
|
||||
</if>
|
||||
<if test="campusAgencyId != null ">
|
||||
and campus_agency_id = #{campusAgencyId}
|
||||
</if>
|
||||
<if test="departmentId != null ">
|
||||
and department_id = #{departmentId}
|
||||
</if>
|
||||
<if test="wardId != null ">
|
||||
and ward_id = #{wardId}
|
||||
</if>
|
||||
<if test="attendingPhysician != null and attendingPhysician != ''">
|
||||
and attending_physician = #{attendingPhysician}
|
||||
</if>
|
||||
<if test="visitMethod != null and visitMethod != ''">
|
||||
and visit_method = #{visitMethod}
|
||||
</if>
|
||||
|
||||
<if test="surgicalName != null and surgicalName != ''">
|
||||
and surgical_name like concat('%', #{surgicalName}, '%')
|
||||
</if>
|
||||
<if test="visitTimeStart != null ">
|
||||
and visit_time >= #{visitTimeStart}
|
||||
</if>
|
||||
<if test="visitTimeEnd != null ">
|
||||
and visit_time <= #{visitTimeEnd}
|
||||
</if>
|
||||
<if test="admissionDateStart != null ">
|
||||
and admission_date >= #{admissionDateStart}
|
||||
</if>
|
||||
<if test="admissionDateEnd != null ">
|
||||
and admission_date <= #{admissionDateEnd}
|
||||
</if>
|
||||
<if test="appointmentDateStart != null ">
|
||||
and appointment_date >= #{appointmentDateStart}
|
||||
</if>
|
||||
<if test="appointmentDateEnd != null ">
|
||||
and appointment_date <= #{appointmentDateEnd}
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null and appointmentTreatmentGroup != ''">
|
||||
and appointment_treatment_group = #{appointmentTreatmentGroup}
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null and certificateIssuingDoctor != ''">
|
||||
and certificate_issuing_doctor = #{certificateIssuingDoctor}
|
||||
</if>
|
||||
<if test="registrationNo != null and registrationNo != ''">
|
||||
and registration_no = #{registrationNo}
|
||||
</if>
|
||||
<if test="visitSerialNumber != null and visitSerialNumber != ''">
|
||||
and visit_serial_number = #{visitSerialNumber}
|
||||
</if>
|
||||
<if test="responsibleNurse != null and responsibleNurse != ''">
|
||||
and responsible_nurse = #{responsibleNurse}
|
||||
</if>
|
||||
<if test="patientSource != null and patientSource != ''">
|
||||
and patient_source = #{patientSource}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientInfoById" parameterType="Long" resultMap="PatientInfoResult">
|
||||
<include refid="selectPatientInfoVo" />
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientInfo" parameterType="com.xinelu.manage.domain.patientinfo.PatientInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into patient_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientName != null">
|
||||
patient_name,
|
||||
</if>
|
||||
<if test="patientPhone != null">patient_phone,
|
||||
</if>
|
||||
<if test="familyMemberPhone != null">family_member_phone,
|
||||
</if>
|
||||
<if test="birthDate != null">birth_date,
|
||||
</if>
|
||||
<if test="cardNo != null">card_no,
|
||||
</if>
|
||||
<if test="sex != null">sex,
|
||||
</if>
|
||||
<if test="address != null">address,
|
||||
</if>
|
||||
<if test="patientType != null">patient_type,
|
||||
</if>
|
||||
<if test="signStatus != null">sign_status,
|
||||
</if>
|
||||
<if test="signTime != null">sign_time,
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null">certificate_issuing_doctor,
|
||||
</if>
|
||||
<if test="visitMethod != null">visit_method,
|
||||
</if>
|
||||
<if test="mainDiagnosis != null">main_diagnosis,
|
||||
</if>
|
||||
<if test="attendingPhysician != null">attending_physician,
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null">hospital_agency_id,
|
||||
</if>
|
||||
<if test="hospitalAgencyName != null">hospital_agency_name,
|
||||
</if>
|
||||
<if test="campusAgencyId != null">campus_agency_id,
|
||||
</if>
|
||||
<if test="campusAgencyName != null">campus_agency_name,
|
||||
</if>
|
||||
<if test="departmentId != null">department_id,
|
||||
</if>
|
||||
<if test="departmentName != null">department_name,
|
||||
</if>
|
||||
<if test="wardId != null">ward_id,
|
||||
</if>
|
||||
<if test="wardName != null">ward_name,
|
||||
</if>
|
||||
<if test="admissionNumber != null">
|
||||
admission_number,
|
||||
</if>
|
||||
<if test="responsibleNurse != null">
|
||||
responsible_nurse,
|
||||
</if>
|
||||
<if test="visitSerialNumber != null">
|
||||
visit_serial_number,
|
||||
</if>
|
||||
<if test="surgicalName != null">
|
||||
surgical_name,
|
||||
</if>
|
||||
<if test="admissionDate != null">
|
||||
admission_date,
|
||||
</if>
|
||||
<if test="dischargeDate != null">
|
||||
discharge_date,
|
||||
</if>
|
||||
<if test="medicalRecordContent != null">medical_record_content,
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null">appointment_treatment_group,
|
||||
</if>
|
||||
<if test="registrationNo != null">registration_no,
|
||||
</if>
|
||||
<if test="registrationDate != null">registration_date,
|
||||
</if>
|
||||
<if test="appointmentDate != null">appointment_date,
|
||||
</if>
|
||||
<if test="outpatientNumber != null">outpatient_number,
|
||||
</if>
|
||||
<if test="visitTime != null">visit_time,
|
||||
</if>
|
||||
<if test="dischargeMethod != null">discharge_method,
|
||||
</if>
|
||||
<if test="openId != null">open_id,
|
||||
</if>
|
||||
<if test="unionId != null">union_id,
|
||||
</if>
|
||||
<if test="patientSource != null">patient_source,
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientName != null">#{patientName},
|
||||
</if>
|
||||
<if test="patientPhone != null">#{patientPhone},
|
||||
</if>
|
||||
<if test="familyMemberPhone != null">#{familyMemberPhone},
|
||||
</if>
|
||||
<if test="birthDate != null">#{birthDate},
|
||||
</if>
|
||||
<if test="cardNo != null">#{cardNo},
|
||||
</if>
|
||||
<if test="sex != null">#{sex},
|
||||
</if>
|
||||
<if test="address != null">#{address},
|
||||
</if>
|
||||
<if test="patientType != null">#{patientType},
|
||||
</if>
|
||||
<if test="signStatus != null">#{signStatus},
|
||||
</if>
|
||||
<if test="signTime != null">#{signTime},
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null">#{certificateIssuingDoctor},
|
||||
</if>
|
||||
<if test="visitMethod != null">#{visitMethod},
|
||||
</if>
|
||||
<if test="mainDiagnosis != null">#{mainDiagnosis},
|
||||
</if>
|
||||
<if test="attendingPhysician != null">#{attendingPhysician},
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null">#{hospitalAgencyId},
|
||||
</if>
|
||||
<if test="hospitalAgencyName != null">#{hospitalAgencyName},
|
||||
</if>
|
||||
<if test="campusAgencyId != null">#{campusAgencyId},
|
||||
</if>
|
||||
<if test="campusAgencyName != null">#{campusAgencyName},
|
||||
</if>
|
||||
<if test="departmentId != null">#{departmentId},
|
||||
</if>
|
||||
<if test="departmentName != null">#{departmentName},
|
||||
</if>
|
||||
<if test="wardId != null">#{wardId},
|
||||
</if>
|
||||
<if test="wardName != null">#{wardName},
|
||||
</if>
|
||||
<if test="admissionNumber != null">#{admissionNumber},
|
||||
</if>
|
||||
<if test="responsibleNurse != null">#{responsibleNurse},
|
||||
</if>
|
||||
<if test="visitSerialNumber != null">#{visitSerialNumber},
|
||||
</if>
|
||||
<if test="surgicalName != null">#{surgicalName},
|
||||
</if>
|
||||
<if test="admissionDate != null">#{admissionDate},
|
||||
</if>
|
||||
<if test="dischargeDate != null">#{dischargeDate},
|
||||
</if>
|
||||
<if test="medicalRecordContent != null">#{medicalRecordContent},
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null">#{appointmentTreatmentGroup},
|
||||
</if>
|
||||
<if test="registrationNo != null">#{registrationNo},
|
||||
</if>
|
||||
<if test="registrationDate != null">#{registrationDate},
|
||||
</if>
|
||||
<if test="appointmentDate != null">#{appointmentDate},
|
||||
</if>
|
||||
<if test="outpatientNumber != null">#{outpatientNumber},
|
||||
</if>
|
||||
<if test="visitTime != null">#{visitTime},
|
||||
</if>
|
||||
<if test="dischargeMethod != null">#{dischargeMethod},
|
||||
</if>
|
||||
<if test="openId != null">#{openId},
|
||||
</if>
|
||||
<if test="unionId != null">#{unionId},
|
||||
</if>
|
||||
<if test="patientSource != null">#{patientSource},
|
||||
</if>
|
||||
<if test="delFlag != null">#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePatientInfo" parameterType="com.xinelu.manage.domain.patientinfo.PatientInfo">
|
||||
update patient_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientName != null">
|
||||
patient_name = #{patientName},
|
||||
</if>
|
||||
<if test="patientPhone != null">
|
||||
patient_phone = #{patientPhone},
|
||||
</if>
|
||||
<if test="familyMemberPhone != null">
|
||||
family_member_phone = #{familyMemberPhone},
|
||||
</if>
|
||||
<if test="birthDate != null">
|
||||
birth_date = #{birthDate},
|
||||
</if>
|
||||
<if test="cardNo != null">
|
||||
card_no = #{cardNo},
|
||||
</if>
|
||||
<if test="sex != null">
|
||||
sex = #{sex},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address = #{address},
|
||||
</if>
|
||||
<if test="patientType != null">
|
||||
patient_type = #{patientType},
|
||||
</if>
|
||||
<if test="signStatus != null">sign_status =
|
||||
#{signStatus},
|
||||
</if>
|
||||
<if test="signTime != null">sign_time =
|
||||
#{signTime},
|
||||
</if>
|
||||
<if test="certificateIssuingDoctor != null">certificate_issuing_doctor =
|
||||
#{certificateIssuingDoctor},
|
||||
</if>
|
||||
<if test="visitMethod != null">visit_method =
|
||||
#{visitMethod},
|
||||
</if>
|
||||
<if test="mainDiagnosis != null">main_diagnosis =
|
||||
#{mainDiagnosis},
|
||||
</if>
|
||||
<if test="attendingPhysician != null">attending_physician =
|
||||
#{attendingPhysician},
|
||||
</if>
|
||||
<if test="hospitalAgencyId != null">hospital_agency_id =
|
||||
#{hospitalAgencyId},
|
||||
</if>
|
||||
<if test="hospitalAgencyName != null">hospital_agency_name =
|
||||
#{hospitalAgencyName},
|
||||
</if>
|
||||
<if test="campusAgencyId != null">campus_agency_id =
|
||||
#{campusAgencyId},
|
||||
</if>
|
||||
<if test="campusAgencyName != null">campus_agency_name =
|
||||
#{campusAgencyName},
|
||||
</if>
|
||||
<if test="departmentId != null">department_id =
|
||||
#{departmentId},
|
||||
</if>
|
||||
<if test="departmentName != null">department_name =
|
||||
#{departmentName},
|
||||
</if>
|
||||
<if test="wardId != null">ward_id =
|
||||
#{wardId},
|
||||
</if>
|
||||
<if test="wardName != null">ward_name =
|
||||
#{wardName},
|
||||
</if>
|
||||
<if test="admissionNumber != null">admission_number =
|
||||
#{admissionNumber},
|
||||
</if>
|
||||
<if test="responsibleNurse != null">responsible_nurse =
|
||||
#{responsibleNurse},
|
||||
</if>
|
||||
<if test="visitSerialNumber != null">visit_serial_number =
|
||||
#{visitSerialNumber},
|
||||
</if>
|
||||
<if test="surgicalName != null">surgical_name =
|
||||
#{surgicalName},
|
||||
</if>
|
||||
<if test="admissionDate != null">
|
||||
admission_date = #{admissionDate},
|
||||
</if>
|
||||
<if test="dischargeDate != null">
|
||||
discharge_date = #{dischargeDate},
|
||||
</if>
|
||||
<if test="medicalRecordContent != null">medical_record_content =
|
||||
#{medicalRecordContent},
|
||||
</if>
|
||||
<if test="appointmentTreatmentGroup != null">appointment_treatment_group =
|
||||
#{appointmentTreatmentGroup},
|
||||
</if>
|
||||
<if test="registrationNo != null">registration_no =
|
||||
#{registrationNo},
|
||||
</if>
|
||||
<if test="registrationDate != null">registration_date =
|
||||
#{registrationDate},
|
||||
</if>
|
||||
<if test="appointmentDate != null">appointment_date =
|
||||
#{appointmentDate},
|
||||
</if>
|
||||
<if test="outpatientNumber != null">outpatient_number =
|
||||
#{outpatientNumber},
|
||||
</if>
|
||||
<if test="visitTime != null">visit_time =
|
||||
#{visitTime},
|
||||
</if>
|
||||
<if test="dischargeMethod != null">discharge_method =
|
||||
#{dischargeMethod},
|
||||
</if>
|
||||
<if test="openId != null">open_id =
|
||||
#{openId},
|
||||
</if>
|
||||
<if test="unionId != null">union_id =
|
||||
#{unionId},
|
||||
</if>
|
||||
<if test="patientSource != null">patient_source =
|
||||
#{patientSource},
|
||||
</if>
|
||||
<if test="delFlag != null">del_flag =
|
||||
#{delFlag},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deletePatientInfoById" parameterType="Long">
|
||||
update patient_info set del_flag = 1
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="deletePatientInfoByIds" parameterType="String">
|
||||
update patient_info set del_flag = 1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
@ -0,0 +1,215 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientpropaganda.PatientPropagandaMapper">
|
||||
|
||||
<resultMap type="PatientPropaganda" id="PatientPropagandaResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="propagandaId" column="propaganda_id"/>
|
||||
<result property="departmentName" column="department_name"/>
|
||||
<result property="propagandaTitle" column="propaganda_title"/>
|
||||
<result property="propagandaType" column="propaganda_type"/>
|
||||
<result property="propagandaCode" column="propaganda_code"/>
|
||||
<result property="propagandaContent" column="propaganda_content"/>
|
||||
<result property="propagandaCoverPath" column="propaganda_cover_path"/>
|
||||
<result property="articleSummary" column="article_summary"/>
|
||||
<result property="voicebroadcast" column="voicebroadcast"/>
|
||||
<result property="diseaseTypeName" column="disease_type_name"/>
|
||||
<result property="propagandaLink" column="propaganda_link"/>
|
||||
<result property="propagandaBarcodePath" column="propaganda_barcode_path"/>
|
||||
<result property="remark" column="remark"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientPropagandaVo">
|
||||
select id, patient_id, propaganda_id, department_name, propaganda_title, propaganda_type, propaganda_code, propaganda_content, propaganda_cover_path, article_summary, voicebroadcast, disease_type_name, propaganda_link, propaganda_barcode_path, remark, create_by, create_time, update_by, update_time from patient_propaganda
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientPropagandaList" parameterType="PatientPropaganda" resultMap="PatientPropagandaResult">
|
||||
<include refid="selectPatientPropagandaVo"/>
|
||||
<where>
|
||||
<if test="patientId != null ">
|
||||
and patient_id = #{patientId}
|
||||
</if>
|
||||
<if test="propagandaId != null ">
|
||||
and propaganda_id = #{propagandaId}
|
||||
</if>
|
||||
<if test="departmentName != null and departmentName != ''">
|
||||
and department_name like concat('%', #{departmentName}, '%')
|
||||
</if>
|
||||
<if test="propagandaTitle != null and propagandaTitle != ''">
|
||||
and propaganda_title = #{propagandaTitle}
|
||||
</if>
|
||||
<if test="propagandaType != null and propagandaType != ''">
|
||||
and propaganda_type = #{propagandaType}
|
||||
</if>
|
||||
<if test="propagandaCode != null and propagandaCode != ''">
|
||||
and propaganda_code = #{propagandaCode}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientPropagandaById" parameterType="Long"
|
||||
resultMap="PatientPropagandaResult">
|
||||
<include refid="selectPatientPropagandaVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientPropaganda" parameterType="PatientPropaganda" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into patient_propaganda
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id,
|
||||
</if>
|
||||
<if test="propagandaId != null">propaganda_id,
|
||||
</if>
|
||||
<if test="departmentName != null">department_name,
|
||||
</if>
|
||||
<if test="propagandaTitle != null">propaganda_title,
|
||||
</if>
|
||||
<if test="propagandaType != null">propaganda_type,
|
||||
</if>
|
||||
<if test="propagandaCode != null">propaganda_code,
|
||||
</if>
|
||||
<if test="propagandaContent != null">propaganda_content,
|
||||
</if>
|
||||
<if test="propagandaCoverPath != null">propaganda_cover_path,
|
||||
</if>
|
||||
<if test="articleSummary != null">article_summary,
|
||||
</if>
|
||||
<if test="voicebroadcast != null">voicebroadcast,
|
||||
</if>
|
||||
<if test="diseaseTypeName != null">disease_type_name,
|
||||
</if>
|
||||
<if test="propagandaLink != null">propaganda_link,
|
||||
</if>
|
||||
<if test="propagandaBarcodePath != null">propaganda_barcode_path,
|
||||
</if>
|
||||
<if test="remark != null">remark,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">#{patientId},
|
||||
</if>
|
||||
<if test="propagandaId != null">#{propagandaId},
|
||||
</if>
|
||||
<if test="departmentName != null">#{departmentName},
|
||||
</if>
|
||||
<if test="propagandaTitle != null">#{propagandaTitle},
|
||||
</if>
|
||||
<if test="propagandaType != null">#{propagandaType},
|
||||
</if>
|
||||
<if test="propagandaCode != null">#{propagandaCode},
|
||||
</if>
|
||||
<if test="propagandaContent != null">#{propagandaContent},
|
||||
</if>
|
||||
<if test="propagandaCoverPath != null">#{propagandaCoverPath},
|
||||
</if>
|
||||
<if test="articleSummary != null">#{articleSummary},
|
||||
</if>
|
||||
<if test="voicebroadcast != null">#{voicebroadcast},
|
||||
</if>
|
||||
<if test="diseaseTypeName != null">#{diseaseTypeName},
|
||||
</if>
|
||||
<if test="propagandaLink != null">#{propagandaLink},
|
||||
</if>
|
||||
<if test="propagandaBarcodePath != null">#{propagandaBarcodePath},
|
||||
</if>
|
||||
<if test="remark != null">#{remark},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePatientPropaganda" parameterType="PatientPropaganda">
|
||||
update patient_propaganda
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id =
|
||||
#{patientId},
|
||||
</if>
|
||||
<if test="propagandaId != null">propaganda_id =
|
||||
#{propagandaId},
|
||||
</if>
|
||||
<if test="departmentName != null">department_name =
|
||||
#{departmentName},
|
||||
</if>
|
||||
<if test="propagandaTitle != null">propaganda_title =
|
||||
#{propagandaTitle},
|
||||
</if>
|
||||
<if test="propagandaType != null">propaganda_type =
|
||||
#{propagandaType},
|
||||
</if>
|
||||
<if test="propagandaCode != null">propaganda_code =
|
||||
#{propagandaCode},
|
||||
</if>
|
||||
<if test="propagandaContent != null">propaganda_content =
|
||||
#{propagandaContent},
|
||||
</if>
|
||||
<if test="propagandaCoverPath != null">propaganda_cover_path =
|
||||
#{propagandaCoverPath},
|
||||
</if>
|
||||
<if test="articleSummary != null">article_summary =
|
||||
#{articleSummary},
|
||||
</if>
|
||||
<if test="voicebroadcast != null">voicebroadcast =
|
||||
#{voicebroadcast},
|
||||
</if>
|
||||
<if test="diseaseTypeName != null">disease_type_name =
|
||||
#{diseaseTypeName},
|
||||
</if>
|
||||
<if test="propagandaLink != null">propaganda_link =
|
||||
#{propagandaLink},
|
||||
</if>
|
||||
<if test="propagandaBarcodePath != null">propaganda_barcode_path =
|
||||
#{propagandaBarcodePath},
|
||||
</if>
|
||||
<if test="remark != null">remark =
|
||||
#{remark},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePatientPropagandaById" parameterType="Long">
|
||||
delete from patient_propaganda where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePatientPropagandaByIds" parameterType="String">
|
||||
delete from patient_propaganda where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,261 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientvisitinhospital.PatientVisitInHospitalMapper">
|
||||
|
||||
<resultMap type="PatientVisitInHospital" id="PatientVisitInHospitalResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientVisitRecordId" column="patient_visit_record_id"/>
|
||||
<result property="chiefComplaint" column="chief_complaint"/>
|
||||
<result property="presentIllnessHistory" column="present_illness_history"/>
|
||||
<result property="pastHistory" column="past_history"/>
|
||||
<result property="personalHistory" column="personal_history"/>
|
||||
<result property="maritalHistory" column="marital_history"/>
|
||||
<result property="menstrualFertilityHistory" column="menstrual_fertility_history"/>
|
||||
<result property="familyHistory" column="family_history"/>
|
||||
<result property="patientsSignature" column="patients_signature"/>
|
||||
<result property="confirmedSignature" column="confirmed_signature"/>
|
||||
<result property="signatureDate" column="signature_date"/>
|
||||
<result property="physicalExamination" column="physical_examination"/>
|
||||
<result property="specialityExamination" column="speciality_examination"/>
|
||||
<result property="assistantExamination" column="assistant_examination"/>
|
||||
<result property="primaryDiagnosis" column="primary_diagnosis"/>
|
||||
<result property="physicianSignature" column="physician_signature"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientVisitInHospitalVo">
|
||||
select id, patient_visit_record_id, chief_complaint, present_illness_history, past_history, personal_history, marital_history, menstrual_fertility_history, family_history, patients_signature, confirmed_signature, signature_date, physical_examination, speciality_examination, assistant_examination, primary_diagnosis, physician_signature, create_by, create_time, update_by, update_time from patient_visit_in_hospital
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientVisitInHospitalList" parameterType="PatientVisitInHospital" resultMap="PatientVisitInHospitalResult">
|
||||
<include refid="selectPatientVisitInHospitalVo"/>
|
||||
<where>
|
||||
<if test="patientVisitRecordId != null ">
|
||||
and patient_visit_record_id = #{patientVisitRecordId}
|
||||
</if>
|
||||
<if test="chiefComplaint != null and chiefComplaint != ''">
|
||||
and chief_complaint = #{chiefComplaint}
|
||||
</if>
|
||||
<if test="presentIllnessHistory != null and presentIllnessHistory != ''">
|
||||
and present_illness_history = #{presentIllnessHistory}
|
||||
</if>
|
||||
<if test="pastHistory != null and pastHistory != ''">
|
||||
and past_history = #{pastHistory}
|
||||
</if>
|
||||
<if test="personalHistory != null and personalHistory != ''">
|
||||
and personal_history = #{personalHistory}
|
||||
</if>
|
||||
<if test="maritalHistory != null and maritalHistory != ''">
|
||||
and marital_history = #{maritalHistory}
|
||||
</if>
|
||||
<if test="menstrualFertilityHistory != null and menstrualFertilityHistory != ''">
|
||||
and menstrual_fertility_history = #{menstrualFertilityHistory}
|
||||
</if>
|
||||
<if test="familyHistory != null and familyHistory != ''">
|
||||
and family_history = #{familyHistory}
|
||||
</if>
|
||||
<if test="patientsSignature != null and patientsSignature != ''">
|
||||
and patients_signature = #{patientsSignature}
|
||||
</if>
|
||||
<if test="confirmedSignature != null and confirmedSignature != ''">
|
||||
and confirmed_signature = #{confirmedSignature}
|
||||
</if>
|
||||
<if test="signatureDate != null ">
|
||||
and signature_date = #{signatureDate}
|
||||
</if>
|
||||
<if test="physicalExamination != null and physicalExamination != ''">
|
||||
and physical_examination = #{physicalExamination}
|
||||
</if>
|
||||
<if test="specialityExamination != null and specialityExamination != ''">
|
||||
and speciality_examination = #{specialityExamination}
|
||||
</if>
|
||||
<if test="assistantExamination != null and assistantExamination != ''">
|
||||
and assistant_examination = #{assistantExamination}
|
||||
</if>
|
||||
<if test="primaryDiagnosis != null and primaryDiagnosis != ''">
|
||||
and primary_diagnosis = #{primaryDiagnosis}
|
||||
</if>
|
||||
<if test="physicianSignature != null and physicianSignature != ''">
|
||||
and physician_signature = #{physicianSignature}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientVisitInHospitalById" parameterType="Long"
|
||||
resultMap="PatientVisitInHospitalResult">
|
||||
<include refid="selectPatientVisitInHospitalVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientVisitInHospital" parameterType="PatientVisitInHospital" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into patient_visit_in_hospital
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">patient_visit_record_id,
|
||||
</if>
|
||||
<if test="chiefComplaint != null">chief_complaint,
|
||||
</if>
|
||||
<if test="presentIllnessHistory != null">present_illness_history,
|
||||
</if>
|
||||
<if test="pastHistory != null">past_history,
|
||||
</if>
|
||||
<if test="personalHistory != null">personal_history,
|
||||
</if>
|
||||
<if test="maritalHistory != null">marital_history,
|
||||
</if>
|
||||
<if test="menstrualFertilityHistory != null">menstrual_fertility_history,
|
||||
</if>
|
||||
<if test="familyHistory != null">family_history,
|
||||
</if>
|
||||
<if test="patientsSignature != null">patients_signature,
|
||||
</if>
|
||||
<if test="confirmedSignature != null">confirmed_signature,
|
||||
</if>
|
||||
<if test="signatureDate != null">signature_date,
|
||||
</if>
|
||||
<if test="physicalExamination != null">physical_examination,
|
||||
</if>
|
||||
<if test="specialityExamination != null">speciality_examination,
|
||||
</if>
|
||||
<if test="assistantExamination != null">assistant_examination,
|
||||
</if>
|
||||
<if test="primaryDiagnosis != null">primary_diagnosis,
|
||||
</if>
|
||||
<if test="physicianSignature != null">physician_signature,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">#{patientVisitRecordId},
|
||||
</if>
|
||||
<if test="chiefComplaint != null">#{chiefComplaint},
|
||||
</if>
|
||||
<if test="presentIllnessHistory != null">#{presentIllnessHistory},
|
||||
</if>
|
||||
<if test="pastHistory != null">#{pastHistory},
|
||||
</if>
|
||||
<if test="personalHistory != null">#{personalHistory},
|
||||
</if>
|
||||
<if test="maritalHistory != null">#{maritalHistory},
|
||||
</if>
|
||||
<if test="menstrualFertilityHistory != null">#{menstrualFertilityHistory},
|
||||
</if>
|
||||
<if test="familyHistory != null">#{familyHistory},
|
||||
</if>
|
||||
<if test="patientsSignature != null">#{patientsSignature},
|
||||
</if>
|
||||
<if test="confirmedSignature != null">#{confirmedSignature},
|
||||
</if>
|
||||
<if test="signatureDate != null">#{signatureDate},
|
||||
</if>
|
||||
<if test="physicalExamination != null">#{physicalExamination},
|
||||
</if>
|
||||
<if test="specialityExamination != null">#{specialityExamination},
|
||||
</if>
|
||||
<if test="assistantExamination != null">#{assistantExamination},
|
||||
</if>
|
||||
<if test="primaryDiagnosis != null">#{primaryDiagnosis},
|
||||
</if>
|
||||
<if test="physicianSignature != null">#{physicianSignature},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePatientVisitInHospital" parameterType="PatientVisitInHospital">
|
||||
update patient_visit_in_hospital
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">patient_visit_record_id =
|
||||
#{patientVisitRecordId},
|
||||
</if>
|
||||
<if test="chiefComplaint != null">chief_complaint =
|
||||
#{chiefComplaint},
|
||||
</if>
|
||||
<if test="presentIllnessHistory != null">present_illness_history =
|
||||
#{presentIllnessHistory},
|
||||
</if>
|
||||
<if test="pastHistory != null">past_history =
|
||||
#{pastHistory},
|
||||
</if>
|
||||
<if test="personalHistory != null">personal_history =
|
||||
#{personalHistory},
|
||||
</if>
|
||||
<if test="maritalHistory != null">marital_history =
|
||||
#{maritalHistory},
|
||||
</if>
|
||||
<if test="menstrualFertilityHistory != null">menstrual_fertility_history =
|
||||
#{menstrualFertilityHistory},
|
||||
</if>
|
||||
<if test="familyHistory != null">family_history =
|
||||
#{familyHistory},
|
||||
</if>
|
||||
<if test="patientsSignature != null">patients_signature =
|
||||
#{patientsSignature},
|
||||
</if>
|
||||
<if test="confirmedSignature != null">confirmed_signature =
|
||||
#{confirmedSignature},
|
||||
</if>
|
||||
<if test="signatureDate != null">signature_date =
|
||||
#{signatureDate},
|
||||
</if>
|
||||
<if test="physicalExamination != null">physical_examination =
|
||||
#{physicalExamination},
|
||||
</if>
|
||||
<if test="specialityExamination != null">speciality_examination =
|
||||
#{specialityExamination},
|
||||
</if>
|
||||
<if test="assistantExamination != null">assistant_examination =
|
||||
#{assistantExamination},
|
||||
</if>
|
||||
<if test="primaryDiagnosis != null">primary_diagnosis =
|
||||
#{primaryDiagnosis},
|
||||
</if>
|
||||
<if test="physicianSignature != null">physician_signature =
|
||||
#{physicianSignature},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePatientVisitInHospitalById" parameterType="Long">
|
||||
delete from patient_visit_in_hospital where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePatientVisitInHospitalByIds" parameterType="String">
|
||||
delete from patient_visit_in_hospital where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,151 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientvisitoperation.PatientVisitOperationMapper">
|
||||
|
||||
<resultMap type="PatientVisitOperation" id="PatientVisitOperationResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientVisitRecordId" column="patient_visit_record_id"/>
|
||||
<result property="operationName" column="operation_name"/>
|
||||
<result property="operationDate" column="operation_date"/>
|
||||
<result property="operationAnesthesiaWay" column="operation_anesthesia_way"/>
|
||||
<result property="operationApproach" column="operation_approach"/>
|
||||
<result property="operationWay" column="operation_way"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientVisitOperationVo">
|
||||
select id, patient_visit_record_id, operation_name, operation_date, operation_anesthesia_way, operation_approach, operation_way, create_by, create_time, update_by, update_time from patient_visit_operation
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientVisitOperationList" parameterType="PatientVisitOperation" resultMap="PatientVisitOperationResult">
|
||||
<include refid="selectPatientVisitOperationVo"/>
|
||||
<where>
|
||||
<if test="patientVisitRecordId != null ">
|
||||
and patient_visit_record_id = #{patientVisitRecordId}
|
||||
</if>
|
||||
<if test="operationName != null and operationName != ''">
|
||||
and operation_name like concat('%', #{operationName}, '%')
|
||||
</if>
|
||||
<if test="operationDate != null ">
|
||||
and operation_date = #{operationDate}
|
||||
</if>
|
||||
<if test="operationAnesthesiaWay != null and operationAnesthesiaWay != ''">
|
||||
and operation_anesthesia_way = #{operationAnesthesiaWay}
|
||||
</if>
|
||||
<if test="operationApproach != null and operationApproach != ''">
|
||||
and operation_approach = #{operationApproach}
|
||||
</if>
|
||||
<if test="operationWay != null and operationWay != ''">
|
||||
and operation_way = #{operationWay}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientVisitOperationById" parameterType="Long"
|
||||
resultMap="PatientVisitOperationResult">
|
||||
<include refid="selectPatientVisitOperationVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientVisitOperation" parameterType="PatientVisitOperation" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into patient_visit_operation
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">patient_visit_record_id,
|
||||
</if>
|
||||
<if test="operationName != null">operation_name,
|
||||
</if>
|
||||
<if test="operationDate != null">operation_date,
|
||||
</if>
|
||||
<if test="operationAnesthesiaWay != null">operation_anesthesia_way,
|
||||
</if>
|
||||
<if test="operationApproach != null">operation_approach,
|
||||
</if>
|
||||
<if test="operationWay != null">operation_way,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">#{patientVisitRecordId},
|
||||
</if>
|
||||
<if test="operationName != null">#{operationName},
|
||||
</if>
|
||||
<if test="operationDate != null">#{operationDate},
|
||||
</if>
|
||||
<if test="operationAnesthesiaWay != null">#{operationAnesthesiaWay},
|
||||
</if>
|
||||
<if test="operationApproach != null">#{operationApproach},
|
||||
</if>
|
||||
<if test="operationWay != null">#{operationWay},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePatientVisitOperation" parameterType="PatientVisitOperation">
|
||||
update patient_visit_operation
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">patient_visit_record_id =
|
||||
#{patientVisitRecordId},
|
||||
</if>
|
||||
<if test="operationName != null">operation_name =
|
||||
#{operationName},
|
||||
</if>
|
||||
<if test="operationDate != null">operation_date =
|
||||
#{operationDate},
|
||||
</if>
|
||||
<if test="operationAnesthesiaWay != null">operation_anesthesia_way =
|
||||
#{operationAnesthesiaWay},
|
||||
</if>
|
||||
<if test="operationApproach != null">operation_approach =
|
||||
#{operationApproach},
|
||||
</if>
|
||||
<if test="operationWay != null">operation_way =
|
||||
#{operationWay},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePatientVisitOperationById" parameterType="Long">
|
||||
delete from patient_visit_operation where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePatientVisitOperationByIds" parameterType="String">
|
||||
delete from patient_visit_operation where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,162 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientvisitouthospital.PatientVisitOutHospitalMapper">
|
||||
|
||||
<resultMap type="PatientVisitOutHospital" id="PatientVisitOutHospitalResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientVisitRecordId" column="patient_visit_record_id"/>
|
||||
<result property="admissionDiagnosis" column="admission_diagnosis"/>
|
||||
<result property="admissionSituation" column="admission_situation"/>
|
||||
<result property="diagnosisTreatmentProcess" column="diagnosis_treatment_process"/>
|
||||
<result property="dischargeDiagnosis" column="discharge_diagnosis"/>
|
||||
<result property="dischargeStatus" column="discharge_status"/>
|
||||
<result property="dischargeOrder" column="discharge_order"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientVisitOutHospitalVo">
|
||||
select id, patient_visit_record_id, admission_diagnosis, admission_situation, diagnosis_treatment_process, discharge_diagnosis, discharge_status, discharge_order, create_by, create_time, update_by, update_time from patient_visit_out_hospital
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientVisitOutHospitalList" parameterType="PatientVisitOutHospital" resultMap="PatientVisitOutHospitalResult">
|
||||
<include refid="selectPatientVisitOutHospitalVo"/>
|
||||
<where>
|
||||
<if test="patientVisitRecordId != null ">
|
||||
and patient_visit_record_id = #{patientVisitRecordId}
|
||||
</if>
|
||||
<if test="admissionDiagnosis != null and admissionDiagnosis != ''">
|
||||
and admission_diagnosis = #{admissionDiagnosis}
|
||||
</if>
|
||||
<if test="admissionSituation != null and admissionSituation != ''">
|
||||
and admission_situation = #{admissionSituation}
|
||||
</if>
|
||||
<if test="diagnosisTreatmentProcess != null and diagnosisTreatmentProcess != ''">
|
||||
and diagnosis_treatment_process = #{diagnosisTreatmentProcess}
|
||||
</if>
|
||||
<if test="dischargeDiagnosis != null and dischargeDiagnosis != ''">
|
||||
and discharge_diagnosis = #{dischargeDiagnosis}
|
||||
</if>
|
||||
<if test="dischargeStatus != null and dischargeStatus != ''">
|
||||
and discharge_status = #{dischargeStatus}
|
||||
</if>
|
||||
<if test="dischargeOrder != null and dischargeOrder != ''">
|
||||
and discharge_order = #{dischargeOrder}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientVisitOutHospitalById" parameterType="Long"
|
||||
resultMap="PatientVisitOutHospitalResult">
|
||||
<include refid="selectPatientVisitOutHospitalVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientVisitOutHospital" parameterType="PatientVisitOutHospital" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into patient_visit_out_hospital
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">patient_visit_record_id,
|
||||
</if>
|
||||
<if test="admissionDiagnosis != null">admission_diagnosis,
|
||||
</if>
|
||||
<if test="admissionSituation != null">admission_situation,
|
||||
</if>
|
||||
<if test="diagnosisTreatmentProcess != null">diagnosis_treatment_process,
|
||||
</if>
|
||||
<if test="dischargeDiagnosis != null">discharge_diagnosis,
|
||||
</if>
|
||||
<if test="dischargeStatus != null">discharge_status,
|
||||
</if>
|
||||
<if test="dischargeOrder != null">discharge_order,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">#{patientVisitRecordId},
|
||||
</if>
|
||||
<if test="admissionDiagnosis != null">#{admissionDiagnosis},
|
||||
</if>
|
||||
<if test="admissionSituation != null">#{admissionSituation},
|
||||
</if>
|
||||
<if test="diagnosisTreatmentProcess != null">#{diagnosisTreatmentProcess},
|
||||
</if>
|
||||
<if test="dischargeDiagnosis != null">#{dischargeDiagnosis},
|
||||
</if>
|
||||
<if test="dischargeStatus != null">#{dischargeStatus},
|
||||
</if>
|
||||
<if test="dischargeOrder != null">#{dischargeOrder},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePatientVisitOutHospital" parameterType="PatientVisitOutHospital">
|
||||
update patient_visit_out_hospital
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientVisitRecordId != null">patient_visit_record_id =
|
||||
#{patientVisitRecordId},
|
||||
</if>
|
||||
<if test="admissionDiagnosis != null">admission_diagnosis =
|
||||
#{admissionDiagnosis},
|
||||
</if>
|
||||
<if test="admissionSituation != null">admission_situation =
|
||||
#{admissionSituation},
|
||||
</if>
|
||||
<if test="diagnosisTreatmentProcess != null">diagnosis_treatment_process =
|
||||
#{diagnosisTreatmentProcess},
|
||||
</if>
|
||||
<if test="dischargeDiagnosis != null">discharge_diagnosis =
|
||||
#{dischargeDiagnosis},
|
||||
</if>
|
||||
<if test="dischargeStatus != null">discharge_status =
|
||||
#{dischargeStatus},
|
||||
</if>
|
||||
<if test="dischargeOrder != null">discharge_order =
|
||||
#{dischargeOrder},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePatientVisitOutHospitalById" parameterType="Long">
|
||||
delete from patient_visit_out_hospital where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePatientVisitOutHospitalByIds" parameterType="String">
|
||||
delete from patient_visit_out_hospital where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@ -0,0 +1,230 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xinelu.manage.mapper.patientvisitrecord.PatientVisitRecordMapper">
|
||||
|
||||
<resultMap type="PatientVisitRecord" id="PatientVisitRecordResult">
|
||||
<result property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="visitDept" column="visit_dept"/>
|
||||
<result property="visitName" column="visit_name"/>
|
||||
<result property="visitDate" column="visit_date"/>
|
||||
<result property="visitType" column="visit_type"/>
|
||||
<result property="patientName" column="patient_name"/>
|
||||
<result property="birthplace" column="birthplace"/>
|
||||
<result property="sex" column="sex"/>
|
||||
<result property="age" column="age"/>
|
||||
<result property="nation" column="nation"/>
|
||||
<result property="marriage" column="marriage"/>
|
||||
<result property="medicalHistoryNarrator" column="medical_history_narrator"/>
|
||||
<result property="admissionTime" column="admission_time"/>
|
||||
<result property="dischargeTime" column="discharge_time"/>
|
||||
<result property="recordTime" column="record_time"/>
|
||||
<result property="outpatientVisitInfo" column="outpatient_visit_info"/>
|
||||
<result property="hospitalizationDays" column="hospitalization_days"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPatientVisitRecordVo">
|
||||
select id, patient_id, visit_dept, visit_name, visit_date, visit_type, patient_name, birthplace, sex, age, nation, marriage, medical_history_narrator, admission_time, discharge_time, record_time, outpatient_visit_info, hospitalization_days, create_by, create_time, update_by, update_time from patient_visit_record
|
||||
</sql>
|
||||
|
||||
<select id="selectPatientVisitRecordList" parameterType="com.xinelu.manage.dto.patientvisitrecord.PatientVisitRecordDto" resultMap="PatientVisitRecordResult">
|
||||
<include refid="selectPatientVisitRecordVo"/>
|
||||
<where>
|
||||
<if test="patientId != null ">
|
||||
and patient_id = #{patientId}
|
||||
</if>
|
||||
<if test="visitDateStart != null ">
|
||||
and visit_date >= #{visitDateStart}
|
||||
</if>
|
||||
<if test="visitDateEnd != null ">
|
||||
and visit_date <= #{visitDateEnd}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPatientVisitRecordById" parameterType="Long"
|
||||
resultMap="PatientVisitRecordResult">
|
||||
<include refid="selectPatientVisitRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPatientVisitRecord" parameterType="PatientVisitRecord" useGeneratedKeys="true"
|
||||
keyProperty="id">
|
||||
insert into patient_visit_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id,
|
||||
</if>
|
||||
<if test="visitDept != null">visit_dept,
|
||||
</if>
|
||||
<if test="visitName != null">visit_name,
|
||||
</if>
|
||||
<if test="visitDate != null">visit_date,
|
||||
</if>
|
||||
<if test="visitType != null">visit_type,
|
||||
</if>
|
||||
<if test="patientName != null">patient_name,
|
||||
</if>
|
||||
<if test="birthplace != null">birthplace,
|
||||
</if>
|
||||
<if test="sex != null">sex,
|
||||
</if>
|
||||
<if test="age != null">age,
|
||||
</if>
|
||||
<if test="nation != null">nation,
|
||||
</if>
|
||||
<if test="marriage != null">marriage,
|
||||
</if>
|
||||
<if test="medicalHistoryNarrator != null">medical_history_narrator,
|
||||
</if>
|
||||
<if test="admissionTime != null">admission_time,
|
||||
</if>
|
||||
<if test="dischargeTime != null">discharge_time,
|
||||
</if>
|
||||
<if test="recordTime != null">record_time,
|
||||
</if>
|
||||
<if test="outpatientVisitInfo != null">outpatient_visit_info,
|
||||
</if>
|
||||
<if test="hospitalizationDays != null">hospitalization_days,
|
||||
</if>
|
||||
<if test="createBy != null">create_by,
|
||||
</if>
|
||||
<if test="createTime != null">create_time,
|
||||
</if>
|
||||
<if test="updateBy != null">update_by,
|
||||
</if>
|
||||
<if test="updateTime != null">update_time,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="patientId != null">#{patientId},
|
||||
</if>
|
||||
<if test="visitDept != null">#{visitDept},
|
||||
</if>
|
||||
<if test="visitName != null">#{visitName},
|
||||
</if>
|
||||
<if test="visitDate != null">#{visitDate},
|
||||
</if>
|
||||
<if test="visitType != null">#{visitType},
|
||||
</if>
|
||||
<if test="patientName != null">#{patientName},
|
||||
</if>
|
||||
<if test="birthplace != null">#{birthplace},
|
||||
</if>
|
||||
<if test="sex != null">#{sex},
|
||||
</if>
|
||||
<if test="age != null">#{age},
|
||||
</if>
|
||||
<if test="nation != null">#{nation},
|
||||
</if>
|
||||
<if test="marriage != null">#{marriage},
|
||||
</if>
|
||||
<if test="medicalHistoryNarrator != null">#{medicalHistoryNarrator},
|
||||
</if>
|
||||
<if test="admissionTime != null">#{admissionTime},
|
||||
</if>
|
||||
<if test="dischargeTime != null">#{dischargeTime},
|
||||
</if>
|
||||
<if test="recordTime != null">#{recordTime},
|
||||
</if>
|
||||
<if test="outpatientVisitInfo != null">#{outpatientVisitInfo},
|
||||
</if>
|
||||
<if test="hospitalizationDays != null">#{hospitalizationDays},
|
||||
</if>
|
||||
<if test="createBy != null">#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePatientVisitRecord" parameterType="PatientVisitRecord">
|
||||
update patient_visit_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="patientId != null">patient_id =
|
||||
#{patientId},
|
||||
</if>
|
||||
<if test="visitDept != null">visit_dept =
|
||||
#{visitDept},
|
||||
</if>
|
||||
<if test="visitName != null">visit_name =
|
||||
#{visitName},
|
||||
</if>
|
||||
<if test="visitDate != null">visit_date =
|
||||
#{visitDate},
|
||||
</if>
|
||||
<if test="visitType != null">visit_type =
|
||||
#{visitType},
|
||||
</if>
|
||||
<if test="patientName != null">patient_name =
|
||||
#{patientName},
|
||||
</if>
|
||||
<if test="birthplace != null">birthplace =
|
||||
#{birthplace},
|
||||
</if>
|
||||
<if test="sex != null">sex =
|
||||
#{sex},
|
||||
</if>
|
||||
<if test="age != null">age =
|
||||
#{age},
|
||||
</if>
|
||||
<if test="nation != null">nation =
|
||||
#{nation},
|
||||
</if>
|
||||
<if test="marriage != null">marriage =
|
||||
#{marriage},
|
||||
</if>
|
||||
<if test="medicalHistoryNarrator != null">medical_history_narrator =
|
||||
#{medicalHistoryNarrator},
|
||||
</if>
|
||||
<if test="admissionTime != null">admission_time =
|
||||
#{admissionTime},
|
||||
</if>
|
||||
<if test="dischargeTime != null">discharge_time =
|
||||
#{dischargeTime},
|
||||
</if>
|
||||
<if test="recordTime != null">record_time =
|
||||
#{recordTime},
|
||||
</if>
|
||||
<if test="outpatientVisitInfo != null">outpatient_visit_info =
|
||||
#{outpatientVisitInfo},
|
||||
</if>
|
||||
<if test="hospitalizationDays != null">hospitalization_days =
|
||||
#{hospitalizationDays},
|
||||
</if>
|
||||
<if test="createBy != null">create_by =
|
||||
#{createBy},
|
||||
</if>
|
||||
<if test="createTime != null">create_time =
|
||||
#{createTime},
|
||||
</if>
|
||||
<if test="updateBy != null">update_by =
|
||||
#{updateBy},
|
||||
</if>
|
||||
<if test="updateTime != null">update_time =
|
||||
#{updateTime},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePatientVisitRecordById" parameterType="Long">
|
||||
delete from patient_visit_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePatientVisitRecordByIds" parameterType="String">
|
||||
delete from patient_visit_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user