package org.ts.ddcs.DataSaveProcesser;


import org.ts.ddcs.DataTemplate.DataTemplateInterface;
import org.ts.ddcs.Entity.CommandEntity;
import org.ts.ddcs.log.LogHelper;
import org.ts.ddcs.Tool.BytesHelp;
import org.ts.ddcs.Worker.DataProcess;
import org.ts.ddcs.Worker.DataProcessHolder;
import org.ts.ddcs.utils.GBConstants;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.concurrent.LinkedBlockingQueue;

@SuppressWarnings("all")
public class DataSaveProcesserSzyC88 extends DataSaveProcesser {
    @Override
    public void Save(DataTemplateInterface dataTemplateInterface) {
        super.Save(dataTemplateInterface);
        String rtucode = BytesHelp.byte2HexStr(dataTemplateInterface.RtuCode());
        LogHelper.info("SAVE:" + rtucode +" "+dataTemplateInterface.GetFeture());
        LogHelper.info(dataTemplateInterface.getDataInfo());


        //DataProcess.CommandComplete(rtucode);

        //DataProcessHolder.newInstance().dataProcess.SubmitRelayManageTask(dataTemplateInterface);

        //DataProcess.DownloadNotify(rtucode);

    }
}
