|  |  |  | 
|---|
|  |  |  | Data d = (Data) data; | 
|---|
|  |  |  | DataV202404 dV202404 = (DataV202404) d.getSubData();//前面任务已经判断不为null | 
|---|
|  |  |  | Object cdObj = dV202404.subData; | 
|---|
|  |  |  | if (cdObj != null) { | 
|---|
|  |  |  | if (cdObj != null && cdObj instanceof DataCd83Vo) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | Object[] objs = this.getTaskResults(TkPreGenObjsV202404.taskId); | 
|---|
|  |  |  | DbSv sv = (DbSv) objs[0]; | 
|---|
|  |  |  | PrController controller = (PrController) objs[1]; | 
|---|
|  |  |  | if (cdObj instanceof DataCd83Vo) { | 
|---|
|  |  |  | DataCd83Vo cdData = (DataCd83Vo) (cdObj); | 
|---|
|  |  |  | this.doDeal(sv, controller, d.getRtuAddr(), dV202404, (DataCd83Vo)cdObj); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.doDeal(sv, controller, d.getRtuAddr(), dV202404, (DataCd83Vo)cdObj); | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | log.error("保存控制器控制器定时报数据时发生异常", e); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param cdData 功能数据 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private void saveOrUpdateLast(DbSv sv, PrController controller, String rtuAddr, DataV202404 dataV202404, DataCd83Vo cdData)throws Exception { | 
|---|
|  |  |  | RmTimingReportLast po = sv.getRmTimingReportLast(rtuAddr) ; | 
|---|
|  |  |  | RmTimingReportLast po = sv.getRmTimingReportLast(controller.getIntakeId()) ; | 
|---|
|  |  |  | if(po == null){ | 
|---|
|  |  |  | po = new RmTimingReportLast(); | 
|---|
|  |  |  | po.controllerId = controller==null?null:controller.getId(); | 
|---|