Pārlūkot izejas kodu

病历数据块丢失明细列表页接口开发

songxinlu 3 gadi atpakaļ
vecāks
revīzija
a560b30fda

+ 53 - 0
daqe-center/src/main/java/com/lantone/daqe/dto/GetBlockLossPageDTO.java

@@ -0,0 +1,53 @@
+package com.lantone.daqe.dto;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @Description: 获取病历数据丢失明细分页列表-接口出参
+ * @author: songxl
+ * @time: 2022/3/4 10:39
+ */
+@ApiModel(value = "获取病历数据丢失明细分页列表-接口出参")
+@Getter
+@Setter
+public class GetBlockLossPageDTO implements Serializable {
+
+    private static final long serialVersionUID = -9157314435696856131L;
+
+    @ApiModelProperty(value = "编号")
+    private Long id;
+
+    @ApiModelProperty(value = "住院序号")
+    private String behospitalCode;
+
+    @ApiModelProperty(value = "文书编号")
+    private String recId;
+
+    @ApiModelProperty(value = "文书标题")
+    private String recTitle;
+
+    @ApiModelProperty(value = "丢失原因")
+    private String lossCause;
+
+    @ApiModelProperty(value = "丢失类型: 0:文书丢失 1:病案首页丢失 2:患者信息丢失")
+    private String lossType;
+
+    @ApiModelProperty(value = "丢失途径: 0:外部丢失 1:内部丢失")
+    private String lossWay;
+
+    @ApiModelProperty(value = "更新时间")
+    private Date auditTime;
+
+    @ApiModelProperty(value = "状态: 0:已丢失,1:已恢复")
+    private String status;
+
+    @ApiModelProperty(value = "核查结果 0:未通过,1:已通过,2:未核查")
+    private String isAudited;
+
+}

+ 6 - 0
daqe-center/src/main/java/com/lantone/daqe/facade/BlockLossManagementFacade.java

@@ -1,7 +1,10 @@
 package com.lantone.daqe.facade;
 
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.lantone.daqe.dto.GetBlockLossPageDTO;
 import com.lantone.daqe.facade.base.BlocklossResultFacade;
+import com.lantone.daqe.vo.GetBlockLossPageVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -16,4 +19,7 @@ public class BlockLossManagementFacade {
     private BlocklossResultFacade blocklossResultFacade;
 
 
+    public IPage<GetBlockLossPageDTO> getBlockLossPage(GetBlockLossPageVO getBlockLossPageVO) {
+        return blocklossResultFacade.getBaseMapper().getBlockLossPage(getBlockLossPageVO);
+    }
 }

+ 4 - 0
daqe-center/src/main/java/com/lantone/daqe/mapper/BlocklossResultMapper.java

@@ -1,7 +1,10 @@
 package com.lantone.daqe.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.lantone.daqe.dto.GetBlockLossPageDTO;
 import com.lantone.daqe.entity.BlocklossResult;
+import com.lantone.daqe.vo.GetBlockLossPageVO;
 
 /**
  * <p>
@@ -10,4 +13,5 @@ import com.lantone.daqe.entity.BlocklossResult;
  */
 public interface BlocklossResultMapper extends BaseMapper<BlocklossResult> {
 
+    IPage<GetBlockLossPageDTO> getBlockLossPage(GetBlockLossPageVO getBlockLossPageVO);
 }

+ 51 - 0
daqe-center/src/main/java/com/lantone/daqe/vo/GetBlockLossPageVO.java

@@ -0,0 +1,51 @@
+package com.lantone.daqe.vo;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.Date;
+
+/**
+ * @Description: 获取病历数据丢失明细分页列表-接口入参
+ * @author: songxl
+ * @time: 2022/3/4 10:39
+ */
+@ApiModel(value = "获取病历数据丢失明细分页列表-接口入参")
+@Getter
+@Setter
+public class GetBlockLossPageVO extends Page {
+
+    private static final long serialVersionUID = -7490180392492391778L;
+
+    @ApiModelProperty(value = "开始日期")
+    private Date startDate;
+
+    @ApiModelProperty(value = "截止日期")
+    private Date endDate;
+
+    @ApiModelProperty(value = "住院序号")
+    private String behospitalCode;
+
+    @ApiModelProperty(value = "文书编号")
+    private String recId;
+
+    @ApiModelProperty(value = "文书标题")
+    private String recTitle;
+
+    @ApiModelProperty(value = "丢失类型: 0:文书丢失 1:病案首页丢失 2:患者信息丢失")
+    private String lossType;
+
+    @ApiModelProperty(value = "丢失途径: 0:外部丢失 1:内部丢失")
+    private String lossWay;
+
+    @ApiModelProperty(value = "状态: 0:已丢失,1:已恢复")
+    private String status;
+
+    @ApiModelProperty(value = "核查结果 0:未通过,1:已通过,2:未核查")
+    private String isAudited;
+
+
+}

+ 17 - 0
daqe-center/src/main/java/com/lantone/daqe/web/BlockLossManagementController.java

@@ -1,6 +1,15 @@
 package com.lantone.daqe.web;
 
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.lantone.common.api.CommonResult;
+import com.lantone.daqe.dto.GetBlockLossPageDTO;
+import com.lantone.daqe.facade.BlockLossManagementFacade;
+import com.lantone.daqe.vo.GetBlockLossPageVO;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -14,5 +23,13 @@ import org.springframework.web.bind.annotation.RestController;
 @RequestMapping("/blockLossManage")
 public class BlockLossManagementController {
 
+    @Autowired
+    private BlockLossManagementFacade blockLossManagementFacade;
+
+    @ApiOperation(value = "获取病历数据丢失明细分页列表 [by:songxl]", notes = "获取病历数据丢失明细分页列表")
+    @PostMapping("/getBlockLossPage")
+    public CommonResult<IPage<GetBlockLossPageDTO>> getBlockLossPage(@RequestBody GetBlockLossPageVO getBlockLossPageVO) {
+        return CommonResult.success(blockLossManagementFacade.getBlockLossPage(getBlockLossPageVO));
+    }
 
 }

+ 26 - 0
daqe-center/src/main/resources/mapper/BlocklossResultMapper.xml

@@ -2,4 +2,30 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.lantone.daqe.mapper.BlocklossResultMapper">
 
+    <select id="getBlockLossPage" resultType="com.lantone.daqe.dto.GetBlockLossPageDTO">
+        SELECT
+        id,
+        behospital_code,
+        rec_id,
+        rec_title,
+        loss_cause,
+        loss_type,
+        loss_way,
+        gmt_modified,
+        `status`,
+        is_audited
+        FROM
+        `dc_blockloss_result`
+        WHERE
+        is_deleted = "N"
+<!--        AND gmt_create >= ""-->
+<!--        AND gmt_create < ""-->
+        AND behospital_code = ""
+        AND rec_id = ""
+        AND rec_title LIKE "%%"
+        AND loss_type = ""
+        AND loss_way = ""
+        AND is_audited = ""
+        AND `status` = ""
+    </select>
 </mapper>