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
4c1b31af
Commit
4c1b31af
authored
Mar 14, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
户用光伏-运维工单分页详情接口调整
parent
c4621d32
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
50 deletions
+75
-50
HYGFMaintenanceTicketsDto.java
...s/boot/module/hygf/api/dto/HYGFMaintenanceTicketsDto.java
+1
-1
HYGFMaintenanceTickets.java
...s/boot/module/hygf/api/entity/HYGFMaintenanceTickets.java
+2
-2
HYGFMaintenanceTicketsController.java
...hygf/biz/controller/HYGFMaintenanceTicketsController.java
+8
-9
MaintenanceResultHandlerMessage.java
...module/hygf/biz/emqx/MaintenanceResultHandlerMessage.java
+1
-1
HYGFMaintenanceTicketsServiceImpl.java
...f/biz/service/impl/HYGFMaintenanceTicketsServiceImpl.java
+63
-37
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/HYGFMaintenanceTicketsDto.java
View file @
4c1b31af
...
@@ -87,7 +87,7 @@ public class HYGFMaintenanceTicketsDto extends BaseDto {
...
@@ -87,7 +87,7 @@ public class HYGFMaintenanceTicketsDto extends BaseDto {
* 是否替换备件
* 是否替换备件
*/
*/
private
String
isReplaceSpareParts
;
private
Boolean
isReplaceSpareParts
=
false
;
/**
/**
* 运维人员附件
* 运维人员附件
*/
*/
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/HYGFMaintenanceTickets.java
View file @
4c1b31af
...
@@ -16,7 +16,7 @@ import java.util.List;
...
@@ -16,7 +16,7 @@ import java.util.List;
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_maintenance_tickets"
)
@TableName
(
value
=
"hygf_maintenance_tickets"
,
autoResultMap
=
true
)
public
class
HYGFMaintenanceTickets
extends
BaseEntity
{
public
class
HYGFMaintenanceTickets
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
...
@@ -100,7 +100,7 @@ public class HYGFMaintenanceTickets extends BaseEntity {
...
@@ -100,7 +100,7 @@ public class HYGFMaintenanceTickets extends BaseEntity {
* 是否替换备件
* 是否替换备件
*/
*/
@TableField
(
"is_repleace_spare_parts"
)
@TableField
(
"is_repleace_spare_parts"
)
private
String
isReplaceSpareParts
;
private
Boolean
isReplaceSpareParts
=
false
;
/**
/**
* 运维人员附件
* 运维人员附件
*/
*/
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/HYGFMaintenanceTicketsController.java
View file @
4c1b31af
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.controller;
...
@@ -3,6 +3,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.controller;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.HYGFMaintenanceTicketsDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.HYGFMaintenanceTicketsDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.HYGFMaintenanceTickets
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.HYGFMaintenanceTicketsServiceImpl
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.HYGFMaintenanceTicketsServiceImpl
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -46,15 +47,13 @@ public class HYGFMaintenanceTicketsController extends BaseController {
...
@@ -46,15 +47,13 @@ public class HYGFMaintenanceTicketsController extends BaseController {
/**
/**
* 根据sequenceNbr更新
* 根据sequenceNbr更新
*
*
* @param sequenceNbr 主键
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@P
utMapping
(
value
=
"/{sequenceNbr}
"
)
@P
ostMapping
(
value
=
"/update
"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新运维工单"
,
notes
=
"根据sequenceNbr更新运维工单"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新运维工单"
,
notes
=
"根据sequenceNbr更新运维工单"
)
public
ResponseModel
<
HYGFMaintenanceTicketsDto
>
updateBySequenceNbrMaintenance
(
@RequestBody
HYGFMaintenanceTicketsDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
HYGFMaintenanceTicketsDto
>
updateBySequenceNbrMaintenance
(
@RequestBody
HYGFMaintenanceTicketsDto
model
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
updateHYGFMaintenanceTicketsDto
(
model
));
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
updateWithModel
(
model
));
}
}
/**
/**
...
@@ -76,11 +75,11 @@ public class HYGFMaintenanceTicketsController extends BaseController {
...
@@ -76,11 +75,11 @@ public class HYGFMaintenanceTicketsController extends BaseController {
* @param sequenceNbr 主键
* @param sequenceNbr 主键
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/
{sequenceNbr}
"
)
@GetMapping
(
value
=
"/
getDeatil
"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个运维工单"
,
notes
=
"根据sequenceNbr查询单个运维工单"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个运维工单"
,
notes
=
"根据sequenceNbr查询单个运维工单"
)
public
ResponseModel
<
HYGFMaintenanceTickets
Dto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
HYGFMaintenanceTickets
>
selectOne
(
@RequestParam
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
queryBySeq
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
hygfMaintenanceTicketsServiceimpl
.
getDetailBySequenceNbr
(
sequenceNbr
));
}
}
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/emqx/MaintenanceResultHandlerMessage.java
View file @
4c1b31af
...
@@ -119,7 +119,7 @@ public class MaintenanceResultHandlerMessage extends EmqxListener {
...
@@ -119,7 +119,7 @@ public class MaintenanceResultHandlerMessage extends EmqxListener {
hygfMaintenanceTicketsMapper
.
insert
(
hygfMaintenanceTickets
);
hygfMaintenanceTicketsMapper
.
insert
(
hygfMaintenanceTickets
);
tdHygfJpInverterWarn
.
setHandlerStatus
(
"
未处理
"
);
tdHygfJpInverterWarn
.
setHandlerStatus
(
"
处理中
"
);
tdHygfJpInverterWarnMapper
.
insert
(
tdHygfJpInverterWarn
);
tdHygfJpInverterWarnMapper
.
insert
(
tdHygfJpInverterWarn
);
log
.
info
(
"创建运维工单成功{}"
,
JSON
.
toJSONString
(
hygfMaintenanceTickets
));
log
.
info
(
"创建运维工单成功{}"
,
JSON
.
toJSONString
(
hygfMaintenanceTickets
));
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HYGFMaintenanceTicketsServiceImpl.java
View file @
4c1b31af
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