shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.ishop.mobile.service;
 
import com.walker.jdbc.service.BaseServiceImpl;
import org.springframework.stereotype.Service;
 
@Service
public class UserCenterServiceImpl extends BaseServiceImpl {
 
    /**
     * 获取用户浏览足迹数量。
     * @param userId
     * @return
     * @date 2023-06-30
     */
    public int queryUserBrowseRecordCount(long userId){
        return this.queryForInt(SQL_BROWSE_COUNT, new Object[]{userId});
    }
 
    private static final String SQL_BROWSE_COUNT = "select count(*) from eb_browse_record where uid=?";
 
}