Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
7575c6d4
Commit
7575c6d4
authored
Sep 03, 2021
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.删除一对多
parent
aa62c944
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
123 additions
and
141 deletions
+123
-141
Check.java
...n/java/com/yeejoin/amos/maintenance/dao/entity/Check.java
+1
-1
CheckShot.java
...va/com/yeejoin/amos/maintenance/dao/entity/CheckShot.java
+122
-140
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-maintenance-api/src/main/java/com/yeejoin/amos/maintenance/dao/entity/Check.java
View file @
7575c6d4
...
@@ -499,7 +499,7 @@ public class Check extends BasicEntity {
...
@@ -499,7 +499,7 @@ public class Check extends BasicEntity {
this
.
errorClassify
=
errorClassify
;
this
.
errorClassify
=
errorClassify
;
}
}
@
OneToMany
(
mappedBy
=
"check"
,
cascade
=
{
CascadeType
.
REMOVE
,
CascadeType
.
MERGE
,
CascadeType
.
PERSIST
})
@
Transient
public
List
<
CheckShot
>
getCheckShot
()
{
public
List
<
CheckShot
>
getCheckShot
()
{
return
checkShot
;
return
checkShot
;
}
}
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-maintenance-api/src/main/java/com/yeejoin/amos/maintenance/dao/entity/CheckShot.java
View file @
7575c6d4
package
com
.
yeejoin
.
amos
.
maintenance
.
dao
.
entity
;
package
com
.
yeejoin
.
amos
.
maintenance
.
dao
.
entity
;
import
javax.persistence.Column
;
import
javax.persistence.*
;
import
javax.persistence.Entity
;
import
javax.persistence.JoinColumn
;
import
javax.persistence.Lob
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.NamedQuery
;
import
javax.persistence.Table
;
/**
/**
* The persistent class for the p_check_shot database table.
* The persistent class for the p_check_shot database table.
*
*/
*/
@Entity
@Entity
@Table
(
name
=
"p_check_shot"
)
@Table
(
name
=
"p_check_shot"
)
@NamedQuery
(
name
=
"CheckShot.findAll"
,
query
=
"SELECT c FROM CheckShot c"
)
@NamedQuery
(
name
=
"CheckShot.findAll"
,
query
=
"SELECT c FROM CheckShot c"
)
public
class
CheckShot
extends
BasicEntity
{
public
class
CheckShot
extends
BasicEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
* 巡检记录id
* 巡检记录id
*/
*/
@Column
(
name
=
"check_id"
)
@Column
(
name
=
"check_id"
)
private
long
checkId
;
private
long
checkId
;
/**
/**
* 权限系统org code
* 权限系统org code
*/
*/
@Column
(
name
=
"org_code"
)
@Column
(
name
=
"org_code"
)
private
String
orgCode
;
private
String
orgCode
;
/**
/**
* 照片内容
* 照片内容
*/
*/
@Lob
@Lob
@Column
(
name
=
"photo_data"
)
@Column
(
name
=
"photo_data"
)
private
String
photoData
;
private
String
photoData
;
/**
/**
* 拍照点名称
* 拍照点名称
*/
*/
@Column
(
name
=
"point_name"
)
@Column
(
name
=
"point_name"
)
private
String
pointName
;
private
String
pointName
;
/**
/**
* 拍照类型:1-检查项照片;2-不合格照片
* 拍照类型:1-检查项照片;2-不合格照片
* 点现场照片)
* 点现场照片)
*/
*/
@Column
(
name
=
"shot_type"
)
@Column
(
name
=
"shot_type"
)
private
String
shotType
;
private
String
shotType
;
/**
/**
* 检查项id
* 检查项id
*/
*/
@Column
(
name
=
"check_input_id"
)
@Column
(
name
=
"check_input_id"
)
private
long
checkInputId
;
private
long
checkInputId
;
/**
/**
* 照片配置key(关联照片和拍照设置),来源picture_json
* 照片配置key(关联照片和拍照设置),来源picture_json
*/
*/
private
String
photoConfKey
;
private
String
photoConfKey
;
/**
/**
* 扩展分类id
* 扩展分类id
*/
*/
@Column
(
name
=
"classify_id"
)
@Column
(
name
=
"classify_id"
)
private
long
classifyId
;
private
long
classifyId
;
public
long
getClassifyId
()
{
public
long
getClassifyId
()
{
return
classifyId
;
return
classifyId
;
}
}
public
void
setClassifyId
(
long
classifyId
)
{
public
void
setClassifyId
(
long
classifyId
)
{
this
.
classifyId
=
classifyId
;
this
.
classifyId
=
classifyId
;
}
}
public
long
getCheckInputId
()
{
public
long
getCheckInputId
()
{
return
checkInputId
;
return
checkInputId
;
}
}
public
void
setCheckInputId
(
long
checkInputId
)
{
public
void
setCheckInputId
(
long
checkInputId
)
{
this
.
checkInputId
=
checkInputId
;
this
.
checkInputId
=
checkInputId
;
}
}
public
CheckShot
()
{
public
CheckShot
()
{
}
}
private
Check
check
;
public
long
getCheckId
()
{
return
this
.
checkId
;
public
long
getCheckId
()
{
}
return
this
.
checkId
;
}
public
void
setCheckId
(
long
checkId
)
{
this
.
checkId
=
checkId
;
public
void
setCheckId
(
long
checkId
)
{
}
this
.
checkId
=
checkId
;
}
public
String
getOrgCode
()
{
return
this
.
orgCode
;
public
String
getOrgCode
()
{
}
return
this
.
orgCode
;
}
public
void
setOrgCode
(
String
orgCode
)
{
this
.
orgCode
=
orgCode
;
public
void
setOrgCode
(
String
orgCode
)
{
}
this
.
orgCode
=
orgCode
;
}
public
String
getPhotoData
()
{
return
this
.
photoData
;
public
String
getPhotoData
()
{
}
return
this
.
photoData
;
}
public
void
setPhotoData
(
String
photoData
)
{
this
.
photoData
=
photoData
;
public
void
setPhotoData
(
String
photoData
)
{
}
this
.
photoData
=
photoData
;
}
public
String
getPhotoConfKey
()
{
return
photoConfKey
;
public
String
getPhotoConfKey
()
{
}
return
photoConfKey
;
}
public
void
setPhotoConfKey
(
String
photoConfKey
)
{
this
.
photoConfKey
=
photoConfKey
;
public
void
setPhotoConfKey
(
String
photoConfKey
)
{
}
this
.
photoConfKey
=
photoConfKey
;
}
public
String
getPointName
()
{
return
this
.
pointName
;
public
String
getPointName
()
{
}
return
this
.
pointName
;
}
public
void
setPointName
(
String
pointName
)
{
this
.
pointName
=
pointName
;
public
void
setPointName
(
String
pointName
)
{
}
this
.
pointName
=
pointName
;
}
public
String
getShotType
()
{
return
this
.
shotType
;
public
String
getShotType
()
{
}
return
this
.
shotType
;
}
public
void
setShotType
(
String
shotType
)
{
this
.
shotType
=
shotType
;
public
void
setShotType
(
String
shotType
)
{
}
this
.
shotType
=
shotType
;
}
@ManyToOne
@JoinColumn
(
name
=
"checkId"
,
referencedColumnName
=
"id"
,
updatable
=
false
,
insertable
=
false
)
public
Check
getCheck
()
{
return
check
;
}
public
void
setCheck
(
Check
check
)
{
this
.
check
=
check
;
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment