pad端返回长者信息的医保类型、失能等级、缴费状态内容
This commit is contained in:
parent
72eaf31a96
commit
1aa2fe77a3
|
|
@ -1,5 +1,6 @@
|
||||||
package com.nu.entity;
|
package com.nu.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
@ -257,4 +258,17 @@ public class ElderInfoEntity implements Serializable {
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
private Date checkinTime;
|
private Date checkinTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医保类型中文名
|
||||||
|
*/
|
||||||
|
private String yblxName;
|
||||||
|
/**
|
||||||
|
* 失能等级中文名
|
||||||
|
*/
|
||||||
|
private String sndjName;
|
||||||
|
/**
|
||||||
|
* 缴费状态中文名
|
||||||
|
*/
|
||||||
|
private String jfztName;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,7 @@ public class ElderInfo implements Serializable {
|
||||||
@ApiModelProperty(value = "当前状态 0咨询 1入住 2留床 3退住")
|
@ApiModelProperty(value = "当前状态 0咨询 1入住 2留床 3退住")
|
||||||
@Dict(dicCode = "current_state")
|
@Dict(dicCode = "current_state")
|
||||||
private java.lang.String currentState;
|
private java.lang.String currentState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 监护人openId
|
* 监护人openId
|
||||||
*/
|
*/
|
||||||
|
|
@ -385,6 +386,9 @@ public class ElderInfo implements Serializable {
|
||||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||||
private Date checkinTime;
|
private Date checkinTime;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
private java.lang.String currentnoState;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 医保类型中文名
|
* 医保类型中文名
|
||||||
*/
|
*/
|
||||||
|
|
@ -401,4 +405,6 @@ public class ElderInfo implements Serializable {
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String jfztName;
|
private String jfztName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,4 +27,6 @@ public interface ElderInfoMapper extends BaseMapper<ElderInfo> {
|
||||||
ElderInfo selectInfoById(@Param("elderId") String elderId);
|
ElderInfo selectInfoById(@Param("elderId") String elderId);
|
||||||
|
|
||||||
IPage<ElderInfo> pageList(Page<ElderInfo> page, @Param(Constants.WRAPPER) QueryWrapper<ElderInfo> queryWrapper);
|
IPage<ElderInfo> pageList(Page<ElderInfo> page, @Param(Constants.WRAPPER) QueryWrapper<ElderInfo> queryWrapper);
|
||||||
|
|
||||||
|
List<ElderInfo> selectElderList(@Param("dto") ElderInfo params);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,4 +61,29 @@
|
||||||
jfztDictItem.item_value = elder.payment_status
|
jfztDictItem.item_value = elder.payment_status
|
||||||
${ew.customSqlSegment}
|
${ew.customSqlSegment}
|
||||||
</select>
|
</select>
|
||||||
|
<select id="selectElderList" resultType="com.nu.modules.elderinfo.entity.ElderInfo">
|
||||||
|
select elder.*,
|
||||||
|
yblxDictItem.item_text as yblxName,
|
||||||
|
sndjDictItem.item_text as sndjName,
|
||||||
|
jfztDictItem.item_text as jfztName
|
||||||
|
from nu_biz_elder_info elder
|
||||||
|
LEFT JOIN sys_dict yblxDict on yblxDict.dict_code = 'medical_insurance_type'
|
||||||
|
LEFT JOIN sys_dict_item yblxDictItem on yblxDictItem.dict_id = yblxDict.id and
|
||||||
|
yblxDictItem.item_value = elder.medical_type
|
||||||
|
LEFT JOIN sys_dict sndjDict on sndjDict.dict_code = (case elder.medical_type
|
||||||
|
when 'syb' then 'syb_reimbursement_type'
|
||||||
|
when ' zgyb' then 'zgyb_reimbursement_type'
|
||||||
|
when 'jmyb' then 'jmyb_reimbursement_type'
|
||||||
|
else '' end)
|
||||||
|
LEFT JOIN sys_dict_item sndjDictItem on sndjDictItem.dict_id = sndjDict.id and
|
||||||
|
sndjDictItem.item_value = elder.disability_reimbursement_type
|
||||||
|
LEFT JOIN sys_dict jfztDict on jfztDict.dict_code = 'elder_payment_status'
|
||||||
|
LEFT JOIN sys_dict_item jfztDictItem on jfztDictItem.dict_id = jfztDict.id and
|
||||||
|
jfztDictItem.item_value = elder.payment_status
|
||||||
|
<where>
|
||||||
|
<if test="dto.currentnoState!=null and dto.currentnoState!=''">
|
||||||
|
and elder.current_state != #{dto.currentnoState}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -266,7 +266,9 @@ public class ElderInfoServiceImpl extends ServiceImpl<ElderInfoMapper, ElderInfo
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ElderInfoEntity> selectCurrentState3() {
|
public List<ElderInfoEntity> selectCurrentState3() {
|
||||||
List<ElderInfo> elderInfos = baseMapper.selectList(new QueryWrapper<ElderInfo>().lambda().ne(ElderInfo::getCurrentState, "3"));
|
ElderInfo params = new ElderInfo();
|
||||||
|
params.setCurrentnoState("3");
|
||||||
|
List<ElderInfo> elderInfos = baseMapper.selectElderList(params);
|
||||||
return BeanUtil.copyToList(elderInfos, ElderInfoEntity.class);
|
return BeanUtil.copyToList(elderInfos, ElderInfoEntity.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue