增加住院报告查询功能1
This commit is contained in:
parent
14100dbe2f
commit
5f255bfcb1
@ -1,9 +1,40 @@
|
||||
package com.czlis.mzcx.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.czlis.common.core.domain.Result;
|
||||
import com.czlis.common.core.page.TableDataInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 门诊采血
|
||||
*/
|
||||
@Api(tags = "门诊采血")
|
||||
@RestController
|
||||
@RequestMapping("/mzcx")
|
||||
public class MZCXController {
|
||||
|
||||
/**
|
||||
* 获取申请单信息
|
||||
* @param brdh
|
||||
* @param stime
|
||||
* @param etime
|
||||
* @param klx
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("获取申请单信息")
|
||||
@PostMapping("/querySQD")
|
||||
public TableDataInfo querySQD(@RequestBody String brdh,String stime,String etime,String klx){
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印条码
|
||||
* @param sqh
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/printBarcode")
|
||||
public Result printSQD(String sqh){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -45,8 +45,10 @@ public class ZybgcxController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/MedList")
|
||||
public Result getResultMed(@RequestBody Web_getResultMed webGetResultMed){
|
||||
return null;
|
||||
public TableDataInfo getResultMed(@RequestBody Web_getResultMed webGetResultMed){
|
||||
startPage();
|
||||
List<Web_getResultMed> resultMedList = zybgcxService.getResultMed(webGetResultMed);
|
||||
return getDataTable(resultMedList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1,9 +1,11 @@
|
||||
package com.czlis.zybgcx.mapper;
|
||||
|
||||
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ZybgcxMapper {
|
||||
List<Web_getReportsList> getReportsList(Web_getReportsList getReportsList);
|
||||
List<Web_getResultMed> getResultMed(Web_getResultMed getResultMed);
|
||||
}
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
package com.czlis.zybgcx.service;
|
||||
|
||||
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ZybgcxService {
|
||||
List<Web_getReportsList> getPatList(Web_getReportsList webGetReportsList);
|
||||
List<Web_getResultMed> getResultMed(Web_getResultMed webGetResultMed);
|
||||
|
||||
}
|
||||
|
||||
@ -2,6 +2,7 @@ package com.czlis.zybgcx.service.impl;
|
||||
|
||||
import com.czlis.zybgcx.mapper.ZybgcxMapper;
|
||||
import com.czlis.zybgcx.pojo.Web_getReportsList;
|
||||
import com.czlis.zybgcx.pojo.Web_getResultMed;
|
||||
import com.czlis.zybgcx.service.ZybgcxService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -28,5 +29,15 @@ public class ZybgcxServcieImpl implements ZybgcxService {
|
||||
return zybgcxMapper.getReportsList(webGetReportsList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取微生物报告
|
||||
* @param webGetResultMed
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<Web_getResultMed> getResultMed(Web_getResultMed webGetResultMed) {
|
||||
return zybgcxMapper.getResultMed(webGetResultMed);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -8,13 +8,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select * from web_getReportsList
|
||||
</sql>
|
||||
|
||||
<sql id="selectWebGetResultMedListVo">
|
||||
select * from web_getresultmed
|
||||
</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>
|
||||
<if test="brdh != null and brdh != ''"> AND brdh like '%'+#{brdh}+'%'</if>
|
||||
<if test="sqh != null and sqh != ''"> AND sqh like '%'+#{sqh}+'%'</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getResultMed" resultType="com.czlis.zybgcx.pojo.Web_getResultMed">
|
||||
<include refid="selectWebGetResultMedListVo"></include>
|
||||
<where>
|
||||
<if test="jyrq != null"> AND jyrq >= CONVERT(varchar(100), #{jyrq}, 120)</if>
|
||||
<if test="xmmc != null and xmmc != ''"> AND xmmc like '%'+#{xmmc}+'%'</if>
|
||||
<if test="brdh != null and brdh != ''"> AND brdh like '%'+#{brdh}+'%'</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user