Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
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
liqin
chnmuseum-party
Commits
3859c910
Commit
3859c910
authored
Apr 10, 2021
by
wzp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
6cbf14cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
TInteractionController.java
...hnmuseum/party/web/controller/TInteractionController.java
+11
-11
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/web/controller/TInteractionController.java
View file @
3859c910
...
...
@@ -66,14 +66,14 @@ public class TInteractionController extends BaseController {
@PostMapping
(
"/add"
)
@RequiresAuthentication
//@RequiresPermissions("/interaction/add")
@ApiOperation
(
value
=
"添加看板互动"
,
notes
=
"添加看板互动"
)
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
ADD
)
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
ADD
)
public
Map
<
String
,
Object
>
saveTInteraction
(
TInteraction
tInteraction
)
{
// 保存业务节点信息
boolean
result
=
false
;
try
{
Map
<
String
,
Object
>
resultMap
=
new
LinkedHashMap
<
String
,
Object
>();
if
(
StringUtils
.
isBlank
(
tInteraction
.
getName
())
||
StringUtils
.
isBlank
(
tInteraction
.
getPassword
()))
{
if
(
StringUtils
.
isBlank
(
tInteraction
.
getName
())
||
StringUtils
.
isBlank
(
tInteraction
.
getPassword
()))
{
resultMap
.
put
(
"resultCode"
,
"400"
);
resultMap
.
put
(
"message"
,
"请输入用户名和密码"
);
return
resultMap
;
...
...
@@ -96,7 +96,7 @@ public class TInteractionController extends BaseController {
resultMap
.
put
(
"message"
,
"密码错误"
);
return
resultMap
;
}
tInteraction
.
setUsername
(
user
.
getUserName
());
tInteraction
.
setCreateTime
(
LocalDateTime
.
now
());
result
=
tInteractionService
.
save
(
tInteraction
);
// 返回操作结果
...
...
@@ -115,7 +115,7 @@ public class TInteractionController extends BaseController {
@PutMapping
(
"/update"
)
@RequiresAuthentication
//@RequiresPermissions("/interaction/update")
@ApiOperation
(
value
=
"修改看板互动信息"
,
notes
=
"修改看板互动信息"
)
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
UPDATE
)
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
UPDATE
)
public
Map
<
String
,
Object
>
updateTInteraction
(
TInteraction
tInteraction
)
{
boolean
flag
=
false
;
try
{
...
...
@@ -123,7 +123,7 @@ public class TInteractionController extends BaseController {
if
(!
flag
)
{
return
getFailResult
();
}
return
getSuccessResult
();
return
getSuccessResult
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -138,7 +138,7 @@ public class TInteractionController extends BaseController {
@ApiImplicitParams
(
value
=
{
@ApiImplicitParam
(
name
=
"id"
,
value
=
"标识ID"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
DELETE
)
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
DELETE
)
public
Map
<
String
,
Object
>
deleteTInteraction
(
String
id
)
{
boolean
result
=
tInteractionService
.
removeById
(
id
);
if
(
result
)
{
...
...
@@ -156,23 +156,23 @@ public class TInteractionController extends BaseController {
@ApiImplicitParam
(
name
=
"orgId"
,
value
=
"机构id"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@ApiOperation
(
value
=
"获取看板互动列表"
,
notes
=
"获取看板互动列表"
)
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
SELECT
)
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
SELECT
)
public
Map
<
String
,
Object
>
getTInteractionPageList
(
String
orgId
)
{
Page
<
TInteraction
>
list
=
null
;
try
{
list
=
tInteractionService
.
selectPageList
(
getPage
(),
orgId
);
list
=
tInteractionService
.
selectPageList
(
getPage
(),
orgId
);
return
getResult
(
list
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
getFailResult
();
return
getFailResult
();
}
@ApiOperation
(
value
=
"获取看板互动详情"
,
notes
=
"获取看板互动详情"
)
@GetMapping
(
"/getById"
)
@RequiresAuthentication
//@RequiresPermissions("/interaction/getById")
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
SELECT
)
@MethodLog
(
operModule
=
OperModule
.
INTERACTIVE
,
operType
=
OperType
.
SELECT
)
public
Map
<
String
,
Object
>
getById
(
String
id
)
{
TInteraction
tInteraction
=
null
;
try
{
...
...
@@ -181,7 +181,7 @@ public class TInteractionController extends BaseController {
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
getFailResult
();
return
getFailResult
();
}
...
...
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