예제 #1
0
 /*
  * (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;
 }
예제 #2
0
  /*
   * (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;
  }
예제 #3
0
  /*
   * (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;
  }
예제 #4
0
  /*
   * (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();
  }
예제 #5
0
  /*
   * (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;
  }
예제 #6
0
 @Override
 public double getTotalGoodsMoney(PayedCriteria example) {
   double result = payedMapper.getTotalGoodsMoney(example);
   return result;
 }
예제 #7
0
 /*
  * (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;
 }
예제 #8
0
 /*
  * (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;
 }