首页>代码>ssm开发实现简单的oa办公管理系统,maven搭建>/OAA/src/main/java/cn/bdqn/biz/impl/OaBizImpl.java
package cn.bdqn.biz.impl;



import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.bdqn.biz.OaBiz;
import cn.bdqn.dao.OaDao;
import cn.bdqn.entity.Department;
import cn.bdqn.entity.Detall;
import cn.bdqn.entity.Employee;
import cn.bdqn.entity.Leave;
import cn.bdqn.entity.Voucher;
@Service("Oabiz")
public class OaBizImpl implements OaBiz {
	@Resource(name="OaDao")
	private OaDao oaDao;
	
	
	public void setOaDao(OaDao oaDao) {
		this.oaDao = oaDao;
	}


	@Override
	public Employee findEmployees(String sn, String password) {
		// TODO Auto-generated method stub
		return this.oaDao.findEmployees(sn, password);
	}




	@Override
	public List<Voucher> findVoucherAll(String sn,String status,String name) {
		// TODO Auto-generated method stub
		return this.oaDao.findVoucherAll(sn,status,name);
	}


	@Override
	public int delete(int id) {
		// TODO Auto-generated method stub
		return this.oaDao.delete(id);
	}

	//请假单
	@Override
	public List<Leave> findLeave(String starttime, String endtime) {
		// TODO Auto-generated method stub
		return this.oaDao.findLeave(starttime, endtime);
	}


	@Override
	public Voucher findCha(int id) {
		// TODO Auto-generated method stub
		return this.oaDao.findCha(id);
	}





	@Override
	public Leave findLeaveById(int id) {
		// TODO Auto-generated method stub
		return this.oaDao.findLeaveById(id);
	}


	@Override
	public List<Department> findDepartments() {
		// TODO Auto-generated method stub
		return this.oaDao.findDepartments();
	}

	@Override
	public int addLeave(String employee_sn,Integer department_id,String starttime, String endtime, String leaveday,
			String leavetype, String reason, String next_deal_sn) {
		// TODO Auto-generated method stub
		return this.oaDao.addLeave(employee_sn,department_id,starttime, endtime, leaveday, leavetype, reason, next_deal_sn);
	}


	@Override
	public Voucher selectVoucher(int id) {
		// TODO Auto-generated method stub
		return this.oaDao.selectVoucher(id);
	}


	@Override
	public int UpdatevoucherId(Voucher voucher) {
		// TODO Auto-generated method stub
		return this.oaDao.UpdatevoucherId(voucher);
	}


	@Override
	public int UpdatedetallId(Detall detall) {
		// TODO Auto-generated method stub
		return this.oaDao.UpdatedetallId(detall);
	}


	@Override
	public Voucher selectVoucherShen(int id) {
		// TODO Auto-generated method stub
		return this.oaDao.selectVoucherShen(id);
	}


	@Override
	public Leave findLeaveshen(int id) {
		// TODO Auto-generated method stub
		return this.oaDao.findLeaveshen(id);
	}


	@Override
	public int Updateleave(Leave leave) {
		// TODO Auto-generated method stub
		return this.oaDao.Updateleave(leave);
	}


	@Override
	public int deletes(int id) {
		// TODO Auto-generated method stub
		return this.oaDao.deletes(id);
	}

//审核表
	@Override
	public int updateVou(Voucher statu) {
		
		return this.oaDao.updateVou(statu);
	}


	@Override
	public int updateLeaves(Leave statu) {
		// TODO Auto-generated method stub
		return this.oaDao.updateLeaves(statu);
	}




	@Override
	public int addVoucher(String create_sn, String create_time,
			String total_account, String status, String event) {
		// TODO Auto-generated method stub
		return this.oaDao.addVoucher(create_sn, create_time, total_account, status, event);
	}


	@Override
	public int addDetail(String item, String account, String des) {
		// TODO Auto-generated method stub
		return this.oaDao.addDetail(item, account, des);
	}


	@Override
	public List<Voucher> findVoucherAlls(String status, String name) {
		// TODO Auto-generated method stub
		return this.oaDao.findVoucherAlls(status, name);
	}


	@Override
	public List<Leave> findLeaves(String employee_sn, String starttime, String endtime) {
		// TODO Auto-generated method stub
		return this.oaDao.findLeaves(employee_sn, starttime, endtime);
	}


/*	@Override
	public int addResult(Result result) {
		// TODO Auto-generated method stub
		return this.oaDao.addResult(result);
	}*/







	








}
最近下载更多
mazihao12138  LV2 2023年7月3日
c469893928  LV2 2023年6月10日
kkkaaaa  LV3 2023年5月16日
微信网友_5963854197018624  LV7 2023年4月6日
微信网友_6164511365238784  LV7 2022年10月10日
赖小宝  LV3 2022年8月26日
最代码-宋家辉  LV61 2022年8月22日
2039995605  LV9 2022年6月5日
www-chrome  LV6 2022年5月20日
cx123123  LV7 2022年5月18日
最近浏览更多
暂无贡献等级
xiaoaitx  LV8 1月1日
唐唐丶  LV34 2024年9月12日
Impeter  LV2 2024年8月13日
murphy  LV7 2024年7月14日
yunsgui  LV1 2024年6月25日
qwe6002  LV10 2024年5月24日
李俊雄  LV3 2024年5月8日
微信网友_6906962132258816  LV7 2024年4月15日
jay1992  LV14 2024年3月16日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友