Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bbc38fca
authored
Nov 17, 2020
by
zhangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加发券历史记录
parent
c6d94ef4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
src/main/java/com/ctrip/fun/admin/controller/basic/VoucherRuleController.java
src/main/java/com/ctrip/fun/admin/service/basic/VoucherRuleService.java
src/main/webapp/WEB-INF/templates/system/UserInfoDetail.ftl
src/main/java/com/ctrip/fun/admin/controller/basic/VoucherRuleController.java
View file @
bbc38fca
...
...
@@ -227,7 +227,8 @@ public class VoucherRuleController {
@RequestMapping
(
value
=
"addVourcherRoleUsers"
,
method
=
RequestMethod
.
POST
)
public
String
addVourcherRoleUsers
(
HttpServletRequest
request
,
int
id
,
String
userids
,
RedirectAttributes
redirectAttributes
)
{
Response
<
Boolean
>
response
=
voucherRuleService
.
addVourcherRoleUsers
(
id
,
userids
);
int
type
=
1
;
Response
<
Boolean
>
response
=
voucherRuleService
.
addVourcherRoleUsers
(
id
,
userids
,
SpringSecurityUtil
.
getCurrentUserName
(),
type
);
String
message
=
"新增发放用户失败!"
;
if
(
response
!=
null
&&
response
.
getMessage
()
!=
null
)
{
message
=
response
.
getMessage
();
...
...
src/main/java/com/ctrip/fun/admin/service/basic/VoucherRuleService.java
View file @
bbc38fca
...
...
@@ -141,10 +141,10 @@ public class VoucherRuleService extends BaseService {
* @param id
* @param userIds
*/
public
Response
<
Boolean
>
addVourcherRoleUsers
(
int
id
,
String
userids
)
{
public
Response
<
Boolean
>
addVourcherRoleUsers
(
int
id
,
String
userids
,
String
loginUserName
,
int
type
)
{
String
uri
=
super
.
getServiceUri
(
"uri.voucherRule.addVoucherRoleUsers"
).
replace
(
"{id}"
,
String
.
valueOf
(
id
));
Request
<
String
>
request
=
new
Request
<
String
>(
""
,
userids
);
Request
<
String
>
request
=
new
Request
<
String
>(
""
,
userids
,
loginUserName
,
type
);
HttpEntity
<
Request
<
String
>>
entity
=
new
HttpEntity
<
Request
<
String
>>(
request
);
Response
<
Boolean
>
response
=
super
.
exchange
(
uri
,
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
Response
<
Boolean
>>()
{
...
...
src/main/webapp/WEB-INF/templates/system/UserInfoDetail.ftl
View file @
bbc38fca
...
...
@@ -653,9 +653,9 @@ $(function() {
</form>
</td>
<td>
<
!--<
td>
<input id = 'voucherId' class='delete-all-check' type='checkbox' name='checkbox'/>
</td>
</td>
-->
</tr>
</
#
list>
</table></div>
...
...
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