package com.matrix.system.hive.service.imp;
|
|
import com.matrix.core.pojo.PaginationVO;
|
|
import com.matrix.system.hive.bean.SysAllotDetail;
|
import com.matrix.system.hive.dao.SysAllotDetailDao;
|
import com.matrix.system.hive.service.SysAllotDetailService;
|
import org.springframework.stereotype.Service;
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import java.util.List;
|
|
/**
|
*
|
* @date 2016-07-18 18:11
|
*/
|
@Service("sysAllotDetailService")
|
public class SysAllotDetailServiceImpl implements SysAllotDetailService {
|
|
|
@Autowired
|
private SysAllotDetailDao sysAllotDetailDao;
|
|
|
@Override
|
public int add(SysAllotDetail sysAllotDetail){
|
|
return sysAllotDetailDao.insert(sysAllotDetail);
|
|
}
|
|
@Override
|
public int modify(SysAllotDetail sysAllotDetail){
|
|
return sysAllotDetailDao.update(sysAllotDetail);
|
|
}
|
|
@Override
|
public int remove(List<Long> list){
|
|
return sysAllotDetailDao.deleteByIds(list);
|
|
}
|
|
@Override
|
public int removeById(Long id){
|
|
return sysAllotDetailDao.deleteById(id);
|
|
}
|
|
@Override
|
public List<SysAllotDetail> findInPage(SysAllotDetail sysAllotDetail, PaginationVO pageVo){
|
|
return sysAllotDetailDao.selectInPage(sysAllotDetail , pageVo);
|
|
}
|
|
@Override
|
public List<SysAllotDetail> findByModel(SysAllotDetail sysAllotDetail){
|
|
return sysAllotDetailDao.selectByModel(sysAllotDetail);
|
|
}
|
|
@Override
|
public int findTotal(SysAllotDetail sysAllotDetail){
|
|
return sysAllotDetailDao.selectTotalRecord(sysAllotDetail);
|
|
}
|
|
@Override
|
public SysAllotDetail findById(Long id){
|
|
return sysAllotDetailDao.selectById(id);
|
|
}
|
|
|
|
|
}
|