DutyService.java
资源名称:ssh+ext.rar [点击查看]
上传用户:ouhalaa
上传日期:2016-03-17
资源大小:10210k
文件大小:1k
源码类别:
Web服务器
开发平台:
Java
- package com.lhq.prj.bms.service.impl;
- import java.util.List;
- import com.lhq.prj.bms.dao.IDutyDao;
- import com.lhq.prj.bms.po.Duty;
- import com.lhq.prj.bms.service.IDutyService;
- /**
- * DutyService.java Create on 2008-9-18 下午08:15:34
- *
- * 职务业务层实现类
- *
- * Copyright (c) 2008 by MTA.
- *
- * @author 廖瀚卿
- * @version 1.0
- */
- public class DutyService implements IDutyService {
- private IDutyDao dutyDao;
- public void setDutyDao(IDutyDao dutyDao) {
- this.dutyDao = dutyDao;
- }
- public boolean deleteDuty(Integer dutyId) {
- Integer flag = dutyDao.deleteById(dutyId);
- if (flag != null) {
- return true;
- }
- return false;
- }
- public List findAll() {
- return dutyDao.findAll();
- }
- public Object saveDuty(Duty duty) {
- return dutyDao.saveDuty(duty);
- }
- public boolean updateDuty(Duty duty) throws Exception {
- Integer flag = dutyDao.update(duty);
- if (flag != null) {
- return true;
- }
- return false;
- }
- }