package com.matrix.system.hive.service.imp;
|
|
import java.util.List;
|
|
import com.matrix.core.pojo.PaginationVO;
|
import com.matrix.system.hive.bean.ServicesFlow;
|
import com.matrix.system.hive.dao.ServicesFlowDao;
|
import com.matrix.system.hive.service.ServicesFlowService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
|
|
/**
|
*
|
* @date 2016-09-12 19:31
|
*/
|
@Service("servicesFlowService")
|
public class ServicesFlowServiceImpl implements ServicesFlowService {
|
|
|
@Autowired
|
private ServicesFlowDao servicesFlowDao;
|
|
|
@Override
|
public int add(ServicesFlow servicesFlow){
|
|
return servicesFlowDao.insert(servicesFlow);
|
|
}
|
|
@Override
|
public int modify(ServicesFlow servicesFlow){
|
|
return servicesFlowDao.update(servicesFlow);
|
|
}
|
|
@Override
|
public int remove(List<Long> list){
|
|
return servicesFlowDao.deleteByIds(list);
|
|
}
|
|
@Override
|
public int removeById(Long id){
|
|
return servicesFlowDao.deleteById(id);
|
|
}
|
|
@Override
|
public List<ServicesFlow> findInPage(ServicesFlow servicesFlow, PaginationVO pageVo){
|
|
return servicesFlowDao.selectInPage(servicesFlow , pageVo);
|
|
}
|
|
@Override
|
public List<ServicesFlow> findByModel(ServicesFlow servicesFlow){
|
|
return servicesFlowDao.selectByModel(servicesFlow);
|
|
}
|
|
@Override
|
public int findTotal(ServicesFlow servicesFlow){
|
|
return servicesFlowDao.selectTotalRecord(servicesFlow);
|
|
}
|
|
@Override
|
public ServicesFlow findById(Long id){
|
|
return servicesFlowDao.selectById(id);
|
|
}
|
|
@Override
|
public List<ServicesFlow> findInPage2(ServicesFlow servicesFlow, PaginationVO pageVo){
|
|
return servicesFlowDao.selectInPage2(servicesFlow , pageVo);
|
|
}
|
|
@Override
|
public int findTotal2(ServicesFlow servicesFlow){
|
|
return servicesFlowDao.selectTotalRecord2(servicesFlow);
|
|
}
|
|
|
|
|
}
|