Commit 9ac01135 by liyanlin

fix

parent 448c42d3
...@@ -55,24 +55,22 @@ public class GeneralManagerCheckState extends CostState { ...@@ -55,24 +55,22 @@ public class GeneralManagerCheckState extends CostState {
} }
//小于1w的自动审核 //小于1w的自动审核
if (this.autoPass(costDomain)) { if (this.autoPass(costDomain)) {
//自动审核通过 costDomain.setCostStatus(CostDomain.STATUS_UN_PAY);
if (this.autoCheck(costDomain)) { costDomain.setLastModifyDate(LocalDateTime.now());
costDomain.setCostStatus(CostDomain.STATUS_UN_PAY); costDao.updateById(costDomain);
costDomain.setLastModifyDate(LocalDateTime.now());
costDao.updateById(costDomain); List<CostCurrentReviewer> costCurrentReviewerList = costCurrentReviewerMapper.selectByCostNo(costDomain.getCostNo());
costLogService.saveByManage(costDomain.getCostNo(), "总经办自动审核通过,当前审核人:" + costCurrentReviewerList.stream().map(CostCurrentReviewer::getUsername)
List<CostCurrentReviewer> costCurrentReviewerList = costCurrentReviewerMapper.selectByCostNo(costDomain.getCostNo()); .collect(Collectors.joining(",")), CostLogDomain.MANAGER_AUTO_PASS);
costLogService.saveByManage(costDomain.getCostNo(), "总经办自动审核通过,当前审核人:" + costCurrentReviewerList.stream().map(CostCurrentReviewer::getUsername) //流转状态
.collect(Collectors.joining(",")), CostLogDomain.MANAGER_AUTO_PASS); nextState(unPayState);
//流转状态 //发布到总线尝试下个环节的自动审核
nextState(unPayState); //costSubscribe.subscribe(costContext);
//发布到总线尝试下个环节的自动审核
//costSubscribe.subscribe(costContext); //通知财务系统
costContext.costService.toFinancial(costDomain);
//通知财务系统 return;
costContext.costService.toFinancial(costDomain);
return;
}
} }
if (currentUserId != null) { if (currentUserId != null) {
//目前限定铭哥能审核 //目前限定铭哥能审核
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment