长者入住主表记录入住时间

This commit is contained in:
1378012178@qq.com 2025-12-03 08:58:30 +08:00
parent f260f74f20
commit 769da2fa5f
4 changed files with 24 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@ -320,6 +321,7 @@ public class ElderApi {
elderInfoEntity.setOrgCode(elderInfoEntity.getSysOrgCode());
elderInfoEntity.setCurrentState("1");//状态入住
elderInfoEntity.setCheckinTime(new Date());
ElderInfoMQDto mqdto = new ElderInfoMQDto();
BeanUtils.copyProperties(elderInfoEntity, mqdto);
mqdto.setId(id);

View File

@ -267,4 +267,11 @@ public class ElderInfoMQDto implements Serializable {
//变更审批结果
private String upAuditResut;
/**
* 长者入住时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date checkinTime;
}

View File

@ -263,4 +263,11 @@ public class ElderInfoEntity implements Serializable {
//需要变更谁的信息 zz长者 jhr监护人
private String modifyType;
/**
* 长者入住时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date checkinTime;
}

View File

@ -1,6 +1,7 @@
package com.nu.modules.elderinfo.entity;
import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
@ -349,4 +350,11 @@ public class ElderInfo implements Serializable {
@ApiModelProperty(value = "长者变更信息对应子表id nu_biz_elder_modify_info.id")
private String elderModifyId;
/**
* 长者入住时间
*/
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date checkinTime;
}