Browse Source

Merge branch 'pt' of dd.tall.wiki:ccsens_wiki/ccsenscloud into pt

recovery
zy_Java 4 years ago
parent
commit
f86ce5714b
  1. 4
      tcm/src/main/java/com/ccsens/tcm/bean/dto/PatientDto.java
  2. 11
      tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamples.java
  3. 70
      tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamplesExample.java
  4. 4
      tcm/src/main/java/com/ccsens/tcm/bean/vo/BiologicalSamplesVo.java
  5. 13
      tcm/src/main/java/com/ccsens/tcm/service/ImportService.java
  6. 58
      tcm/src/main/java/com/ccsens/tcm/service/PatientService.java
  7. 41
      tcm/src/main/java/com/ccsens/tcm/uitl/Constant.java
  8. 2
      tcm/src/main/resources/mapper_dao/PatientDao.xml
  9. 17
      tcm/src/main/resources/mapper_dao/QuestionDao.xml
  10. 2
      tcm/src/main/resources/mapper_dao/ReportCodeDao.xml
  11. 35
      tcm/src/main/resources/mapper_raw/BiologicalSamplesMapper.xml
  12. 2
      util/src/main/java/com/ccsens/util/CodeEnum.java

4
tcm/src/main/java/com/ccsens/tcm/bean/dto/PatientDto.java

@ -20,8 +20,8 @@ public class PatientDto {
@Data @Data
@ApiModel("保存患者基本信息") @ApiModel("保存患者基本信息")
public static class SavePatient { public static class SavePatient {
@ApiModelProperty("住院号") // @ApiModelProperty("住院号")
private String hospitalization; // private String hospitalization;
@ApiModelProperty("对照组id") @ApiModelProperty("对照组id")
private Long inpatientId; private Long inpatientId;
@ApiModelProperty("录入状态:0:新建 1:数据搜集中 2数据搜集完成 3数据搜集超时 4:废弃") @ApiModelProperty("录入状态:0:新建 1:数据搜集中 2数据搜集完成 3数据搜集超时 4:废弃")

11
tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamples.java

@ -6,6 +6,8 @@ import java.util.Date;
public class BiologicalSamples implements Serializable { public class BiologicalSamples implements Serializable {
private Long id; private Long id;
private String code;
private Byte sampleType; private Byte sampleType;
private Long patientInformationId; private Long patientInformationId;
@ -30,6 +32,14 @@ public class BiologicalSamples implements Serializable {
this.id = id; this.id = id;
} }
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code == null ? null : code.trim();
}
public Byte getSampleType() { public Byte getSampleType() {
return sampleType; return sampleType;
} }
@ -93,6 +103,7 @@ public class BiologicalSamples implements Serializable {
sb.append(" ["); sb.append(" [");
sb.append("Hash = ").append(hashCode()); sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id); sb.append(", id=").append(id);
sb.append(", code=").append(code);
sb.append(", sampleType=").append(sampleType); sb.append(", sampleType=").append(sampleType);
sb.append(", patientInformationId=").append(patientInformationId); sb.append(", patientInformationId=").append(patientInformationId);
sb.append(", collectTime=").append(collectTime); sb.append(", collectTime=").append(collectTime);

70
tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamplesExample.java

@ -165,6 +165,76 @@ public class BiologicalSamplesExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCodeIsNull() {
addCriterion("code is null");
return (Criteria) this;
}
public Criteria andCodeIsNotNull() {
addCriterion("code is not null");
return (Criteria) this;
}
public Criteria andCodeEqualTo(String value) {
addCriterion("code =", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotEqualTo(String value) {
addCriterion("code <>", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThan(String value) {
addCriterion("code >", value, "code");
return (Criteria) this;
}
public Criteria andCodeGreaterThanOrEqualTo(String value) {
addCriterion("code >=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThan(String value) {
addCriterion("code <", value, "code");
return (Criteria) this;
}
public Criteria andCodeLessThanOrEqualTo(String value) {
addCriterion("code <=", value, "code");
return (Criteria) this;
}
public Criteria andCodeLike(String value) {
addCriterion("code like", value, "code");
return (Criteria) this;
}
public Criteria andCodeNotLike(String value) {
addCriterion("code not like", value, "code");
return (Criteria) this;
}
public Criteria andCodeIn(List<String> values) {
addCriterion("code in", values, "code");
return (Criteria) this;
}
public Criteria andCodeNotIn(List<String> values) {
addCriterion("code not in", values, "code");
return (Criteria) this;
}
public Criteria andCodeBetween(String value1, String value2) {
addCriterion("code between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andCodeNotBetween(String value1, String value2) {
addCriterion("code not between", value1, value2, "code");
return (Criteria) this;
}
public Criteria andSampleTypeIsNull() { public Criteria andSampleTypeIsNull() {
addCriterion("sample_type is null"); addCriterion("sample_type is null");
return (Criteria) this; return (Criteria) this;

4
tcm/src/main/java/com/ccsens/tcm/bean/vo/BiologicalSamplesVo.java

@ -14,8 +14,10 @@ public class BiologicalSamplesVo {
public static class selBiolog { public static class selBiolog {
@ApiModelProperty("医院名称") @ApiModelProperty("医院名称")
private String name; private String name;
@ApiModelProperty("患者住院号") @ApiModelProperty("患者号")
private String hospitalization; private String hospitalization;
@ApiModelProperty("生物样本编号")
private String code;
@ApiModelProperty("样本类型 0:抗血凝10ml 1:促凝血5ml 2:晨尿10ml 3:24小时尿10ml") @ApiModelProperty("样本类型 0:抗血凝10ml 1:促凝血5ml 2:晨尿10ml 3:24小时尿10ml")
private Byte sampleType; private Byte sampleType;
@ApiModelProperty("采集时间") @ApiModelProperty("采集时间")

13
tcm/src/main/java/com/ccsens/tcm/service/ImportService.java

@ -283,18 +283,17 @@ public class ImportService implements IImportService {
} }
question.setRelevanceOptionId(optionId == null ? 0 : optionId); question.setRelevanceOptionId(optionId == null ? 0 : optionId);
// 设置关联那个医院 // 设置关联那个医院
List<Long> hospitalIds = null; List<Long> hospitalIds = new ArrayList<>();
int hospitalIndex = 10; int hospitalIndex = 10;
if (objs.length > hospitalIndex && !StringUtils.isEmpty(objs[hospitalIndex])) { if (objs.length > hospitalIndex && !StringUtils.isEmpty(objs[hospitalIndex])) {
hospitalMap.forEach((key, value)->{
hospitalIds.add(value);
});
} else {
String[] codes = ((String) objs[hospitalIndex]).split("[,,]"); String[] codes = ((String) objs[hospitalIndex]).split("[,,]");
for (String code:codes) { for (String code:codes) {
hospitalIds.add(hospitalMap.get(code)); hospitalIds.add(hospitalMap.get(code));
} }
} else {
hospitalMap.forEach((key, value)->{
hospitalIds.add(value);
});
} }
hospitalIds.forEach(id->{ hospitalIds.forEach(id->{
@ -302,7 +301,7 @@ public class ImportService implements IImportService {
questionHospital.setId(snowflake.nextId()); questionHospital.setId(snowflake.nextId());
questionHospital.setQuestionId(question.getId()); questionHospital.setQuestionId(question.getId());
questionHospital.setHospitalId(id); questionHospital.setHospitalId(id);
questionHospitalDao.insert(questionHospital); questionHospitalDao.insertSelective(questionHospital);
}); });
log.info("导入试题:{}", question); log.info("导入试题:{}", question);

58
tcm/src/main/java/com/ccsens/tcm/service/PatientService.java

@ -26,6 +26,7 @@ import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.text.DecimalFormat;
import java.text.ParseException; import java.text.ParseException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
@ -54,35 +55,47 @@ public class PatientService implements IPatientService {
private HospitalMapper hospitalMapper; private HospitalMapper hospitalMapper;
@Resource @Resource
private DoctorMapper doctorMapper; private DoctorMapper doctorMapper;
@Value("${day.one}") // @Value("${day.one}")
public int one; // public int one;
@Value("${day.two}") // @Value("${day.two}")
public int two; // public int two;
@Value("${day.oneFront}") // @Value("${day.oneFront}")
public int oneFront; // public int oneFront;
@Value("${day.oneAfter}") // @Value("${day.oneAfter}")
public int oneAfter; // public int oneAfter;
@Value("${day.twoAfter}") // @Value("${day.twoAfter}")
public int twoAfter; // public int twoAfter;
@Value("${day.three}") // @Value("${day.three}")
public int three; // public int three;
@Value("${day.threeFront}") // @Value("${day.threeFront}")
public int threeFront; // public int threeFront;
@Value("${day.threeAfter}") // @Value("${day.threeAfter}")
public int threeAfter; // public int threeAfter;
@Override @Override
public void savePatient(PatientDto.SavePatient param, Long userId) { public void savePatient(PatientDto.SavePatient param, Long userId) {
PatientInformationExample patientInformationExample=new PatientInformationExample(); // PatientInformationExample patientInformationExample=new PatientInformationExample();
patientInformationExample.createCriteria().andHospitalizationEqualTo(param.getHospitalization()).andRecStatusEqualTo((byte)0); // patientInformationExample.createCriteria().andHospitalizationEqualTo(param.getHospitalization()).andRecStatusEqualTo((byte)0);
long l = patientInformationMapper.countByExample(patientInformationExample); // long l = patientInformationMapper.countByExample(patientInformationExample);
if(l>0){ // if(l>0){
throw new BaseException(CodeEnum.ZHUYUANIDCHONGFU); // throw new BaseException(CodeEnum.ZHUYUANIDCHONGFU);
// }
Hospital hospital = selUserIdToHosId(userId);
Inpatient inpatient = inpatientMapper.selectByPrimaryKey(param.getInpatientId());
if (inpatient == null) {
throw new BaseException(CodeEnum.PARAM_ERROR);
} }
param.setHospitalId(selUserIdToHosId(userId).getId()); log.info("医院:{},对照组:{}", hospital, inpatient);
param.setHospitalId(hospital.getId());
PatientInformation patientInformation=new PatientInformation(); PatientInformation patientInformation=new PatientInformation();
BeanUtils.copyProperties(param,patientInformation); BeanUtils.copyProperties(param,patientInformation);
patientInformation.setId(snowflake.nextId()); patientInformation.setId(snowflake.nextId());
// 生成编号
long incr = redisUtil.incr(Constant.Redis.HOSPITAL_NUM + hospital.getCode(), 1) + 1;
DecimalFormat df=new DecimalFormat("000");
String num = hospital.getCode() + "" + inpatient.getCode() + df.format(incr);
log.info("编号:{}", num);
patientInformation.setHospitalization(num);
patientInformationMapper.insertSelective(patientInformation); patientInformationMapper.insertSelective(patientInformation);
} }
@ -342,6 +355,7 @@ public class PatientService implements IPatientService {
biologicalSamples.setId(snowflake.nextId()); biologicalSamples.setId(snowflake.nextId());
biologicalSamples.setPatientInformationId(patientInformations.get(0).getId()); biologicalSamples.setPatientInformationId(patientInformations.get(0).getId());
BeanUtils.copyProperties(param,biologicalSamples); BeanUtils.copyProperties(param,biologicalSamples);
biologicalSamples.setCode(param.getHospitalization() + Constant.SPLIT_STRIKE + Constant.Biological.getByType(param.getSampleType()).getCode() + Constant.SPLIT_STRIKE + param.getCollectTime());
biologicalSamplesMapper.insertSelective(biologicalSamples); biologicalSamplesMapper.insertSelective(biologicalSamples);
} }

41
tcm/src/main/java/com/ccsens/tcm/uitl/Constant.java

@ -20,6 +20,8 @@ public class Constant {
public static final String VIDEO = ".flv,swf,mkv,avi,rm,rmvb,mpeg,mpg,.ogg,ogv,mov,wmv,mp4,webm,mp3,wav,mid,.wma"; public static final String VIDEO = ".flv,swf,mkv,avi,rm,rmvb,mpeg,mpg,.ogg,ogv,mov,wmv,mp4,webm,mp3,wav,mid,.wma";
/**上传图片访问路径*/ /**上传图片访问路径*/
public static final String UPLOAD_URL = "uploads/"; public static final String UPLOAD_URL = "uploads/";
/**中划线*/
public static final String SPLIT_STRIKE = "-";
/**选择选项后关联其他题目*/ /**选择选项后关联其他题目*/
@ -35,6 +37,43 @@ public class Constant {
public final static byte SEX_MAN = 0; public final static byte SEX_MAN = 0;
public final static byte SEX_WOMAN = 1; public final static byte SEX_WOMAN = 1;
public enum Biological {
/**抗血凝*/
ANTICOAGULATION((byte)0, "X-1", "血标本上清液"),
THROMBOPLASTIN((byte)1, "X-2", "血标本细胞"),
MORNING_URINE((byte)2, "N-3", "尿标本"),
;
private byte type;
private String code;
private String name;
Biological(byte type, String code, String name) {
this.type = type;
this.code = code;
this.name = name;
}
public static Biological getByType(byte type){
for (Biological cal: Biological.values()) {
if (cal.type == type) {
return cal;
}
}
return null;
}
public byte getType() {
return type;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
}
public static class Report{ public static class Report{
public final static String PARENT_CODE = "TCM"; public final static String PARENT_CODE = "TCM";
public final static String CODE_BSXG = "BSXG"; public final static String CODE_BSXG = "BSXG";
@ -63,6 +102,8 @@ public class Constant {
public final static String DISEASE_TIME = "disease_time"; public final static String DISEASE_TIME = "disease_time";
/**所有题目按code分类*/ /**所有题目按code分类*/
public final static String CODE_QUESTION = "code_question"; public final static String CODE_QUESTION = "code_question";
/**医院排序*/
public final static String HOSPITAL_NUM = "hospital_num_";
} }
public static class File{ public static class File{

2
tcm/src/main/resources/mapper_dao/PatientDao.xml

@ -391,7 +391,7 @@
t.user_id t.user_id
</select> </select>
<select id="selBiologicalSamples" resultType="com.ccsens.tcm.bean.vo.BiologicalSamplesVo$selBiolog"> <select id="selBiologicalSamples" resultType="com.ccsens.tcm.bean.vo.BiologicalSamplesVo$selBiolog">
select th.name,tbs.sample_type as sampleType, tpi.hospitalization,tbs.collect_time as collectTime,tbs.update_at as updateAt select th.name,tbs.sample_type as sampleType, tpi.hospitalization, tbs.code, tbs.collect_time as collectTime,tbs.update_at as updateAt
from t_biological_samples tbs from t_biological_samples tbs
left join t_patient_information tpi on tpi.id=tbs.patient_information_id and tpi.rec_status=0 left join t_patient_information tpi on tpi.id=tbs.patient_information_id and tpi.rec_status=0
left join t_hospital th on th.id=tpi.hospital_id and th.rec_status=0 left join t_hospital th on th.id=tpi.hospital_id and th.rec_status=0

17
tcm/src/main/resources/mapper_dao/QuestionDao.xml

@ -173,8 +173,11 @@
from t_question q, t_question_hospital h from t_question q, t_question_hospital h
WHERE WHERE
q.id = h.question_id q.id = h.question_id
q.`code` = #{code} <if test="code != null and code != ''">
h.hospital_id = #{hospitalId} and q.`code` = #{code}
</if>
and h.hospital_id = #{hospitalId}
and q.relevance_option_id = 0 and q.relevance_option_id = 0
and q.rec_status = 0 and q.rec_status = 0
and h.rec_status = 0 and h.rec_status = 0
@ -262,15 +265,15 @@
)a )a
ORDER BY a.qsort,a.osort,a.choose DESC,-a.otherInformation DESC ORDER BY a.qsort,a.osort,a.choose DESC,-a.otherInformation DESC
</select> </select>
<resultMap id="queryQuestionMap" type="com.ccsens.tcm.bean.vo.QuestionVo.SubjectLists"> <resultMap id="queryQuestionMap" type="com.ccsens.tcm.bean.vo.QuestionVo$SubjectLists">
<id column="id" property="id"/> <id column="id" property="id"/>
<result column="code" property="code"/> <result column="code" property="code"/>
<result column="name" property="name"/> <result column="name" property="name"/>
<collection property="optionVos" ofType="com.ccsens.tcm.bean.vo.QuestionVo.SubjectLists"> <collection property="optionVos" ofType="com.ccsens.tcm.bean.vo.QuestionVo$SubjectLists">
<id column="id1" property="id"/> <id column="id1" property="id"/>
<result column="code1" property="code"/> <result column="code1" property="code"/>
<result column="name1" property="name"/> <result column="name1" property="name"/>
<collection property="optionVos" ofType="com.ccsens.tcm.bean.vo.QuestionVo.SubjectLists"> <collection property="optionVos" ofType="com.ccsens.tcm.bean.vo.QuestionVo$SubjectLists">
<id property="id" column="id2"/> <id property="id" column="id2"/>
<result property="name" column="question"/> <result property="name" column="question"/>
</collection> </collection>
@ -298,11 +301,11 @@
AND trc.rec_status =0 AND trc.rec_status =0
order by trc.sort,trc1.sort,tq.sort order by trc.sort,trc1.sort,tq.sort
</select> </select>
<resultMap id="queryQuestion1Map" type="com.ccsens.tcm.bean.vo.QuestionVo.SubjectLists"> <resultMap id="queryQuestion1Map" type="com.ccsens.tcm.bean.vo.QuestionVo$SubjectLists">
<id column="id" property="id"/> <id column="id" property="id"/>
<result column="code" property="code"/> <result column="code" property="code"/>
<result column="name" property="name"/> <result column="name" property="name"/>
<collection property="optionVos" ofType="com.ccsens.tcm.bean.vo.QuestionVo.SubjectLists"> <collection property="optionVos" ofType="com.ccsens.tcm.bean.vo.QuestionVo$SubjectLists">
<id property="id" column="id2"/> <id property="id" column="id2"/>
<result column="question" property="name"/> <result column="question" property="name"/>
</collection> </collection>

2
tcm/src/main/resources/mapper_dao/ReportCodeDao.xml

@ -149,7 +149,7 @@
c.code = t.code c.code = t.code
and t.recode_time = #{nums} and t.recode_time = #{nums}
and c.`level` = 2 and c.`level` = 2
and crec_status = 0 and c.rec_status = 0
and t.rec_status = 0 and t.rec_status = 0
) c2 on c1.`code` = c2.parent_code ) c2 on c1.`code` = c2.parent_code

35
tcm/src/main/resources/mapper_raw/BiologicalSamplesMapper.xml

@ -3,6 +3,7 @@
<mapper namespace="com.ccsens.tcm.persist.mapper.BiologicalSamplesMapper"> <mapper namespace="com.ccsens.tcm.persist.mapper.BiologicalSamplesMapper">
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.BiologicalSamples"> <resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.BiologicalSamples">
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id" />
<result column="code" jdbcType="VARCHAR" property="code" />
<result column="sample_type" jdbcType="TINYINT" property="sampleType" /> <result column="sample_type" jdbcType="TINYINT" property="sampleType" />
<result column="patient_information_id" jdbcType="BIGINT" property="patientInformationId" /> <result column="patient_information_id" jdbcType="BIGINT" property="patientInformationId" />
<result column="collect_time" jdbcType="INTEGER" property="collectTime" /> <result column="collect_time" jdbcType="INTEGER" property="collectTime" />
@ -70,8 +71,8 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, sample_type, patient_information_id, collect_time, user_id, created_at, update_at, id, code, sample_type, patient_information_id, collect_time, user_id, created_at,
rec_status update_at, rec_status
</sql> </sql>
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.BiologicalSamplesExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.BiologicalSamplesExample" resultMap="BaseResultMap">
select select
@ -104,12 +105,14 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> <insert id="insert" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples">
insert into t_biological_samples (id, sample_type, patient_information_id, insert into t_biological_samples (id, code, sample_type,
collect_time, user_id, created_at, patient_information_id, collect_time, user_id,
update_at, rec_status) created_at, update_at, rec_status
values (#{id,jdbcType=BIGINT}, #{sampleType,jdbcType=TINYINT}, #{patientInformationId,jdbcType=BIGINT}, )
#{collectTime,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{sampleType,jdbcType=TINYINT},
#{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) #{patientInformationId,jdbcType=BIGINT}, #{collectTime,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert> </insert>
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> <insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples">
insert into t_biological_samples insert into t_biological_samples
@ -117,6 +120,9 @@
<if test="id != null"> <if test="id != null">
id, id,
</if> </if>
<if test="code != null">
code,
</if>
<if test="sampleType != null"> <if test="sampleType != null">
sample_type, sample_type,
</if> </if>
@ -143,6 +149,9 @@
<if test="id != null"> <if test="id != null">
#{id,jdbcType=BIGINT}, #{id,jdbcType=BIGINT},
</if> </if>
<if test="code != null">
#{code,jdbcType=VARCHAR},
</if>
<if test="sampleType != null"> <if test="sampleType != null">
#{sampleType,jdbcType=TINYINT}, #{sampleType,jdbcType=TINYINT},
</if> </if>
@ -178,6 +187,9 @@
<if test="record.id != null"> <if test="record.id != null">
id = #{record.id,jdbcType=BIGINT}, id = #{record.id,jdbcType=BIGINT},
</if> </if>
<if test="record.code != null">
code = #{record.code,jdbcType=VARCHAR},
</if>
<if test="record.sampleType != null"> <if test="record.sampleType != null">
sample_type = #{record.sampleType,jdbcType=TINYINT}, sample_type = #{record.sampleType,jdbcType=TINYINT},
</if> </if>
@ -207,6 +219,7 @@
<update id="updateByExample" parameterType="map"> <update id="updateByExample" parameterType="map">
update t_biological_samples update t_biological_samples
set id = #{record.id,jdbcType=BIGINT}, set id = #{record.id,jdbcType=BIGINT},
code = #{record.code,jdbcType=VARCHAR},
sample_type = #{record.sampleType,jdbcType=TINYINT}, sample_type = #{record.sampleType,jdbcType=TINYINT},
patient_information_id = #{record.patientInformationId,jdbcType=BIGINT}, patient_information_id = #{record.patientInformationId,jdbcType=BIGINT},
collect_time = #{record.collectTime,jdbcType=INTEGER}, collect_time = #{record.collectTime,jdbcType=INTEGER},
@ -221,6 +234,9 @@
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> <update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples">
update t_biological_samples update t_biological_samples
<set> <set>
<if test="code != null">
code = #{code,jdbcType=VARCHAR},
</if>
<if test="sampleType != null"> <if test="sampleType != null">
sample_type = #{sampleType,jdbcType=TINYINT}, sample_type = #{sampleType,jdbcType=TINYINT},
</if> </if>
@ -247,7 +263,8 @@
</update> </update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> <update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples">
update t_biological_samples update t_biological_samples
set sample_type = #{sampleType,jdbcType=TINYINT}, set code = #{code,jdbcType=VARCHAR},
sample_type = #{sampleType,jdbcType=TINYINT},
patient_information_id = #{patientInformationId,jdbcType=BIGINT}, patient_information_id = #{patientInformationId,jdbcType=BIGINT},
collect_time = #{collectTime,jdbcType=INTEGER}, collect_time = #{collectTime,jdbcType=INTEGER},
user_id = #{userId,jdbcType=BIGINT}, user_id = #{userId,jdbcType=BIGINT},

2
util/src/main/java/com/ccsens/util/CodeEnum.java

@ -187,7 +187,7 @@ public enum CodeEnum {
ALREADY_UPLOAD_VIDEO(150,"您已经上传了视频,请勿重复提交",true), ALREADY_UPLOAD_VIDEO(150,"您已经上传了视频,请勿重复提交",true),
ALREADY_UPLOAD_FORM(151,"请勿重复提交信息",true), ALREADY_UPLOAD_FORM(151,"请勿重复提交信息",true),
MESSAGEISNULL(152,"数据为空",true), MESSAGEISNULL(152,"数据为空",true),
QUANTITYERROR(153,"住院号和患者id不对应",true), QUANTITYERROR(153,"住院号不正确",true),
NOT_HOSPITAL(154,"未找到医院信息",true), NOT_HOSPITAL(154,"未找到医院信息",true),
ZHUYUANIDCHONGFU(155,"住院号重复",true), ZHUYUANIDCHONGFU(155,"住院号重复",true),
MEIYOUGAIYISHENG(156,"该医生信息查询不正确",true), MEIYOUGAIYISHENG(156,"该医生信息查询不正确",true),

Loading…
Cancel
Save