기본 생성 날짜 입력
This commit is contained in:
parent
206fcf615b
commit
8736e0eb2e
|
|
@ -18,6 +18,8 @@ import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import org.springframework.data.annotation.CreatedDate;
|
||||||
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
|
@ -83,7 +85,10 @@ public class Customer {
|
||||||
private Integer cusLastPickupMin;
|
private Integer cusLastPickupMin;
|
||||||
private String cusCreatedBy;
|
private String cusCreatedBy;
|
||||||
private String cusUpdatedBy;
|
private String cusUpdatedBy;
|
||||||
|
@CreatedDate
|
||||||
|
@Column(updatable = false)
|
||||||
private LocalDateTime cusCreatedAt;
|
private LocalDateTime cusCreatedAt;
|
||||||
|
@LastModifiedDate
|
||||||
private LocalDateTime cusUpdatedAt;
|
private LocalDateTime cusUpdatedAt;
|
||||||
private String cusSalesperson;
|
private String cusSalesperson;
|
||||||
private String cusSalesCommissionDate;
|
private String cusSalesCommissionDate;
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,9 @@ import java.time.LocalDateTime;
|
||||||
import java.time.LocalTime;
|
import java.time.LocalTime;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import org.springframework.data.annotation.CreatedDate;
|
||||||
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(schema = "crm", name = "customer_daily_install")
|
@Table(schema = "crm", name = "customer_daily_install")
|
||||||
@Data
|
@Data
|
||||||
|
|
@ -102,9 +105,11 @@ public class CustomerDailyInstall {
|
||||||
@Column(name = "cdi_created_by", length = 50)
|
@Column(name = "cdi_created_by", length = 50)
|
||||||
private String cdiCreatedBy;
|
private String cdiCreatedBy;
|
||||||
|
|
||||||
@Column(name = "cdi_created_at")
|
@CreatedDate
|
||||||
|
@Column(name = "cdi_created_at", updatable = false)
|
||||||
private LocalDateTime cdiCreatedAt;
|
private LocalDateTime cdiCreatedAt;
|
||||||
|
|
||||||
|
@LastModifiedDate
|
||||||
@Column(name = "cdi_updated_at")
|
@Column(name = "cdi_updated_at")
|
||||||
private LocalDateTime cdiUpdatedAt;
|
private LocalDateTime cdiUpdatedAt;
|
||||||
}
|
}
|
||||||
|
|
@ -11,6 +11,8 @@ import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import org.springframework.data.annotation.CreatedDate;
|
||||||
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||||
|
|
||||||
import jakarta.persistence.Column;
|
import jakarta.persistence.Column;
|
||||||
|
|
@ -59,11 +61,14 @@ public class CustomerDailyOrder {
|
||||||
|
|
||||||
private BigDecimal cdoRate;
|
private BigDecimal cdoRate;
|
||||||
|
|
||||||
|
@CreatedDate
|
||||||
|
@Column(updatable = false)
|
||||||
private LocalDateTime cdoCreatedAt;
|
private LocalDateTime cdoCreatedAt;
|
||||||
|
|
||||||
@Column(name = "cdo_created_by")
|
@Column(name = "cdo_created_by")
|
||||||
private String cdoCreatedBy;
|
private String cdoCreatedBy;
|
||||||
|
|
||||||
|
@LastModifiedDate
|
||||||
private LocalDateTime cdoUpdatedAt;
|
private LocalDateTime cdoUpdatedAt;
|
||||||
|
|
||||||
@Column(name = "cdo_updated_by")
|
@Column(name = "cdo_updated_by")
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import org.springframework.data.annotation.CreatedDate;
|
||||||
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||||
|
|
||||||
import jakarta.persistence.Column;
|
import jakarta.persistence.Column;
|
||||||
|
|
@ -61,11 +63,14 @@ public class CustomerDailyOrderRemoved {
|
||||||
|
|
||||||
private BigDecimal cdoRate;
|
private BigDecimal cdoRate;
|
||||||
|
|
||||||
|
@CreatedDate
|
||||||
|
@Column(updatable = false)
|
||||||
private LocalDateTime cdoCreatedAt;
|
private LocalDateTime cdoCreatedAt;
|
||||||
|
|
||||||
@Column(name = "cdo_created_by")
|
@Column(name = "cdo_created_by")
|
||||||
private String cdoCreatedBy;
|
private String cdoCreatedBy;
|
||||||
|
|
||||||
|
@LastModifiedDate
|
||||||
private LocalDateTime cdoUpdatedAt;
|
private LocalDateTime cdoUpdatedAt;
|
||||||
|
|
||||||
@Column(name = "cdo_updated_by")
|
@Column(name = "cdo_updated_by")
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@ import java.time.LocalDate;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
import org.springframework.data.annotation.CreatedDate;
|
||||||
|
import org.springframework.data.annotation.LastModifiedDate;
|
||||||
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
||||||
|
|
||||||
import jakarta.persistence.Column;
|
import jakarta.persistence.Column;
|
||||||
|
|
@ -45,10 +47,15 @@ public class CustomerDailyUco {
|
||||||
@Column(length = 255)
|
@Column(length = 255)
|
||||||
private String cduUnloadPhoto;
|
private String cduUnloadPhoto;
|
||||||
private String cduNote;
|
private String cduNote;
|
||||||
|
|
||||||
|
@CreatedDate
|
||||||
|
@Column(updatable = false)
|
||||||
private LocalDateTime cduCreatedAt;
|
private LocalDateTime cduCreatedAt;
|
||||||
|
|
||||||
@Column(name = "cdu_created_by")
|
@Column(name = "cdu_created_by")
|
||||||
private String cduCreatedBy;
|
private String cduCreatedBy;
|
||||||
|
|
||||||
|
@LastModifiedDate
|
||||||
private LocalDateTime cduUpdatedAt;
|
private LocalDateTime cduUpdatedAt;
|
||||||
|
|
||||||
@Column(name = "cdu_updated_by")
|
@Column(name = "cdu_updated_by")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue