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
3db154a0
Commit
3db154a0
authored
Oct 16, 2025
by
wujipeng
Browse files
运维工单编辑
parent
e7812100
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/controller/KzWorkController.java
View file @
3db154a0
...
@@ -4,10 +4,7 @@ import com.platform.controller.BaseController;
...
@@ -4,10 +4,7 @@ import com.platform.controller.BaseController;
import
com.platform.page.TableDataInfo
;
import
com.platform.page.TableDataInfo
;
import
com.ruzhoukj.sms.model.dto.KzWorkDTO
;
import
com.ruzhoukj.sms.model.dto.KzWorkDTO
;
import
com.ruzhoukj.sms.service.KzWorkService
;
import
com.ruzhoukj.sms.service.KzWorkService
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
...
@@ -25,8 +22,13 @@ public class KzWorkController extends BaseController {
...
@@ -25,8 +22,13 @@ public class KzWorkController extends BaseController {
private
KzWorkService
kzWorkService
;
private
KzWorkService
kzWorkService
;
@PostMapping
(
"/page"
)
@PostMapping
(
"/page"
)
public
TableDataInfo
page
(
@RequestBody
KzWorkDTO
kzWorkDTO
){
public
TableDataInfo
page
(
@RequestBody
KzWorkDTO
kzWorkDTO
)
{
startPage
(
kzWorkDTO
.
getPageNum
(),
kzWorkDTO
.
getPageSize
());
startPage
(
kzWorkDTO
.
getPageNum
(),
kzWorkDTO
.
getPageSize
());
return
getDataTable
(
kzWorkService
.
pageInfo
(
kzWorkDTO
));
return
getDataTable
(
kzWorkService
.
pageInfo
(
kzWorkDTO
));
}
}
@PutMapping
(
"/update"
)
public
boolean
update
(
@RequestBody
KzWorkDTO
kzWorkDTO
)
{
return
kzWorkService
.
updateById
(
kzWorkDTO
);
}
}
}
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