Commit bbc38fca by zhangchen

增加发券历史记录

parent c6d94ef4
......@@ -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();
......
......@@ -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>>() {
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment