Commit 99076d07 by jianshuqin

2024-07-01后付款主体为“印尼”且币种“IDR”不用总经办审核,直接转财务审核

parent 5ab61768
......@@ -60,13 +60,20 @@ public class HrCheckState extends CostState {
//如果不需要审核 直接通过
if (!costTemplate.shouldHrCheck(costDomain)) {
boolean isFinancialCheck = false;
//2022-02-11后"广州沃伟科技发展有限公司"不用总经办审核,直接转财务审核
costDomain.setCostStatus(StringUtils.equals(costDomain.getCompanyNo(),"COM2008121838151") ? CostDomain.STATUS_FINANCIAL_CHECK : CostDomain.STATUS_MANAGER_CHECK);
if (StringUtils.equals(costDomain.getCompanyNo(),"COM2008121838151")) {
isFinancialCheck = true;
//2024-07-01后付款主体为“印尼”且币种“IDR”不用总经办审核,直接转财务审核
} else if (StringUtils.equals(costDomain.getCompanyNo(),"COM2306081104478") && StringUtils.equals(costDomain.getDic(),"IDR")){
isFinancialCheck = true;
}
costDomain.setCostStatus(isFinancialCheck ? CostDomain.STATUS_FINANCIAL_CHECK : CostDomain.STATUS_MANAGER_CHECK);
costDomain.setLastModifyDate(LocalDateTime.now());
costDao.updateById(costDomain);
//流转状态
nextState(StringUtils.equals(costDomain.getCompanyNo(),"COM2008121838151") ? financialCheckState : generalManagerCheckState);
nextState(isFinancialCheck ? financialCheckState : generalManagerCheckState);
costSubscribe.subscribe(costContext);
return;
......
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