1、nu_biz_elder_nu_log增加操作时间、操作类型

2、长者入住时nu_biz_elder_nu_log记录操作时间和操作类型为入住
This commit is contained in:
1378012178@qq.com 2026-02-05 09:47:05 +08:00
parent 8244c9d43d
commit 29b29c6cea
2 changed files with 13 additions and 0 deletions

View File

@ -57,4 +57,13 @@ public class NuBizElderNuLog implements Serializable {
@Excel(name = "区域id", width = 15)
@ApiModelProperty(value = "区域id")
private java.lang.String nuId;
/**操作时间*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "optTime")
private java.util.Date optTime;
/**操作类型*/
@Excel(name = "操作类型", width = 15)
@ApiModelProperty(value = "操作类型")
private java.lang.String optType;
}

View File

@ -23,6 +23,8 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
@Slf4j
@Component
public class ElderInfoMQListener {
@ -73,6 +75,8 @@ public class ElderInfoMQListener {
NuBizElderNuLog nuBizElderNuLog = new NuBizElderNuLog();
nuBizElderNuLog.setElderId(elderInfo.getId());
nuBizElderNuLog.setNuId(dto.getNuId());
nuBizElderNuLog.setOptTime(new Date());
nuBizElderNuLog.setOptType("入住");
nuBizElderNuLogService.save(nuBizElderNuLog);
// new Thread(() -> {