/* * (non-Javadoc) * * @see com.jcin.cms.service.ICommentService#select(com.jcin.cms.domain. * PayedCriteria) */ @Override public Page select(PayedCriteria criteria) { Page page = new Page(); @SuppressWarnings("rawtypes") List list = payedMapper.selectByExample(criteria); page.setRows(list); int total = payedMapper.countByExample(criteria); page.setTotal(total); return page; }
/* * (non-Javadoc) * * @see * com.jcin.cms.service.IPayedService#selectByPrimaryKey(java.lang.String) */ @Override public Payed selectByPrimaryKey(String id) { super.selectByPrimaryKey(id); Payed payed = payedMapper.selectByPrimaryKey(id); return payed; }
/* * (non-Javadoc) * * @see * com.jcin.cms.service.IPayedService#deleteByPrimaryKey((java.lang.String * )) */ @Override @Transactional public int deleteByPrimaryKey(String id) { super.deleteByPrimaryKey(id); int result = payedMapper.deleteByPrimaryKey(id); return result; }
/* * (non-Javadoc) * * @see com.jcin.cms.service.IPayedService#update(com.jcin.cms.domain.Payed) */ @Override @Transactional public String update(Payed record) { super.update(record); int result = payedMapper.updateByPrimaryKeySelective(record); return record.getId(); }
/* * (non-Javadoc) * * @see com.jcin.cms.service.IPayedService#insert(com.jcin.cms.domain.Payed) */ @Override @Transactional public String insert(Payed record) { super.insert(record); // record.setCreatedate(new Date().getTime()); int result = payedMapper.insert(record); String id = record.getId(); return id; }
@Override public double getTotalGoodsMoney(PayedCriteria example) { double result = payedMapper.getTotalGoodsMoney(example); return result; }
/* * (non-Javadoc) * * @see com.jcin.cms.service.IPayedService#deleteBatch(List) */ @Override @Transactional public int deleteBatch(List<String> list) { int result = payedMapper.deleteBatch(list); return result; }
/* * (non-Javadoc) * * @see com.jcin.cms.service.IPayedService#insertBatch(List) */ @Override public int insertBatch(List<Payed> list) { int result = payedMapper.insertBatch(list); super.insertBatch(list); return result; }