报销单矿山组织隔离代码调整

This commit is contained in:
zhangzhiguo 2025-10-16 16:54:59 +08:00
parent 77c6f1a246
commit 2b447654ef
4 changed files with 188 additions and 181 deletions

View File

@ -49,9 +49,9 @@ public class DailInvoiceOverdueRemindersOp extends AbstractOperationServicePlugI
//当前切换选择的组织 //当前切换选择的组织
Long currentOrgId = RequestContext.get().getOrgId(); Long currentOrgId = RequestContext.get().getOrgId();
//当前所在的组织是属于矿山下的 //当前所在的组织是属于矿山下的
if(OrgCheckUtils.isKS(currentOrgId)){ // if(OrgCheckUtils.isKS(currentOrgId)){
e.getValidators().add(new DailInvoiceOverdueRemindersOp.ValidatorExt()); e.getValidators().add(new DailInvoiceOverdueRemindersOp.ValidatorExt());
} // }
} }
class ValidatorExt extends AbstractValidator { class ValidatorExt extends AbstractValidator {

View File

@ -40,6 +40,7 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
e.getFieldKeys().add("zcgj_holiday_days"); e.getFieldKeys().add("zcgj_holiday_days");
e.getFieldKeys().add("bizdate"); e.getFieldKeys().add("bizdate");
e.getFieldKeys().add("billstatus"); e.getFieldKeys().add("billstatus");
e.getFieldKeys().add("costcompany");
} }
@Override @Override
@ -51,9 +52,9 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
//当前切换选择的组织 //当前切换选择的组织
Long currentOrgId = RequestContext.get().getOrgId(); Long currentOrgId = RequestContext.get().getOrgId();
//当前所在的组织是属于矿山下的 //当前所在的组织是属于矿山下的
if(OrgCheckUtils.isKS(currentOrgId)){ //if(OrgCheckUtils.isKS(currentOrgId)){
e.getValidators().add(new ValidatorExt()); e.getValidators().add(new ValidatorExt());
} // }
} }
class ValidatorExt extends AbstractValidator { class ValidatorExt extends AbstractValidator {
@ -69,6 +70,10 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
for (ExtendedDataEntity extendedDataEntity : extendedDataEntities) { for (ExtendedDataEntity extendedDataEntity : extendedDataEntities) {
DynamicObject dataEntity = extendedDataEntity.getDataEntity(); DynamicObject dataEntity = extendedDataEntity.getDataEntity();
long aLong = dataEntity.getLong("id"); long aLong = dataEntity.getLong("id");
DynamicObject companyObj = (DynamicObject) dataEntity.get("costcompany");//核算组织(费用承担公司)
if (companyObj != null) {
Long companyId = companyObj.getLong("id");
if (OrgCheckUtils.isKS(companyId)) {
//获取报销人 //获取报销人
DynamicObject applier = dataEntity.getDynamicObject("applier"); DynamicObject applier = dataEntity.getDynamicObject("applier");
long applierId = applier.getLong("id"); long applierId = applier.getLong("id");
@ -291,6 +296,8 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
} }
} }
} }
}
}
/** /**

View File

@ -44,9 +44,9 @@ public class TravelInvoiceOverdueRemindersOp extends AbstractOperationServicePlu
//当前切换选择的组织 //当前切换选择的组织
Long currentOrgId = RequestContext.get().getOrgId(); Long currentOrgId = RequestContext.get().getOrgId();
//当前所在的组织是属于矿山下的 //当前所在的组织是属于矿山下的
if(OrgCheckUtils.isKS(currentOrgId)){ // if(OrgCheckUtils.isKS(currentOrgId)){
e.getValidators().add(new TravelInvoiceOverdueRemindersOp.ValidatorExt()); e.getValidators().add(new TravelInvoiceOverdueRemindersOp.ValidatorExt());
} // }
} }
class ValidatorExt extends AbstractValidator { class ValidatorExt extends AbstractValidator {

View File

@ -43,9 +43,9 @@ public class TripreimbursebillUpOp extends AbstractOperationServicePlugIn {
//当前切换选择的组织 //当前切换选择的组织
Long currentOrgId = RequestContext.get().getOrgId(); Long currentOrgId = RequestContext.get().getOrgId();
//当前所在的组织是属于矿山下的 //当前所在的组织是属于矿山下的
if(OrgCheckUtils.isKS(currentOrgId)){ //if(OrgCheckUtils.isKS(currentOrgId)){
e.getValidators().add(new ValidatorExt()); e.getValidators().add(new ValidatorExt());
} //}
} }
class ValidatorExt extends AbstractValidator { class ValidatorExt extends AbstractValidator {