Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 950a2985
authored
Aug 01, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
createTime, updateTime 默认值
1 parent
a0100d1a
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
33 additions
and
167 deletions
project-order/src/main/java/com/dituhui/pea/order/entity/CapacityEngineerCalendarEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/CapacityEngineerStatEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/CapacityOrgStatEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/CapacityTeamStatEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/EngineerBusinessEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/EngineerInfoEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrderEventEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrderRequestEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrderTagStrategyEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrgBranchEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrgClusterEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrgGroupEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrgTeamEngineerEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrgWarehouseInfoEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/PubParamsEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/SkillGroupEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/SkillInfoEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/CapacityEngineerCalendarEntity.java
View file @
950a298
...
...
@@ -34,10 +34,10 @@ public class CapacityEngineerCalendarEntity {
private
String
memo
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
updatable
=
false
,
columnDefinition
=
"timestamp default current_timestamp"
)
private
Timestamp
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"timestamp default current_timestamp on update current_timestamp"
)
private
Timestamp
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
// 其他字段和关联关系的定义
// ...
...
...
project-order/src/main/java/com/dituhui/pea/order/entity/CapacityEngineerStatEntity.java
View file @
950a298
...
...
@@ -63,10 +63,10 @@ public class CapacityEngineerStatEntity {
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
/**
* 更新时间
*/
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
}
project-order/src/main/java/com/dituhui/pea/order/entity/CapacityOrgStatEntity.java
View file @
950a298
...
...
@@ -68,11 +68,11 @@ public class CapacityOrgStatEntity {
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
/**
* 更新时间
*/
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
}
project-order/src/main/java/com/dituhui/pea/order/entity/CapacityTeamStatEntity.java
View file @
950a298
...
...
@@ -58,9 +58,9 @@ public class CapacityTeamStatEntity implements Serializable {
private
String
memo
;
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
}
project-order/src/main/java/com/dituhui/pea/order/entity/EngineerBusinessEntity.java
View file @
950a298
...
...
@@ -69,11 +69,11 @@ public class EngineerBusinessEntity implements Serializable {
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Column
(
name
=
"create_time"
,
nullable
=
false
,
updatable
=
false
,
columnDefinition
=
"timestamp default current_timestamp"
)
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"timestamp default current_timestamp on update current_timestamp"
)
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
}
project-order/src/main/java/com/dituhui/pea/order/entity/EngineerInfoEntity.java
View file @
950a298
...
...
@@ -100,12 +100,12 @@ public class EngineerInfoEntity {
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
/**
* 更新时间
*/
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
public
EngineerInfoEntity
()
{}
}
project-order/src/main/java/com/dituhui/pea/order/entity/OrderEventEntity.java
View file @
950a298
...
...
@@ -24,7 +24,7 @@ public class OrderEventEntity {
private
String
suborderId
;
@Column
(
name
=
"happen"
,
nullable
=
false
,
columnDefinition
=
"timestamp default current_timestamp on update current_timestamp"
)
private
LocalDateTime
happen
;
private
LocalDateTime
happen
=
LocalDateTime
.
now
()
;
@Column
(
name
=
"event"
,
nullable
=
false
,
length
=
50
,
columnDefinition
=
"varchar(50) default ''"
)
private
String
event
;
...
...
@@ -45,10 +45,10 @@ public class OrderEventEntity {
private
String
memo
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"datetime default current_timestamp"
)
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"datetime default current_timestamp"
)
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
// Getters and setters (省略)
}
...
...
project-order/src/main/java/com/dituhui/pea/order/entity/OrderRequestEntity.java
deleted
100644 → 0
View file @
a0100d1
package
com
.
dituhui
.
pea
.
order
.
entity
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
@Data
@Entity
@Table
(
name
=
"order_request"
)
public
class
OrderRequestEntity
{
@Id
private
String
id
;
@Column
(
name
=
"order_id"
,
nullable
=
false
)
private
String
orderId
;
@Column
(
nullable
=
false
)
private
LocalDate
dt
;
@Column
(
nullable
=
false
)
private
String
name
;
@Column
(
nullable
=
false
)
private
String
phone
;
@Column
(
nullable
=
false
)
private
String
address
;
@Column
(
nullable
=
false
)
private
String
x
;
@Column
(
nullable
=
false
)
private
String
y
;
@Column
private
String
province
;
@Column
private
String
city
;
@Column
private
String
county
;
@Column
(
nullable
=
false
)
private
String
brand
;
@Column
(
nullable
=
false
)
private
String
type
;
@Column
(
nullable
=
false
)
private
String
skill
;
@Column
(
name
=
"apply_note"
)
private
String
applyNote
;
@Column
(
name
=
"fault_describe"
)
private
String
faultDescribe
;
@Column
(
name
=
"expect_time_begin"
,
nullable
=
false
,
columnDefinition
=
"timestamp DEFAULT CURRENT_TIMESTAMP"
)
private
LocalDateTime
expectTimeBegin
;
@Column
(
name
=
"expect_time_end"
)
private
LocalDateTime
expectTimeEnd
;
@Column
(
name
=
"expect_time_desc"
)
private
String
expectTimeDesc
;
@Column
private
String
source
;
@Column
(
name
=
"area_id"
)
private
String
areaId
;
@Column
(
name
=
"order_priority"
)
private
String
orderPriority
;
@Column
(
name
=
"order_tags"
)
private
String
orderTags
;
@Column
private
Integer
priority
;
@Column
private
String
tags
;
@Column
(
nullable
=
false
)
private
String
status
;
@Column
(
name
=
"appointment_status"
,
nullable
=
false
)
private
String
appointmentStatus
;
@Column
(
name
=
"appointment_method"
,
nullable
=
false
)
private
String
appointmentMethod
;
@Column
(
name
=
"org_cluster_id"
)
private
String
orgClusterId
;
@Column
(
name
=
"org_cluster_name"
)
private
String
orgClusterName
;
@Column
(
name
=
"org_branch_id"
)
private
String
orgBranchId
;
@Column
(
name
=
"org_branch_name"
)
private
String
orgBranchName
;
@Column
(
name
=
"org_group_id"
)
private
String
orgGroupId
;
@Column
(
name
=
"org_group_name"
)
private
String
orgGroupName
;
@Column
(
name
=
"org_team_id"
)
private
String
orgTeamId
;
@Column
(
name
=
"org_team_name"
)
private
String
orgTeamName
;
@Column
private
String
description
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"timestamp DEFAULT CURRENT_TIMESTAMP"
)
private
LocalDateTime
createTime
;
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
)
private
LocalDateTime
updateTime
;
// Getters and Setters
// ...
}
project-order/src/main/java/com/dituhui/pea/order/entity/OrderTagStrategyEntity.java
View file @
950a298
...
...
@@ -19,6 +19,6 @@ public class OrderTagStrategyEntity {
private
Integer
priority
;
private
Integer
disabled
;
private
String
memo
;
private
LocalDateTime
createTime
;
private
LocalDateTime
updateTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
}
project-order/src/main/java/com/dituhui/pea/order/entity/OrgBranchEntity.java
View file @
950a298
...
...
@@ -45,10 +45,10 @@ public class OrgBranchEntity {
private
String
memo
;
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
public
OrgBranchEntity
()
{}
}
project-order/src/main/java/com/dituhui/pea/order/entity/OrgClusterEntity.java
View file @
950a298
...
...
@@ -37,10 +37,10 @@ public class OrgClusterEntity {
private
String
updateUser
;
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
public
OrgClusterEntity
()
{
}
...
...
project-order/src/main/java/com/dituhui/pea/order/entity/OrgGroupEntity.java
View file @
950a298
...
...
@@ -81,12 +81,12 @@ public class OrgGroupEntity {
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
/**
* 更新时间
*/
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
public
OrgGroupEntity
()
{}
}
project-order/src/main/java/com/dituhui/pea/order/entity/OrgTeamEngineerEntity.java
View file @
950a298
...
...
@@ -45,12 +45,12 @@ public class OrgTeamEngineerEntity {
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
/**
* 更新时间
*/
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
public
OrgTeamEngineerEntity
()
{
}
...
...
project-order/src/main/java/com/dituhui/pea/order/entity/OrgWarehouseInfoEntity.java
View file @
950a298
...
...
@@ -90,11 +90,11 @@ public class OrgWarehouseInfoEntity {
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
/**
* 更新时间
*/
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
}
project-order/src/main/java/com/dituhui/pea/order/entity/PubParamsEntity.java
View file @
950a298
...
...
@@ -50,10 +50,10 @@ public class PubParamsEntity {
/**
* 创建时间
*/
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
/**
* 更新时间
*/
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
}
project-order/src/main/java/com/dituhui/pea/order/entity/SkillGroupEntity.java
View file @
950a298
...
...
@@ -30,10 +30,10 @@ public class SkillGroupEntity {
private
String
memo
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP"
)
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
)
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
// Getters and Setters
// ...
...
...
project-order/src/main/java/com/dituhui/pea/order/entity/SkillInfoEntity.java
View file @
950a298
...
...
@@ -58,10 +58,10 @@ public class SkillInfoEntity {
private
String
memo
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP"
)
private
LocalDateTime
createTime
;
private
LocalDateTime
createTime
=
LocalDateTime
.
now
()
;
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
)
private
LocalDateTime
updateTime
;
private
LocalDateTime
updateTime
=
LocalDateTime
.
now
()
;
// Getters and Setters
// ...
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment