Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
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
李伟
cust-api
Commits
521f357c
Commit
521f357c
authored
Dec 31, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b5f8c3b9
372d240a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
1 deletion
+50
-1
AppOpmTopicController.java
...oft/app/appOpmTopic/controller/AppOpmTopicController.java
+49
-0
OpmTopicMapper.xml
...ources/mapper/business/opmTopic.mapper/OpmTopicMapper.xml
+1
-1
No files found.
src/main/java/org/rcisoft/app/appOpmTopic/controller/AppOpmTopicController.java
0 → 100644
View file @
521f357c
package
org
.
rcisoft
.
app
.
appOpmTopic
.
controller
;
/*固定导入*/
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Parameter
;
import
io.swagger.v3.oas.annotations.Parameters
;
import
org.rcisoft.business.opmTopic.entity.OpmTopic
;
import
org.rcisoft.business.opmTopic.service.OpmTopicService
;
import
org.rcisoft.core.anno.CyOpeLogAnno
;
import
org.rcisoft.core.constant.CyMessCons
;
import
org.rcisoft.core.controller.CyPaginationController
;
import
org.rcisoft.core.model.CyGridModel
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.operlog.enums.CyLogTypeEnum
;
import
org.rcisoft.core.result.CyResult
;
import
org.rcisoft.core.util.CyResultGenUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
@RestController
@RequestMapping
(
"/app/opmTopic"
)
public
class
AppOpmTopicController
extends
CyPaginationController
<
OpmTopic
>
{
@Autowired
private
OpmTopicService
opmTopicServiceImpl
;
@PreAuthorize
(
"@cyPerm.hasPerm('app:topic:detial')"
)
@CyOpeLogAnno
(
title
=
"system-公告管理-查询公告"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"查询单一公告"
,
description
=
"查询单一公告"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
)})
@GetMapping
(
"/detail/{businessId:\\w+}"
)
public
CyResult
detail
(
@PathVariable
Integer
businessId
)
{
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
opmTopicServiceImpl
.
findById
(
businessId
));
}
@PreAuthorize
(
"@cyPerm.hasPerm('app:topic:query')"
)
@CyOpeLogAnno
(
title
=
"system-话题管理-查询话题"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询话题集合"
,
description
=
"分页查询话题集合"
)
@GetMapping
(
value
=
"/queryOpmTopicByPagination"
)
public
CyGridModel
listByPagination
(
OpmTopic
opmTopic
)
{
opmTopicServiceImpl
.
findAllByPagination
(
getPaginationUtility
(),
opmTopic
);
return
getGridModelResponse
();
}
}
src/main/resources/mapper/business/opmTopic.mapper/OpmTopicMapper.xml
View file @
521f357c
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<update
id=
"updateExamStatus"
parameterType=
"org.rcisoft.business.opmTopic.entity.OpmTopic"
>
<update
id=
"updateExamStatus"
parameterType=
"org.rcisoft.business.opmTopic.entity.OpmTopic"
>
update opm_topic
update opm_topic
set exam_status =
'1'
set exam_status =
#{entity.examStatus}
where business_id = #{entity.businessId}
where business_id = #{entity.businessId}
</update>
</update>
...
...
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