|
|
|
@ -61,7 +61,8 @@ public class JobAndPlanCron extends BaseCronJob {
|
|
|
|
|
break;
|
|
|
|
|
case "3":
|
|
|
|
|
staffPO = getStaffMapper().getStaffsByParamId(Integer.parseInt(type), null, null, String.valueOf(id));
|
|
|
|
|
rs.executeQuery("select count(1) as fonjob from jcl_org_map ftype=? and id=? and fdateend>?");
|
|
|
|
|
|
|
|
|
|
rs.executeQuery("select count(1) as fonjob from jcl_org_map where ftype=4 and fparentid="+id+" and fdateend>"+currentDate);
|
|
|
|
|
if (rs.next()) {
|
|
|
|
|
getJclOrgMapMapper().updateMapById(id, null, Integer.valueOf(rs.getString("fonjob")), date);
|
|
|
|
|
}
|
|
|
|
@ -87,9 +88,9 @@ public class JobAndPlanCron extends BaseCronJob {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
JclOrgMap jclOrgMap = getJclOrgMapMapper().getSumPlanAndJobByFParentId(date, fparentid);
|
|
|
|
|
getJclOrgMapMapper().updateMapById(Integer.parseInt(fparentid), jclOrgMap.getFPlan(), null, date);
|
|
|
|
|
getJclOrgMapMapper().updateMapById(Integer.parseInt(fparentid), jclOrgMap.getFPlan(), jclOrgMap.getFOnJob(), date);
|
|
|
|
|
|
|
|
|
|
if ("-1".equals(fparentid)) {
|
|
|
|
|
if (!"-1".equals(fparentid)) {
|
|
|
|
|
countJobAndPlans(ftype, Integer.parseInt(fparentid), String.valueOf(currentDate));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|