| package com.dy.rtuMw.server.rtuData.p206V202404; | 
|   | 
| import com.dy.pipIrrGlobal.pojoPr.PrControllerTramp; | 
| import com.dy.rtuMw.server.rtuData.TaskSurpport; | 
| import com.dy.rtuMw.server.rtuData.dbSv.DbSv; | 
| import org.apache.logging.log4j.LogManager; | 
| import org.apache.logging.log4j.Logger; | 
|   | 
| import java.util.Date; | 
|   | 
| /** | 
|  * @Author liurunyu | 
|  * @Date 2024/5/8 14:18 | 
|  */ | 
| public class TkDealControllerTrampV202404 extends TaskSurpport { | 
|   | 
|     private static final Logger log = LogManager.getLogger(TkDealControllerTrampV202404.class.getName()) ; | 
|   | 
|     //类ID,一定与Tree.xml配置文件中配置一致 | 
|     public static final String taskId = "TkDealControllerTrampV202404" ; | 
|   | 
|     /** | 
|      * 执行节点任务 | 
|      * @param data 需要处理的数据 | 
|      */ | 
|     @Override | 
|     public void execute(Object data) { | 
|         Object[] objs = this.getTaskResults(TkPreGenObjsV202404.taskId) ; | 
|         PrControllerTramp tramp = (PrControllerTramp)objs[2] ; | 
|         if(tramp != null){ | 
|             DbSv sv = (DbSv)objs[0] ; | 
|             if(tramp.id == null){ | 
|                 sv.savePrConctrollerTramp(tramp); | 
|             }else{ | 
|                 tramp.findDt = new Date() ; | 
|                 sv.updatePrConctrollerTramp(tramp) ; | 
|             } | 
|         } | 
|     } | 
| } |