mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
升级mybatis-plus到3.5.3.1
This commit is contained in:
@@ -63,7 +63,7 @@ public class AddrController {
|
||||
if (addrParam.getAddrId() != null && addrParam.getAddrId() != 0) {
|
||||
return ServerResponseEntity.showFailMsg("该地址已存在");
|
||||
}
|
||||
int addrCount = userAddrService.count(new LambdaQueryWrapper<UserAddr>().eq(UserAddr::getUserId, userId));
|
||||
long addrCount = userAddrService.count(new LambdaQueryWrapper<UserAddr>().eq(UserAddr::getUserId, userId));
|
||||
UserAddr userAddr = mapperFacade.map(addrParam, UserAddr.class);
|
||||
|
||||
if (addrCount == 0) {
|
||||
|
||||
@@ -91,9 +91,9 @@ public class UserCollectionController {
|
||||
*/
|
||||
@GetMapping("count")
|
||||
@Operation(summary = "查询用户收藏商品数量" , description = "查询用户收藏商品数量")
|
||||
public int findUserCollectionCount() {
|
||||
public ServerResponseEntity<Long> findUserCollectionCount() {
|
||||
String userId = SecurityUtils.getUser().getUserId();
|
||||
return userCollectionService.count(new LambdaQueryWrapper<UserCollection>().eq(UserCollection::getUserId, userId));
|
||||
return ServerResponseEntity.success(userCollectionService.count(new LambdaQueryWrapper<UserCollection>().eq(UserCollection::getUserId, userId)));
|
||||
}
|
||||
|
||||
@GetMapping("/prods")
|
||||
|
||||
Reference in New Issue
Block a user