完善限制功能,以中间表形式

dev2
WeiRan 2024-09-03 15:42:56 +08:00
parent c64db627a0
commit c7f1992eb5
1 changed files with 4 additions and 4 deletions

View File

@ -36,10 +36,10 @@ public class ProducttestServiceImpl extends ServiceImpl<ProducttestMapper, UserP
*/
@Override
public UserProductCount findcount(UserProductCount userProductCount, HttpServletRequest request) {
// String token = SecurityUtils.getToken();// 获取当前Token
// LoginUser loginUser = tokenService.getLoginUser(token); // 获取当前登录用户
// Long userid = loginUser.getUserid();
// userProductCount.setUserId(userid);
String token = SecurityUtils.getToken();// 获取当前Token
LoginUser loginUser = tokenService.getLoginUser(token); // 获取当前登录用户
Long userid = loginUser.getUserid();
userProductCount.setUserId(userid);
return producttestMapper.findcount(userProductCount);
}