|
@@ -572,7 +572,9 @@ public class CasRecrApplyFormPlugin extends AbstractBillPlugIn implements Before
|
|
|
.and("datastatus",QCP.not_equals,"-1")
|
|
|
.and("dutyworkrole.boid",QCP.equals,pkValue);
|
|
|
DynamicObject[] haosDutyorgdetails = BusinessDataServiceHelper.load("haos_muldimendetail", "id,staff,dutyworkrole,dutyworkrole.boid,yearstaff", new QFilter[]{qFilter3});
|
|
|
- num = haosDutyorgdetails[0].get("yearstaff");
|
|
|
+ if(haosDutyorgdetails.length > 0) {
|
|
|
+ num = haosDutyorgdetails[0].get("yearstaff");
|
|
|
+ }
|
|
|
}
|
|
|
return num;
|
|
|
}
|