初始化代码-自动分段
parent
1f908249d8
commit
60e570b252
@ -0,0 +1,83 @@
|
||||
package com.docus.server.api.segmentation;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
|
||||
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
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 java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 患者信息表 API
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrBasicApi")
|
||||
@RequestMapping("/ocrBasic")
|
||||
public interface OcrBasicApi {
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/find/{id}")
|
||||
OcrBasicVO findById(@PathVariable(value = "id") Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/findAll")
|
||||
List<OcrBasicVO> findAll();
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/search")
|
||||
PageResult<OcrBasicVO> search(@RequestBody SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrBasicDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
void add(@RequestBody AddOcrBasicDTO addOcrBasicDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrBasicDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PutMapping("/edit")
|
||||
void edit(@RequestBody EditOcrBasicDTO editOcrBasicDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrBasicDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@DeleteMapping("/delete")
|
||||
int delete(@RequestBody DeleteOcrBasicDTO deleteOcrBasicDTO);
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.docus.server.api.segmentation;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.AddOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.DeleteOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.EditOcrConfigDTO;
|
||||
import com.docus.server.vo.segmentation.ocrconfig.OcrConfigVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
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 java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 基础配置表 API
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrConfigApi")
|
||||
@RequestMapping("/ocrConfig")
|
||||
public interface OcrConfigApi {
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/find/{id}")
|
||||
OcrConfigVO findById(@PathVariable(value = "id") Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/findAll")
|
||||
List<OcrConfigVO> findAll();
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/search")
|
||||
PageResult<OcrConfigVO> search(@RequestBody SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrConfigDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
void add(@RequestBody AddOcrConfigDTO addOcrConfigDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrConfigDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PutMapping("/edit")
|
||||
void edit(@RequestBody EditOcrConfigDTO editOcrConfigDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrConfigDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@DeleteMapping("/delete")
|
||||
int delete(@RequestBody DeleteOcrConfigDTO deleteOcrConfigDTO);
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.docus.server.api.segmentation;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
|
||||
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
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 java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* ocr文件信息 API
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrFileInfoApi")
|
||||
@RequestMapping("/ocrFileInfo")
|
||||
public interface OcrFileInfoApi {
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/find/{id}")
|
||||
OcrFileInfoVO findById(@PathVariable(value = "id") Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/findAll")
|
||||
List<OcrFileInfoVO> findAll();
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/search")
|
||||
PageResult<OcrFileInfoVO> search(@RequestBody SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrFileInfoDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
void add(@RequestBody AddOcrFileInfoDTO addOcrFileInfoDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrFileInfoDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PutMapping("/edit")
|
||||
void edit(@RequestBody EditOcrFileInfoDTO editOcrFileInfoDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrFileInfoDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@DeleteMapping("/delete")
|
||||
int delete(@RequestBody DeleteOcrFileInfoDTO deleteOcrFileInfoDTO);
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.docus.server.api.segmentation;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
|
||||
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
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 java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 匹配策略表 API
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrRuleApi")
|
||||
@RequestMapping("/ocrRule")
|
||||
public interface OcrRuleApi {
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/find/{id}")
|
||||
OcrRuleVO findById(@PathVariable(value = "id") Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/findAll")
|
||||
List<OcrRuleVO> findAll();
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/search")
|
||||
PageResult<OcrRuleVO> search(@RequestBody SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrRuleDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
void add(@RequestBody AddOcrRuleDTO addOcrRuleDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrRuleDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PutMapping("/edit")
|
||||
void edit(@RequestBody EditOcrRuleDTO editOcrRuleDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrRuleDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@DeleteMapping("/delete")
|
||||
int delete(@RequestBody DeleteOcrRuleDTO deleteOcrRuleDTO);
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.docus.server.api.segmentation;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.AddOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.DeleteOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.EditOcrSpecialDetailDTO;
|
||||
import com.docus.server.vo.segmentation.ocrspecialdetail.OcrSpecialDetailVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
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 java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 特殊规则详情 API
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrSpecialDetailApi")
|
||||
@RequestMapping("/ocrSpecialDetail")
|
||||
public interface OcrSpecialDetailApi {
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/find/{id}")
|
||||
OcrSpecialDetailVO findById(@PathVariable(value = "id") Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/findAll")
|
||||
List<OcrSpecialDetailVO> findAll();
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/search")
|
||||
PageResult<OcrSpecialDetailVO> search(@RequestBody SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrSpecialDetailDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
void add(@RequestBody AddOcrSpecialDetailDTO addOcrSpecialDetailDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrSpecialDetailDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PutMapping("/edit")
|
||||
void edit(@RequestBody EditOcrSpecialDetailDTO editOcrSpecialDetailDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrSpecialDetailDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@DeleteMapping("/delete")
|
||||
int delete(@RequestBody DeleteOcrSpecialDetailDTO deleteOcrSpecialDetailDTO);
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.docus.server.api.segmentation;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
|
||||
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
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 java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 特殊策略表 API
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrSpecialRuleApi")
|
||||
@RequestMapping("/ocrSpecialRule")
|
||||
public interface OcrSpecialRuleApi {
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/find/{id}")
|
||||
OcrSpecialRuleVO findById(@PathVariable(value = "id") Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/findAll")
|
||||
List<OcrSpecialRuleVO> findAll();
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/search")
|
||||
PageResult<OcrSpecialRuleVO> search(@RequestBody SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrSpecialRuleDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
void add(@RequestBody AddOcrSpecialRuleDTO addOcrSpecialRuleDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrSpecialRuleDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PutMapping("/edit")
|
||||
void edit(@RequestBody EditOcrSpecialRuleDTO editOcrSpecialRuleDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrSpecialRuleDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@DeleteMapping("/delete")
|
||||
int delete(@RequestBody DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO);
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package com.docus.server.api.segmentation;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
|
||||
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
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 java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 正式数据版本号管理 API
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@FeignClient(value = "docus-segmentation", contextId = "docus-segmentation.OcrVersionApi")
|
||||
@RequestMapping("/ocrVersion")
|
||||
public interface OcrVersionApi {
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/find/{id}")
|
||||
OcrVersionVO findById(@PathVariable(value = "id") Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@GetMapping("/findAll")
|
||||
List<OcrVersionVO> findAll();
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@PostMapping("/search")
|
||||
PageResult<OcrVersionVO> search(@RequestBody SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrVersionDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PostMapping("/add")
|
||||
void add(@RequestBody AddOcrVersionDTO addOcrVersionDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrVersionDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@PutMapping("/edit")
|
||||
void edit(@RequestBody EditOcrVersionDTO editOcrVersionDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrVersionDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@DeleteMapping("/delete")
|
||||
int delete(@RequestBody DeleteOcrVersionDTO deleteOcrVersionDTO);
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package com.docus.server.dto.segmentation.ocrbasic;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 患者信息表 AddDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="AddOcrBasicDTO对象", description="患者信息表")
|
||||
public class AddOcrBasicDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "病案主键")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "病案号")
|
||||
private String inpatientNo;
|
||||
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "分段完成时间")
|
||||
private LocalDateTime ocrFinishTime;
|
||||
|
||||
@ApiModelProperty(value = "住院日期")
|
||||
private LocalDateTime admissDate;
|
||||
|
||||
@ApiModelProperty(value = "住院科室")
|
||||
private String admissDept;
|
||||
|
||||
@ApiModelProperty(value = "住院科室名称")
|
||||
private String admissDeptName;
|
||||
|
||||
@ApiModelProperty(value = "出院日期")
|
||||
private LocalDateTime disDate;
|
||||
|
||||
@ApiModelProperty(value = "出院科室")
|
||||
private String disDept;
|
||||
|
||||
@ApiModelProperty(value = "出院科室名称")
|
||||
private String disDeptName;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "是否测试数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.docus.server.dto.segmentation.ocrbasic;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 患者信息表 DeleteDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="DeleteOcrBasicDTO对象", description="患者信息表")
|
||||
public class DeleteOcrBasicDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package com.docus.server.dto.segmentation.ocrbasic;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 患者信息表 EditDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="EditOcrBasicDTO对象", description="患者信息表")
|
||||
public class EditOcrBasicDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "病案主键")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "病案号")
|
||||
private String inpatientNo;
|
||||
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "分段完成时间")
|
||||
private LocalDateTime ocrFinishTime;
|
||||
|
||||
@ApiModelProperty(value = "住院日期")
|
||||
private LocalDateTime admissDate;
|
||||
|
||||
@ApiModelProperty(value = "住院科室")
|
||||
private String admissDept;
|
||||
|
||||
@ApiModelProperty(value = "住院科室名称")
|
||||
private String admissDeptName;
|
||||
|
||||
@ApiModelProperty(value = "出院日期")
|
||||
private LocalDateTime disDate;
|
||||
|
||||
@ApiModelProperty(value = "出院科室")
|
||||
private String disDept;
|
||||
|
||||
@ApiModelProperty(value = "出院科室名称")
|
||||
private String disDeptName;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "是否测试数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.docus.server.dto.segmentation.ocrconfig;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 基础配置表 AddDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="AddOcrConfigDTO对象", description="基础配置表")
|
||||
public class AddOcrConfigDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String configKey;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String configJson;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.docus.server.dto.segmentation.ocrconfig;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 基础配置表 DeleteDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="DeleteOcrConfigDTO对象", description="基础配置表")
|
||||
public class DeleteOcrConfigDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.docus.server.dto.segmentation.ocrconfig;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 基础配置表 EditDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="EditOcrConfigDTO对象", description="基础配置表")
|
||||
public class EditOcrConfigDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String configKey;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String configJson;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.docus.server.dto.segmentation.ocrfileinfo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* ocr文件信息 AddDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="AddOcrFileInfoDTO对象", description="ocr文件信息")
|
||||
public class AddOcrFileInfoDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "病案id")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String fileTitle;
|
||||
|
||||
@ApiModelProperty(value = "图片名称")
|
||||
private String picName;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer fileType;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer sort;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String serialNumber;
|
||||
|
||||
@ApiModelProperty(value = "图片地址")
|
||||
private String picUrl;
|
||||
|
||||
@ApiModelProperty(value = "图片分割后地址")
|
||||
private String picCutUrl;
|
||||
|
||||
@ApiModelProperty(value = "图片旋转角度(整数 90 180 360)")
|
||||
private Integer angle;
|
||||
|
||||
@ApiModelProperty(value = "识别文本结果")
|
||||
private String ocrText;
|
||||
|
||||
@ApiModelProperty(value = "分段完成时间")
|
||||
private LocalDateTime finshTime;
|
||||
|
||||
@ApiModelProperty(value = "分段状态 0正在分段 1完成分段")
|
||||
private Boolean ocrStatus;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private Integer assortId;
|
||||
|
||||
@ApiModelProperty(value = "分段名称")
|
||||
private String assortName;
|
||||
|
||||
@ApiModelProperty(value = "命中策略id")
|
||||
private Integer ruleId;
|
||||
|
||||
@ApiModelProperty(value = "命中关键词")
|
||||
private String key;
|
||||
|
||||
@ApiModelProperty(value = "命中占比")
|
||||
private Float rate;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.docus.server.dto.segmentation.ocrfileinfo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* ocr文件信息 DeleteDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="DeleteOcrFileInfoDTO对象", description="ocr文件信息")
|
||||
public class DeleteOcrFileInfoDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.docus.server.dto.segmentation.ocrfileinfo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* ocr文件信息 EditDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="EditOcrFileInfoDTO对象", description="ocr文件信息")
|
||||
public class EditOcrFileInfoDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "病案id")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String fileTitle;
|
||||
|
||||
@ApiModelProperty(value = "图片名称")
|
||||
private String picName;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer fileType;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer sort;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String serialNumber;
|
||||
|
||||
@ApiModelProperty(value = "图片地址")
|
||||
private String picUrl;
|
||||
|
||||
@ApiModelProperty(value = "图片分割后地址")
|
||||
private String picCutUrl;
|
||||
|
||||
@ApiModelProperty(value = "图片旋转角度(整数 90 180 360)")
|
||||
private Integer angle;
|
||||
|
||||
@ApiModelProperty(value = "识别文本结果")
|
||||
private String ocrText;
|
||||
|
||||
@ApiModelProperty(value = "分段完成时间")
|
||||
private LocalDateTime finshTime;
|
||||
|
||||
@ApiModelProperty(value = "分段状态 0正在分段 1完成分段")
|
||||
private Boolean ocrStatus;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private Integer assortId;
|
||||
|
||||
@ApiModelProperty(value = "分段名称")
|
||||
private String assortName;
|
||||
|
||||
@ApiModelProperty(value = "命中策略id")
|
||||
private Integer ruleId;
|
||||
|
||||
@ApiModelProperty(value = "命中关键词")
|
||||
private String key;
|
||||
|
||||
@ApiModelProperty(value = "命中占比")
|
||||
private Float rate;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.docus.server.dto.segmentation.ocrrule;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 匹配策略表 AddDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="AddOcrRuleDTO对象", description="匹配策略表")
|
||||
public class AddOcrRuleDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "占比分")
|
||||
private Integer matchRatio;
|
||||
|
||||
@ApiModelProperty(value = "匹配关键词 多个#分割")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "二级分段json")
|
||||
private String json;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
@ApiModelProperty(value = "是否使用二级分段")
|
||||
private Boolean isUseSecond;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.docus.server.dto.segmentation.ocrrule;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 匹配策略表 DeleteDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="DeleteOcrRuleDTO对象", description="匹配策略表")
|
||||
public class DeleteOcrRuleDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.docus.server.dto.segmentation.ocrrule;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 匹配策略表 EditDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="EditOcrRuleDTO对象", description="匹配策略表")
|
||||
public class EditOcrRuleDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "占比分")
|
||||
private Integer matchRatio;
|
||||
|
||||
@ApiModelProperty(value = "匹配关键词 多个#分割")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "二级分段json")
|
||||
private String json;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
@ApiModelProperty(value = "是否使用二级分段")
|
||||
private Boolean isUseSecond;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.dto.segmentation.ocrspecialdetail;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊规则详情 AddDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="AddOcrSpecialDetailDTO对象", description="特殊规则详情")
|
||||
public class AddOcrSpecialDetailDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "特殊规则id")
|
||||
private Integer specialId;
|
||||
|
||||
@ApiModelProperty(value = "占比分")
|
||||
private Integer matchRatio;
|
||||
|
||||
@ApiModelProperty(value = "匹配关键词 多个#分割")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.docus.server.dto.segmentation.ocrspecialdetail;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊规则详情 DeleteDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="DeleteOcrSpecialDetailDTO对象", description="特殊规则详情")
|
||||
public class DeleteOcrSpecialDetailDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.dto.segmentation.ocrspecialdetail;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊规则详情 EditDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="EditOcrSpecialDetailDTO对象", description="特殊规则详情")
|
||||
public class EditOcrSpecialDetailDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "特殊规则id")
|
||||
private Integer specialId;
|
||||
|
||||
@ApiModelProperty(value = "占比分")
|
||||
private Integer matchRatio;
|
||||
|
||||
@ApiModelProperty(value = "匹配关键词 多个#分割")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.dto.segmentation.ocrspecialrule;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊策略表 AddDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="AddOcrSpecialRuleDTO对象", description="特殊策略表")
|
||||
public class AddOcrSpecialRuleDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.docus.server.dto.segmentation.ocrspecialrule;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊策略表 DeleteDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="DeleteOcrSpecialRuleDTO对象", description="特殊策略表")
|
||||
public class DeleteOcrSpecialRuleDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.dto.segmentation.ocrspecialrule;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊策略表 EditDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="EditOcrSpecialRuleDTO对象", description="特殊策略表")
|
||||
public class EditOcrSpecialRuleDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.dto.segmentation.ocrversion;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 正式数据版本号管理 AddDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="AddOcrVersionDTO对象", description="正式数据版本号管理")
|
||||
public class AddOcrVersionDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "版本说明")
|
||||
private String releaseNote;
|
||||
|
||||
@ApiModelProperty(value = "是否启用(0否 1 是)")
|
||||
private Boolean isEnable;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.docus.server.dto.segmentation.ocrversion;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 正式数据版本号管理 DeleteDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="DeleteOcrVersionDTO对象", description="正式数据版本号管理")
|
||||
public class DeleteOcrVersionDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "ids")
|
||||
private List<Long> ids;
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.dto.segmentation.ocrversion;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 正式数据版本号管理 EditDTO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="EditOcrVersionDTO对象", description="正式数据版本号管理")
|
||||
public class EditOcrVersionDTO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "版本说明")
|
||||
private String releaseNote;
|
||||
|
||||
@ApiModelProperty(value = "是否启用(0否 1 是)")
|
||||
private Boolean isEnable;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.docus.server.entity.segmentation;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 患者信息表
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("ocr_basic")
|
||||
@ApiModel(value = "OcrBasic对象", description = "患者信息表")
|
||||
public class OcrBasic implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "病案主键")
|
||||
@TableField("patient_id")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "病案号")
|
||||
@TableField("inpatient_no")
|
||||
private String inpatientNo;
|
||||
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
@TableField("name")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "分段完成时间")
|
||||
@TableField("ocr_finish_time")
|
||||
private LocalDateTime ocrFinishTime;
|
||||
|
||||
@ApiModelProperty(value = "住院日期")
|
||||
@TableField("admiss_date")
|
||||
private LocalDateTime admissDate;
|
||||
|
||||
@ApiModelProperty(value = "住院科室")
|
||||
@TableField("admiss_dept")
|
||||
private String admissDept;
|
||||
|
||||
@ApiModelProperty(value = "住院科室名称")
|
||||
@TableField("admiss_dept_name")
|
||||
private String admissDeptName;
|
||||
|
||||
@ApiModelProperty(value = "出院日期")
|
||||
@TableField("dis_date")
|
||||
private LocalDateTime disDate;
|
||||
|
||||
@ApiModelProperty(value = "出院科室")
|
||||
@TableField("dis_dept")
|
||||
private String disDept;
|
||||
|
||||
@ApiModelProperty(value = "出院科室名称")
|
||||
@TableField("dis_dept_name")
|
||||
private String disDeptName;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "是否测试数据(0否 1是)")
|
||||
@TableField("is_test")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.docus.server.entity.segmentation;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 基础配置表
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("ocr_config")
|
||||
@ApiModel(value = "OcrConfig对象", description = "基础配置表")
|
||||
public class OcrConfig implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@TableField("config_key")
|
||||
private String configKey;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@TableField("config_json")
|
||||
private String configJson;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
@TableField("version")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
@TableField("is_test")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
package com.docus.server.entity.segmentation;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* ocr文件信息
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("ocr_file_info")
|
||||
@ApiModel(value = "OcrFileInfo对象", description = "ocr文件信息")
|
||||
public class OcrFileInfo implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "病案id")
|
||||
@TableField("patient_id")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@TableField("file_title")
|
||||
private String fileTitle;
|
||||
|
||||
@ApiModelProperty(value = "图片名称")
|
||||
@TableField("pic_name")
|
||||
private String picName;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@TableField("file_type")
|
||||
private Integer fileType;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@TableField("sort")
|
||||
private Integer sort;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@TableField("serial_number")
|
||||
private String serialNumber;
|
||||
|
||||
@ApiModelProperty(value = "图片地址")
|
||||
@TableField("pic_url")
|
||||
private String picUrl;
|
||||
|
||||
@ApiModelProperty(value = "图片分割后地址")
|
||||
@TableField("pic_cut_url")
|
||||
private String picCutUrl;
|
||||
|
||||
@ApiModelProperty(value = "图片旋转角度(整数 90 180 360)")
|
||||
@TableField("angle")
|
||||
private Integer angle;
|
||||
|
||||
@ApiModelProperty(value = "识别文本结果")
|
||||
@TableField("ocr_text")
|
||||
private String ocrText;
|
||||
|
||||
@ApiModelProperty(value = "分段完成时间")
|
||||
@TableField("finsh_time")
|
||||
private LocalDateTime finshTime;
|
||||
|
||||
@ApiModelProperty(value = "分段状态 0正在分段 1完成分段")
|
||||
@TableField("ocr_status")
|
||||
private Boolean ocrStatus;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
@TableField("assort_id")
|
||||
private Integer assortId;
|
||||
|
||||
@ApiModelProperty(value = "分段名称")
|
||||
@TableField("assort_name")
|
||||
private String assortName;
|
||||
|
||||
@ApiModelProperty(value = "命中策略id")
|
||||
@TableField("rule_id")
|
||||
private Integer ruleId;
|
||||
|
||||
@ApiModelProperty(value = "命中关键词")
|
||||
@TableField("key")
|
||||
private String key;
|
||||
|
||||
@ApiModelProperty(value = "命中占比")
|
||||
@TableField("rate")
|
||||
private Float rate;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package com.docus.server.entity.segmentation;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 匹配策略表
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("ocr_rule")
|
||||
@ApiModel(value = "OcrRule对象", description = "匹配策略表")
|
||||
public class OcrRule implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
@TableField("assort_id")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "占比分")
|
||||
@TableField("match_ratio")
|
||||
private Integer matchRatio;
|
||||
|
||||
@ApiModelProperty(value = "匹配关键词 多个#分割")
|
||||
@TableField("key_word")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "二级分段json")
|
||||
@TableField("json")
|
||||
private String json;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
@TableField("version")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
@TableField("is_test")
|
||||
private Boolean isTest;
|
||||
|
||||
@ApiModelProperty(value = "是否使用二级分段")
|
||||
@TableField("is_use_second")
|
||||
private Boolean isUseSecond;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.docus.server.entity.segmentation;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 特殊规则详情
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("ocr_special_detail")
|
||||
@ApiModel(value = "OcrSpecialDetail对象", description = "特殊规则详情")
|
||||
public class OcrSpecialDetail implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "特殊规则id")
|
||||
@TableField("special_id")
|
||||
private Integer specialId;
|
||||
|
||||
@ApiModelProperty(value = "占比分")
|
||||
@TableField("match_ratio")
|
||||
private Integer matchRatio;
|
||||
|
||||
@ApiModelProperty(value = "匹配关键词 多个#分割")
|
||||
@TableField("key_word")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.docus.server.entity.segmentation;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 特殊策略表
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("ocr_special_rule")
|
||||
@ApiModel(value = "OcrSpecialRule对象", description = "特殊策略表")
|
||||
public class OcrSpecialRule implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
@TableField("assort_id")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
@TableField("version")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
@TableField("is_test")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package com.docus.server.entity.segmentation;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 正式数据版本号管理
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("ocr_version")
|
||||
@ApiModel(value = "OcrVersion对象", description = "正式数据版本号管理")
|
||||
public class OcrVersion implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
@TableId(value = "id", type = IdType.ASSIGN_UUID)
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
@TableField("version")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "版本说明")
|
||||
@TableField("release_note")
|
||||
private String releaseNote;
|
||||
|
||||
@ApiModelProperty(value = "是否启用(0否 1 是)")
|
||||
@TableField("is_enable")
|
||||
private Boolean isEnable;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("create_time")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@TableField("update_time")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package com.docus.server.vo.segmentation.ocrbasic;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 患者信息表 VO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="OcrBasicVO对象", description="患者信息表")
|
||||
public class OcrBasicVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "病案主键")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "病案号")
|
||||
private String inpatientNo;
|
||||
|
||||
@ApiModelProperty(value = "患者姓名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "分段完成时间")
|
||||
private LocalDateTime ocrFinishTime;
|
||||
|
||||
@ApiModelProperty(value = "住院日期")
|
||||
private LocalDateTime admissDate;
|
||||
|
||||
@ApiModelProperty(value = "住院科室")
|
||||
private String admissDept;
|
||||
|
||||
@ApiModelProperty(value = "住院科室名称")
|
||||
private String admissDeptName;
|
||||
|
||||
@ApiModelProperty(value = "出院日期")
|
||||
private LocalDateTime disDate;
|
||||
|
||||
@ApiModelProperty(value = "出院科室")
|
||||
private String disDept;
|
||||
|
||||
@ApiModelProperty(value = "出院科室名称")
|
||||
private String disDeptName;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "是否测试数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.docus.server.vo.segmentation.ocrconfig;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 基础配置表 VO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="OcrConfigVO对象", description="基础配置表")
|
||||
public class OcrConfigVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String configKey;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String configJson;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.docus.server.vo.segmentation.ocrfileinfo;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* ocr文件信息 VO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="OcrFileInfoVO对象", description="ocr文件信息")
|
||||
public class OcrFileInfoVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "病案id")
|
||||
private String patientId;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String fileTitle;
|
||||
|
||||
@ApiModelProperty(value = "图片名称")
|
||||
private String picName;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer fileType;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private Integer sort;
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
private String serialNumber;
|
||||
|
||||
@ApiModelProperty(value = "图片地址")
|
||||
private String picUrl;
|
||||
|
||||
@ApiModelProperty(value = "图片分割后地址")
|
||||
private String picCutUrl;
|
||||
|
||||
@ApiModelProperty(value = "图片旋转角度(整数 90 180 360)")
|
||||
private Integer angle;
|
||||
|
||||
@ApiModelProperty(value = "识别文本结果")
|
||||
private String ocrText;
|
||||
|
||||
@ApiModelProperty(value = "分段完成时间")
|
||||
private LocalDateTime finshTime;
|
||||
|
||||
@ApiModelProperty(value = "分段状态 0正在分段 1完成分段")
|
||||
private Boolean ocrStatus;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private Integer assortId;
|
||||
|
||||
@ApiModelProperty(value = "分段名称")
|
||||
private String assortName;
|
||||
|
||||
@ApiModelProperty(value = "命中策略id")
|
||||
private Integer ruleId;
|
||||
|
||||
@ApiModelProperty(value = "命中关键词")
|
||||
private String key;
|
||||
|
||||
@ApiModelProperty(value = "命中占比")
|
||||
private Float rate;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.docus.server.vo.segmentation.ocrrule;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 匹配策略表 VO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="OcrRuleVO对象", description="匹配策略表")
|
||||
public class OcrRuleVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "占比分")
|
||||
private Integer matchRatio;
|
||||
|
||||
@ApiModelProperty(value = "匹配关键词 多个#分割")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "二级分段json")
|
||||
private String json;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
@ApiModelProperty(value = "是否使用二级分段")
|
||||
private Boolean isUseSecond;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.vo.segmentation.ocrspecialdetail;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊规则详情 VO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="OcrSpecialDetailVO对象", description="特殊规则详情")
|
||||
public class OcrSpecialDetailVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "特殊规则id")
|
||||
private Integer specialId;
|
||||
|
||||
@ApiModelProperty(value = "占比分")
|
||||
private Integer matchRatio;
|
||||
|
||||
@ApiModelProperty(value = "匹配关键词 多个#分割")
|
||||
private String keyWord;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.vo.segmentation.ocrspecialrule;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊策略表 VO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="OcrSpecialRuleVO对象", description="特殊策略表")
|
||||
public class OcrSpecialRuleVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "分段id")
|
||||
private String assortId;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "是否测试环境数据(0否 1是)")
|
||||
private Boolean isTest;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package com.docus.server.vo.segmentation.ocrversion;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import com.docus.server.enums.*;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
* 正式数据版本号管理 VO
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@ApiModel(value="OcrVersionVO对象", description="正式数据版本号管理")
|
||||
public class OcrVersionVO implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "id")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
|
||||
@ApiModelProperty(value = "版本说明")
|
||||
private String releaseNote;
|
||||
|
||||
@ApiModelProperty(value = "是否启用(0否 1 是)")
|
||||
private Boolean isEnable;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.docus.server.controller;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.api.segmentation.OcrBasicApi;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
|
||||
import com.docus.server.service.IOcrBasicService;
|
||||
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者信息表 控制器类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Api(value = "患者信息表任务管理接口", tags = "患者信息表任务管理接口")
|
||||
@RestController
|
||||
public class OcrBasicController implements OcrBasicApi {
|
||||
@Resource
|
||||
private IOcrBasicService iOcrBasicService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("按主键查询")
|
||||
@Override
|
||||
public OcrBasicVO findById(Long id) {
|
||||
return iOcrBasicService.findById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("查询所有")
|
||||
@Override
|
||||
public List<OcrBasicVO> findAll() {
|
||||
return iOcrBasicService.findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@ApiOperation("关键字搜索")
|
||||
@Override
|
||||
public PageResult<OcrBasicVO> search(SearchDTO searchDTO) {
|
||||
return iOcrBasicService.search(searchDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrBasicDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("新增")
|
||||
@Override
|
||||
public void add(AddOcrBasicDTO addOcrBasicDTO) {
|
||||
iOcrBasicService.add(addOcrBasicDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrBasicDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("编辑")
|
||||
@Override
|
||||
public void edit(EditOcrBasicDTO editOcrBasicDTO) {
|
||||
iOcrBasicService.edit(editOcrBasicDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrBasicDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@Override
|
||||
public int delete(DeleteOcrBasicDTO deleteOcrBasicDTO) {
|
||||
return iOcrBasicService.delete(deleteOcrBasicDTO);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.docus.server.controller;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.api.segmentation.OcrConfigApi;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.AddOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.DeleteOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.EditOcrConfigDTO;
|
||||
import com.docus.server.service.IOcrConfigService;
|
||||
import com.docus.server.vo.segmentation.ocrconfig.OcrConfigVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 基础配置表 控制器类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Api(value = "基础配置表任务管理接口", tags = "基础配置表任务管理接口")
|
||||
@RestController
|
||||
public class OcrConfigController implements OcrConfigApi {
|
||||
@Resource
|
||||
private IOcrConfigService iOcrConfigService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("按主键查询")
|
||||
@Override
|
||||
public OcrConfigVO findById(Long id) {
|
||||
return iOcrConfigService.findById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("查询所有")
|
||||
@Override
|
||||
public List<OcrConfigVO> findAll() {
|
||||
return iOcrConfigService.findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@ApiOperation("关键字搜索")
|
||||
@Override
|
||||
public PageResult<OcrConfigVO> search(SearchDTO searchDTO) {
|
||||
return iOcrConfigService.search(searchDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrConfigDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("新增")
|
||||
@Override
|
||||
public void add(AddOcrConfigDTO addOcrConfigDTO) {
|
||||
iOcrConfigService.add(addOcrConfigDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrConfigDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("编辑")
|
||||
@Override
|
||||
public void edit(EditOcrConfigDTO editOcrConfigDTO) {
|
||||
iOcrConfigService.edit(editOcrConfigDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrConfigDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@Override
|
||||
public int delete(DeleteOcrConfigDTO deleteOcrConfigDTO) {
|
||||
return iOcrConfigService.delete(deleteOcrConfigDTO);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.docus.server.controller;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.api.segmentation.OcrFileInfoApi;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
|
||||
import com.docus.server.service.IOcrFileInfoService;
|
||||
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ocr文件信息 控制器类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Api(value = "ocr文件信息任务管理接口", tags = "ocr文件信息任务管理接口")
|
||||
@RestController
|
||||
public class OcrFileInfoController implements OcrFileInfoApi {
|
||||
@Resource
|
||||
private IOcrFileInfoService iOcrFileInfoService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("按主键查询")
|
||||
@Override
|
||||
public OcrFileInfoVO findById(Long id) {
|
||||
return iOcrFileInfoService.findById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("查询所有")
|
||||
@Override
|
||||
public List<OcrFileInfoVO> findAll() {
|
||||
return iOcrFileInfoService.findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@ApiOperation("关键字搜索")
|
||||
@Override
|
||||
public PageResult<OcrFileInfoVO> search(SearchDTO searchDTO) {
|
||||
return iOcrFileInfoService.search(searchDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrFileInfoDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("新增")
|
||||
@Override
|
||||
public void add(AddOcrFileInfoDTO addOcrFileInfoDTO) {
|
||||
iOcrFileInfoService.add(addOcrFileInfoDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrFileInfoDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("编辑")
|
||||
@Override
|
||||
public void edit(EditOcrFileInfoDTO editOcrFileInfoDTO) {
|
||||
iOcrFileInfoService.edit(editOcrFileInfoDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrFileInfoDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@Override
|
||||
public int delete(DeleteOcrFileInfoDTO deleteOcrFileInfoDTO) {
|
||||
return iOcrFileInfoService.delete(deleteOcrFileInfoDTO);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.docus.server.controller;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.api.segmentation.OcrRuleApi;
|
||||
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
|
||||
import com.docus.server.service.IOcrRuleService;
|
||||
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 匹配策略表 控制器类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Api(value = "匹配策略表任务管理接口", tags = "匹配策略表任务管理接口")
|
||||
@RestController
|
||||
public class OcrRuleController implements OcrRuleApi {
|
||||
@Resource
|
||||
private IOcrRuleService iOcrRuleService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("按主键查询")
|
||||
@Override
|
||||
public OcrRuleVO findById(Long id) {
|
||||
return iOcrRuleService.findById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("查询所有")
|
||||
@Override
|
||||
public List<OcrRuleVO> findAll() {
|
||||
return iOcrRuleService.findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@ApiOperation("关键字搜索")
|
||||
@Override
|
||||
public PageResult<OcrRuleVO> search(SearchDTO searchDTO) {
|
||||
return iOcrRuleService.search(searchDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrRuleDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("新增")
|
||||
@Override
|
||||
public void add(AddOcrRuleDTO addOcrRuleDTO) {
|
||||
iOcrRuleService.add(addOcrRuleDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrRuleDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("编辑")
|
||||
@Override
|
||||
public void edit(EditOcrRuleDTO editOcrRuleDTO) {
|
||||
iOcrRuleService.edit(editOcrRuleDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrRuleDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@Override
|
||||
public int delete(DeleteOcrRuleDTO deleteOcrRuleDTO) {
|
||||
return iOcrRuleService.delete(deleteOcrRuleDTO);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.docus.server.controller;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.api.segmentation.OcrSpecialDetailApi;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.AddOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.DeleteOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.EditOcrSpecialDetailDTO;
|
||||
import com.docus.server.service.IOcrSpecialDetailService;
|
||||
import com.docus.server.vo.segmentation.ocrspecialdetail.OcrSpecialDetailVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊规则详情 控制器类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Api(value = "特殊规则详情任务管理接口", tags = "特殊规则详情任务管理接口")
|
||||
@RestController
|
||||
public class OcrSpecialDetailController implements OcrSpecialDetailApi {
|
||||
@Resource
|
||||
private IOcrSpecialDetailService iOcrSpecialDetailService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("按主键查询")
|
||||
@Override
|
||||
public OcrSpecialDetailVO findById(Long id) {
|
||||
return iOcrSpecialDetailService.findById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("查询所有")
|
||||
@Override
|
||||
public List<OcrSpecialDetailVO> findAll() {
|
||||
return iOcrSpecialDetailService.findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@ApiOperation("关键字搜索")
|
||||
@Override
|
||||
public PageResult<OcrSpecialDetailVO> search(SearchDTO searchDTO) {
|
||||
return iOcrSpecialDetailService.search(searchDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrSpecialDetailDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("新增")
|
||||
@Override
|
||||
public void add(AddOcrSpecialDetailDTO addOcrSpecialDetailDTO) {
|
||||
iOcrSpecialDetailService.add(addOcrSpecialDetailDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrSpecialDetailDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("编辑")
|
||||
@Override
|
||||
public void edit(EditOcrSpecialDetailDTO editOcrSpecialDetailDTO) {
|
||||
iOcrSpecialDetailService.edit(editOcrSpecialDetailDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrSpecialDetailDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@Override
|
||||
public int delete(DeleteOcrSpecialDetailDTO deleteOcrSpecialDetailDTO) {
|
||||
return iOcrSpecialDetailService.delete(deleteOcrSpecialDetailDTO);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.docus.server.controller;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.api.segmentation.OcrSpecialRuleApi;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
|
||||
import com.docus.server.service.IOcrSpecialRuleService;
|
||||
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊策略表 控制器类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Api(value = "特殊策略表任务管理接口", tags = "特殊策略表任务管理接口")
|
||||
@RestController
|
||||
public class OcrSpecialRuleController implements OcrSpecialRuleApi {
|
||||
@Resource
|
||||
private IOcrSpecialRuleService iOcrSpecialRuleService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("按主键查询")
|
||||
@Override
|
||||
public OcrSpecialRuleVO findById(Long id) {
|
||||
return iOcrSpecialRuleService.findById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("查询所有")
|
||||
@Override
|
||||
public List<OcrSpecialRuleVO> findAll() {
|
||||
return iOcrSpecialRuleService.findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@ApiOperation("关键字搜索")
|
||||
@Override
|
||||
public PageResult<OcrSpecialRuleVO> search(SearchDTO searchDTO) {
|
||||
return iOcrSpecialRuleService.search(searchDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrSpecialRuleDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("新增")
|
||||
@Override
|
||||
public void add(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO) {
|
||||
iOcrSpecialRuleService.add(addOcrSpecialRuleDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrSpecialRuleDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("编辑")
|
||||
@Override
|
||||
public void edit(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO) {
|
||||
iOcrSpecialRuleService.edit(editOcrSpecialRuleDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrSpecialRuleDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@Override
|
||||
public int delete(DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO) {
|
||||
return iOcrSpecialRuleService.delete(deleteOcrSpecialRuleDTO);
|
||||
}
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
package com.docus.server.controller;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.api.segmentation.OcrVersionApi;
|
||||
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
|
||||
import com.docus.server.service.IOcrVersionService;
|
||||
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 正式数据版本号管理 控制器类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Api(value = "正式数据版本号管理任务管理接口", tags = "正式数据版本号管理任务管理接口")
|
||||
@RestController
|
||||
public class OcrVersionController implements OcrVersionApi {
|
||||
@Resource
|
||||
private IOcrVersionService iOcrVersionService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("按主键查询")
|
||||
@Override
|
||||
public OcrVersionVO findById(Long id) {
|
||||
return iOcrVersionService.findById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@ApiOperation("查询所有")
|
||||
@Override
|
||||
public List<OcrVersionVO> findAll() {
|
||||
return iOcrVersionService.findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@ApiOperation("关键字搜索")
|
||||
@Override
|
||||
public PageResult<OcrVersionVO> search(SearchDTO searchDTO) {
|
||||
return iOcrVersionService.search(searchDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrVersionDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("新增")
|
||||
@Override
|
||||
public void add(AddOcrVersionDTO addOcrVersionDTO) {
|
||||
iOcrVersionService.add(addOcrVersionDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrVersionDTO 编辑参数
|
||||
*/
|
||||
@ApiOperation("编辑")
|
||||
@Override
|
||||
public void edit(EditOcrVersionDTO editOcrVersionDTO) {
|
||||
iOcrVersionService.edit(editOcrVersionDTO);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrVersionDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@ApiOperation("批量删除")
|
||||
@Override
|
||||
public int delete(DeleteOcrVersionDTO deleteOcrVersionDTO) {
|
||||
return iOcrVersionService.delete(deleteOcrVersionDTO);
|
||||
}
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package com.docus.server.convert;
|
||||
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrBasic;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
|
||||
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mappings;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 患者信息表 服务转换器
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrBasicConvert {
|
||||
|
||||
OcrBasicConvert INSTANCE = Mappers.getMapper(OcrBasicConvert.class);
|
||||
|
||||
@Mappings({})
|
||||
OcrBasic convertDO(AddOcrBasicDTO addOcrBasicDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrBasic convertDO(EditOcrBasicDTO editOcrBasicDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrBasic> convertAddDOList(List<AddOcrBasicDTO> addOcrBasicDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrBasic> convertEditDOList(List<EditOcrBasicDTO> editOcrBasicDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrBasicVO convertVO(OcrBasic ocrBasic);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrBasicVO> convertVO(List<OcrBasic> ocrBasicList);
|
||||
|
||||
@Mappings({})
|
||||
PageResult<OcrBasicVO> convertVO(PageResult<OcrBasic> pageResult);
|
||||
}
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.docus.server.convert;
|
||||
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrConfig;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.AddOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.EditOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.DeleteOcrConfigDTO;
|
||||
import com.docus.server.vo.segmentation.ocrconfig.OcrConfigVO;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mappings;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 基础配置表 服务转换器
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrConfigConvert {
|
||||
|
||||
OcrConfigConvert INSTANCE = Mappers.getMapper(OcrConfigConvert.class);
|
||||
|
||||
@Mappings({})
|
||||
OcrConfig convertDO(AddOcrConfigDTO addOcrConfigDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrConfig convertDO(EditOcrConfigDTO editOcrConfigDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrConfig> convertAddDOList(List<AddOcrConfigDTO> addOcrConfigDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrConfig> convertEditDOList(List<EditOcrConfigDTO> editOcrConfigDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrConfigVO convertVO(OcrConfig ocrConfig);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrConfigVO> convertVO(List<OcrConfig> ocrConfigList);
|
||||
|
||||
@Mappings({})
|
||||
PageResult<OcrConfigVO> convertVO(PageResult<OcrConfig> pageResult);
|
||||
}
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.docus.server.convert;
|
||||
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrFileInfo;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
|
||||
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mappings;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* ocr文件信息 服务转换器
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrFileInfoConvert {
|
||||
|
||||
OcrFileInfoConvert INSTANCE = Mappers.getMapper(OcrFileInfoConvert.class);
|
||||
|
||||
@Mappings({})
|
||||
OcrFileInfo convertDO(AddOcrFileInfoDTO addOcrFileInfoDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrFileInfo convertDO(EditOcrFileInfoDTO editOcrFileInfoDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrFileInfo> convertAddDOList(List<AddOcrFileInfoDTO> addOcrFileInfoDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrFileInfo> convertEditDOList(List<EditOcrFileInfoDTO> editOcrFileInfoDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrFileInfoVO convertVO(OcrFileInfo ocrFileInfo);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrFileInfoVO> convertVO(List<OcrFileInfo> ocrFileInfoList);
|
||||
|
||||
@Mappings({})
|
||||
PageResult<OcrFileInfoVO> convertVO(PageResult<OcrFileInfo> pageResult);
|
||||
}
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.docus.server.convert;
|
||||
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrRule;
|
||||
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
|
||||
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mappings;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 匹配策略表 服务转换器
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrRuleConvert {
|
||||
|
||||
OcrRuleConvert INSTANCE = Mappers.getMapper(OcrRuleConvert.class);
|
||||
|
||||
@Mappings({})
|
||||
OcrRule convertDO(AddOcrRuleDTO addOcrRuleDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrRule convertDO(EditOcrRuleDTO editOcrRuleDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrRule> convertAddDOList(List<AddOcrRuleDTO> addOcrRuleDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrRule> convertEditDOList(List<EditOcrRuleDTO> editOcrRuleDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrRuleVO convertVO(OcrRule ocrRule);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrRuleVO> convertVO(List<OcrRule> ocrRuleList);
|
||||
|
||||
@Mappings({})
|
||||
PageResult<OcrRuleVO> convertVO(PageResult<OcrRule> pageResult);
|
||||
}
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.docus.server.convert;
|
||||
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrSpecialDetail;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.AddOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.EditOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.DeleteOcrSpecialDetailDTO;
|
||||
import com.docus.server.vo.segmentation.ocrspecialdetail.OcrSpecialDetailVO;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mappings;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊规则详情 服务转换器
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrSpecialDetailConvert {
|
||||
|
||||
OcrSpecialDetailConvert INSTANCE = Mappers.getMapper(OcrSpecialDetailConvert.class);
|
||||
|
||||
@Mappings({})
|
||||
OcrSpecialDetail convertDO(AddOcrSpecialDetailDTO addOcrSpecialDetailDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrSpecialDetail convertDO(EditOcrSpecialDetailDTO editOcrSpecialDetailDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrSpecialDetail> convertAddDOList(List<AddOcrSpecialDetailDTO> addOcrSpecialDetailDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrSpecialDetail> convertEditDOList(List<EditOcrSpecialDetailDTO> editOcrSpecialDetailDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrSpecialDetailVO convertVO(OcrSpecialDetail ocrSpecialDetail);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrSpecialDetailVO> convertVO(List<OcrSpecialDetail> ocrSpecialDetailList);
|
||||
|
||||
@Mappings({})
|
||||
PageResult<OcrSpecialDetailVO> convertVO(PageResult<OcrSpecialDetail> pageResult);
|
||||
}
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.docus.server.convert;
|
||||
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrSpecialRule;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
|
||||
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mappings;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊策略表 服务转换器
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrSpecialRuleConvert {
|
||||
|
||||
OcrSpecialRuleConvert INSTANCE = Mappers.getMapper(OcrSpecialRuleConvert.class);
|
||||
|
||||
@Mappings({})
|
||||
OcrSpecialRule convertDO(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrSpecialRule convertDO(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrSpecialRule> convertAddDOList(List<AddOcrSpecialRuleDTO> addOcrSpecialRuleDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrSpecialRule> convertEditDOList(List<EditOcrSpecialRuleDTO> editOcrSpecialRuleDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrSpecialRuleVO convertVO(OcrSpecialRule ocrSpecialRule);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrSpecialRuleVO> convertVO(List<OcrSpecialRule> ocrSpecialRuleList);
|
||||
|
||||
@Mappings({})
|
||||
PageResult<OcrSpecialRuleVO> convertVO(PageResult<OcrSpecialRule> pageResult);
|
||||
}
|
||||
|
@ -0,0 +1,49 @@
|
||||
package com.docus.server.convert;
|
||||
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrVersion;
|
||||
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
|
||||
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
|
||||
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mappings;
|
||||
import org.mapstruct.factory.Mappers;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 正式数据版本号管理 服务转换器
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrVersionConvert {
|
||||
|
||||
OcrVersionConvert INSTANCE = Mappers.getMapper(OcrVersionConvert.class);
|
||||
|
||||
@Mappings({})
|
||||
OcrVersion convertDO(AddOcrVersionDTO addOcrVersionDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrVersion convertDO(EditOcrVersionDTO editOcrVersionDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrVersion> convertAddDOList(List<AddOcrVersionDTO> addOcrVersionDTO);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrVersion> convertEditDOList(List<EditOcrVersionDTO> editOcrVersionDTO);
|
||||
|
||||
@Mappings({})
|
||||
OcrVersionVO convertVO(OcrVersion ocrVersion);
|
||||
|
||||
@Mappings({})
|
||||
List<OcrVersionVO> convertVO(List<OcrVersion> ocrVersionList);
|
||||
|
||||
@Mappings({})
|
||||
PageResult<OcrVersionVO> convertVO(PageResult<OcrVersion> pageResult);
|
||||
}
|
||||
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.infrastructure.dao;
|
||||
|
||||
import com.docus.infrastructure.core.db.dao.IBaseDao;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrBasic;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者信息表 数据访问接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrBasicDao extends IBaseDao<OcrBasic> {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrBasic findById(Long id);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param ocrBasic 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(OcrBasic ocrBasic);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param ocrBasic 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(OcrBasic ocrBasic);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 主键ids
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrBasic> search(SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 名称不重复
|
||||
*
|
||||
* @param id 主键
|
||||
* @param name 名称
|
||||
* @return 名称重复数量
|
||||
*/
|
||||
int findByIdAndName(Long id, String name);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.infrastructure.dao;
|
||||
|
||||
import com.docus.infrastructure.core.db.dao.IBaseDao;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrConfig;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 基础配置表 数据访问接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrConfigDao extends IBaseDao<OcrConfig> {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrConfig findById(Long id);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param ocrConfig 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(OcrConfig ocrConfig);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param ocrConfig 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(OcrConfig ocrConfig);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 主键ids
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrConfig> search(SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 名称不重复
|
||||
*
|
||||
* @param id 主键
|
||||
* @param name 名称
|
||||
* @return 名称重复数量
|
||||
*/
|
||||
int findByIdAndName(Long id, String name);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.infrastructure.dao;
|
||||
|
||||
import com.docus.infrastructure.core.db.dao.IBaseDao;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrFileInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ocr文件信息 数据访问接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrFileInfoDao extends IBaseDao<OcrFileInfo> {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrFileInfo findById(Long id);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param ocrFileInfo 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(OcrFileInfo ocrFileInfo);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param ocrFileInfo 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(OcrFileInfo ocrFileInfo);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 主键ids
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrFileInfo> search(SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 名称不重复
|
||||
*
|
||||
* @param id 主键
|
||||
* @param name 名称
|
||||
* @return 名称重复数量
|
||||
*/
|
||||
int findByIdAndName(Long id, String name);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.infrastructure.dao;
|
||||
|
||||
import com.docus.infrastructure.core.db.dao.IBaseDao;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrRule;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 匹配策略表 数据访问接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrRuleDao extends IBaseDao<OcrRule> {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrRule findById(Long id);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param ocrRule 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(OcrRule ocrRule);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param ocrRule 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(OcrRule ocrRule);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 主键ids
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrRule> search(SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 名称不重复
|
||||
*
|
||||
* @param id 主键
|
||||
* @param name 名称
|
||||
* @return 名称重复数量
|
||||
*/
|
||||
int findByIdAndName(Long id, String name);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.infrastructure.dao;
|
||||
|
||||
import com.docus.infrastructure.core.db.dao.IBaseDao;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrSpecialDetail;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊规则详情 数据访问接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrSpecialDetailDao extends IBaseDao<OcrSpecialDetail> {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrSpecialDetail findById(Long id);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param ocrSpecialDetail 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(OcrSpecialDetail ocrSpecialDetail);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param ocrSpecialDetail 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(OcrSpecialDetail ocrSpecialDetail);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 主键ids
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrSpecialDetail> search(SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 名称不重复
|
||||
*
|
||||
* @param id 主键
|
||||
* @param name 名称
|
||||
* @return 名称重复数量
|
||||
*/
|
||||
int findByIdAndName(Long id, String name);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.infrastructure.dao;
|
||||
|
||||
import com.docus.infrastructure.core.db.dao.IBaseDao;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrSpecialRule;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊策略表 数据访问接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrSpecialRuleDao extends IBaseDao<OcrSpecialRule> {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrSpecialRule findById(Long id);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param ocrSpecialRule 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(OcrSpecialRule ocrSpecialRule);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param ocrSpecialRule 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(OcrSpecialRule ocrSpecialRule);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 主键ids
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrSpecialRule> search(SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 名称不重复
|
||||
*
|
||||
* @param id 主键
|
||||
* @param name 名称
|
||||
* @return 名称重复数量
|
||||
*/
|
||||
int findByIdAndName(Long id, String name);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.infrastructure.dao;
|
||||
|
||||
import com.docus.infrastructure.core.db.dao.IBaseDao;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.entity.segmentation.OcrVersion;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 正式数据版本号管理 数据访问接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrVersionDao extends IBaseDao<OcrVersion> {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrVersion findById(Long id);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param ocrVersion 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(OcrVersion ocrVersion);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param ocrVersion 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(OcrVersion ocrVersion);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids 主键ids
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrVersion> search(SearchDTO searchDTO);
|
||||
|
||||
/**
|
||||
* 名称不重复
|
||||
*
|
||||
* @param id 主键
|
||||
* @param name 名称
|
||||
* @return 名称重复数量
|
||||
*/
|
||||
int findByIdAndName(Long id, String name);
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.docus.server.infrastructure.mapper;
|
||||
|
||||
import com.docus.server.entity.segmentation.OcrBasic;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
*
|
||||
* 患者信息表 Mapper 接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrBasicMapper extends BaseMapper<OcrBasic> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.docus.server.infrastructure.mapper;
|
||||
|
||||
import com.docus.server.entity.segmentation.OcrConfig;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
*
|
||||
* 基础配置表 Mapper 接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrConfigMapper extends BaseMapper<OcrConfig> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.docus.server.infrastructure.mapper;
|
||||
|
||||
import com.docus.server.entity.segmentation.OcrFileInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
*
|
||||
* ocr文件信息 Mapper 接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrFileInfoMapper extends BaseMapper<OcrFileInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.docus.server.infrastructure.mapper;
|
||||
|
||||
import com.docus.server.entity.segmentation.OcrRule;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
*
|
||||
* 匹配策略表 Mapper 接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrRuleMapper extends BaseMapper<OcrRule> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.docus.server.infrastructure.mapper;
|
||||
|
||||
import com.docus.server.entity.segmentation.OcrSpecialDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊规则详情 Mapper 接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrSpecialDetailMapper extends BaseMapper<OcrSpecialDetail> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.docus.server.infrastructure.mapper;
|
||||
|
||||
import com.docus.server.entity.segmentation.OcrSpecialRule;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
*
|
||||
* 特殊策略表 Mapper 接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrSpecialRuleMapper extends BaseMapper<OcrSpecialRule> {
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.docus.server.infrastructure.mapper;
|
||||
|
||||
import com.docus.server.entity.segmentation.OcrVersion;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
*
|
||||
* 正式数据版本号管理 Mapper 接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Mapper
|
||||
public interface OcrVersionMapper extends BaseMapper<OcrVersion> {
|
||||
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.service;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
|
||||
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者信息表 服务接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrBasicService {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrBasicVO findById(Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
List<OcrBasicVO> findAll();
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrBasicDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(AddOcrBasicDTO addOcrBasicDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrBasicDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(EditOcrBasicDTO editOcrBasicDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrBasicDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(DeleteOcrBasicDTO deleteOcrBasicDTO);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrBasicVO> search(SearchDTO searchDTO);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.service;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.AddOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.DeleteOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.EditOcrConfigDTO;
|
||||
import com.docus.server.vo.segmentation.ocrconfig.OcrConfigVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 基础配置表 服务接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrConfigService {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrConfigVO findById(Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
List<OcrConfigVO> findAll();
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrConfigDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(AddOcrConfigDTO addOcrConfigDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrConfigDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(EditOcrConfigDTO editOcrConfigDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrConfigDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(DeleteOcrConfigDTO deleteOcrConfigDTO);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrConfigVO> search(SearchDTO searchDTO);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.service;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
|
||||
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
|
||||
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ocr文件信息 服务接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrFileInfoService {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrFileInfoVO findById(Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
List<OcrFileInfoVO> findAll();
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrFileInfoDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(AddOcrFileInfoDTO addOcrFileInfoDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrFileInfoDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(EditOcrFileInfoDTO editOcrFileInfoDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrFileInfoDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(DeleteOcrFileInfoDTO deleteOcrFileInfoDTO);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrFileInfoVO> search(SearchDTO searchDTO);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.service;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
|
||||
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 匹配策略表 服务接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrRuleService {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrRuleVO findById(Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
List<OcrRuleVO> findAll();
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrRuleDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(AddOcrRuleDTO addOcrRuleDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrRuleDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(EditOcrRuleDTO editOcrRuleDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrRuleDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(DeleteOcrRuleDTO deleteOcrRuleDTO);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrRuleVO> search(SearchDTO searchDTO);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.service;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.AddOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.DeleteOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.EditOcrSpecialDetailDTO;
|
||||
import com.docus.server.vo.segmentation.ocrspecialdetail.OcrSpecialDetailVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊规则详情 服务接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrSpecialDetailService {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrSpecialDetailVO findById(Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
List<OcrSpecialDetailVO> findAll();
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrSpecialDetailDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(AddOcrSpecialDetailDTO addOcrSpecialDetailDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrSpecialDetailDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(EditOcrSpecialDetailDTO editOcrSpecialDetailDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrSpecialDetailDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(DeleteOcrSpecialDetailDTO deleteOcrSpecialDetailDTO);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrSpecialDetailVO> search(SearchDTO searchDTO);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.service;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
|
||||
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊策略表 服务接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrSpecialRuleService {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrSpecialRuleVO findById(Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
List<OcrSpecialRuleVO> findAll();
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrSpecialRuleDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrSpecialRuleDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrSpecialRuleDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrSpecialRuleVO> search(SearchDTO searchDTO);
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.docus.server.service;
|
||||
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
|
||||
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 正式数据版本号管理 服务接口
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
public interface IOcrVersionService {
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键id
|
||||
* @return 实体
|
||||
*/
|
||||
OcrVersionVO findById(Long id);
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
List<OcrVersionVO> findAll();
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrVersionDTO 新增参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean add(AddOcrVersionDTO addOcrVersionDTO);
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrVersionDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
boolean edit(EditOcrVersionDTO editOcrVersionDTO);
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrVersionDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
int delete(DeleteOcrVersionDTO deleteOcrVersionDTO);
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
PageResult<OcrVersionVO> search(SearchDTO searchDTO);
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
package com.docus.server.service.impl;
|
||||
|
||||
import com.docus.infrastructure.redis.service.IdService;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.convert.OcrBasicConvert;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
|
||||
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
|
||||
import com.docus.server.entity.segmentation.OcrBasic;
|
||||
import com.docus.server.infrastructure.dao.IOcrBasicDao;
|
||||
import com.docus.server.service.IOcrBasicService;
|
||||
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 患者信息表 服务实现类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Service
|
||||
public class OcrBasicServiceImpl implements IOcrBasicService {
|
||||
@Resource
|
||||
private IOcrBasicDao iOcrBasicDao;
|
||||
@Resource
|
||||
private IdService idService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public OcrBasicVO findById(Long id) {
|
||||
return OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.findById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public List<OcrBasicVO> findAll() {
|
||||
return OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.findAll());
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@Override
|
||||
public PageResult<OcrBasicVO> search(SearchDTO searchDTO) {
|
||||
return OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.search(searchDTO));
|
||||
|
||||
//PageResult<OcrBasicVO> result = OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.search(searchDTO));
|
||||
|
||||
//if (CollectionUtils.isEmpty(result.getList())) {
|
||||
//return new PageResult<>();
|
||||
//}
|
||||
|
||||
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
|
||||
|
||||
//result.getList().forEach(p -> {
|
||||
// String collectorId = String.valueOf(p.getCollectorId());
|
||||
// if (map.containsKey(collectorId)) {
|
||||
// p.setCollectorName(map.get(collectorId).getParamName());
|
||||
// }
|
||||
//});
|
||||
|
||||
//return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrBasicDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean add(AddOcrBasicDTO addOcrBasicDTO) {
|
||||
OcrBasic ocrBasic = OcrBasicConvert.INSTANCE.convertDO(addOcrBasicDTO);
|
||||
ocrBasic.setId(idService.getDateSeq());
|
||||
return iOcrBasicDao.add(ocrBasic);
|
||||
|
||||
// String name = addOcrBasicDTO.getName();
|
||||
|
||||
//OcrBasic ocrBasic = iOcrBasicDao.findOneBy("name", name);
|
||||
|
||||
//if (Func.notNull(ocrBasic)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "患者信息表已经存在");
|
||||
// }
|
||||
|
||||
// OcrBasic ocrBasic =OcrBasicConvert.INSTANCE.convertDO(addOcrBasicDTO);
|
||||
// ocrBasic.setId(idService.getDateSeq());
|
||||
|
||||
// return iOcrBasicDao.add(schCollector);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrBasicDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean edit(EditOcrBasicDTO editOcrBasicDTO) {
|
||||
OcrBasic ocrBasic = OcrBasicConvert.INSTANCE.convertDO(editOcrBasicDTO);
|
||||
return iOcrBasicDao.edit(ocrBasic);
|
||||
|
||||
// Long id = editOcrBasicDTO.getId();
|
||||
|
||||
// OcrBasic ocrBasic = iOcrBasicDao.findById(id);
|
||||
|
||||
// if (Func.isNull(ocrBasic)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "患者信息表,无法更新!");
|
||||
// }
|
||||
|
||||
// ocrBasic.setUpdateTime(LocalDateTime.now());
|
||||
// return iOcrBasicDao.edit(ocrBasic);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrBasicDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
public int delete(DeleteOcrBasicDTO deleteOcrBasicDTO) {
|
||||
return iOcrBasicDao.delete(deleteOcrBasicDTO.getIds());
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,145 @@
|
||||
package com.docus.server.service.impl;
|
||||
|
||||
import com.docus.infrastructure.redis.service.IdService;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.convert.OcrConfigConvert;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.AddOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.DeleteOcrConfigDTO;
|
||||
import com.docus.server.dto.segmentation.ocrconfig.EditOcrConfigDTO;
|
||||
import com.docus.server.entity.segmentation.OcrConfig;
|
||||
import com.docus.server.infrastructure.dao.IOcrConfigDao;
|
||||
import com.docus.server.service.IOcrConfigService;
|
||||
import com.docus.server.vo.segmentation.ocrconfig.OcrConfigVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 基础配置表 服务实现类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Service
|
||||
public class OcrConfigServiceImpl implements IOcrConfigService {
|
||||
@Resource
|
||||
private IOcrConfigDao iOcrConfigDao;
|
||||
@Resource
|
||||
private IdService idService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public OcrConfigVO findById(Long id) {
|
||||
return OcrConfigConvert.INSTANCE.convertVO(iOcrConfigDao.findById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public List<OcrConfigVO> findAll() {
|
||||
return OcrConfigConvert.INSTANCE.convertVO(iOcrConfigDao.findAll());
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@Override
|
||||
public PageResult<OcrConfigVO> search(SearchDTO searchDTO) {
|
||||
return OcrConfigConvert.INSTANCE.convertVO(iOcrConfigDao.search(searchDTO));
|
||||
|
||||
//PageResult<OcrConfigVO> result = OcrConfigConvert.INSTANCE.convertVO(iOcrConfigDao.search(searchDTO));
|
||||
|
||||
//if (CollectionUtils.isEmpty(result.getList())) {
|
||||
//return new PageResult<>();
|
||||
//}
|
||||
|
||||
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
|
||||
|
||||
//result.getList().forEach(p -> {
|
||||
// String collectorId = String.valueOf(p.getCollectorId());
|
||||
// if (map.containsKey(collectorId)) {
|
||||
// p.setCollectorName(map.get(collectorId).getParamName());
|
||||
// }
|
||||
//});
|
||||
|
||||
//return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrConfigDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean add(AddOcrConfigDTO addOcrConfigDTO) {
|
||||
OcrConfig ocrConfig = OcrConfigConvert.INSTANCE.convertDO(addOcrConfigDTO);
|
||||
ocrConfig.setId(idService.getDateSeq());
|
||||
return iOcrConfigDao.add(ocrConfig);
|
||||
|
||||
// String name = addOcrConfigDTO.getName();
|
||||
|
||||
//OcrConfig ocrConfig = iOcrConfigDao.findOneBy("name", name);
|
||||
|
||||
//if (Func.notNull(ocrConfig)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "基础配置表已经存在");
|
||||
// }
|
||||
|
||||
// OcrConfig ocrConfig =OcrConfigConvert.INSTANCE.convertDO(addOcrConfigDTO);
|
||||
// ocrConfig.setId(idService.getDateSeq());
|
||||
|
||||
// return iOcrConfigDao.add(schCollector);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrConfigDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean edit(EditOcrConfigDTO editOcrConfigDTO) {
|
||||
OcrConfig ocrConfig = OcrConfigConvert.INSTANCE.convertDO(editOcrConfigDTO);
|
||||
return iOcrConfigDao.edit(ocrConfig);
|
||||
|
||||
// Long id = editOcrConfigDTO.getId();
|
||||
|
||||
// OcrConfig ocrConfig = iOcrConfigDao.findById(id);
|
||||
|
||||
// if (Func.isNull(ocrConfig)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "基础配置表,无法更新!");
|
||||
// }
|
||||
|
||||
// ocrConfig.setUpdateTime(LocalDateTime.now());
|
||||
// return iOcrConfigDao.edit(ocrConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrConfigDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
public int delete(DeleteOcrConfigDTO deleteOcrConfigDTO) {
|
||||
return iOcrConfigDao.delete(deleteOcrConfigDTO.getIds());
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,145 @@
|
||||
package com.docus.server.service.impl;
|
||||
|
||||
import com.docus.infrastructure.redis.service.IdService;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.convert.OcrRuleConvert;
|
||||
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
|
||||
import com.docus.server.entity.segmentation.OcrRule;
|
||||
import com.docus.server.infrastructure.dao.IOcrRuleDao;
|
||||
import com.docus.server.service.IOcrRuleService;
|
||||
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 匹配策略表 服务实现类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Service
|
||||
public class OcrRuleServiceImpl implements IOcrRuleService {
|
||||
@Resource
|
||||
private IOcrRuleDao iOcrRuleDao;
|
||||
@Resource
|
||||
private IdService idService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public OcrRuleVO findById(Long id) {
|
||||
return OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.findById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public List<OcrRuleVO> findAll() {
|
||||
return OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.findAll());
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@Override
|
||||
public PageResult<OcrRuleVO> search(SearchDTO searchDTO) {
|
||||
return OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.search(searchDTO));
|
||||
|
||||
//PageResult<OcrRuleVO> result = OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.search(searchDTO));
|
||||
|
||||
//if (CollectionUtils.isEmpty(result.getList())) {
|
||||
//return new PageResult<>();
|
||||
//}
|
||||
|
||||
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
|
||||
|
||||
//result.getList().forEach(p -> {
|
||||
// String collectorId = String.valueOf(p.getCollectorId());
|
||||
// if (map.containsKey(collectorId)) {
|
||||
// p.setCollectorName(map.get(collectorId).getParamName());
|
||||
// }
|
||||
//});
|
||||
|
||||
//return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrRuleDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean add(AddOcrRuleDTO addOcrRuleDTO) {
|
||||
OcrRule ocrRule = OcrRuleConvert.INSTANCE.convertDO(addOcrRuleDTO);
|
||||
ocrRule.setId(idService.getDateSeq());
|
||||
return iOcrRuleDao.add(ocrRule);
|
||||
|
||||
// String name = addOcrRuleDTO.getName();
|
||||
|
||||
//OcrRule ocrRule = iOcrRuleDao.findOneBy("name", name);
|
||||
|
||||
//if (Func.notNull(ocrRule)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "匹配策略表已经存在");
|
||||
// }
|
||||
|
||||
// OcrRule ocrRule =OcrRuleConvert.INSTANCE.convertDO(addOcrRuleDTO);
|
||||
// ocrRule.setId(idService.getDateSeq());
|
||||
|
||||
// return iOcrRuleDao.add(schCollector);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrRuleDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean edit(EditOcrRuleDTO editOcrRuleDTO) {
|
||||
OcrRule ocrRule = OcrRuleConvert.INSTANCE.convertDO(editOcrRuleDTO);
|
||||
return iOcrRuleDao.edit(ocrRule);
|
||||
|
||||
// Long id = editOcrRuleDTO.getId();
|
||||
|
||||
// OcrRule ocrRule = iOcrRuleDao.findById(id);
|
||||
|
||||
// if (Func.isNull(ocrRule)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "匹配策略表,无法更新!");
|
||||
// }
|
||||
|
||||
// ocrRule.setUpdateTime(LocalDateTime.now());
|
||||
// return iOcrRuleDao.edit(ocrRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrRuleDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
public int delete(DeleteOcrRuleDTO deleteOcrRuleDTO) {
|
||||
return iOcrRuleDao.delete(deleteOcrRuleDTO.getIds());
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,145 @@
|
||||
package com.docus.server.service.impl;
|
||||
|
||||
import com.docus.infrastructure.redis.service.IdService;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.convert.OcrSpecialDetailConvert;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.AddOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.DeleteOcrSpecialDetailDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialdetail.EditOcrSpecialDetailDTO;
|
||||
import com.docus.server.entity.segmentation.OcrSpecialDetail;
|
||||
import com.docus.server.infrastructure.dao.IOcrSpecialDetailDao;
|
||||
import com.docus.server.service.IOcrSpecialDetailService;
|
||||
import com.docus.server.vo.segmentation.ocrspecialdetail.OcrSpecialDetailVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊规则详情 服务实现类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Service
|
||||
public class OcrSpecialDetailServiceImpl implements IOcrSpecialDetailService {
|
||||
@Resource
|
||||
private IOcrSpecialDetailDao iOcrSpecialDetailDao;
|
||||
@Resource
|
||||
private IdService idService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public OcrSpecialDetailVO findById(Long id) {
|
||||
return OcrSpecialDetailConvert.INSTANCE.convertVO(iOcrSpecialDetailDao.findById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public List<OcrSpecialDetailVO> findAll() {
|
||||
return OcrSpecialDetailConvert.INSTANCE.convertVO(iOcrSpecialDetailDao.findAll());
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@Override
|
||||
public PageResult<OcrSpecialDetailVO> search(SearchDTO searchDTO) {
|
||||
return OcrSpecialDetailConvert.INSTANCE.convertVO(iOcrSpecialDetailDao.search(searchDTO));
|
||||
|
||||
//PageResult<OcrSpecialDetailVO> result = OcrSpecialDetailConvert.INSTANCE.convertVO(iOcrSpecialDetailDao.search(searchDTO));
|
||||
|
||||
//if (CollectionUtils.isEmpty(result.getList())) {
|
||||
//return new PageResult<>();
|
||||
//}
|
||||
|
||||
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
|
||||
|
||||
//result.getList().forEach(p -> {
|
||||
// String collectorId = String.valueOf(p.getCollectorId());
|
||||
// if (map.containsKey(collectorId)) {
|
||||
// p.setCollectorName(map.get(collectorId).getParamName());
|
||||
// }
|
||||
//});
|
||||
|
||||
//return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrSpecialDetailDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean add(AddOcrSpecialDetailDTO addOcrSpecialDetailDTO) {
|
||||
OcrSpecialDetail ocrSpecialDetail = OcrSpecialDetailConvert.INSTANCE.convertDO(addOcrSpecialDetailDTO);
|
||||
ocrSpecialDetail.setId(idService.getDateSeq());
|
||||
return iOcrSpecialDetailDao.add(ocrSpecialDetail);
|
||||
|
||||
// String name = addOcrSpecialDetailDTO.getName();
|
||||
|
||||
//OcrSpecialDetail ocrSpecialDetail = iOcrSpecialDetailDao.findOneBy("name", name);
|
||||
|
||||
//if (Func.notNull(ocrSpecialDetail)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "特殊规则详情已经存在");
|
||||
// }
|
||||
|
||||
// OcrSpecialDetail ocrSpecialDetail =OcrSpecialDetailConvert.INSTANCE.convertDO(addOcrSpecialDetailDTO);
|
||||
// ocrSpecialDetail.setId(idService.getDateSeq());
|
||||
|
||||
// return iOcrSpecialDetailDao.add(schCollector);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrSpecialDetailDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean edit(EditOcrSpecialDetailDTO editOcrSpecialDetailDTO) {
|
||||
OcrSpecialDetail ocrSpecialDetail = OcrSpecialDetailConvert.INSTANCE.convertDO(editOcrSpecialDetailDTO);
|
||||
return iOcrSpecialDetailDao.edit(ocrSpecialDetail);
|
||||
|
||||
// Long id = editOcrSpecialDetailDTO.getId();
|
||||
|
||||
// OcrSpecialDetail ocrSpecialDetail = iOcrSpecialDetailDao.findById(id);
|
||||
|
||||
// if (Func.isNull(ocrSpecialDetail)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "特殊规则详情,无法更新!");
|
||||
// }
|
||||
|
||||
// ocrSpecialDetail.setUpdateTime(LocalDateTime.now());
|
||||
// return iOcrSpecialDetailDao.edit(ocrSpecialDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrSpecialDetailDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
public int delete(DeleteOcrSpecialDetailDTO deleteOcrSpecialDetailDTO) {
|
||||
return iOcrSpecialDetailDao.delete(deleteOcrSpecialDetailDTO.getIds());
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,145 @@
|
||||
package com.docus.server.service.impl;
|
||||
|
||||
import com.docus.infrastructure.redis.service.IdService;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.convert.OcrSpecialRuleConvert;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
|
||||
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
|
||||
import com.docus.server.entity.segmentation.OcrSpecialRule;
|
||||
import com.docus.server.infrastructure.dao.IOcrSpecialRuleDao;
|
||||
import com.docus.server.service.IOcrSpecialRuleService;
|
||||
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 特殊策略表 服务实现类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Service
|
||||
public class OcrSpecialRuleServiceImpl implements IOcrSpecialRuleService {
|
||||
@Resource
|
||||
private IOcrSpecialRuleDao iOcrSpecialRuleDao;
|
||||
@Resource
|
||||
private IdService idService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public OcrSpecialRuleVO findById(Long id) {
|
||||
return OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.findById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public List<OcrSpecialRuleVO> findAll() {
|
||||
return OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.findAll());
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@Override
|
||||
public PageResult<OcrSpecialRuleVO> search(SearchDTO searchDTO) {
|
||||
return OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.search(searchDTO));
|
||||
|
||||
//PageResult<OcrSpecialRuleVO> result = OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.search(searchDTO));
|
||||
|
||||
//if (CollectionUtils.isEmpty(result.getList())) {
|
||||
//return new PageResult<>();
|
||||
//}
|
||||
|
||||
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
|
||||
|
||||
//result.getList().forEach(p -> {
|
||||
// String collectorId = String.valueOf(p.getCollectorId());
|
||||
// if (map.containsKey(collectorId)) {
|
||||
// p.setCollectorName(map.get(collectorId).getParamName());
|
||||
// }
|
||||
//});
|
||||
|
||||
//return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrSpecialRuleDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean add(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO) {
|
||||
OcrSpecialRule ocrSpecialRule = OcrSpecialRuleConvert.INSTANCE.convertDO(addOcrSpecialRuleDTO);
|
||||
ocrSpecialRule.setId(idService.getDateSeq());
|
||||
return iOcrSpecialRuleDao.add(ocrSpecialRule);
|
||||
|
||||
// String name = addOcrSpecialRuleDTO.getName();
|
||||
|
||||
//OcrSpecialRule ocrSpecialRule = iOcrSpecialRuleDao.findOneBy("name", name);
|
||||
|
||||
//if (Func.notNull(ocrSpecialRule)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "特殊策略表已经存在");
|
||||
// }
|
||||
|
||||
// OcrSpecialRule ocrSpecialRule =OcrSpecialRuleConvert.INSTANCE.convertDO(addOcrSpecialRuleDTO);
|
||||
// ocrSpecialRule.setId(idService.getDateSeq());
|
||||
|
||||
// return iOcrSpecialRuleDao.add(schCollector);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrSpecialRuleDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean edit(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO) {
|
||||
OcrSpecialRule ocrSpecialRule = OcrSpecialRuleConvert.INSTANCE.convertDO(editOcrSpecialRuleDTO);
|
||||
return iOcrSpecialRuleDao.edit(ocrSpecialRule);
|
||||
|
||||
// Long id = editOcrSpecialRuleDTO.getId();
|
||||
|
||||
// OcrSpecialRule ocrSpecialRule = iOcrSpecialRuleDao.findById(id);
|
||||
|
||||
// if (Func.isNull(ocrSpecialRule)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "特殊策略表,无法更新!");
|
||||
// }
|
||||
|
||||
// ocrSpecialRule.setUpdateTime(LocalDateTime.now());
|
||||
// return iOcrSpecialRuleDao.edit(ocrSpecialRule);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrSpecialRuleDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
public int delete(DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO) {
|
||||
return iOcrSpecialRuleDao.delete(deleteOcrSpecialRuleDTO.getIds());
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,145 @@
|
||||
package com.docus.server.service.impl;
|
||||
|
||||
import com.docus.infrastructure.redis.service.IdService;
|
||||
import com.docus.infrastructure.web.request.SearchDTO;
|
||||
import com.docus.infrastructure.web.response.PageResult;
|
||||
import com.docus.server.convert.OcrVersionConvert;
|
||||
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
|
||||
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
|
||||
import com.docus.server.entity.segmentation.OcrVersion;
|
||||
import com.docus.server.infrastructure.dao.IOcrVersionDao;
|
||||
import com.docus.server.service.IOcrVersionService;
|
||||
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 正式数据版本号管理 服务实现类
|
||||
*
|
||||
* @author AutoGenerator
|
||||
* @since 2023-08-25
|
||||
*/
|
||||
@Service
|
||||
public class OcrVersionServiceImpl implements IOcrVersionService {
|
||||
@Resource
|
||||
private IOcrVersionDao iOcrVersionDao;
|
||||
@Resource
|
||||
private IdService idService;
|
||||
|
||||
/**
|
||||
* 按主键查询
|
||||
*
|
||||
* @param id 主键Id
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public OcrVersionVO findById(Long id) {
|
||||
return OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.findById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有
|
||||
*
|
||||
* @return 实体
|
||||
*/
|
||||
@Override
|
||||
public List<OcrVersionVO> findAll() {
|
||||
return OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.findAll());
|
||||
}
|
||||
|
||||
/**
|
||||
* 关键字搜索
|
||||
*
|
||||
* @param searchDTO 搜索参数
|
||||
* @return 分页列表
|
||||
*/
|
||||
@Override
|
||||
public PageResult<OcrVersionVO> search(SearchDTO searchDTO) {
|
||||
return OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.search(searchDTO));
|
||||
|
||||
//PageResult<OcrVersionVO> result = OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.search(searchDTO));
|
||||
|
||||
//if (CollectionUtils.isEmpty(result.getList())) {
|
||||
//return new PageResult<>();
|
||||
//}
|
||||
|
||||
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
|
||||
|
||||
//result.getList().forEach(p -> {
|
||||
// String collectorId = String.valueOf(p.getCollectorId());
|
||||
// if (map.containsKey(collectorId)) {
|
||||
// p.setCollectorName(map.get(collectorId).getParamName());
|
||||
// }
|
||||
//});
|
||||
|
||||
//return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*
|
||||
* @param addOcrVersionDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean add(AddOcrVersionDTO addOcrVersionDTO) {
|
||||
OcrVersion ocrVersion = OcrVersionConvert.INSTANCE.convertDO(addOcrVersionDTO);
|
||||
ocrVersion.setId(idService.getDateSeq());
|
||||
return iOcrVersionDao.add(ocrVersion);
|
||||
|
||||
// String name = addOcrVersionDTO.getName();
|
||||
|
||||
//OcrVersion ocrVersion = iOcrVersionDao.findOneBy("name", name);
|
||||
|
||||
//if (Func.notNull(ocrVersion)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "正式数据版本号管理已经存在");
|
||||
// }
|
||||
|
||||
// OcrVersion ocrVersion =OcrVersionConvert.INSTANCE.convertDO(addOcrVersionDTO);
|
||||
// ocrVersion.setId(idService.getDateSeq());
|
||||
|
||||
// return iOcrVersionDao.add(schCollector);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param editOcrVersionDTO 编辑参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean edit(EditOcrVersionDTO editOcrVersionDTO) {
|
||||
OcrVersion ocrVersion = OcrVersionConvert.INSTANCE.convertDO(editOcrVersionDTO);
|
||||
return iOcrVersionDao.edit(ocrVersion);
|
||||
|
||||
// Long id = editOcrVersionDTO.getId();
|
||||
|
||||
// OcrVersion ocrVersion = iOcrVersionDao.findById(id);
|
||||
|
||||
// if (Func.isNull(ocrVersion)) {
|
||||
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "正式数据版本号管理,无法更新!");
|
||||
// }
|
||||
|
||||
// ocrVersion.setUpdateTime(LocalDateTime.now());
|
||||
// return iOcrVersionDao.edit(ocrVersion);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param deleteOcrVersionDTO 删除参数
|
||||
* @return 成功或失败
|
||||
*/
|
||||
@Override
|
||||
public int delete(DeleteOcrVersionDTO deleteOcrVersionDTO) {
|
||||
return iOcrVersionDao.delete(deleteOcrVersionDTO.getIds());
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,29 @@
|
||||
<?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.docus.server.infrastructure.mapper.OcrBasicMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap"
|
||||
type="com.docus.server.entity.segmentation.OcrBasic">
|
||||
<id column="id" property="id"/>
|
||||
<result column="patient_id" property="patientId"/>
|
||||
<result column="inpatient_no" property="inpatientNo"/>
|
||||
<result column="name" property="name"/>
|
||||
<result column="ocr_finish_time" property="ocrFinishTime"/>
|
||||
<result column="admiss_date" property="admissDate"/>
|
||||
<result column="admiss_dept" property="admissDept"/>
|
||||
<result column="admiss_dept_name" property="admissDeptName"/>
|
||||
<result column="dis_date" property="disDate"/>
|
||||
<result column="dis_dept" property="disDept"/>
|
||||
<result column="dis_dept_name" property="disDeptName"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="is_test" property="isTest"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
id, patient_id, inpatient_no, name, ocr_finish_time, admiss_date, admiss_dept, admiss_dept_name, dis_date, dis_dept, dis_dept_name, create_time, update_time, is_test
|
||||
</sql>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,22 @@
|
||||
<?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.docus.server.infrastructure.mapper.OcrConfigMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap"
|
||||
type="com.docus.server.entity.segmentation.OcrConfig">
|
||||
<id column="id" property="id"/>
|
||||
<result column="config_key" property="configKey"/>
|
||||
<result column="config_json" property="configJson"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
<result column="version" property="version"/>
|
||||
<result column="is_test" property="isTest"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
id, config_key, config_json, create_time, update_time, version, is_test
|
||||
</sql>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,35 @@
|
||||
<?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.docus.server.infrastructure.mapper.OcrFileInfoMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap"
|
||||
type="com.docus.server.entity.segmentation.OcrFileInfo">
|
||||
<id column="id" property="id"/>
|
||||
<result column="patient_id" property="patientId"/>
|
||||
<result column="file_title" property="fileTitle"/>
|
||||
<result column="pic_name" property="picName"/>
|
||||
<result column="file_type" property="fileType"/>
|
||||
<result column="sort" property="sort"/>
|
||||
<result column="serial_number" property="serialNumber"/>
|
||||
<result column="pic_url" property="picUrl"/>
|
||||
<result column="pic_cut_url" property="picCutUrl"/>
|
||||
<result column="angle" property="angle"/>
|
||||
<result column="ocr_text" property="ocrText"/>
|
||||
<result column="finsh_time" property="finshTime"/>
|
||||
<result column="ocr_status" property="ocrStatus"/>
|
||||
<result column="assort_id" property="assortId"/>
|
||||
<result column="assort_name" property="assortName"/>
|
||||
<result column="rule_id" property="ruleId"/>
|
||||
<result column="key" property="key"/>
|
||||
<result column="rate" property="rate"/>
|
||||
<result column="create_time" property="createTime"/>
|
||||
<result column="update_time" property="updateTime"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="Base_Column_List">
|
||||
id, patient_id, file_title, pic_name, file_type, sort, serial_number, pic_url, pic_cut_url, angle, ocr_text, finsh_time, ocr_status, assort_id, assort_name, rule_id, key, rate, create_time, update_time
|
||||
</sql>
|
||||
|
||||
</mapper>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue