Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
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
wangweidong
patzn-cloud-service-hmhj
Commits
8256d8c4
Commit
8256d8c4
authored
Jul 25, 2021
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加创建人和修改人名称;
parent
5a838ef9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
NoticeAnnouncementController.java
...ce/lims/hmhj/controller/NoticeAnnouncementController.java
+11
-9
No files found.
src/main/java/com/patzn/cloud/service/lims/hmhj/controller/NoticeAnnouncementController.java
View file @
8256d8c4
...
...
@@ -35,9 +35,9 @@ public class NoticeAnnouncementController extends ServiceController {
@ApiImplicitParam
(
name
=
RestConstants
.
PAGE_ROWS
,
value
=
"每页条数"
,
required
=
true
,
paramType
=
"query"
,
dataTypeClass
=
Integer
.
class
),
})
@PostMapping
(
"/page"
)
public
RestResult
<
Page
<
NoticeAnnouncement
>>
getPage
(
NoticeAnnouncement
noticeAnnouncement
)
{
public
RestResult
<
Page
<
NoticeAnnouncement
>>
getPage
(
NoticeAnnouncement
noticeAnnouncement
)
{
return
success
(
noticeAnnouncementService
.
page
(
getPage
(),
noticeAnnouncement
));
}
}
@ApiOperation
(
"查询 id 信息"
)
@ApiImplicitParams
({
...
...
@@ -53,23 +53,25 @@ public class NoticeAnnouncementController extends ServiceController {
@ApiImplicitParam
(
name
=
"id"
,
value
=
"主键"
,
required
=
true
,
paramType
=
"path"
,
dataTypeClass
=
Long
.
class
),
})
@PutMapping
(
"/{id}"
)
public
RestResult
<
Boolean
>
edit
(
@PathVariable
(
"id"
)
Long
id
,
NoticeAnnouncement
noticeAnnouncement
)
{
public
RestResult
<
Boolean
>
edit
(
@PathVariable
(
"id"
)
Long
id
,
NoticeAnnouncement
noticeAnnouncement
)
{
noticeAnnouncement
.
setId
(
id
);
noticeAnnouncement
.
setUpdater
(
getAccount
().
getUserName
());
return
success
(
noticeAnnouncementService
.
updateAndRecord
(
noticeAnnouncement
));
}
}
@ApiOperation
(
"添加"
)
@PostMapping
(
"/"
)
public
RestResult
<
Boolean
>
add
(
NoticeAnnouncement
noticeAnnouncement
)
{
public
RestResult
<
Boolean
>
add
(
NoticeAnnouncement
noticeAnnouncement
)
{
noticeAnnouncement
.
setCreator
(
getAccount
().
getUserName
());
return
success
(
noticeAnnouncementService
.
save
(
noticeAnnouncement
));
}
}
@ApiOperation
(
"根据 ids 删除"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"ids"
,
value
=
"主键列表"
,
required
=
true
,
paramType
=
"query"
,
allowMultiple
=
true
,
dataTypeClass
=
Long
.
class
),
})
@DeleteMapping
(
"/"
)
public
RestResult
<
Boolean
>
delete
(
@RequestParam
(
"ids"
)
List
<
Long
>
ids
)
{
@DeleteMapping
(
"/"
)
public
RestResult
<
Boolean
>
delete
(
@RequestParam
(
"ids"
)
List
<
Long
>
ids
)
{
return
success
(
noticeAnnouncementService
.
removeByIds
(
ids
));
}
}
}
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