重试次数以外的可以二次发起申请

于相涌/mail
YXY 2 years ago committed by bob
parent bc7115033b
commit 5135104ecf

@ -48,7 +48,7 @@ public class ApprovalCallback extends CallbackAbstract {
protected void businessProcessing(RequestVo request) { protected void businessProcessing(RequestVo request) {
Event event = queryEvent(request.getAppId(),request.getFromRecordId()); Event event = queryEvent(request.getAppId(),request.getFromRecordId());
//如果已经存在处理中的就不需要操作数据库了 //如果已经存在处理中的就不需要操作数据库了
if (event != null && EventOperateStatus.PENDING.getCode().equals(event.getOperateStatus())){ if (event != null && EventOperateStatus.PENDING.getCode().equals(event.getOperateStatus()) && event.getNumbers() < 3){
return; return;
} }
event = this.buildDto(request,event); event = this.buildDto(request,event);

Loading…
Cancel
Save