1、nu_biz_elder_nu_log增加操作时间、操作类型
2、长者入住时nu_biz_elder_nu_log记录操作时间和操作类型为入住
This commit is contained in:
parent
8244c9d43d
commit
29b29c6cea
|
|
@ -57,4 +57,13 @@ public class NuBizElderNuLog implements Serializable {
|
||||||
@Excel(name = "区域id", width = 15)
|
@Excel(name = "区域id", width = 15)
|
||||||
@ApiModelProperty(value = "区域id")
|
@ApiModelProperty(value = "区域id")
|
||||||
private java.lang.String nuId;
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@Component
|
@Component
|
||||||
public class ElderInfoMQListener {
|
public class ElderInfoMQListener {
|
||||||
|
|
@ -73,6 +75,8 @@ public class ElderInfoMQListener {
|
||||||
NuBizElderNuLog nuBizElderNuLog = new NuBizElderNuLog();
|
NuBizElderNuLog nuBizElderNuLog = new NuBizElderNuLog();
|
||||||
nuBizElderNuLog.setElderId(elderInfo.getId());
|
nuBizElderNuLog.setElderId(elderInfo.getId());
|
||||||
nuBizElderNuLog.setNuId(dto.getNuId());
|
nuBizElderNuLog.setNuId(dto.getNuId());
|
||||||
|
nuBizElderNuLog.setOptTime(new Date());
|
||||||
|
nuBizElderNuLog.setOptType("入住");
|
||||||
nuBizElderNuLogService.save(nuBizElderNuLog);
|
nuBizElderNuLogService.save(nuBizElderNuLog);
|
||||||
|
|
||||||
// new Thread(() -> {
|
// new Thread(() -> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue