package com.qiankun.dao;

import com.qiankun.dao.core.AbsDao;
import com.qiankun.entity.Activity;
import com.qiankun.entity.Blood;
import com.qiankun.entity.User;
import org.springframework.stereotype.Repository;

@Repository
public class BloodDaoImpl extends AbsDao<Blood,String> implements BloodDao {
    @Override
    public long findCountByUserAndActivity(String userId, String activityId) {
        return findCount("select count(*) from Blood where user.id = ? and activity.id = ?",userId,activityId);
    }
}
