1.biz
//审核报销单
void deal(DealRecord dealRecord);
2.Impl
判断需不需要复审
金额《5000不要
public void deal(DealRecord dealRecord) {
ClaimVoucher claimVoucher = claimVoucherDao.select(dealRecord.getClaimVoucherId());
Employee employee = employeeDao.select(dealRecord.getDealSn());
dealRecord.setDealTime(new Date());
//审核通过
if(dealRecord.getDealWay().equals(Contant.DEAL_PASS)){
// 金额<=5000 当前审核人为总经理 ,不要复审
if(claimVoucher.getTotalAmount()<=Contant.LIMIT_CHECK || employee.getPost().equals(Contant.POST_GM)){
claimVoucher.setStatus(Contant.CLAIMVOUCHER_APPROVED);
//去找财务 dsn为null 根据传入的post职务去找
claimVoucher.setNextDealSn(employeeDao.selectByDepartm