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
4878f8e6
Commit
4878f8e6
authored
Sep 19, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(jg):维修告知作废
parent
20e21464
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
0 deletions
+52
-0
JgMaintainNoticeDto.java
...join/amos/boot/module/jg/api/dto/JgMaintainNoticeDto.java
+9
-0
JgMaintainNotice.java
...join/amos/boot/module/jg/api/entity/JgMaintainNotice.java
+26
-0
IJgMaintainNoticeService.java
.../boot/module/jg/api/service/IJgMaintainNoticeService.java
+8
-0
JgMaintainNoticeMapper.xml
...-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
+1
-0
JgMaintainNoticeController.java
.../module/jg/biz/controller/JgMaintainNoticeController.java
+8
-0
JgMaintainNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
+0
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgMaintainNoticeDto.java
View file @
4878f8e6
...
@@ -233,4 +233,13 @@ public class JgMaintainNoticeDto extends BaseDto {
...
@@ -233,4 +233,13 @@ public class JgMaintainNoticeDto extends BaseDto {
@ApiModelProperty
(
"工程装置"
)
@ApiModelProperty
(
"工程装置"
)
private
String
projectContraption
;
private
String
projectContraption
;
@ApiModelProperty
(
"作废原因"
)
private
String
cancelReason
;
@ApiModelProperty
(
"作废日期"
)
private
Date
cancelDate
;
@ApiModelProperty
(
"作废人员id"
)
private
String
cancelUserId
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgMaintainNotice.java
View file @
4878f8e6
...
@@ -8,6 +8,8 @@ import lombok.EqualsAndHashCode;
...
@@ -8,6 +8,8 @@ import lombok.EqualsAndHashCode;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* 维修告知
* 维修告知
...
@@ -366,4 +368,28 @@ public class JgMaintainNotice extends BaseEntity {
...
@@ -366,4 +368,28 @@ public class JgMaintainNotice extends BaseEntity {
*/
*/
@TableField
(
"project_contraption"
)
@TableField
(
"project_contraption"
)
private
String
projectContraption
;
private
String
projectContraption
;
/**
* 告知设备列表
*/
@TableField
(
exist
=
false
)
private
List
<
Map
<
String
,
Object
>>
deviceList
;
/**
* 作废原因
*/
@TableField
(
"cancel_reason"
)
private
String
cancelReason
;
/**
* 作废日期
*/
@TableField
(
"cancel_date"
)
private
Date
cancelDate
;
/**
* 作废人员id
*/
@TableField
(
"cancel_user_id"
)
private
String
cancelUserId
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/service/IJgMaintainNoticeService.java
View file @
4878f8e6
...
@@ -61,4 +61,12 @@ public interface IJgMaintainNoticeService extends IService<JgMaintainNotice> {
...
@@ -61,4 +61,12 @@ public interface IJgMaintainNoticeService extends IService<JgMaintainNotice> {
void
generateMaintainNoticeReport
(
Long
sequenceNbr
,
HttpServletResponse
response
);
void
generateMaintainNoticeReport
(
Long
sequenceNbr
,
HttpServletResponse
response
);
boolean
deleteBySequenceNbr
(
Long
[]
sequenceNbr
);
boolean
deleteBySequenceNbr
(
Long
[]
sequenceNbr
);
/**
* 作废申请
* @param sequenceNbr 业务唯一标识
* @param cancelReason 作废原因
* @return JgInstallationNoticeDto
*/
JgMaintainNotice
cancelApplication
(
Long
sequenceNbr
,
String
cancelReason
,
Map
<
String
,
Object
>
model
);
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgMaintainNoticeMapper.xml
View file @
4878f8e6
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
isn.create_user_company_name AS createUserCompanyName,
isn.create_user_company_name AS createUserCompanyName,
isn.next_execute_user_ids AS nextExecuteUserIds,
isn.next_execute_user_ids AS nextExecuteUserIds,
isn.transfer_to_user_ids AS transferToUserIds,
isn.transfer_to_user_ids AS transferToUserIds,
isn.cancel_reason AS cancelReason,
(SELECT name from tz_equipment_category ec WHERE ec.code = isn.equ_list_code) AS equListName,
(SELECT name from tz_equipment_category ec WHERE ec.code = isn.equ_list_code) AS equListName,
DATE_FORMAT(isn.create_date,'%Y-%m-%d') AS createDate,
DATE_FORMAT(isn.create_date,'%Y-%m-%d') AS createDate,
(select name from tz_equipment_category ec WHERE ec.code = isn.equ_category) AS equCategoryName
(select name from tz_equipment_category ec WHERE ec.code = isn.equ_category) AS equCategoryName
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgMaintainNoticeController.java
View file @
4878f8e6
...
@@ -144,4 +144,12 @@ public class JgMaintainNoticeController extends BaseController {
...
@@ -144,4 +144,12 @@ public class JgMaintainNoticeController extends BaseController {
public
void
generateReport
(
HttpServletResponse
response
,
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
void
generateReport
(
HttpServletResponse
response
,
@RequestParam
(
"sequenceNbr"
)
Long
sequenceNbr
)
{
iJgMaintainNoticeService
.
generateMaintainNoticeReport
(
sequenceNbr
,
response
);
iJgMaintainNoticeService
.
generateMaintainNoticeReport
(
sequenceNbr
,
response
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"维修告知单个作废"
,
notes
=
"维修告知单个作废"
)
@PutMapping
(
value
=
"/cancel/application"
)
public
ResponseModel
<
JgMaintainNotice
>
cancelApplication
(
@RequestBody
Map
<
String
,
Object
>
model
)
{
JgMaintainNotice
result
=
iJgMaintainNoticeService
.
cancelApplication
(
Long
.
parseLong
((
String
)
model
.
get
(
"sequenceNbr"
)),
(
String
)
model
.
get
(
"cancelReason"
),
model
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgMaintainNoticeServiceImpl.java
View file @
4878f8e6
This diff is collapsed.
Click to expand it.
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