Commit 9ac01135 by liyanlin

fix

parent 448c42d3
......@@ -55,24 +55,22 @@ public class GeneralManagerCheckState extends CostState {
}
//小于1w的自动审核
if (this.autoPass(costDomain)) {
//自动审核通过
if (this.autoCheck(costDomain)) {
costDomain.setCostStatus(CostDomain.STATUS_UN_PAY);
costDomain.setLastModifyDate(LocalDateTime.now());
costDao.updateById(costDomain);
List<CostCurrentReviewer> costCurrentReviewerList = costCurrentReviewerMapper.selectByCostNo(costDomain.getCostNo());
costLogService.saveByManage(costDomain.getCostNo(), "总经办自动审核通过,当前审核人:" + costCurrentReviewerList.stream().map(CostCurrentReviewer::getUsername)
.collect(Collectors.joining(",")), CostLogDomain.MANAGER_AUTO_PASS);
//流转状态
nextState(unPayState);
//发布到总线尝试下个环节的自动审核
//costSubscribe.subscribe(costContext);
//通知财务系统
costContext.costService.toFinancial(costDomain);
return;
}
costDomain.setCostStatus(CostDomain.STATUS_UN_PAY);
costDomain.setLastModifyDate(LocalDateTime.now());
costDao.updateById(costDomain);
List<CostCurrentReviewer> costCurrentReviewerList = costCurrentReviewerMapper.selectByCostNo(costDomain.getCostNo());
costLogService.saveByManage(costDomain.getCostNo(), "总经办自动审核通过,当前审核人:" + costCurrentReviewerList.stream().map(CostCurrentReviewer::getUsername)
.collect(Collectors.joining(",")), CostLogDomain.MANAGER_AUTO_PASS);
//流转状态
nextState(unPayState);
//发布到总线尝试下个环节的自动审核
//costSubscribe.subscribe(costContext);
//通知财务系统
costContext.costService.toFinancial(costDomain);
return;
}
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