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
9feb7f97
authored
Nov 17, 2020
by
caosy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/f-6.7.2.1' into f-6.7.2
parents
e087fd17
69052461
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 @
9feb7f97
...
@@ -227,7 +227,8 @@ public class VoucherRuleController {
...
@@ -227,7 +227,8 @@ public class VoucherRuleController {
@RequestMapping
(
value
=
"addVourcherRoleUsers"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"addVourcherRoleUsers"
,
method
=
RequestMethod
.
POST
)
public
String
addVourcherRoleUsers
(
HttpServletRequest
request
,
int
id
,
String
userids
,
public
String
addVourcherRoleUsers
(
HttpServletRequest
request
,
int
id
,
String
userids
,
RedirectAttributes
redirectAttributes
)
{
RedirectAttributes
redirectAttributes
)
{
Response
<
Boolean
>
response
=
voucherRuleService
.
addVourcherRoleUsers
(
id
,
userids
);
int
type
=
1
;
Response
<
Boolean
>
response
=
voucherRuleService
.
addVourcherRoleUsers
(
id
,
userids
,
SpringSecurityUtil
.
getCurrentUserName
(),
type
);
String
message
=
"新增发放用户失败!"
;
String
message
=
"新增发放用户失败!"
;
if
(
response
!=
null
&&
response
.
getMessage
()
!=
null
)
{
if
(
response
!=
null
&&
response
.
getMessage
()
!=
null
)
{
message
=
response
.
getMessage
();
message
=
response
.
getMessage
();
...
...
src/main/java/com/ctrip/fun/admin/service/basic/VoucherRuleService.java
View file @
9feb7f97
...
@@ -141,10 +141,10 @@ public class VoucherRuleService extends BaseService {
...
@@ -141,10 +141,10 @@ public class VoucherRuleService extends BaseService {
* @param id
* @param id
* @param userIds
* @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
uri
=
super
.
getServiceUri
(
"uri.voucherRule.addVoucherRoleUsers"
).
replace
(
"{id}"
,
String
.
valueOf
(
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
);
HttpEntity
<
Request
<
String
>>
entity
=
new
HttpEntity
<
Request
<
String
>>(
request
);
Response
<
Boolean
>
response
=
super
.
exchange
(
uri
,
HttpMethod
.
POST
,
entity
,
Response
<
Boolean
>
response
=
super
.
exchange
(
uri
,
HttpMethod
.
POST
,
entity
,
new
ParameterizedTypeReference
<
Response
<
Boolean
>>()
{
new
ParameterizedTypeReference
<
Response
<
Boolean
>>()
{
...
...
src/main/webapp/WEB-INF/templates/system/UserInfoDetail.ftl
View file @
9feb7f97
...
@@ -653,9 +653,9 @@ $(function() {
...
@@ -653,9 +653,9 @@ $(function() {
</form>
</form>
</td>
</td>
<td>
<
!--<
td>
<input id = 'voucherId' class='delete-all-check' type='checkbox' name='checkbox'/>
<input id = 'voucherId' class='delete-all-check' type='checkbox' name='checkbox'/>
</td>
</td>
-->
</tr>
</tr>
</
#
list>
</
#
list>
</table></div>
</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