代码检查,移除System.out.println
This commit is contained in:
parent
f5538eda9f
commit
ae6d946553
|
@ -118,7 +118,6 @@ public class DailyloanbillExpAccPlugin extends AbstractBillPlugIn implements Plu
|
||||||
DynamicObject dynamicObject = zcgjEntryentity.get(0);
|
DynamicObject dynamicObject = zcgjEntryentity.get(0);
|
||||||
DynamicObject itemDynamicObject= dynamicObject.getDynamicObject(prefix+"_entity_items");
|
DynamicObject itemDynamicObject= dynamicObject.getDynamicObject(prefix+"_entity_items");
|
||||||
long aLong = itemDynamicObject.getLong("id");
|
long aLong = itemDynamicObject.getLong("id");
|
||||||
System.out.println();
|
|
||||||
this.getModel().setValue(EXPENSE_ITEM,aLong,selectRow);
|
this.getModel().setValue(EXPENSE_ITEM,aLong,selectRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,6 @@ public class DailyreimbursExpAccPlugin extends AbstractBillPlugIn implements Plu
|
||||||
DynamicObject dynamicObject = zcgjEntryentity.get(0);
|
DynamicObject dynamicObject = zcgjEntryentity.get(0);
|
||||||
DynamicObject itemDynamicObject= dynamicObject.getDynamicObject(prefix+"_entity_items");
|
DynamicObject itemDynamicObject= dynamicObject.getDynamicObject(prefix+"_entity_items");
|
||||||
long aLong = itemDynamicObject.getLong("id");
|
long aLong = itemDynamicObject.getLong("id");
|
||||||
System.out.println();
|
|
||||||
this.getModel().setValue(EXPENSE_ITEM,aLong,selectRow);
|
this.getModel().setValue(EXPENSE_ITEM,aLong,selectRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,6 @@ public class PrepaybillExpAccPlugin extends AbstractBillPlugIn implements Plugin
|
||||||
DynamicObject dynamicObject = zcgjEntryentity.get(0);
|
DynamicObject dynamicObject = zcgjEntryentity.get(0);
|
||||||
DynamicObject itemDynamicObject= dynamicObject.getDynamicObject(prefix+"_entity_items");
|
DynamicObject itemDynamicObject= dynamicObject.getDynamicObject(prefix+"_entity_items");
|
||||||
long aLong = itemDynamicObject.getLong("id");
|
long aLong = itemDynamicObject.getLong("id");
|
||||||
System.out.println();
|
|
||||||
this.getModel().setValue(EXPENSE_ITEM,aLong,selectRow);
|
this.getModel().setValue(EXPENSE_ITEM,aLong,selectRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,6 @@ public class PublicreimbursebillExpAccPlugin extends AbstractBillPlugIn implemen
|
||||||
DynamicObject dynamicObject = zcgjEntryentity.get(0);
|
DynamicObject dynamicObject = zcgjEntryentity.get(0);
|
||||||
DynamicObject itemDynamicObject= dynamicObject.getDynamicObject(prefix+"_entity_items");
|
DynamicObject itemDynamicObject= dynamicObject.getDynamicObject(prefix+"_entity_items");
|
||||||
long aLong = itemDynamicObject.getLong("id");
|
long aLong = itemDynamicObject.getLong("id");
|
||||||
System.out.println();
|
|
||||||
this.getModel().setValue(EXPENSE_ITEM,aLong,selectRow);
|
this.getModel().setValue(EXPENSE_ITEM,aLong,selectRow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,27 @@ import java.util.*;
|
||||||
*/
|
*/
|
||||||
public class TriprAutoCalWorkingDaysPlugin extends AbstractBillPlugIn implements Plugin {
|
public class TriprAutoCalWorkingDaysPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void afterBindData(EventObject e) {
|
||||||
|
super.afterBindData(e);
|
||||||
|
//当前切换选择的组织
|
||||||
|
Object company = this.getModel().getValue("costcompany");//核算组织(费用承担公司)
|
||||||
|
Long currentOrgId = RequestContext.get().getOrgId();
|
||||||
|
if(company!=null){
|
||||||
|
DynamicObject companyObj = (DynamicObject)company;
|
||||||
|
Long companyId = companyObj.getLong("id");
|
||||||
|
if(OrgCheckUtils.isKS(companyId)){
|
||||||
|
Set<LocalDate> allSet = new HashSet<>();
|
||||||
|
Set<LocalDate> localDates1 = calHomeentityDay();
|
||||||
|
Set<LocalDate> localDates2 = calTripentryDay();
|
||||||
|
allSet.addAll(localDates1);
|
||||||
|
allSet.addAll(localDates2);
|
||||||
|
this.getModel().setValue("zcgj_kccbdays",allSet.size());
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void propertyChanged(PropertyChangedArgs e) {
|
public void propertyChanged(PropertyChangedArgs e) {
|
||||||
//当前切换选择的组织
|
//当前切换选择的组织
|
||||||
|
|
|
@ -118,7 +118,6 @@ public class DailyreimbursHomeCheckOp extends AbstractOperationServicePlugIn {
|
||||||
isOk= false;
|
isOk= false;
|
||||||
this.addFatalErrorMessage(extendedDataEntity, message);
|
this.addFatalErrorMessage(extendedDataEntity, message);
|
||||||
}
|
}
|
||||||
//System.out.println(entry.getKey() + ": " + entry.getValue() + " 次");
|
|
||||||
}
|
}
|
||||||
if(isOk){
|
if(isOk){
|
||||||
for (DynamicObject dynamicObject : tripentry) {
|
for (DynamicObject dynamicObject : tripentry) {
|
||||||
|
|
|
@ -257,7 +257,6 @@ public class DailyreimbursVisitCheckOp extends AbstractOperationServicePlugIn {
|
||||||
}
|
}
|
||||||
|
|
||||||
holidayCount++;
|
holidayCount++;
|
||||||
System.out.println(string);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//剩余次数
|
//剩余次数
|
||||||
|
|
|
@ -123,7 +123,6 @@ public class TripreimbursebillIsHomeCheckOp extends AbstractOperationServicePlug
|
||||||
isOk= false;
|
isOk= false;
|
||||||
this.addFatalErrorMessage(extendedDataEntity, message);
|
this.addFatalErrorMessage(extendedDataEntity, message);
|
||||||
}
|
}
|
||||||
//System.out.println(entry.getKey() + ": " + entry.getValue() + " 次");
|
|
||||||
}
|
}
|
||||||
if(isOk){
|
if(isOk){
|
||||||
for (DynamicObject dynamicObject : tripentry) {
|
for (DynamicObject dynamicObject : tripentry) {
|
||||||
|
|
|
@ -126,7 +126,6 @@ public class BudgetActuRptQueryPlugin extends AbstractReportListDataPlugin {
|
||||||
List<Integer> yearList = new ArrayList<>();
|
List<Integer> yearList = new ArrayList<>();
|
||||||
// 输出所有年份
|
// 输出所有年份
|
||||||
for (int year = startYear; year <= currentYear; year++) {
|
for (int year = startYear; year <= currentYear; year++) {
|
||||||
System.out.println(year);
|
|
||||||
yearList.add(year);
|
yearList.add(year);
|
||||||
}
|
}
|
||||||
//年份-(预算&实际)/项目/金额
|
//年份-(预算&实际)/项目/金额
|
||||||
|
|
|
@ -105,10 +105,6 @@ public class EmpTravelRptDetailListPlugin extends AbstractFormPlugin implements
|
||||||
dynamicObject.set("zcgj_end_date",enddate);
|
dynamicObject.set("zcgj_end_date",enddate);
|
||||||
dynamicObject.set("zcgj_days",row.getInteger("kccbdaycount"));
|
dynamicObject.set("zcgj_days",row.getInteger("kccbdaycount"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
System.out.println();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -35,7 +35,6 @@ public class VisitRptDetailListPlugin extends AbstractFormPlugin implements Plug
|
||||||
Long userId = (Long)formShowParameter.getCustomParam("userId");
|
Long userId = (Long)formShowParameter.getCustomParam("userId");
|
||||||
String queryDate = (String)formShowParameter.getCustomParam("queryDate");
|
String queryDate = (String)formShowParameter.getCustomParam("queryDate");
|
||||||
LocalDate parse = LocalDate.parse(queryDate);
|
LocalDate parse = LocalDate.parse(queryDate);
|
||||||
System.out.println();
|
|
||||||
DynamicObjectCollection zcgjKccbList = this.getModel().getDataEntity().getDynamicObjectCollection("zcgj_entryentity");
|
DynamicObjectCollection zcgjKccbList = this.getModel().getDataEntity().getDynamicObjectCollection("zcgj_entryentity");
|
||||||
DataSet tripreimbursebill = getDailyreimbursebill(queryDate, userId);
|
DataSet tripreimbursebill = getDailyreimbursebill(queryDate, userId);
|
||||||
for (Row row : tripreimbursebill) {
|
for (Row row : tripreimbursebill) {
|
||||||
|
|
|
@ -19,8 +19,6 @@ public class ApprovalCheckFlowPlugin implements IWorkflowPlugin {
|
||||||
IWorkflowPlugin.super.notify(execution);
|
IWorkflowPlugin.super.notify(execution);
|
||||||
List<Long> allApprover = execution.getAllApprover(); // 获取审批人id
|
List<Long> allApprover = execution.getAllApprover(); // 获取审批人id
|
||||||
List<Map<String, Object>> userInfo = UserServiceHelper.get(allApprover); // 审批人信息
|
List<Map<String, Object>> userInfo = UserServiceHelper.get(allApprover); // 审批人信息
|
||||||
System.out.println();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ public class WorkLoadExt extends WorkLoad {
|
||||||
//是否自动审批通过
|
//是否自动审批通过
|
||||||
boolean isAutoPass = false;
|
boolean isAutoPass = false;
|
||||||
if(localApprovers.isEmpty()){
|
if(localApprovers.isEmpty()){
|
||||||
System.out.println("本地无人审批,跳过移除审批人,不自动审批通过。");
|
log.info("本地无人审批,跳过移除审批人,不自动审批通过。");
|
||||||
map.put("isAutoPass", isAutoPass);
|
map.put("isAutoPass", isAutoPass);
|
||||||
map.put("removedApprovers", removedApprovers);
|
map.put("removedApprovers", removedApprovers);
|
||||||
return map;
|
return map;
|
||||||
|
@ -133,8 +133,8 @@ public class WorkLoadExt extends WorkLoad {
|
||||||
// 完全覆盖:随机选择一个共享审批人,自动审批通过
|
// 完全覆盖:随机选择一个共享审批人,自动审批通过
|
||||||
Long approver = getRandomApprover(sharedApprovers);
|
Long approver = getRandomApprover(sharedApprovers);
|
||||||
removedApprovers.remove(approver);
|
removedApprovers.remove(approver);
|
||||||
System.out.println("共享审批节点完全被覆盖,审批人:" + approver + ",自动审批通过。");
|
log.info("共享审批节点完全被覆盖,审批人:" + approver + ",自动审批通过。");
|
||||||
System.out.println("被移除掉的审批人:" + removedApprovers);
|
log.info("被移除掉的审批人:" + removedApprovers);
|
||||||
isAutoPass =true;
|
isAutoPass =true;
|
||||||
} else {
|
} else {
|
||||||
// 未完全覆盖:选择不在本地节点中的共享审批人,不自动审批通过
|
// 未完全覆盖:选择不在本地节点中的共享审批人,不自动审批通过
|
||||||
|
@ -142,11 +142,11 @@ public class WorkLoadExt extends WorkLoad {
|
||||||
if (!sharedSet.isEmpty()) {
|
if (!sharedSet.isEmpty()) {
|
||||||
Long approver = sharedSet.iterator().next();
|
Long approver = sharedSet.iterator().next();
|
||||||
removedApprovers.remove(approver);
|
removedApprovers.remove(approver);
|
||||||
System.out.println("共享审批节点未被完全覆盖,审批人:" + approver + ",不自动审批通过。");
|
log.info("共享审批节点未被完全覆盖,审批人:" + approver + ",不自动审批通过。");
|
||||||
System.out.println("被移除掉的审批人:" + removedApprovers);
|
log.info("被移除掉的审批人:" + removedApprovers);
|
||||||
isAutoPass = false;
|
isAutoPass = false;
|
||||||
} else {
|
} else {
|
||||||
System.out.println("未找到合适的审批人。");
|
log.info("未找到合适的审批人。");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
map.put("isAutoPass", isAutoPass);
|
map.put("isAutoPass", isAutoPass);
|
||||||
|
|
|
@ -37,7 +37,6 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
DynamicObject dataEntity = this.getModel().getDataEntity(true);
|
DynamicObject dataEntity = this.getModel().getDataEntity(true);
|
||||||
if (name.equals("zcgj_pjnhhshte")) {
|
if (name.equals("zcgj_pjnhhshte")) {
|
||||||
Object zcgjPjnhbhshte = this.getModel().getValue("zcgj_pjnhhshte");
|
Object zcgjPjnhbhshte = this.getModel().getValue("zcgj_pjnhhshte");
|
||||||
System.out.println();
|
|
||||||
if (zcgjPjnhbhshte != null) {
|
if (zcgjPjnhbhshte != null) {
|
||||||
ofamount = new BigDecimal(zcgjPjnhbhshte.toString());
|
ofamount = new BigDecimal(zcgjPjnhbhshte.toString());
|
||||||
}
|
}
|
||||||
|
@ -51,7 +50,6 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
} else if (name.equals("zcgj_pjnhbhshte")) {
|
} else if (name.equals("zcgj_pjnhbhshte")) {
|
||||||
// Object zcgjPjnhhshte = this.getModel().getValue("zcgj_pjnhbhshte");
|
// Object zcgjPjnhhshte = this.getModel().getValue("zcgj_pjnhbhshte");
|
||||||
Object zcgjPjnhhshte = changeData.getNewValue();
|
Object zcgjPjnhhshte = changeData.getNewValue();
|
||||||
System.out.println();
|
|
||||||
if (zcgjPjnhhshte != null) {
|
if (zcgjPjnhhshte != null) {
|
||||||
amount = new BigDecimal(zcgjPjnhhshte.toString());
|
amount = new BigDecimal(zcgjPjnhhshte.toString());
|
||||||
}
|
}
|
||||||
|
@ -65,7 +63,6 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
this.getView().updateView();
|
this.getView().updateView();
|
||||||
}else if (name.equals("zcgj_yjhshtsr")) {
|
}else if (name.equals("zcgj_yjhshtsr")) {
|
||||||
Object zcgjyjhshtsr = this.getModel().getValue("zcgj_yjhshtsr");
|
Object zcgjyjhshtsr = this.getModel().getValue("zcgj_yjhshtsr");
|
||||||
System.out.println();
|
|
||||||
if (zcgjyjhshtsr != null) {
|
if (zcgjyjhshtsr != null) {
|
||||||
ofamount = new BigDecimal(zcgjyjhshtsr.toString());
|
ofamount = new BigDecimal(zcgjyjhshtsr.toString());
|
||||||
}
|
}
|
||||||
|
@ -78,7 +75,6 @@ public class EcContractFromPlugin extends AbstractBillPlugIn implements Plugin {
|
||||||
this.getView().updateView();
|
this.getView().updateView();
|
||||||
} else if (name.equals("zcgj_yjbhshtsr")) {
|
} else if (name.equals("zcgj_yjbhshtsr")) {
|
||||||
Object zcgjyjbhshtsr = this.getModel().getValue("zcgj_yjbhshtsr");
|
Object zcgjyjbhshtsr = this.getModel().getValue("zcgj_yjbhshtsr");
|
||||||
System.out.println();
|
|
||||||
if (zcgjyjbhshtsr != null) {
|
if (zcgjyjbhshtsr != null) {
|
||||||
amount = new BigDecimal(zcgjyjbhshtsr.toString());
|
amount = new BigDecimal(zcgjyjbhshtsr.toString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,6 @@ public class EcContractRevisionFromPlugin extends AbstractBillPlugIn implements
|
||||||
DynamicObject dataEntity = this.getModel().getDataEntity(true);
|
DynamicObject dataEntity = this.getModel().getDataEntity(true);
|
||||||
if (name.equals("zcgj_pjnhhshte")) {
|
if (name.equals("zcgj_pjnhhshte")) {
|
||||||
Object zcgjPjnhbhshte = this.getModel().getValue("zcgj_pjnhhshte");
|
Object zcgjPjnhbhshte = this.getModel().getValue("zcgj_pjnhhshte");
|
||||||
System.out.println();
|
|
||||||
if (zcgjPjnhbhshte != null) {
|
if (zcgjPjnhbhshte != null) {
|
||||||
ofamount = new BigDecimal(zcgjPjnhbhshte.toString());
|
ofamount = new BigDecimal(zcgjPjnhbhshte.toString());
|
||||||
}
|
}
|
||||||
|
@ -60,7 +59,6 @@ public class EcContractRevisionFromPlugin extends AbstractBillPlugIn implements
|
||||||
} else if (name.equals("zcgj_pjnhbhshte")) {
|
} else if (name.equals("zcgj_pjnhbhshte")) {
|
||||||
// Object zcgjPjnhhshte = this.getModel().getValue("zcgj_pjnhbhshte");
|
// Object zcgjPjnhhshte = this.getModel().getValue("zcgj_pjnhbhshte");
|
||||||
Object zcgjPjnhhshte = changeData.getNewValue();
|
Object zcgjPjnhhshte = changeData.getNewValue();
|
||||||
System.out.println();
|
|
||||||
if (zcgjPjnhhshte != null) {
|
if (zcgjPjnhhshte != null) {
|
||||||
amount = new BigDecimal(zcgjPjnhhshte.toString());
|
amount = new BigDecimal(zcgjPjnhhshte.toString());
|
||||||
}
|
}
|
||||||
|
@ -76,7 +74,6 @@ public class EcContractRevisionFromPlugin extends AbstractBillPlugIn implements
|
||||||
this.getView().updateView("zcgj_pjnhse");
|
this.getView().updateView("zcgj_pjnhse");
|
||||||
}else if (name.equals("zcgj_yjhshtsr")) {
|
}else if (name.equals("zcgj_yjhshtsr")) {
|
||||||
Object zcgjyjhshtsr = this.getModel().getValue("zcgj_yjhshtsr");
|
Object zcgjyjhshtsr = this.getModel().getValue("zcgj_yjhshtsr");
|
||||||
System.out.println();
|
|
||||||
if (zcgjyjhshtsr != null) {
|
if (zcgjyjhshtsr != null) {
|
||||||
ofamount = new BigDecimal(zcgjyjhshtsr.toString());
|
ofamount = new BigDecimal(zcgjyjhshtsr.toString());
|
||||||
}
|
}
|
||||||
|
@ -90,7 +87,6 @@ public class EcContractRevisionFromPlugin extends AbstractBillPlugIn implements
|
||||||
this.getView().updateView("zcgj_yjzse");
|
this.getView().updateView("zcgj_yjzse");
|
||||||
} else if (name.equals("zcgj_yjbhshtsr")) {
|
} else if (name.equals("zcgj_yjbhshtsr")) {
|
||||||
Object zcgjyjbhshtsr = this.getModel().getValue("zcgj_yjbhshtsr");
|
Object zcgjyjbhshtsr = this.getModel().getValue("zcgj_yjbhshtsr");
|
||||||
System.out.println();
|
|
||||||
if (zcgjyjbhshtsr != null) {
|
if (zcgjyjbhshtsr != null) {
|
||||||
amount = new BigDecimal(zcgjyjbhshtsr.toString());
|
amount = new BigDecimal(zcgjyjbhshtsr.toString());
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,8 +45,6 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -39,7 +39,6 @@ public class ContractSettleOp extends AbstractOperationServicePlugIn {
|
||||||
outContract.set("ismulticontract", true);
|
outContract.set("ismulticontract", true);
|
||||||
}
|
}
|
||||||
OperationResult saveOperationResult1 = SaveServiceHelper.saveOperate("ec_out_contract", new DynamicObject[]{outContractF7}, null);//支出合同实体
|
OperationResult saveOperationResult1 = SaveServiceHelper.saveOperate("ec_out_contract", new DynamicObject[]{outContractF7}, null);//支出合同实体
|
||||||
System.out.println(saveOperationResult1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,9 +22,7 @@ public class SubmitInContractBillOp extends AbstractOperationServicePlugIn {
|
||||||
if (abstractValidator instanceof ContractValidator){
|
if (abstractValidator instanceof ContractValidator){
|
||||||
validators.remove(abstractValidator);
|
validators.remove(abstractValidator);
|
||||||
i--;
|
i--;
|
||||||
logger.info("合同总金额校验已取去除");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.out.println(validators);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue