shikeying
2024-04-07 52c8ee3120e4a44e48e217bced6f6c799ff7980c
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=?";
 
}