| package com.matrix.system.hive.service.imp; | 
|   | 
| import java.util.List; | 
|   | 
| import com.matrix.system.hive.bean.MyBeatician; | 
| import com.matrix.system.hive.dao.MyBeaticianDao; | 
| import com.matrix.system.hive.service.MyBeaticianService; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Service; | 
|   | 
| import com.matrix.core.pojo.PaginationVO; | 
|   | 
| /** | 
|  * | 
|  * @date 2016-12-07 12:02 | 
|  */ | 
| @Service("myBeaticianService") | 
| public class  MyBeaticianServiceImpl implements MyBeaticianService { | 
|   | 
|      | 
|     @Autowired | 
|     private MyBeaticianDao myBeaticianDao; | 
|      | 
|      | 
|     @Override | 
|     public int add(MyBeatician myBeatician){ | 
|          | 
|         return myBeaticianDao.insert(myBeatician); | 
|          | 
|     } | 
|         | 
|     @Override | 
|     public int modify(MyBeatician myBeatician){ | 
|      | 
|         return myBeaticianDao.update(myBeatician); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int remove(List<Long> list){ | 
|      | 
|         return myBeaticianDao.deleteByIds(list); | 
|      | 
|     } | 
|   | 
|     @Override | 
|     public int removeById(Long iD){ | 
|      | 
|         return myBeaticianDao.deleteById(iD); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int removeByModel(MyBeatician myBeatician){ | 
|      | 
|         return myBeaticianDao.deleteByModel(myBeatician); | 
|      | 
|     } | 
|      | 
|      | 
|     @Override | 
|     public List<MyBeatician> findInPage(MyBeatician myBeatician,  PaginationVO pageVo){ | 
|      | 
|         return myBeaticianDao.selectInPage(myBeatician , pageVo); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public List<MyBeatician> findByModel(MyBeatician myBeatician){ | 
|      | 
|         return myBeaticianDao.selectByModel(myBeatician); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public int  findTotal(MyBeatician myBeatician){ | 
|      | 
|         return myBeaticianDao.selectTotalRecord(myBeatician); | 
|      | 
|     } | 
|      | 
|     @Override | 
|     public MyBeatician  findById(Long iD){ | 
|      | 
|         return myBeaticianDao.selectById(iD); | 
|      | 
|     } | 
|   | 
|         | 
|      | 
|      | 
| } |