Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
3b3d5631
Commit
3b3d5631
authored
Oct 22, 2025
by
wujipeng
Browse files
优化
parent
2f2fc3cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/controller/KzWorkController.java
View file @
3b3d5631
...
...
@@ -4,6 +4,8 @@ import com.platform.controller.BaseController;
import
com.platform.page.TableDataInfo
;
import
com.ruzhoukj.sms.model.dto.KzWorkDTO
;
import
com.ruzhoukj.sms.service.KzWorkService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
...
...
@@ -16,6 +18,7 @@ import java.util.Date;
* @Version: 1.0
* @Desc : 描述信息
*/
@Api
(
tags
=
"运维工单管理"
)
@RestController
@RequestMapping
(
"/kz/work"
)
public
class
KzWorkController
extends
BaseController
{
...
...
@@ -23,18 +26,22 @@ public class KzWorkController extends BaseController {
@Resource
private
KzWorkService
kzWorkService
;
@ApiOperation
(
value
=
"分页查询"
)
@PostMapping
(
"/page"
)
public
TableDataInfo
page
(
@RequestBody
KzWorkDTO
kzWorkDTO
)
{
startPage
(
kzWorkDTO
.
getPageNum
(),
kzWorkDTO
.
getPageSize
());
return
getDataTable
(
kzWorkService
.
pageInfo
(
kzWorkDTO
));
}
@ApiOperation
(
value
=
"编辑"
)
@PutMapping
(
"/update"
)
public
boolean
update
(
@RequestBody
KzWorkDTO
kzWorkDTO
)
{
kzWorkDTO
.
setOperationTime
(
new
Date
());
return
kzWorkService
.
updateById
(
kzWorkDTO
);
}
@ApiOperation
(
value
=
"导出"
)
@PostMapping
(
"/export"
)
public
void
export
(
@RequestBody
KzWorkDTO
kzWorkDTO
,
HttpServletResponse
response
)
{
kzWorkService
.
export
(
kzWorkDTO
,
response
);
...
...
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