/** * @Title: DeptServiceImpl.java * @Package org.service.impl * @Description: TODO该方法的主要作用: * @author A18ccms A18ccms_gmail_com * @date 2017-12-26 下午9:19:09 * @version V1.0 */ package org.service.impl; import java.util.List; import org.dao.IDeptDao; import org.entity.Dept; import org.service.IDeptService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * * 项目名称:test_ssm_16qn3 * 类名称:DeptServiceImpl * 类描述: * 创建人:Mu Xiongxiong * 创建时间:2017-12-26 下午9:19:09 * 修改人:Mu Xiongxiong * 修改时间:2017-12-26 下午9:19:09 * 修改备注: * @version * */ //注入事务 @Component public class DeptServiceImpl implements IDeptService { @Autowired private IDeptDao deptDao; /**(非 Javadoc) * <p>Description(描述): </p> * <p>Title: getDeptAll</p> * @return * @see org.dao.IDeptDao#getDeptAll() */ @Override public List<Dept> getDeptAll() { // TODO Auto-generated method stub return deptDao.getDeptAll(); } /**(非 Javadoc) * <p>Description(描述): </p> * <p>Title: saveEntity</p> * @param dept * @return * @see org.dao.IDeptDao#saveEntity(org.entity.Dept) */ @Override public int saveEntity(Dept dept) { // TODO Auto-generated method stub return deptDao.saveEntity(dept); } /**(非 Javadoc) * <p>Description(描述): </p> * <p>Title: updateEntity</p> * @param dept * @return * @see org.dao.IDeptDao#updateEntity(org.entity.Dept) */ @Override public int updateEntity(Dept dept) { // TODO Auto-generated method stub return deptDao.updateEntity(dept); } /**(非 Javadoc) * <p>Description(描述): </p> * <p>Title: delEntity</p> * @param dept * @return * @see org.dao.IDeptDao#delEntity(org.entity.Dept) */ @Override public int delEntity(Dept dept) { // TODO Auto-generated method stub return deptDao.delEntity(dept); } /**(非 Javadoc) * <p>Description(描述): </p> * <p>Title: getDeptById</p> * @param id * @return * @see org.dao.IDeptDao#getDeptById(int) */ @Override public Dept getDeptById(int id) { // TODO Auto-generated method stub return deptDao.getDeptById(id); } }