|
@@ -479,8 +479,13 @@ public class WorkContractBorrowService extends CrudService<WorkContractBorrowDao
|
|
}
|
|
}
|
|
workActivityProcessService.deleteProcessIdAuditUsers(workCntractBorrow.getProcessInstanceId());
|
|
workActivityProcessService.deleteProcessIdAuditUsers(workCntractBorrow.getProcessInstanceId());
|
|
}else{
|
|
}else{
|
|
- str = "合同【"+workCntractBorrow.getWorkContractInfo().getName() + "】借用被驳回";
|
|
|
|
- title = "合同【"+workCntractBorrow.getWorkContractInfo().getName() + "】借用被驳回";
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(workCntractBorrow.getAct().getComment())){
|
|
|
|
+ str = "合同【"+workCntractBorrow.getWorkContractInfo().getName() + "】借用被驳回,驳回意见:" + workCntractBorrow.getAct().getComment();
|
|
|
|
+ title = "合同【"+workCntractBorrow.getWorkContractInfo().getName() + "】借用被驳回,驳回意见:" + workCntractBorrow.getAct().getComment();
|
|
|
|
+ }else{
|
|
|
|
+ str = "合同【"+workCntractBorrow.getWorkContractInfo().getName() + "】借用被驳回";
|
|
|
|
+ title = "合同【"+workCntractBorrow.getWorkContractInfo().getName() + "】借用被驳回";
|
|
|
|
+ }
|
|
users.add(workCntractBorrow.getCreateBy());
|
|
users.add(workCntractBorrow.getCreateBy());
|
|
|
|
|
|
workCntractBorrow.setStatus("4");
|
|
workCntractBorrow.setStatus("4");
|
|
@@ -624,6 +629,23 @@ public class WorkContractBorrowService extends CrudService<WorkContractBorrowDao
|
|
workCntractBorrow.setActualGiveDate(new Date());
|
|
workCntractBorrow.setActualGiveDate(new Date());
|
|
workCntractBorrow.preUpdate();
|
|
workCntractBorrow.preUpdate();
|
|
dao.updateGiveDate(workCntractBorrow);
|
|
dao.updateGiveDate(workCntractBorrow);
|
|
|
|
+
|
|
|
|
+ SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
+ String aboutGiveDateStr = formatter.format(workCntractBorrow.getActualGiveDate());
|
|
|
|
+ String str = "合同【"+workCntractBorrow.getWorkContractInfo().getName() + "】合同归还成功,归还日期:" + aboutGiveDateStr;
|
|
|
|
+ String title = "合同【"+workCntractBorrow.getWorkContractInfo().getName() + "】合同归还成功";
|
|
|
|
+ workProjectNotifyService
|
|
|
|
+ .save(UtilNotify
|
|
|
|
+ .saveNotify(workCntractBorrow.getId(),
|
|
|
|
+ workCntractBorrow.getCreateBy(),
|
|
|
|
+ workCntractBorrow.getCompanyId(),
|
|
|
|
+ title,
|
|
|
|
+ str,
|
|
|
|
+ "93",
|
|
|
|
+ "0",
|
|
|
|
+ "待通知",
|
|
|
|
+ ""));
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|