Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
usedCarAuction
/
aus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c159cbbc
authored
Mar 19, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:新增取消类型
1 parent
ec824a2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
aus-core/src/main/java/com/glsx/usedcar/module/inspect/entity/InspectionWorkOrder.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionWorkOrderService.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/vo/InspectionWorkOrderCancelVO.java
aus-core/src/main/java/com/glsx/usedcar/module/inspect/entity/InspectionWorkOrder.java
View file @
c159cbb
...
@@ -101,6 +101,14 @@ public class InspectionWorkOrder extends AuditingEntity implements Serializable
...
@@ -101,6 +101,14 @@ public class InspectionWorkOrder extends AuditingEntity implements Serializable
@Column
(
name
=
"wo_id"
,
nullable
=
false
,
length
=
50
)
@Column
(
name
=
"wo_id"
,
nullable
=
false
,
length
=
50
)
private
String
woId
;
private
String
woId
;
/**
* 取消类型
*/
@JsonView
(
value
=
Summary
.
class
)
@Size
(
max
=
50
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
@Column
(
name
=
"cancel_type"
,
nullable
=
false
,
length
=
50
)
private
String
cancelType
;
@JsonView
(
value
=
Summary
.
class
)
@JsonView
(
value
=
Summary
.
class
)
@Size
(
max
=
500
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
// 移除@NotBlank,数据库允许NULL
@Size
(
max
=
500
,
groups
=
{
CreateValidGroup
.
class
,
UpdateValidGroup
.
class
})
// 移除@NotBlank,数据库允许NULL
@Column
(
name
=
"audit_content"
,
nullable
=
true
,
length
=
500
)
// length改为500
@Column
(
name
=
"audit_content"
,
nullable
=
true
,
length
=
500
)
// length改为500
...
...
aus-core/src/main/java/com/glsx/usedcar/module/inspect/service/InspectionWorkOrderService.java
View file @
c159cbb
...
@@ -319,6 +319,7 @@ public class InspectionWorkOrderService {
...
@@ -319,6 +319,7 @@ public class InspectionWorkOrderService {
Integer
originalStatus
=
wo
.
getStatus
();
Integer
originalStatus
=
wo
.
getStatus
();
wo
.
setStatus
(
InspectionWorkOrderStatusEnum
.
CANCELED
.
getCode
());
wo
.
setStatus
(
InspectionWorkOrderStatusEnum
.
CANCELED
.
getCode
());
wo
.
setCancelType
(
vo
.
getCancelType
());
wo
.
setCancelContent
(
vo
.
getCancelReason
());
wo
.
setCancelContent
(
vo
.
getCancelReason
());
wo
.
setUpdateBy
(
opName
);
wo
.
setUpdateBy
(
opName
);
wo
.
setUpdateTime
(
LocalDateTime
.
now
());
wo
.
setUpdateTime
(
LocalDateTime
.
now
());
...
...
aus-core/src/main/java/com/glsx/usedcar/module/inspect/vo/InspectionWorkOrderCancelVO.java
View file @
c159cbb
...
@@ -14,6 +14,9 @@ public class InspectionWorkOrderCancelVO {
...
@@ -14,6 +14,9 @@ public class InspectionWorkOrderCancelVO {
@Schema
(
description
=
"主键ID"
)
@Schema
(
description
=
"主键ID"
)
private
Long
id
;
private
Long
id
;
@Schema
(
description
=
"取消类型"
)
private
String
cancelType
;
@Schema
(
description
=
"取消原因"
)
@Schema
(
description
=
"取消原因"
)
private
String
cancelReason
;
private
String
cancelReason
;
}
}
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