1.功能开发

This commit is contained in:
zhangzhiguo 2025-01-13 09:49:01 +08:00
parent a3399800c3
commit 1feb440837
2 changed files with 10 additions and 1 deletions

View File

@ -83,6 +83,10 @@ public class DailyreimbursHomeCheckOp extends AbstractOperationServicePlugIn {
"id,zcgj_month_times as monthTime",
visitSetFilterArray, null
);
if(homeDataSet == null || homeDataSet.isEmpty()){
String message = String.format("提交人没有往来居家配置。");
this.addFatalErrorMessage(extendedDataEntity, message);
}
int monthTime = 0;
for (Row row : homeDataSet) {
monthTime = row.getInteger("monthTime");

View File

@ -83,15 +83,20 @@ public class TripreimbursebillIsHomeCheckOp extends AbstractOperationServicePlug
"id,zcgj_month_times as monthTime",
visitSetFilterArray, null
);
if(homeDataSet == null || homeDataSet.isEmpty()){
String message = String.format("提交人没有往来居家配置。");
this.addFatalErrorMessage(extendedDataEntity, message);
}
int monthTime = 0;
for (Row row : homeDataSet) {
monthTime = row.getInteger("monthTime");
}
if(monthTime != 0){
DynamicObjectCollection tripentry = dataEntity.getDynamicObjectCollection("zcgj_homeentity");//oa流程分录
boolean isOk=true;
Map<String,Integer> homeentityCountMap = new HashMap<>();
int i = 1;
boolean isOk=true;
for (DynamicObject dynamicObject : tripentry) {
Date bxmonth = dynamicObject.getDate("zcgj_bxmonth");
String yearMonth = dateFormat.format(bxmonth);