feat: 广东省中医珠海,采集任务 添加
parent
1827da2efc
commit
7bee510298
@ -0,0 +1,36 @@
|
||||
package com.docus.server.archive.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 患者采集记录
|
||||
* 表: docus_archivefile.af_collect_patient_log
|
||||
*/
|
||||
@Data
|
||||
public class AfCollectPatientLog implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 患者主键
|
||||
*/
|
||||
private String patientId;
|
||||
|
||||
/**
|
||||
* 采集器id
|
||||
*/
|
||||
private String collectId;
|
||||
|
||||
/**
|
||||
* 最后一次采集时间
|
||||
*/
|
||||
private Date lastCollectTime;
|
||||
|
||||
/**
|
||||
* 文件个数
|
||||
*/
|
||||
private Integer fileCount;
|
||||
}
|
||||
@ -0,0 +1,134 @@
|
||||
package com.docus.server.gdszyzh.controller;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import com.docus.infrastructure.web.api.CommonResult;
|
||||
import com.docus.server.archive.mapper.TBasicMapper;
|
||||
import com.docus.server.gdszyzh.entity.GdSzyZhReportDataView;
|
||||
import com.docus.server.gdszyzh.mapper.GdSzyZhEcgReportDataViewMapper;
|
||||
import com.docus.server.gdszyzh.mapper.GdSzyZhIcuReportDataViewMapper;
|
||||
import com.docus.server.gdszyzh.mapper.GdSzyZhShouMaReportDataViewMapper;
|
||||
import com.docus.server.gdszyzh.util.PrintConfig;
|
||||
import com.docus.server.gdszyzh.util.WebPagePrinter;
|
||||
import com.docus.server.rpc.GdSzyZhReportService;
|
||||
import com.docus.server.rpc.dto.GdSzyZhReportDetailDto;
|
||||
import com.docus.server.rpc.dto.GdSzyZhReportListDto;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2026/4/7 16:35
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/gdszyzhtest")
|
||||
@Api(tags = "广东省中医珠海测试接口")
|
||||
public class TestController {
|
||||
@Autowired
|
||||
private GdSzyZhIcuReportDataViewMapper icuReportDataViewMapper;
|
||||
@Autowired
|
||||
private GdSzyZhEcgReportDataViewMapper ecgReportDataViewMapper;
|
||||
@Autowired
|
||||
private GdSzyZhShouMaReportDataViewMapper shouMaReportDataViewMapper;
|
||||
@Autowired
|
||||
private TBasicMapper tBasicMapper;
|
||||
@Autowired
|
||||
private GdSzyZhReportService gdSzyZhReportService;
|
||||
|
||||
@GetMapping("/shouma/get")
|
||||
@ApiOperation("手麻视图测试数据")
|
||||
public CommonResult<List<GdSzyZhReportDataView>> shoumaTest(@RequestParam("jzh") String jzh) {
|
||||
List<GdSzyZhReportDataView> byJzhs = shouMaReportDataViewMapper.getByJzhs(Collections.singletonList(jzh));
|
||||
return CommonResult.success(byJzhs);
|
||||
}
|
||||
|
||||
@GetMapping("/ecg/get")
|
||||
@ApiOperation("ecg视图测试数据")
|
||||
public CommonResult<List<GdSzyZhReportDataView>> ecgTest(@RequestParam("jzh") String jzh) {
|
||||
List<GdSzyZhReportDataView> byJzhs = ecgReportDataViewMapper.getByJzhs(Collections.singletonList(jzh));
|
||||
return CommonResult.success(byJzhs);
|
||||
}
|
||||
|
||||
@GetMapping("/icu/get")
|
||||
@ApiOperation("重症视图测试数据")
|
||||
public CommonResult<List<GdSzyZhReportDataView>> icuTest(@RequestParam("zyh") String inpatientNo, @RequestParam("zycs") Integer zycs) {
|
||||
List<GdSzyZhReportDataView> dataViewList = icuReportDataViewMapper.getByInpatientNo(inpatientNo);
|
||||
dataViewList= dataViewList.stream()
|
||||
.filter(e -> e.getAdmissTimes().equals(zycs))
|
||||
.collect(Collectors.toList());
|
||||
return CommonResult.success(dataViewList);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/pacsList/get")
|
||||
@ApiOperation("PACS检查列表接口测试 时间格式yyyy-MM-dd")
|
||||
public CommonResult<GdSzyZhReportListDto> pacsListTest(@RequestParam("empId") String empId, @RequestParam("jzh") String jzh,
|
||||
@RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate) {
|
||||
GdSzyZhReportListDto dto = gdSzyZhReportService.pacsList(empId, jzh, beginDate, endDate);
|
||||
return CommonResult.success(dto);
|
||||
}
|
||||
|
||||
@GetMapping("/pacsDetail/get")
|
||||
@ApiOperation("PACS检查报告明细接口测试")
|
||||
public CommonResult<GdSzyZhReportDetailDto> pacsDetailTest(@RequestParam("examNo") String examNo) {
|
||||
GdSzyZhReportDetailDto pacsDetail = gdSzyZhReportService.pacsDetail(examNo);
|
||||
return CommonResult.success(pacsDetail);
|
||||
}
|
||||
|
||||
@GetMapping("/lisList/get")
|
||||
@ApiOperation("LIS检验列表接口测试 时间格式yyyy-MM-dd HH:mm:ss")
|
||||
public CommonResult<GdSzyZhReportListDto> lisListTest(@RequestParam("empId") String empId, @RequestParam("jzh") String jzh,
|
||||
@RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate) {
|
||||
GdSzyZhReportListDto dto = gdSzyZhReportService.lisList(empId, jzh, beginDate, endDate);
|
||||
return CommonResult.success(dto);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/html/print")
|
||||
@ApiOperation("html打印测试")
|
||||
public CommonResult<String> icuPrintTest(@RequestParam(value = "url") String url,
|
||||
@RequestParam(value = "landscape", required = false) Boolean landscape,
|
||||
@RequestParam(value = "displayHeaderFooter", required = false) Boolean displayHeaderFooter,
|
||||
@RequestParam(value = "printBackground", required = false) Boolean printBackground,
|
||||
@RequestParam(value = "scale", required = false) Double scale,
|
||||
@RequestParam(value = "paperWidth", required = false) Double paperWidth,
|
||||
@RequestParam(value = "paperHeight", required = false) Double paperHeight,
|
||||
@RequestParam(value = "marginTop", required = false) Double marginTop,
|
||||
@RequestParam(value = "marginBottom", required = false) Double marginBottom,
|
||||
@RequestParam(value = "marginLeft", required = false) Double marginLeft,
|
||||
@RequestParam(value = "marginRight", required = false) Double marginRight,
|
||||
@RequestParam(value = "pageRanges", required = false) String pageRanges,
|
||||
@RequestParam(value = "ignoreInvalidPageRanges", required = false) Boolean ignoreInvalidPageRanges,
|
||||
@RequestParam(value = "headerTemplate", required = false) String headerTemplate,
|
||||
@RequestParam(value = "footerTemplate", required = false) String footerTemplate,
|
||||
@RequestParam(value = "preferCSSPageSize", required = false) Boolean preferCSSPageSize
|
||||
) {
|
||||
try (WebPagePrinter printer = new WebPagePrinter()) {
|
||||
printer.init();
|
||||
System.out.println(url);
|
||||
PrintConfig config = new PrintConfig();
|
||||
|
||||
|
||||
byte[] pdfBytes = printer.printToPdf(url, config, landscape, displayHeaderFooter, printBackground, scale,
|
||||
paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges,
|
||||
ignoreInvalidPageRanges, headerTemplate, footerTemplate, preferCSSPageSize);
|
||||
String pdfPath = "urlPrintToPdf.pdf";
|
||||
FileUtil.writeBytes(pdfBytes, pdfPath);
|
||||
System.out.println("PDF已生成: " + pdfPath);
|
||||
return CommonResult.success("成功");
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return CommonResult.failed("失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,73 @@
|
||||
package com.docus.server.gdszyzh.job;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.docus.server.archive.mapper.TBasicMapper;
|
||||
import com.docus.server.gdszyzh.service.ReportCollectService;
|
||||
import com.docus.server.util.TableJsonRead;
|
||||
import com.xxl.job.core.context.XxlJobHelper;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2026/4/7 16:25
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class GdSzyZhEcgCollectJob {
|
||||
@Autowired
|
||||
private ReportCollectService reportCollectService;
|
||||
@Autowired
|
||||
private TBasicMapper basicMapper;
|
||||
|
||||
@XxlJob("GdSzyZhEcgCollectJob")
|
||||
public void gdSzyZhEcgCollectJob() {
|
||||
log.info("广东省中医珠海,动态心电血压采集任务开始!");
|
||||
LocalDate localDate = LocalDate.now();
|
||||
try {
|
||||
String jobParam = XxlJobHelper.getJobParam();
|
||||
String[] days;
|
||||
if (jobParam == null) {
|
||||
days = new String[]{"3"};
|
||||
} else {
|
||||
days = jobParam.split(",");
|
||||
}
|
||||
for (String day : days) {
|
||||
LocalDate disDateRange = localDate.plusDays(-Integer.parseInt(day));
|
||||
String disDateStart = disDateRange + " 00:00:00";
|
||||
String disDateEnd = disDateRange + " 23:59:59";
|
||||
log.info("广东省中医珠海,动态心电血压采集,患者出院时间:{} 至 {}", disDateStart, disDateEnd);
|
||||
List<String> patientIds = basicMapper.getPatientIdsByDisDate(disDateStart, disDateEnd);
|
||||
reportCollectService.collectEcg(patientIds);
|
||||
}
|
||||
log.info("广东省中医珠海,动态心电血压采集任务结束!");
|
||||
} catch (Exception e) {
|
||||
log.error("广东省中医珠海,动态心电血压采集任务出现异常!" + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
@XxlJob("GdSzyZhEcgQueryNoCollectJob")
|
||||
public void gdSzyZhEcgQueryNoCollectJob() {
|
||||
log.info("广东省中医珠海,检索动态心电血压未采集患者采集任务开始!");
|
||||
try {
|
||||
final String configPath = "data-config";
|
||||
final String configName = "gdszyzh-collect-config";
|
||||
TableJsonRead jsonReader = new TableJsonRead();
|
||||
JSONObject configOjb = jsonReader.Read(configPath, configName, JSONObject.class);
|
||||
JSONObject lisWsConfig = configOjb.getJSONObject("ECG");
|
||||
String collectorId = lisWsConfig.getString("collectorId");
|
||||
List<String> patientIds = basicMapper.getNoCollectPatientIds(collectorId);
|
||||
reportCollectService.collectEcg(patientIds);
|
||||
log.info("广东省中医珠海,检索动态心电血压未采集患者采集任务结束!");
|
||||
} catch (Exception e) {
|
||||
log.info("广东省中医珠海,检索动态心电血压未采集患者采集任务异常!" + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,75 @@
|
||||
package com.docus.server.gdszyzh.job;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.docus.server.archive.mapper.TBasicMapper;
|
||||
import com.docus.server.gdszyzh.service.ReportCollectService;
|
||||
import com.docus.server.util.TableJsonRead;
|
||||
import com.xxl.job.core.context.XxlJobHelper;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2026/4/7 16:25
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class GdSzyZhIcuCollectJob {
|
||||
@Autowired
|
||||
private ReportCollectService reportCollectService;
|
||||
@Autowired
|
||||
private TBasicMapper basicMapper;
|
||||
|
||||
@XxlJob("GdSzyZhIcuCollectJob")
|
||||
public void gdSzyZhIcuCollectJob() {
|
||||
log.info("广东省中医珠海,重症采集任务开始!");
|
||||
LocalDate localDate = LocalDate.now();
|
||||
try {
|
||||
String jobParam = XxlJobHelper.getJobParam();
|
||||
String[] days;
|
||||
if (jobParam == null) {
|
||||
days = new String[]{"3"};
|
||||
} else {
|
||||
days = jobParam.split(",");
|
||||
}
|
||||
for (String day : days) {
|
||||
LocalDate disDateRange = localDate.plusDays(-Integer.parseInt(day));
|
||||
String disDateStart = disDateRange + " 00:00:00";
|
||||
String disDateEnd = disDateRange + " 23:59:59";
|
||||
log.info("广东省中医珠海,重症采集,患者出院时间:{} 至 {}", disDateStart, disDateEnd);
|
||||
List<String> patientIds = basicMapper.getPatientIdsByDisDate(disDateStart, disDateEnd);
|
||||
reportCollectService.collectIcu(patientIds);
|
||||
}
|
||||
log.info("广东省中医珠海,重症采集任务结束!");
|
||||
} catch (Exception e) {
|
||||
log.error("广东省中医珠海,重症采集任务出现异常!" + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@XxlJob("GdSzyZhIcuQueryNoCollectJob")
|
||||
public void gdSzyZhIcuQueryNoCollectJob() {
|
||||
log.info("广东省中医珠海,检索重症未采集患者采集任务开始!");
|
||||
try {
|
||||
final String configPath = "data-config";
|
||||
final String configName = "gdszyzh-collect-config";
|
||||
TableJsonRead jsonReader = new TableJsonRead();
|
||||
JSONObject configOjb = jsonReader.Read(configPath, configName, JSONObject.class);
|
||||
JSONObject lisWsConfig = configOjb.getJSONObject("ICU");
|
||||
String collectorId = lisWsConfig.getString("collectorId");
|
||||
List<String> patientIds = basicMapper.getNoCollectPatientIds(collectorId);
|
||||
reportCollectService.collectIcu(patientIds);
|
||||
log.info("广东省中医珠海,检索重症未采集患者采集任务结束!");
|
||||
} catch (Exception e) {
|
||||
log.info("广东省中医珠海,检索重症未采集患者采集任务异常!" + e.getMessage(), e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,74 @@
|
||||
package com.docus.server.gdszyzh.job;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.docus.server.archive.mapper.TBasicMapper;
|
||||
import com.docus.server.gdszyzh.service.ReportCollectService;
|
||||
import com.docus.server.util.TableJsonRead;
|
||||
import com.xxl.job.core.context.XxlJobHelper;
|
||||
import com.xxl.job.core.handler.annotation.XxlJob;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2026/4/7 16:25
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
public class GdSzyZhShouMaCollectJob {
|
||||
@Autowired
|
||||
private ReportCollectService reportCollectService;
|
||||
@Autowired
|
||||
private TBasicMapper basicMapper;
|
||||
|
||||
@XxlJob("GdSzyZhShouMaCollectJob")
|
||||
public void gdSzyZhShouMaCollectJob() {
|
||||
log.info("广东省中医珠海,手麻采集任务开始!");
|
||||
LocalDate localDate = LocalDate.now();
|
||||
try {
|
||||
String jobParam = XxlJobHelper.getJobParam();
|
||||
String[] days;
|
||||
if (jobParam == null) {
|
||||
days = new String[]{"3"};
|
||||
} else {
|
||||
days = jobParam.split(",");
|
||||
}
|
||||
for (String day : days) {
|
||||
LocalDate disDateRange = localDate.plusDays(-Integer.parseInt(day));
|
||||
String disDateStart = disDateRange + " 00:00:00";
|
||||
String disDateEnd = disDateRange + " 23:59:59";
|
||||
log.info("广东省中医珠海,手麻采集,患者出院时间:{} 至 {}", disDateStart, disDateEnd);
|
||||
List<String> patientIds = basicMapper.getPatientIdsByDisDate(disDateStart, disDateEnd);
|
||||
reportCollectService.collectShouMa(patientIds);
|
||||
}
|
||||
log.info("广东省中医珠海,手麻采集任务结束!");
|
||||
} catch (Exception e) {
|
||||
log.error("广东省中医珠海,手麻采集任务出现异常!" + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
@XxlJob("GdSzyZhShouMaQueryNoCollectJob")
|
||||
public void gdSzyZhShouMaQueryNoCollectJob() {
|
||||
log.info("广东省中医珠海,检索手麻未采集患者采集任务开始!");
|
||||
try {
|
||||
final String configPath = "data-config";
|
||||
final String configName = "gdszyzh-collect-config";
|
||||
TableJsonRead jsonReader = new TableJsonRead();
|
||||
JSONObject configOjb = jsonReader.Read(configPath, configName, JSONObject.class);
|
||||
JSONObject lisWsConfig = configOjb.getJSONObject("PACS");
|
||||
String collectorId = lisWsConfig.getString("collectorId");
|
||||
List<String> patientIds = basicMapper.getNoCollectPatientIds(collectorId);
|
||||
reportCollectService.collectShouMa(patientIds);
|
||||
log.info("广东省中医珠海,检索手麻未采集患者采集任务结束!");
|
||||
} catch (Exception e) {
|
||||
log.info("广东省中医珠海,检索手麻未采集患者采集任务异常!" + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.docus.server.gdszyzh.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.gdszyzh.entity.GdSzyZhReportDataView;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2026/4/8 9:00
|
||||
*/
|
||||
@DS("gdszyzh-ecg")
|
||||
@Mapper
|
||||
public interface GdSzyZhEcgReportDataViewMapper {
|
||||
List<GdSzyZhReportDataView> getByJzhs(@Param("jzhs") List<String> jzhs);
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.docus.server.gdszyzh.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.gdszyzh.entity.GdSzyZhReportDataView;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2026/4/8 9:00
|
||||
*/
|
||||
@DS("gdszyzh-icu")
|
||||
@Mapper
|
||||
public interface GdSzyZhIcuReportDataViewMapper {
|
||||
List<GdSzyZhReportDataView> getByInpatientNo(@Param("inpatientNo") String inpatientNo);
|
||||
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.docus.server.gdszyzh.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.gdszyzh.entity.GdSzyZhReportDataView;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2026/4/8 9:00
|
||||
*/
|
||||
@DS("gdszyzh-shouma")
|
||||
@Mapper
|
||||
public interface GdSzyZhShouMaReportDataViewMapper {
|
||||
List<GdSzyZhReportDataView> getByJzhs(@Param("jzhs") List<String> jzhs);
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
package com.docus.server.gdszyzh.util;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author YongBin Wen
|
||||
* @date 2026/4/8 12:56
|
||||
*/
|
||||
public class IcuHtmlPrinter {
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
package com.docus.server.gdszyzh.util;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author wyb
|
||||
*/
|
||||
@Data
|
||||
public class PrintConfig {
|
||||
private Long waitTimeMs = 1000L;
|
||||
|
||||
}
|
||||
@ -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.gdszyzh.mapper.GdSzyZhEcgReportDataViewMapper">
|
||||
|
||||
<select id="getByJzhs" resultType="com.docus.server.gdszyzh.entity.GdSzyZhReportDataView">
|
||||
select
|
||||
fileId as reportNo,
|
||||
fileName as reportTitle,
|
||||
fileModule as reportClass,
|
||||
fileTime as reportTime,
|
||||
filePath as reportUrl,
|
||||
jzh
|
||||
from V_WZJ_GD
|
||||
where
|
||||
jzh in
|
||||
<foreach collection="jzhs" open="(" close=")" separator="," item="jzh">
|
||||
#{jzh}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,21 @@
|
||||
<?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.gdszyzh.mapper.GdSzyZhIcuReportDataViewMapper">
|
||||
|
||||
<select id="getByInpatientNo" resultType="com.docus.server.gdszyzh.entity.GdSzyZhReportDataView">
|
||||
select
|
||||
FILEID as reportNo,
|
||||
FILENAME as reportTitle,
|
||||
FILEMODOULENAME as reportClass,
|
||||
FILETIME as reportTime,
|
||||
FILEPATH as reportUrl,
|
||||
JZH,
|
||||
ZYH as inpatientNo,
|
||||
ZYCS as admissTimes
|
||||
from V_DOCUMENT_PDF
|
||||
where ZYH = #{inpatientNo}
|
||||
|
||||
</select>
|
||||
</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.gdszyzh.mapper.GdSzyZhShouMaReportDataViewMapper">
|
||||
|
||||
<select id="getByJzhs" resultType="com.docus.server.gdszyzh.entity.GdSzyZhReportDataView">
|
||||
SELECT
|
||||
EMR_FILE_NAME as reportNo,
|
||||
FILENAME as reportTitle,
|
||||
MR_SUB_CLASS as reportClass,
|
||||
FILETIME as reportTime,
|
||||
FILEPATH as reportUrl,
|
||||
PATIENT_ID AS jzh
|
||||
FROM
|
||||
v_anes_pdf
|
||||
WHERE PATIENT_ID in
|
||||
<foreach collection="jzhs" open="(" close=")" separator="," item="jzh">
|
||||
#{jzh}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue