Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
8b66a6af
Commit
8b66a6af
authored
Mar 24, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动积分-参与记录调整
parent
404347cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
8 deletions
+44
-8
service-manager/src/main/java/com/winsun/controller/ActivityRecordController.java
+44
-8
No files found.
service-manager/src/main/java/com/winsun/controller/ActivityRecordController.java
View file @
8b66a6af
package
com
.
winsun
.
controller
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -138,18 +134,58 @@ public class ActivityRecordController extends BaseController {
HhrActivityRecord
activityRecord
=
new
HhrActivityRecord
();
activityRecord
.
setId
(
id
);
activityRecord
.
setStatus
(
status
);
activityRecord
.
setRecordIntegral
(
integral
);
if
(
"3"
.
equals
(
status
))
{
activityRecord
.
setRecordIntegral
(
0
);
}
else
{
activityRecord
.
setRecordIntegral
(
integral
);
}
activityRecord
.
setRemark
(
remark
);
activityRecord
.
setUpdateTime
(
new
Date
());
int
num
=
activityRecordMapper
.
updateById
(
activityRecord
);
if
(
num
>
0
)
{
return
ResponseData
.
success
(
"审核完毕!"
);
}
return
ResponseData
.
error
(
"审核失败"
);
}
@Permission
(
menuname
=
"审核活动参与记录"
,
value
=
"auditActivityRecords"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
auditActivityRecords
(
@RequestParam
(
value
=
"id"
,
required
=
false
)
String
id
,
@RequestParam
(
"ids"
)
String
ids
,
@RequestParam
(
"status"
)
String
status
,
@RequestParam
(
"integral"
)
Integer
integral
,
@RequestParam
(
"remark"
)
String
remark
){
if
(
integral
==
null
){
return
ResponseData
.
error
(
"所得积分不得为空!"
);
}
List
<
String
>
list1
=
new
ArrayList
<>();
List
<
Integer
>
list
=
new
ArrayList
<>();
Wrapper
<
HhrActivityRecord
>
wrapper
=
new
EntityWrapper
<>();
if
(
id
!=
null
&&
StringUtils
.
isNotBlank
(
id
)){
wrapper
.
eq
(
"id"
,
id
);
}
else
{
list1
=
Arrays
.
asList
(
ids
.
split
(
","
));
//[a, b, c]
for
(
String
s
:
list1
)
{
list
.
add
(
Integer
.
valueOf
(
s
));
}
wrapper
.
in
(
"id"
,
list
);
}
HhrActivityRecord
activityRecord
=
new
HhrActivityRecord
();
activityRecord
.
setStatus
(
status
);
if
(
"3"
.
equals
(
status
))
{
activityRecord
.
setRecordIntegral
(
0
);
}
else
{
activityRecord
.
setRecordIntegral
(
integral
);
}
activityRecord
.
setRemark
(
remark
);
activityRecord
.
setUpdateTime
(
new
Date
());
int
num
=
activityRecordMapper
.
update
(
activityRecord
,
wrapper
);
if
(
num
>
0
)
{
return
ResponseData
.
success
(
"审核完毕!"
);
}
return
ResponseData
.
error
(
"审核失败"
);
}
@Permission
(
menuname
=
"查询积分记录信息"
,
value
=
"getIntegralList"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
Page
<
Map
<
String
,
Object
>>>
getIntegralList
(
@RequestParam
(
"title"
)
String
title
,
@RequestParam
(
"activityType"
)
String
activityType
,
@RequestParam
(
"subclass"
)
String
subclass
,
...
...
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