package com.oa.project.biz.hb;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.oa.project.dao.hb.CushistoryMapper;
import com.oa.project.entity.hb.Cushistory;
@Service
public class CushistoryBiz {
@Resource
private CushistoryMapper cushistoryMapper;
public List<Cushistory> findAll(){
return cushistoryMapper.findAll();
}
public List<Cushistory> findAllLimit(int pageNum){
int num=(pageNum-1)*20;
return cushistoryMapper.findAllLimit(num);
}
public Cushistory findById(int historyId){
return cushistoryMapper.selectByPrimaryKey(historyId);
}
public List<Cushistory> findByteamId(int teamId){
return cushistoryMapper.selectByteamId(teamId);
}
public List<Cushistory> findByteamIdLimit(int teamId,int pageNum){
int num=(pageNum-1)*20;
return cushistoryMapper.selectByteamIdLimit(teamId,num);
}
public List<Cushistory> findByempId(int empId){
return cushistoryMapper.selectByempId(empId);
}
public List<Cushistory> findByempIdLimit(int empId,int pageNum){
int num=(pageNum-1)*20;
return cushistoryMapper.selectByempIdLimit(empId,num);
}
public int save(Cushistory cushistory){
return cushistoryMapper.insertSelective(cushistory);
}
public int delete(int id){
return cushistoryMapper.deleteByPrimaryKey(id);
}
public int update(Cushistory cushistory){
return cushistoryMapper.updateByPrimaryKeySelective(cushistory);
}
}
最近下载更多
最近浏览更多
奋斗的小蚂蚁 LV17
10月22日
ttg2025 LV3
7月14日
molu123456
5月20日
暂无贡献等级
china_0221 LV41
4月27日
xiaohuaidan455 LV2
2月17日
xiaoaitx LV8
1月2日
wykao13
2023年10月12日
暂无贡献等级
茶茶茶百道qq
2023年9月21日
暂无贡献等级
Weishenghui LV7
2023年9月19日
liwiaif LV2
2023年9月1日

