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 5897512c
authored
Jul 11, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据数据表生成entity
1 parent
0fd3b4a0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
286 additions
and
130 deletions
project-order/src/main/java/com/dituhui/pea/order/entity/EngineerSkillGroupEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/MapBlockInfoEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrderAppointmentEntity.java
project-order/src/main/java/com/dituhui/pea/order/entity/OrderRequestEntity.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/EngineerSkillGroupEntity.java
0 → 100644
View file @
5897512
package
com
.
dituhui
.
pea
.
order
.
entity
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.time.LocalDateTime
;
@Data
@Entity
@Table
(
name
=
"engineer_skill_group"
)
public
class
EngineerSkillGroupEntity
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
@Column
(
name
=
"engineer_code"
,
length
=
32
,
nullable
=
false
)
private
String
engineerCode
;
@Column
(
name
=
"skill_group_code"
,
length
=
50
,
nullable
=
false
)
private
String
skillGroupCode
;
@Column
(
length
=
50
,
nullable
=
false
)
private
String
description
;
@Column
(
name
=
"bean_status"
,
nullable
=
false
)
private
Boolean
beanStatus
;
@Column
(
nullable
=
false
)
private
Boolean
status
;
@Column
(
length
=
100
,
nullable
=
false
)
private
String
memo
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE 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/MapBlockInfoEntity.java
View file @
5897512
...
...
@@ -3,88 +3,59 @@ package com.dituhui.pea.order.entity;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
import
java.util.Date
;
@Entity
@Data
@Table
(
name
=
"map_block_Info"
)
@Entity
@Table
(
name
=
"map_block_info"
)
public
class
MapBlockInfoEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
/**
* 主键
*/
private
Integer
id
;
/**
* 区块id
*/
@Column
(
name
=
"block_id"
,
length
=
50
,
nullable
=
false
)
private
String
blockId
;
/**
* 区块名称
*/
@Column
(
name
=
"block_name"
,
length
=
20
,
nullable
=
false
)
private
String
blockName
;
/**
* 归属分部
*/
@Column
(
name
=
"subsection_id"
,
length
=
50
,
nullable
=
false
)
private
String
subsectionId
;
/**
* 归属小组
*/
@Column
(
name
=
"group_id"
,
length
=
50
,
nullable
=
false
)
private
String
groupId
;
/**
* 所在城市id
*/
@Column
(
name
=
"city_code"
,
nullable
=
false
)
private
String
cityCode
;
/**
* 面数据
*/
@Column
(
name
=
"area_data"
,
nullable
=
false
,
columnDefinition
=
"json"
)
private
String
areaData
;
/**
* 类型(1自然行政片区,2自定义片区)
*/
private
Integer
kind
;
@Column
(
nullable
=
false
)
private
Boolean
kind
;
/**
* 关联小队id
*/
@Column
(
name
=
"team_id"
,
length
=
50
,
nullable
=
false
)
private
String
teamId
;
/**
* 图标标签,[基础图层,ggn] -- 与map_layer.layer 对应
*/
@Column
(
name
=
"layer_id"
,
length
=
50
,
nullable
=
false
)
private
String
layerId
;
@Column
(
length
=
50
,
nullable
=
false
)
private
String
layer
;
/**
* 状态(0无效 1有效)
*/
private
Integer
status
;
@Column
(
nullable
=
false
)
private
Boolean
status
;
/**
* 备注
*/
@Column
(
length
=
100
,
nullable
=
false
)
private
String
memo
;
/**
* 创建时间
*/
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP"
)
private
LocalDateTime
createTime
;
/**
* 更新时间
*/
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
)
private
LocalDateTime
updateTime
;
public
MapBlockInfoEntity
()
{}
// Getters and Setters
// ...
}
project-order/src/main/java/com/dituhui/pea/order/entity/OrderAppointmentEntity.java
View file @
5897512
...
...
@@ -6,107 +6,74 @@ import javax.persistence.*;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
javax.persistence.*
;
@Data
@Entity
@Table
(
name
=
"order_appointment"
)
@Table
(
name
=
"order_appointment"
)
public
class
OrderAppointmentEntity
{
/**
* 自增id
*/
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
/**
* 服务单id
*/
@Column
(
name
=
"order_id"
,
nullable
=
false
)
private
String
orderId
;
/**
* 子工单id
*/
@Column
(
name
=
"suborder_id"
,
nullable
=
false
)
private
String
suborderId
;
/**
* 多人单标识(1主单 2副单)
*/
private
Integer
mainSub
;
@Column
(
name
=
"main_sub"
,
nullable
=
false
)
private
Boolean
mainSub
;
/**
* 工程师工号
*/
@Column
(
name
=
"engineer_code"
,
nullable
=
false
)
private
String
engineerCode
;
/**
* 工程师姓名
*/
@Column
(
name
=
"engineer_name"
,
nullable
=
false
)
private
String
engineerName
;
/**
* 工程师电话(快照)
*/
@Column
(
name
=
"engineer_phone"
,
nullable
=
false
)
private
String
engineerPhone
;
/**
* 工程师年龄(快照)
*/
@Column
(
name
=
"engineer_age"
,
nullable
=
false
)
private
Integer
engineerAge
;
/**
* 是否车间单(0否 1是)
*/
private
Integer
isWorkshop
;
@Column
(
name
=
"is_workshop"
,
nullable
=
false
)
private
Boolean
isWorkshop
;
/**
* 预约日期
*/
@Column
private
LocalDate
dt
;
/**
* 客户预约上门时间
*/
@Column
(
name
=
"expect_start_time"
)
private
LocalDateTime
expectStartTime
;
@Column
(
name
=
"expect_end_time"
)
private
LocalDateTime
expectEndTime
;
/**
* 实际上门时间
*/
@Column
(
name
=
"actual_time"
)
private
LocalDateTime
actualTime
;
/**
* 开始服务时间
*/
@Column
(
name
=
"actual_start_time"
)
private
LocalDateTime
actualStartTime
;
/**
* 结束服务时间
*/
@Column
(
name
=
"actual_end_time"
)
private
LocalDateTime
actualEndTime
;
/**
* pre-预排班/confirm-已确认
*/
@Column
(
name
=
"pre_status"
)
private
String
preStatus
;
/**
* bean预约单状态(pre-预指派/虚拟指派 contact-已联系 depart-已出发 start-已开始 finish-已完成 undone-已上门未完成 reschedule-已改约)
*/
@Column
(
nullable
=
false
)
private
String
status
;
/**
* 备注
*/
@Column
(
length
=
100
,
nullable
=
false
)
private
String
memo
;
/**
* 创建时间
*/
@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/OrderRequestEntity.java
View file @
5897512
/*
* Copyright 2013-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com
.
dituhui
.
pea
.
order
.
entity
;
import
lombok.Data
;
...
...
@@ -22,50 +6,132 @@ import javax.persistence.*;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
@Entity
@Data
@Table
(
name
=
"order_request"
)
@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
(
name
=
"category_id"
,
nullable
=
false
)
private
String
categoryId
;
@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
;
private
LocalDate
dt
;
@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/SkillGroupEntity.java
0 → 100644
View file @
5897512
package
com
.
dituhui
.
pea
.
order
.
entity
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.time.LocalDateTime
;
@Data
@Entity
@Table
(
name
=
"skill_group"
)
public
class
SkillGroupEntity
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
@Column
(
name
=
"skill_group_code"
,
length
=
50
,
nullable
=
false
)
private
String
skillGroupCode
;
@Column
(
name
=
"skill_group"
,
length
=
50
,
nullable
=
false
)
private
String
skillGroup
;
@Column
(
length
=
50
,
nullable
=
false
)
private
String
description
;
@Column
(
length
=
20
,
nullable
=
false
)
private
String
category
;
@Column
(
length
=
100
,
nullable
=
false
)
private
String
memo
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP"
)
private
LocalDateTime
createTime
;
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
)
private
LocalDateTime
updateTime
;
// Getters and Setters
// ...
}
project-order/src/main/java/com/dituhui/pea/order/entity/SkillInfoEntity.java
0 → 100644
View file @
5897512
package
com
.
dituhui
.
pea
.
order
.
entity
;
import
lombok.Data
;
import
javax.persistence.*
;
import
java.time.LocalDateTime
;
@Data
@Entity
@Table
(
name
=
"skill_info"
)
public
class
SkillInfoEntity
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
@Column
(
name
=
"skill_code"
,
length
=
32
,
nullable
=
false
)
private
String
skillCode
;
@Column
(
length
=
20
,
nullable
=
false
)
private
String
brand
;
@Column
(
length
=
20
,
nullable
=
false
)
private
String
type
;
@Column
(
length
=
20
,
nullable
=
false
)
private
String
skill
;
@Column
(
name
=
"take_time"
,
nullable
=
false
)
private
Integer
takeTime
;
@Column
(
name
=
"take_engineer"
,
nullable
=
false
)
private
Integer
takeEngineer
;
@Column
(
name
=
"low_electrician_cert"
,
nullable
=
false
)
private
Boolean
lowElectricianCert
;
@Column
(
name
=
"gas_cert"
,
nullable
=
false
)
private
Boolean
gasCert
;
@Column
(
nullable
=
false
)
private
Integer
priority
;
@Column
(
name
=
"skill_group_code"
,
length
=
50
)
private
String
skillGroupCode
;
@Column
(
name
=
"layer_id"
,
length
=
32
)
private
String
layerId
;
@Column
(
name
=
"type_category"
,
length
=
50
)
private
String
typeCategory
;
@Column
(
name
=
"skill_category"
,
length
=
50
)
private
String
skillCategory
;
@Column
(
length
=
100
,
nullable
=
false
)
private
String
memo
;
@Column
(
name
=
"create_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP"
)
private
LocalDateTime
createTime
;
@Column
(
name
=
"update_time"
,
nullable
=
false
,
columnDefinition
=
"datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP"
)
private
LocalDateTime
updateTime
;
// 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