死亡和母亲流水号维护

master
宇宙皮皮娃 2 years ago
parent 4da34e1d0b
commit 64a4bc8c8f

@ -31,4 +31,5 @@ public class TBasicDto {
private String bedNum;
private String isDead;
private String admissDays;
private String motherInpatientNo;
}

@ -93,10 +93,12 @@ public class HttpTBasicServiceImpl implements HttpTBasicService {
//住院天数
String admissDays=map.get("inDays");
//是否死亡
String isDead=map.get("");
String isDead=map.get("outType");
//床位号
String bedNum=map.get("bedNo");
String motherInpatientNo=map.get("motherInpatientNo");
TBasicDto tBasicDto=new TBasicDto();
tBasicDto.setAdmissDays(admissDays);
tBasicDto.setIsDead(isDead);
@ -117,6 +119,7 @@ public class HttpTBasicServiceImpl implements HttpTBasicService {
tBasicDto.setName(name);
tBasicDto.setInpatientNo(inpatientNo);
tBasicDto.setDutyNurse(dutyNurse);
tBasicDto.setMotherInpatientNo(motherInpatientNo);
tBasicDtos.add(tBasicDto);
}

@ -94,4 +94,7 @@ public class TBasic implements Serializable {
@ApiModelProperty(value = "是否其他数据 0否1是婴儿2医疗保险类别是家庭病床")
private Integer isOther;
@ApiModelProperty(value = "婴儿母亲住院流水号")
private String motherInpatientNo;
}

@ -158,7 +158,7 @@ public class TBasicServiceImpl implements ITBasicService {
String isDeadStr = tBasicDto.getIsDead();
Integer isDead=0;
if("死亡".equals(isDeadStr)){
if("5".equals(isDeadStr)){
isDead=1;
}
@ -198,6 +198,7 @@ public class TBasicServiceImpl implements ITBasicService {
tBasic.setDisDept(tBasicDto.getDisDept());
tBasic.setDisDeptName(tBasicDto.getDisDeptName());
tBasic.setCreateTime(DateUtil.now());
tBasic.setMotherInpatientNo(tBasicDto.getMotherInpatientNo());
//判断是否B开头
if(ObjectUtil.isNotEmpty(tBasicDto.getInpatientNo())&&(tBasicDto.getInpatientNo().contains("B")||tBasicDto.getInpatientNo().contains("b"))){
tBasic.setIsOther(1);

@ -26,7 +26,8 @@
`dis_dept_name`,
`attending_name`,
`jzh`,
`is_other`)
`is_other`,
`mother_inpatient_no`)
VALUES
<foreach collection="tBasicList" item="tBasic" separator=",">
(#{tBasic.admissDept},
@ -50,7 +51,8 @@
#{tBasic.disDeptName},
#{tBasic.attendingName},
#{tBasic.jzh},
#{tBasic.isOther})
#{tBasic.isOther},
#{tBasic.motherInpatientNo})
</foreach>
</insert>
@ -74,7 +76,8 @@
`dis_date` = #{tBasic.disDate},
`dis_dept_name` = #{tBasic.disDeptName},
`attending_name` = #{tBasic.attendingName},
`is_other` = #{tBasic.isOther}
`is_other` = #{tBasic.isOther},
`mother_inpatient_no`= #{tBasic.motherInpatientNo}
WHERE
`jzh` = #{tBasic.jzh}
</update>

Loading…
Cancel
Save