// 判断客户交往记录是否存在 public boolean findByAtvId(Long atvId) { if (cstActivityDao.findById(atvId) == null) { return false; } else { return true; } }
// 删除客户交往记录 public void delCstActivity(CstActivity cstActivity) { cstActivityDao.delete(cstActivity); }
// 修改客户交往记录 public void updateCstActivity(CstActivity cstActivity) { cstActivityDao.merge(cstActivity); }
// 新增客户交往记录 public void addCstActivity(CstActivity cstActivity) { cstActivityDao.save(cstActivity); }
// 返回车个CstActivity对象 public CstActivity findById(Long atvId) { return cstActivityDao.findById(atvId); }
// 查询客户交往记录 public PageResult findAll(Map paramMap) { return cstActivityDao.findAll(paramMap); }