增加住院报告查询功能
This commit is contained in:
parent
579d5a6670
commit
14100dbe2f
@ -7,6 +7,7 @@ import com.czlis.common.core.domain.Result;
|
|||||||
import com.czlis.interfaceCommon.mapper.LisInterfaceMapper;
|
import com.czlis.interfaceCommon.mapper.LisInterfaceMapper;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -36,6 +37,7 @@ public class LisInterfaceUtil {
|
|||||||
* @param inValue
|
* @param inValue
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public Result invokeSP(String type,String inValue){
|
public Result invokeSP(String type,String inValue){
|
||||||
Map<String,Object> map = new HashMap<>();
|
Map<String,Object> map = new HashMap<>();
|
||||||
map.put("invalue",inValue);
|
map.put("invalue",inValue);
|
||||||
|
|||||||
@ -44,6 +44,11 @@ public class ComDictServiceImpl implements ComDictService {
|
|||||||
return comDictMapper.getComDictList(comDict);
|
return comDictMapper.getComDictList(comDict);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 增加字典信息
|
||||||
|
* @param comDict
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public Result insertComDict(ComDict comDict) {
|
public Result insertComDict(ComDict comDict) {
|
||||||
@ -61,6 +66,12 @@ public class ComDictServiceImpl implements ComDictService {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导入数据
|
||||||
|
* @param comDictList
|
||||||
|
* @param updateDlCeshi
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public Result insertComDictList(List<ComDict> comDictList, boolean updateDlCeshi) {
|
public Result insertComDictList(List<ComDict> comDictList, boolean updateDlCeshi) {
|
||||||
@ -92,8 +103,7 @@ public class ComDictServiceImpl implements ComDictService {
|
|||||||
if (zdbz == null || zdbz.equals("")) comDict.setZdbz("N");
|
if (zdbz == null || zdbz.equals("")) comDict.setZdbz("N");
|
||||||
if (row0 > 0) {
|
if (row0 > 0) {
|
||||||
row = comDictMapper.updateComDict(comDict);
|
row = comDictMapper.updateComDict(comDict);
|
||||||
}
|
} else {
|
||||||
else{
|
|
||||||
row = comDictMapper.insertComDict(comDict);
|
row = comDictMapper.insertComDict(comDict);
|
||||||
}
|
}
|
||||||
if (row > 0) failureNum++;
|
if (row > 0) failureNum++;
|
||||||
@ -115,7 +125,6 @@ public class ComDictServiceImpl implements ComDictService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
@Override
|
@Override
|
||||||
public Result delComDict(ComDict comDict) {
|
public Result delComDict(ComDict comDict) {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
package com.czlis.mzcx;
|
package com.czlis.mzcx.controller;
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
package com.czlis.zybgcx.controller;
|
||||||
|
|
||||||
|
import com.czlis.common.core.controller.BaseController;
|
||||||
|
import com.czlis.common.core.domain.Result;
|
||||||
|
import com.czlis.common.core.page.TableDataInfo;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
||||||
|
import com.czlis.zybgcx.service.ZybgcxService;
|
||||||
|
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.*;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 住院报告查询
|
||||||
|
*/
|
||||||
|
@Api(tags = "住院报告查询")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/report")
|
||||||
|
@Slf4j
|
||||||
|
public class ZybgcxController extends BaseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ZybgcxService zybgcxService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取报告信息
|
||||||
|
* @param webGetReportsList
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取报告信息")
|
||||||
|
@PostMapping("/ReportList")
|
||||||
|
public TableDataInfo getPatReportList(@RequestBody Web_getReportsList webGetReportsList){
|
||||||
|
startPage();
|
||||||
|
List<Web_getReportsList> patList = zybgcxService.getPatList(webGetReportsList);
|
||||||
|
return getDataTable(patList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取微生物报告信息
|
||||||
|
* @param webGetResultMed
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/MedList")
|
||||||
|
public Result getResultMed(@RequestBody Web_getResultMed webGetResultMed){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打印报告单
|
||||||
|
* @param bgdh
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("print")
|
||||||
|
public Result printReport(String bgdh){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
package com.czlis.zybgcx.mapper;
|
||||||
|
|
||||||
|
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ZybgcxMapper {
|
||||||
|
List<Web_getReportsList> getReportsList(Web_getReportsList getReportsList);
|
||||||
|
}
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
package com.czlis.zybgcx.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class Web_getReportsList {
|
||||||
|
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;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
package com.czlis.zybgcx.pojo;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
public class Web_getResultMed {
|
||||||
|
private String bgdh;
|
||||||
|
private String brdh;
|
||||||
|
private String xmmc;
|
||||||
|
private String ywmc;
|
||||||
|
private Date jyrq;
|
||||||
|
private String yq;
|
||||||
|
private String ybh;
|
||||||
|
private String xmdh;
|
||||||
|
private Integer xh;
|
||||||
|
private String ywdh;
|
||||||
|
private String mic;
|
||||||
|
private String rad;
|
||||||
|
private String csjg;
|
||||||
|
private String jgbz;
|
||||||
|
private String bz;
|
||||||
|
private String txtresult;
|
||||||
|
private String textresult1;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
package com.czlis.zybgcx.service;
|
||||||
|
|
||||||
|
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ZybgcxService {
|
||||||
|
List<Web_getReportsList> getPatList(Web_getReportsList webGetReportsList);
|
||||||
|
}
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
package com.czlis.zybgcx.service.impl;
|
||||||
|
|
||||||
|
import com.czlis.zybgcx.mapper.ZybgcxMapper;
|
||||||
|
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||||
|
import com.czlis.zybgcx.service.ZybgcxService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
@Slf4j
|
||||||
|
public class ZybgcxServcieImpl implements ZybgcxService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ZybgcxMapper zybgcxMapper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取报告信息
|
||||||
|
* @param webGetReportsList
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<Web_getReportsList> getPatList(Web_getReportsList webGetReportsList) {
|
||||||
|
return zybgcxMapper.getReportsList(webGetReportsList);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
22
zybgcx/src/main/resources/mapper/ZybgcxMapper.xml
Normal file
22
zybgcx/src/main/resources/mapper/ZybgcxMapper.xml
Normal file
@ -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.czlis.zybgcx.mapper.ZybgcxMapper">
|
||||||
|
|
||||||
|
<sql id="selectWebGetReportListVo">
|
||||||
|
select * from web_getReportsList
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="getReportsList" resultType="com.czlis.zybgcx.pojo.Web_getReportsList">
|
||||||
|
<include refid="selectWebGetReportListVo"></include>
|
||||||
|
<where>
|
||||||
|
<if test="jyrq != null"> AND jyrq >= CONVERT(varchar(100), #{jyrq}, 120)</if>
|
||||||
|
<if test="brxm != null and brxm != ''"> AND brxm like '%'+#{brxm}+'%'</if>
|
||||||
|
<if test="brdh != null and brdh != ''"> AND brxm like '%'+#{brdh}+'%'</if>
|
||||||
|
<if test="sqh != null and sqh != ''"> AND brxm like '%'+#{sqh}+'%'</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@ -28,7 +28,6 @@ public class ZycxServiceImpl implements ZycxService {
|
|||||||
return zycxMapper.getSQDInfo(labReqmain);
|
return zycxMapper.getSQDInfo(labReqmain);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transactional
|
|
||||||
@Override
|
@Override
|
||||||
public Result createSQD(String dept, String userid, String st, String et, String yljg) {
|
public Result createSQD(String dept, String userid, String st, String et, String yljg) {
|
||||||
Map<String, Object> map = new HashMap<>();
|
Map<String, Object> map = new HashMap<>();
|
||||||
|
|||||||
@ -5,21 +5,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<mapper namespace="com.czlis.zycx.mapper.ZycxMapper">
|
<mapper namespace="com.czlis.zycx.mapper.ZycxMapper">
|
||||||
|
|
||||||
<sql id="selectLabReqmainVo">
|
<sql id="selectLabReqmainVo">
|
||||||
select * from lab_reqmain
|
select a.*,b.sflbmc,b.sampletips from lab_reqmain a,lab_feeitemclass b where a.bgddh = b.sflbdh
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="getSQDInfo" parameterType="com.czlis.common.core.domain.entity.LabReqmain" resultType="com.czlis.common.core.domain.entity.LabReqmain">
|
<select id="getSQDInfo" parameterType="com.czlis.common.core.domain.entity.LabReqmain" resultType="com.czlis.common.core.domain.entity.LabReqmain">
|
||||||
<include refid="selectLabReqmainVo"></include>
|
<include refid="selectLabReqmainVo"></include>
|
||||||
<where>
|
<where>
|
||||||
<if test="sqh != null and sqh != ''"> and sqh = #{sqh}</if>
|
<if test="a.sqh != null and a.sqh != ''"> and sqh = #{sqh}</if>
|
||||||
<if test="zt != null and zt != ''"> and zt = #{zt}</if>
|
<if test="a.zt != null and a.zt != ''"> and zt = #{zt}</if>
|
||||||
<if test="ksdh != null and ksdh != ''"> and ksdh = #{ksdh}</if>
|
<if test="a.ksdh != null and a.ksdh != ''"> and ksdh = #{ksdh}</if>
|
||||||
<if test="brly != null and brly != ''"> and brly = #{brly}</if>
|
<if test="a.brly != null and a.brly != ''"> and brly = #{brly}</if>
|
||||||
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
|
||||||
AND sqsj >= CONVERT(varchar(100), #{params.beginTime}, 120)
|
AND a.sqsj >= CONVERT(varchar(100), #{params.beginTime}, 120)
|
||||||
</if>
|
</if>
|
||||||
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
||||||
AND sqsj <= CONVERT(varchar(100), #{params.endTime}, 120)
|
AND a.sqsj <= CONVERT(varchar(100), #{params.endTime}, 120)
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user