母婴关系查询问题修复,新增患者基础数据索引去除m和z

广东省中医_gdszy
wyb 2 years ago
parent 4ac0f2ff4d
commit b8a0f08d38

@ -3,6 +3,7 @@ package com.docus.server.collection.mapper;
import com.docus.server.collection.entity.TBasic; import com.docus.server.collection.entity.TBasic;
import com.docus.server.collection.entity.TBasicExtend; import com.docus.server.collection.entity.TBasicExtend;
import com.docus.server.report.entity.MaternalInfantRelationship;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import java.util.List; import java.util.List;
@ -74,18 +75,19 @@ public interface TBasicMapper{
String getSdRyIndex(@Param("patientId") String patientId); String getSdRyIndex(@Param("patientId") String patientId);
/** /**
* *
* @param babyIndex * @param babyIndex
* @return * @return
*/ */
String getParentSdRyIndex(@Param("babyIndex")String babyIndex); MaternalInfantRelationship getMaternalInfantRelationship(@Param("babyIndex")String babyIndex);
/** /**
* *
* @param sdRyIndex * @param sdRyIndex
* @param admissTimes
* @return * @return
*/ */
String getPatientIdBySdRyIndex(@Param("sdRyIndex")String sdRyIndex); String getPatientIdBySdRyIndexAndAdmissTimes(@Param("sdRyIndex")String sdRyIndex, @Param("admissTimes") String admissTimes );
/** /**
* *

@ -1,7 +1,6 @@
package com.docus.server.collection.service.impl; package com.docus.server.collection.service.impl;
import cn.hutool.core.util.NumberUtil; import cn.hutool.core.util.NumberUtil;
import cn.hutool.core.util.ObjectUtil;
import com.docus.core.util.DateUtil; import com.docus.core.util.DateUtil;
import com.docus.core.util.Func; import com.docus.core.util.Func;
import com.docus.infrastructure.core.exception.BaseException; import com.docus.infrastructure.core.exception.BaseException;
@ -11,6 +10,7 @@ import com.docus.server.collection.entity.TBasic;
import com.docus.server.collection.entity.TBasicExtend; import com.docus.server.collection.entity.TBasicExtend;
import com.docus.server.collection.mapper.TBasicMapper; import com.docus.server.collection.mapper.TBasicMapper;
import com.docus.server.collection.service.ITBasicService; import com.docus.server.collection.service.ITBasicService;
import com.docus.server.report.entity.MaternalInfantRelationship;
import com.docus.server.rpc.SdRyHospitalRpc; import com.docus.server.rpc.SdRyHospitalRpc;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -18,6 +18,7 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Date; import java.util.Date;
import java.util.Objects;
import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -50,51 +51,51 @@ public class TBasicServiceImpl implements ITBasicService {
public void setTBasic(TBasicDto tBasicDto) throws Exception { public void setTBasic(TBasicDto tBasicDto) throws Exception {
//判断jzh是否重复 //判断jzh是否重复
Integer num = tBasicMapper.selectOne(tBasicDto.getJzh()); Integer num = tBasicMapper.selectOne(tBasicDto.getJzh());
if (num>0) { if (num > 0) {
updateTBasic(tBasicDto); updateTBasic(tBasicDto);
return; return;
} }
Long patientId = idService.getDateSeq(); Long patientId = idService.getDateSeq();
//数据类型转化,格式处理 //数据类型转化,格式处理
Date admissDate=null; Date admissDate = null;
if(Func.isNotEmpty(tBasicDto.getAdmissDate())){ if (Func.isNotEmpty(tBasicDto.getAdmissDate())) {
admissDate = Func.parseDate(tBasicDto.getAdmissDate(), DateUtil.PATTERN_DATETIME_MINI); admissDate = Func.parseDate(tBasicDto.getAdmissDate(), DateUtil.PATTERN_DATETIME_MINI);
} }
Date disDate=null; Date disDate = null;
if(Func.isNotEmpty(tBasicDto.getDisDate())){ if (Func.isNotEmpty(tBasicDto.getDisDate())) {
disDate = Func.parseDate(tBasicDto.getDisDate(), DateUtil.PATTERN_DATETIME_MINI); disDate = Func.parseDate(tBasicDto.getDisDate(), DateUtil.PATTERN_DATETIME_MINI);
} }
String admissTimesStr = tBasicDto.getAdmissTimes(); String admissTimesStr = tBasicDto.getAdmissTimes();
Integer admissTimes=null; Integer admissTimes = null;
if(NumberUtil.isInteger(admissTimesStr)){ if (NumberUtil.isInteger(admissTimesStr)) {
admissTimes=Integer.parseInt(admissTimesStr); admissTimes = Integer.parseInt(admissTimesStr);
} }
String ageStr = tBasicDto.getAge(); String ageStr = tBasicDto.getAge();
if(Func.isNotEmpty(ageStr)){ if (Func.isNotEmpty(ageStr)) {
ageStr =ageStr.substring(0,ageStr.length()-1); ageStr = ageStr.substring(0, ageStr.length() - 1);
} }
Integer age=null; Integer age = null;
if(NumberUtil.isInteger(ageStr)){ if (NumberUtil.isInteger(ageStr)) {
age=Integer.parseInt(ageStr); age = Integer.parseInt(ageStr);
} }
String sexName=tBasicDto.getSexName(); String sexName = tBasicDto.getSexName();
if(Func.isNotEmpty(sexName)&&sexName.length()>1){ if (Func.isNotEmpty(sexName) && sexName.length() > 1) {
sexName=sexName.substring(0,1); sexName = sexName.substring(0, 1);
} }
String admissDaysStr = tBasicDto.getAdmissDays(); String admissDaysStr = tBasicDto.getAdmissDays();
Integer admissDays=null; Integer admissDays = null;
if(NumberUtil.isInteger(admissDaysStr)){ if (NumberUtil.isInteger(admissDaysStr)) {
admissDays=Integer.parseInt(admissDaysStr); admissDays = Integer.parseInt(admissDaysStr);
} }
String isDeadStr = tBasicDto.getIsDead(); String isDeadStr = tBasicDto.getIsDead();
Integer isDead=0; Integer isDead = 0;
if("死亡".equals(isDeadStr)){ if ("死亡".equals(isDeadStr)) {
isDead=1; isDead = 1;
} }
//组装数据 //组装数据
TBasic tBasic=new TBasic(); TBasic tBasic = new TBasic();
tBasic.setPatientId(patientId.toString()); tBasic.setPatientId(patientId.toString());
tBasic.setJzh(tBasicDto.getJzh()); tBasic.setJzh(tBasicDto.getJzh());
tBasic.setInpatientNo(tBasicDto.getInpatientNo()); tBasic.setInpatientNo(tBasicDto.getInpatientNo());
@ -120,22 +121,21 @@ public class TBasicServiceImpl implements ITBasicService {
//设置是否婴儿 //设置是否婴儿
String inpatientNo = tBasicDto.getInpatientNo(); String inpatientNo = tBasicDto.getInpatientNo();
if(inpatientNo.contains("B")||inpatientNo.contains("b")){ if (inpatientNo.contains("B") || inpatientNo.contains("b")) {
tBasic.setIsOther(1); tBasic.setIsOther(1);
}else{ } else {
tBasic.setIsOther(0); tBasic.setIsOther(0);
} }
String sdryIndex = tBasicDto.getSdryIndex();
TBasicExtend tBasicExtend=new TBasicExtend(); TBasicExtend tBasicExtend = new TBasicExtend();
tBasicExtend.setPatientId(patientId.toString()); tBasicExtend.setPatientId(patientId.toString());
tBasicExtend.setWardCode(tBasicDto.getWardCode()); tBasicExtend.setWardCode(tBasicDto.getWardCode());
tBasicExtend.setWardName(tBasicDto.getWardName()); tBasicExtend.setWardName(tBasicDto.getWardName());
tBasicExtend.setSdryIndex(tBasicDto.getSdryIndex()); tBasicExtend.setSdryIndex(sdryIndex == null ? null : sdryIndex.replace("z", "").replace("m", ""));
//持久化 //持久化
tBasicMapper.insert(tBasic); tBasicMapper.insert(tBasic);
tBasicMapper.insertExtend(tBasicExtend); tBasicMapper.insertExtend(tBasicExtend);
confirmAndUpdIcuRecordState(tBasic.getInpatientNo(),tBasic.getAdmissTimes()); confirmAndUpdIcuRecordState(tBasic.getInpatientNo(), tBasic.getAdmissTimes());
} }
@ -149,44 +149,44 @@ public class TBasicServiceImpl implements ITBasicService {
return; return;
} }
//数据类型转化,格式处理 //数据类型转化,格式处理
Date admissDate=null; Date admissDate = null;
if(Func.isNotEmpty(tBasicDto.getAdmissDate())){ if (Func.isNotEmpty(tBasicDto.getAdmissDate())) {
admissDate = Func.parseDate(tBasicDto.getAdmissDate(), DateUtil.PATTERN_DATETIME_MINI); admissDate = Func.parseDate(tBasicDto.getAdmissDate(), DateUtil.PATTERN_DATETIME_MINI);
} }
Date disDate=null; Date disDate = null;
if(Func.isNotEmpty(tBasicDto.getDisDate())){ if (Func.isNotEmpty(tBasicDto.getDisDate())) {
disDate = Func.parseDate(tBasicDto.getDisDate(), DateUtil.PATTERN_DATETIME_MINI); disDate = Func.parseDate(tBasicDto.getDisDate(), DateUtil.PATTERN_DATETIME_MINI);
} }
String admissTimesStr = tBasicDto.getAdmissTimes(); String admissTimesStr = tBasicDto.getAdmissTimes();
Integer admissTimes=null; Integer admissTimes = null;
if(NumberUtil.isInteger(admissTimesStr)){ if (NumberUtil.isInteger(admissTimesStr)) {
admissTimes=Integer.parseInt(admissTimesStr); admissTimes = Integer.parseInt(admissTimesStr);
} }
String ageStr = tBasicDto.getAge(); String ageStr = tBasicDto.getAge();
if(Func.isNotEmpty(ageStr)){ if (Func.isNotEmpty(ageStr)) {
ageStr =ageStr.substring(0,ageStr.length()-1); ageStr = ageStr.substring(0, ageStr.length() - 1);
} }
Integer age=null; Integer age = null;
if(NumberUtil.isInteger(ageStr)){ if (NumberUtil.isInteger(ageStr)) {
age=Integer.parseInt(ageStr); age = Integer.parseInt(ageStr);
} }
String sexName=tBasicDto.getSexName(); String sexName = tBasicDto.getSexName();
if(Func.isNotEmpty(sexName)&&sexName.length()>1){ if (Func.isNotEmpty(sexName) && sexName.length() > 1) {
sexName=sexName.substring(0,1); sexName = sexName.substring(0, 1);
} }
String admissDaysStr = tBasicDto.getAdmissDays(); String admissDaysStr = tBasicDto.getAdmissDays();
Integer admissDays=null; Integer admissDays = null;
if(NumberUtil.isInteger(admissDaysStr)){ if (NumberUtil.isInteger(admissDaysStr)) {
admissDays=Integer.parseInt(admissDaysStr); admissDays = Integer.parseInt(admissDaysStr);
} }
String isDeadStr = tBasicDto.getIsDead(); String isDeadStr = tBasicDto.getIsDead();
Integer isDead=0; Integer isDead = 0;
if("死亡".equals(isDeadStr)){ if ("死亡".equals(isDeadStr)) {
isDead=1; isDead = 1;
} }
//组装数据 //组装数据
TBasic tBasic=new TBasic(); TBasic tBasic = new TBasic();
tBasic.setJzh(tBasicDto.getJzh()); tBasic.setJzh(tBasicDto.getJzh());
tBasic.setPatientId(patientId); tBasic.setPatientId(patientId);
@ -213,13 +213,13 @@ public class TBasicServiceImpl implements ITBasicService {
tBasic.setIsOther(tBasicDto.getIsOther()); tBasic.setIsOther(tBasicDto.getIsOther());
//设置是否婴儿 //设置是否婴儿
String inpatientNo = tBasicDto.getInpatientNo(); String inpatientNo = tBasicDto.getInpatientNo();
if(tBasic.getIsOther()==0&&(inpatientNo.contains("B")||inpatientNo.contains("b"))){ if (tBasic.getIsOther() == 0 && (inpatientNo.contains("B") || inpatientNo.contains("b"))) {
tBasic.setIsOther(1); tBasic.setIsOther(1);
}else if(tBasic.getIsOther()==0){ } else if (tBasic.getIsOther() == 0) {
tBasic.setIsOther(0); tBasic.setIsOther(0);
} }
//是否取消住院 //是否取消住院
if("2".equals(tBasicDto.getStatu())){ if ("2".equals(tBasicDto.getStatu())) {
tBasic.setDisDate(null); tBasic.setDisDate(null);
} }
String sdryIndex = tBasicDto.getSdryIndex(); String sdryIndex = tBasicDto.getSdryIndex();
@ -227,12 +227,12 @@ public class TBasicServiceImpl implements ITBasicService {
tBasicExtend.setPatientId(patientId); tBasicExtend.setPatientId(patientId);
tBasicExtend.setWardCode(tBasicDto.getWardCode()); tBasicExtend.setWardCode(tBasicDto.getWardCode());
tBasicExtend.setWardName(tBasicDto.getWardName()); tBasicExtend.setWardName(tBasicDto.getWardName());
tBasicExtend.setSdryIndex(sdryIndex == null ? null : sdryIndex.replace("z", "").replace("m","")); tBasicExtend.setSdryIndex(sdryIndex == null ? null : sdryIndex.replace("z", "").replace("m", ""));
//持久化 //持久化
tBasicMapper.update(tBasic); tBasicMapper.update(tBasic);
tBasicMapper.updateExtend(tBasicExtend); tBasicMapper.updateExtend(tBasicExtend);
confirmAndUpdIcuRecordState(tBasic.getInpatientNo(),tBasic.getAdmissTimes()); confirmAndUpdIcuRecordState(tBasic.getInpatientNo(), tBasic.getAdmissTimes());
} }
@Override @Override
@ -243,50 +243,50 @@ public class TBasicServiceImpl implements ITBasicService {
if (Func.isEmpty(patientId)) { if (Func.isEmpty(patientId)) {
throw new BaseException("数据不存在,更新失败"); throw new BaseException("数据不存在,更新失败");
} }
if("2".equals(tBasicDto.getStatu())){ if ("2".equals(tBasicDto.getStatu())) {
tBasicMapper.deleteByPatientId(patientId); tBasicMapper.deleteByPatientId(patientId);
log.info("入院信息删除jzh:{},patientId:{},statusCode:{}",tBasicDto.getJzh(),patientId,tBasicDto.getStatu()); log.info("入院信息删除jzh:{},patientId:{},statusCode:{}", tBasicDto.getJzh(), patientId, tBasicDto.getStatu());
return; return;
} }
//数据类型转化,格式处理 //数据类型转化,格式处理
Date admissDate=null; Date admissDate = null;
if(Func.isNotEmpty(tBasicDto.getAdmissDate())){ if (Func.isNotEmpty(tBasicDto.getAdmissDate())) {
admissDate = Func.parseDate(tBasicDto.getAdmissDate(), DateUtil.PATTERN_DATETIME_MINI); admissDate = Func.parseDate(tBasicDto.getAdmissDate(), DateUtil.PATTERN_DATETIME_MINI);
} }
Date disDate=null; Date disDate = null;
if(Func.isNotEmpty(tBasicDto.getDisDate())){ if (Func.isNotEmpty(tBasicDto.getDisDate())) {
disDate = Func.parseDate(tBasicDto.getDisDate(), DateUtil.PATTERN_DATETIME_MINI); disDate = Func.parseDate(tBasicDto.getDisDate(), DateUtil.PATTERN_DATETIME_MINI);
} }
String admissTimesStr = tBasicDto.getAdmissTimes(); String admissTimesStr = tBasicDto.getAdmissTimes();
Integer admissTimes=null; Integer admissTimes = null;
if(NumberUtil.isInteger(admissTimesStr)){ if (NumberUtil.isInteger(admissTimesStr)) {
admissTimes=Integer.parseInt(admissTimesStr); admissTimes = Integer.parseInt(admissTimesStr);
} }
String ageStr = tBasicDto.getAge(); String ageStr = tBasicDto.getAge();
if(Func.isNotEmpty(ageStr)){ if (Func.isNotEmpty(ageStr)) {
ageStr =ageStr.substring(0,ageStr.length()-1); ageStr = ageStr.substring(0, ageStr.length() - 1);
} }
Integer age=null; Integer age = null;
if(NumberUtil.isInteger(ageStr)){ if (NumberUtil.isInteger(ageStr)) {
age=Integer.parseInt(ageStr); age = Integer.parseInt(ageStr);
} }
String sexName=tBasicDto.getSexName(); String sexName = tBasicDto.getSexName();
if(Func.isNotEmpty(sexName)&&sexName.length()>1){ if (Func.isNotEmpty(sexName) && sexName.length() > 1) {
sexName=sexName.substring(0,1); sexName = sexName.substring(0, 1);
} }
String admissDaysStr = tBasicDto.getAdmissDays(); String admissDaysStr = tBasicDto.getAdmissDays();
Integer admissDays=null; Integer admissDays = null;
if(NumberUtil.isInteger(admissDaysStr)){ if (NumberUtil.isInteger(admissDaysStr)) {
admissDays=Integer.parseInt(admissDaysStr); admissDays = Integer.parseInt(admissDaysStr);
} }
String isDeadStr = tBasicDto.getIsDead(); String isDeadStr = tBasicDto.getIsDead();
Integer isDead=0; Integer isDead = 0;
if("死亡".equals(isDeadStr)){ if ("死亡".equals(isDeadStr)) {
isDead=1; isDead = 1;
} }
//组装数据 //组装数据
TBasic tBasic=new TBasic(); TBasic tBasic = new TBasic();
tBasic.setJzh(tBasicDto.getJzh()); tBasic.setJzh(tBasicDto.getJzh());
tBasic.setPatientId(patientId); tBasic.setPatientId(patientId);
@ -313,40 +313,42 @@ public class TBasicServiceImpl implements ITBasicService {
tBasic.setIsOther(tBasicDto.getIsOther()); tBasic.setIsOther(tBasicDto.getIsOther());
//设置是否婴儿 //设置是否婴儿
String inpatientNo = tBasicDto.getInpatientNo(); String inpatientNo = tBasicDto.getInpatientNo();
if(tBasic.getIsOther()==0&&(inpatientNo.contains("B")||inpatientNo.contains("b"))){ if (tBasic.getIsOther() == 0 && (inpatientNo.contains("B") || inpatientNo.contains("b"))) {
tBasic.setIsOther(1); tBasic.setIsOther(1);
}else if(tBasic.getIsOther()==0){ } else if (tBasic.getIsOther() == 0) {
tBasic.setIsOther(0); tBasic.setIsOther(0);
} }
String sdryIndex = tBasicDto.getSdryIndex(); String sdryIndex = tBasicDto.getSdryIndex();
TBasicExtend tBasicExtend=new TBasicExtend(); TBasicExtend tBasicExtend = new TBasicExtend();
tBasicExtend.setPatientId(patientId); tBasicExtend.setPatientId(patientId);
tBasicExtend.setWardCode(tBasicDto.getWardCode()); tBasicExtend.setWardCode(tBasicDto.getWardCode());
tBasicExtend.setWardName(tBasicDto.getWardName()); tBasicExtend.setWardName(tBasicDto.getWardName());
tBasicExtend.setSdryIndex(sdryIndex==null?null:sdryIndex.replace("z","").replace("m","")); tBasicExtend.setSdryIndex(sdryIndex == null ? null : sdryIndex.replace("z", "").replace("m", ""));
//持久化 //持久化
tBasicMapper.update(tBasic); tBasicMapper.update(tBasic);
tBasicMapper.updateExtend(tBasicExtend); tBasicMapper.updateExtend(tBasicExtend);
confirmAndUpdIcuRecordState(tBasic.getInpatientNo(),tBasic.getAdmissTimes()); confirmAndUpdIcuRecordState(tBasic.getInpatientNo(), tBasic.getAdmissTimes());
} }
@Override @Override
public TBasic getSdRyParentPatientInfo(String babyPatientId) { public TBasic getSdRyParentPatientInfo(String babyPatientId) {
// 宝宝索引 // 宝宝索引
String babyIndex=tBasicMapper.getSdRyIndex(babyPatientId); String babyIndex = tBasicMapper.getSdRyIndex(babyPatientId);
if (Func.isBlank(babyIndex)){ if (Func.isBlank(babyIndex)) {
return null; return null;
} }
// 宝宝索引查妈妈索引 // 宝宝索引查妈妈索引 和住院次数
String parentSdRyIndex= tBasicMapper.getParentSdRyIndex(babyIndex); MaternalInfantRelationship infantRelationship = tBasicMapper.getMaternalInfantRelationship(babyIndex);
if(Func.isBlank(parentSdRyIndex)){
if (Objects.isNull(infantRelationship) || Func.isBlank(infantRelationship.getMomId()) ) {
return null; return null;
} }
// 通过索引查病案主键 String parentSdRyIndex=infantRelationship.getMomId();
String parentPatientId=tBasicMapper.getPatientIdBySdRyIndex(parentSdRyIndex); // 通过索引和住院次数查病案主键
if(Func.isBlank(parentPatientId)){ String parentPatientId = tBasicMapper.getPatientIdBySdRyIndexAndAdmissTimes(parentSdRyIndex,infantRelationship.getParentTimes());
if (Func.isBlank(parentPatientId)) {
return null; return null;
} }
// 通过病案主键查基础信息 // 通过病案主键查基础信息
@ -355,20 +357,20 @@ public class TBasicServiceImpl implements ITBasicService {
@Override @Override
public boolean getIsBabyBasic(String patientId) { public boolean getIsBabyBasic(String patientId) {
TBasic tBasic= tBasicMapper.getByPatientId(patientId); TBasic tBasic = tBasicMapper.getByPatientId(patientId);
return Func.isNotEmpty(tBasic) && Func.isNotBlank(tBasic.getInpatientNo()) && tBasic.getInpatientNo().toUpperCase().contains("B"); return Func.isNotEmpty(tBasic) && Func.isNotBlank(tBasic.getInpatientNo()) && tBasic.getInpatientNo().toUpperCase().contains("B");
} }
public void confirmAndUpdIcuRecordState(String inpatientNo,Integer admissTimes){ public void confirmAndUpdIcuRecordState(String inpatientNo, Integer admissTimes) {
threadPoolExecutor.execute(()->{ threadPoolExecutor.execute(() -> {
// 此处异步,睡眠一秒保证事务提交 // 此处异步,睡眠一秒保证事务提交
try { try {
TimeUnit.SECONDS.sleep(1); TimeUnit.SECONDS.sleep(1);
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }
sdRyHospitalRpc.confirmAndUpdIcuRecordState(inpatientNo,admissTimes); sdRyHospitalRpc.confirmAndUpdIcuRecordState(inpatientNo, admissTimes);
}); });
} }
} }

@ -204,15 +204,17 @@
from `docus_medicalrecord`.`t_basic_extend` from `docus_medicalrecord`.`t_basic_extend`
WHERE patient_id=#{patientId} WHERE patient_id=#{patientId}
</select> </select>
<select id="getParentSdRyIndex" resultType="java.lang.String"> <select id="getMaternalInfantRelationship" resultType="com.docus.server.report.entity.MaternalInfantRelationship">
SELECT mom_id SELECT *
FROM `docus_medicalrecord`.`t_maternal_infant_relationship` FROM `docus_medicalrecord`.`t_maternal_infant_relationship`
where baby_id=#{babyIndex} where baby_id=#{babyIndex}
</select> </select>
<select id="getPatientIdBySdRyIndex" resultType="java.lang.String"> <select id="getPatientIdBySdRyIndexAndAdmissTimes" resultType="java.lang.String">
select patient_id select t_basic_extend.patient_id
from `docus_medicalrecord`.`t_basic_extend` from `docus_medicalrecord`.`t_basic_extend`
WHERE sdry_index=#{sdRyIndex} INNER JOIN docus_medicalrecord.t_basic ON t_basic_extend.patient_id = t_basic.patient_id
WHERE t_basic_extend.sdry_index = #{sdRyIndex}
and t_basic.admiss_times = #{admissTimes}
</select> </select>
<select id="getByPatientId" resultType="com.docus.server.collection.entity.TBasic"> <select id="getByPatientId" resultType="com.docus.server.collection.entity.TBasic">
select * select *

Loading…
Cancel
Save