package com.matrix.system.hive.service.imp;
|
|
import com.matrix.core.pojo.PaginationVO;
|
|
|
import com.matrix.system.hive.bean.SysSerProj;
|
import com.matrix.system.hive.dao.SysSerProjDao;
|
import com.matrix.system.hive.service.SysSerProjService;
|
import org.springframework.stereotype.Service;
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import java.util.List;
|
|
/**
|
*
|
* @date 2016-07-22 09:23
|
*/
|
@Service("sysSerProjService")
|
public class SysSerProjServiceImpl implements SysSerProjService {
|
|
|
@Autowired
|
private SysSerProjDao sysSerProjDao;
|
|
|
@Override
|
public int add(SysSerProj sysSerProj){
|
|
return sysSerProjDao.insert(sysSerProj);
|
|
}
|
|
@Override
|
public int modify(SysSerProj sysSerProj){
|
|
return sysSerProjDao.update(sysSerProj);
|
|
}
|
|
@Override
|
public int remove(List<Long> list){
|
|
return sysSerProjDao.deleteByIds(list);
|
|
}
|
|
@Override
|
public int removeById(Long id){
|
|
return sysSerProjDao.deleteById(id);
|
|
}
|
|
@Override
|
public List<SysSerProj> findInPage(SysSerProj sysSerProj, PaginationVO pageVo){
|
|
return sysSerProjDao.selectInPage(sysSerProj , pageVo);
|
|
}
|
|
@Override
|
public List<SysSerProj> findByModel(SysSerProj sysSerProj){
|
|
return sysSerProjDao.selectByModel(sysSerProj);
|
|
}
|
|
@Override
|
public int findTotal(SysSerProj sysSerProj){
|
|
return sysSerProjDao.selectTotalRecord(sysSerProj);
|
|
}
|
|
@Override
|
public SysSerProj findById(Long id){
|
|
return sysSerProjDao.selectById(id);
|
|
}
|
|
|
|
|
}
|