报告查询接口
This commit is contained in:
parent
284b283bf1
commit
bfa73c1deb
@ -0,0 +1,50 @@
|
||||
package com.transitPlatForm.transitPF.controller;
|
||||
|
||||
import com.transitPlatForm.common.core.controller.BaseController;
|
||||
import com.transitPlatForm.common.core.page.TableDataInfo;
|
||||
import com.transitPlatForm.transitPF.mapper.RegLisReportMapper;
|
||||
import com.transitPlatForm.transitPF.pojo.RegGetReportsList;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
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.RestController;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 区域检验中心,检验报告查询
|
||||
*/
|
||||
@Api(tags = "区域检验中心-检验报告查询")
|
||||
@RestController
|
||||
@RequestMapping("/transitLisReport")
|
||||
@Slf4j
|
||||
public class RegLisReportController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
RegLisReportMapper regLisReportMapper;
|
||||
|
||||
@ApiOperation("检验报告数据")
|
||||
@GetMapping("/lisReportList")
|
||||
public TableDataInfo getLisReportList(RegGetReportsList regGetReportsList){
|
||||
startPage();
|
||||
List<Map<String, Object>> lisReportList = regLisReportMapper.getLisReportList(regGetReportsList);
|
||||
return getDataTable(lisReportList);
|
||||
}
|
||||
|
||||
@ApiOperation("获取报告明细数据")
|
||||
@GetMapping("/reportDetail")
|
||||
public List<Map<String,Object>> getLisReportDetail(String bgdh){
|
||||
return regLisReportMapper.getLisReportDetail(bgdh);
|
||||
}
|
||||
|
||||
@ApiOperation("获取细菌报告数据")
|
||||
@GetMapping("/reportDetailMed")
|
||||
public List<Map<String,Object>> getRegGetresultmed(String bgdh,String xmdh){
|
||||
return regLisReportMapper.getRegGetresultmed(bgdh,xmdh);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.transitPlatForm.transitPF.mapper;
|
||||
|
||||
|
||||
import com.transitPlatForm.transitPF.pojo.RegGetReportsList;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface RegLisReportMapper {
|
||||
List<Map<String, Object>> getLisReportList(RegGetReportsList regGetReportsList);
|
||||
List<Map<String,Object>> getLisReportDetail(String bgdh);
|
||||
List<Map<String, Object>> getRegGetresultmed(@Param("bgdh") String bgdh ,@Param("xmdh") String xmdh);
|
||||
}
|
||||
@ -0,0 +1,47 @@
|
||||
package com.transitPlatForm.transitPF.pojo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class RegGetReportsList {
|
||||
private String yljg;
|
||||
private Date jyrq;
|
||||
private String jyrqname;
|
||||
private String yq;
|
||||
private String ybh;
|
||||
private String yblx;
|
||||
private String brxm;
|
||||
private String brdh;
|
||||
private String ch;
|
||||
private String zd;
|
||||
private String sqh;
|
||||
private String ksdh;
|
||||
private String jzbz;
|
||||
private String alarmflag;
|
||||
private String dybz;
|
||||
private String nl;
|
||||
private String ksname;
|
||||
private String brlyname;
|
||||
private String brxbname;
|
||||
private String yblxname;
|
||||
private String sjysname;
|
||||
private String yqmc;
|
||||
private String yqdl;
|
||||
private String sqdh;
|
||||
private String jymd;
|
||||
private String st;
|
||||
private String et;
|
||||
private Date sqsj;
|
||||
private Date cysj;
|
||||
private Date zxsj;
|
||||
private Date bbsjsj;
|
||||
private Date jssj;
|
||||
private Date confirmtime;
|
||||
private String lisgroup;
|
||||
}
|
||||
@ -567,7 +567,19 @@ public class RegRequestInfoServiceImpl implements RegRequestInfoService {
|
||||
String patId = regRequestInfoDTO.getPatId();
|
||||
String loginYLJG = SecurityUtils.getLoginUser().getSysLoginParam().getLoginYLJG();
|
||||
RegApply regApply = regRequestInfoMapper.getPatInfo(patId, loginYLJG);
|
||||
return new Result("0","查询数据成功!",regApply);
|
||||
RegApply regApply1 = new RegApply();
|
||||
regApply1.setPatId(regApply.getPatId());
|
||||
regApply1.setPatType(regApply.getPatType());
|
||||
regApply1.setPatName(regApply.getPatName());
|
||||
regApply1.setPatSex(regApply.getPatSex());
|
||||
regApply1.setPatAge(regApply.getPatAge());
|
||||
regApply1.setAgeUnit(regApply.getAgeUnit());
|
||||
regApply1.setPatBirthday(regApply.getPatBirthday());
|
||||
regApply1.setPhone(regApply.getPhone());
|
||||
regApply1.setAddress(regApply.getAddress());
|
||||
regApply1.setDiagnosisCode(regApply.getDiagnosisCode());
|
||||
regApply1.setDiagnosisName(regApply.getDiagnosisName());
|
||||
return new Result("0","查询数据成功!",regApply1);
|
||||
}
|
||||
|
||||
private String getLocalid() {
|
||||
|
||||
@ -0,0 +1,28 @@
|
||||
<?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.transitPlatForm.transitPF.mapper.RegLisReportMapper">
|
||||
<select id="getLisReportList" resultType="map">
|
||||
<![CDATA[select * from reg_getReportsList where jyrq >= CONVERT(varchar(100), #{st}, 120) and jyrq <= CONVERT(varchar(100), #{et}, 120)]]>
|
||||
<if test="brxm != null and brxm != ''"> AND brxm like '%'+#{brxm}+'%'</if>
|
||||
<if test="brdh != null and brdh != ''"> AND brdh like '%'+#{brdh}+'%'</if>
|
||||
<if test="sqh != null and sqh != ''"> AND sqh like '%'+#{sqh}+'%'</if>
|
||||
<if test="dybz != null and dybz != ''"> AND dybz = #{dybz}</if>
|
||||
<if test="ksdh !=null and ksdh != ''"> and ksdh = #{ksdh}</if>
|
||||
<if test="alarmflag != null"> <![CDATA[AND alarmflag = #{alarmflag}]]></if>
|
||||
<if test="ch != null and ch !=''"> and ch = #{ch}</if>
|
||||
<if test="jzbz != null">and jzbz = #{jzbz}</if>
|
||||
<if test="brlyname != null and brlyname != ''"> and brlyname = #{brlyname}</if>
|
||||
</select>
|
||||
|
||||
<select id="getLisReportDetail" resultType="map">
|
||||
select * from reg_getReportDetail where bgdh = #{bgdh}
|
||||
</select>
|
||||
|
||||
<select id="getRegGetresultmed" resultType="map">
|
||||
select * from reg_getresultmed where bgdh = #{bgdh}
|
||||
<if test="xmdh != null and xmdh !=''">and xmdh = #{xmdh}</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Loading…
x
Reference in New Issue
Block a user