All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.linmoure.GeneralSender Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package io.github.linmoure;

import com.alibaba.fastjson.JSON;
import io.github.linmoure.params.billOfLadManage.BillOfLadManage;
import io.github.linmoure.params.billOfLadManage.BillOfLadManageRemove;
import io.github.linmoure.params.channel.Channel;
import io.github.linmoure.params.container.Information;
import io.github.linmoure.params.export.ExportDocuments;
import io.github.linmoure.params.operating.OperatingCraneDTO;
import io.github.linmoure.params.operating.OperatingCraneRemove;
import io.github.linmoure.params.release.Release;
import io.github.linmoure.params.remove.MongoliaRemove;
import io.github.linmoure.params.warehouseReceipt.WarehouseReceipt;
import io.github.linmoure.params.warehouseReceipt.WarehouseReceiptContainerInfo;
import io.github.linmoure.params.warehouseReceipt.WarehouseReceiptContainerRemoveInfo;
import io.github.linmoure.params.warehouseReceipt.WarehouseReceiptRemove;
import io.github.linmoure.params.yard.YardRegion;
import io.github.linmoure.utils.SenderUtils;

/**
 * @author 李衡林
 */
public class GeneralSender {

    /**
     * 入库单新增
     *
     * @param warehouseReceiptIn 入库单新增对象
     */
    public static void warehouseReceiptIn(WarehouseReceipt warehouseReceiptIn) {
        SenderUtils.sendGeneral("warehouseReceiptIn", JSON.parseObject(JSON.toJSONString(warehouseReceiptIn)));
    }

    /**
     * 入库单删除
     *
     * @param warehouseReceiptRemove 入库单删除对象
     */
    public static void warehouseReceiptRemove(WarehouseReceiptRemove warehouseReceiptRemove) {
        SenderUtils.sendGeneral("warehouseReceiptRemove", JSON.parseObject(JSON.toJSONString(warehouseReceiptRemove)));
    }

    /**
     * 出库单新增
     *
     * @param billOfLadManage 出库单新增对象
     */
    public static void billOfLadManageIn(BillOfLadManage billOfLadManage) {
        SenderUtils.sendGeneral("billOfLadManageIn", JSON.parseObject(JSON.toJSONString(billOfLadManage)));
    }

    /**
     * 出库单删除
     *
     * @param billOfLadManage 出库单新增对象
     */
    public static void billOfLadManageRemove(BillOfLadManageRemove billOfLadManage) {
        SenderUtils.sendGeneral("billOfLadManageRemove", JSON.parseObject(JSON.toJSONString(billOfLadManage)));
    }

    /**
     * 报关单号
     *
     * @param release 报关单号对象
     */
    public static void releaseIn(Release release) {
        SenderUtils.sendGeneral("checkReleaseIn", JSON.parseObject(JSON.toJSONString(release)));
    }

    /**
     * 报关单号
     *
     * @param mongoliaRemove 报关单号对象
     */
    public static void releaseRemove(MongoliaRemove mongoliaRemove) {
        SenderUtils.sendGeneral("checkReleaseRemove", JSON.parseObject(JSON.toJSONString(mongoliaRemove)));
    }

    /**
     * 同步通道
     *
     * @param channel 同步通道对象
     */
    public static void channelIn(Channel channel) {
        SenderUtils.sendGeneral("channelIn", JSON.parseObject(JSON.toJSONString(channel)));
    }

    /**
     * 集装箱进出厂实时同步
     *
     * @param warehouseReceiptContainerInfo 集装箱信息
     */
    public static void synchronizeContainerInformation(WarehouseReceiptContainerInfo warehouseReceiptContainerInfo) {
        SenderUtils.sendGeneral("synchronizeContainerInformation", JSON.parseObject(JSON.toJSONString(warehouseReceiptContainerInfo)));
    }

    /**
     * 集装箱进出厂删除
     *
     * @param warehouseReceiptContainerRemoveInfo 集装箱信息
     */
    public static void synchronizeContainerInformationRemove(WarehouseReceiptContainerRemoveInfo warehouseReceiptContainerRemoveInfo) {
        SenderUtils.sendGeneral("synchronizeContainerInformation", JSON.parseObject(JSON.toJSONString(warehouseReceiptContainerRemoveInfo)));
    }


    /**
     * 同步集装箱进厂
     *
     * @param information 同步集装箱备案
     */
    public static void containerInformationIn(Information information) {
        SenderUtils.sendGeneral("containerInformationIn", JSON.parseObject(JSON.toJSONString(information)));
    }

    /**
     * 删除集装箱进厂
     *
     * @param mongoliaRemove 删除集装箱进厂
     */
    public static void containerInformationRemove(MongoliaRemove mongoliaRemove) {
        SenderUtils.sendGeneral("containerInformationRemove", JSON.parseObject(JSON.toJSONString(mongoliaRemove)));
    }


    /**
     * 集装箱进出厂实时同步
     *
     * @param exportDocuments 出口货物信息
     */
    public static void exportDocumentsIn(ExportDocuments exportDocuments) {
        SenderUtils.sendGeneral("exportDocumentsIn", JSON.parseObject(JSON.toJSONString(exportDocuments)));
    }


    /**
     * 集装箱倒装作业同步
     *
     * @param operatingCrane 作业信息
     */
    public static void operatingCraneIn(OperatingCraneDTO operatingCrane) {
        SenderUtils.sendGeneral("operatingCraneIn", JSON.parseObject(JSON.toJSONString(operatingCrane)));
    }

    /**
     * 集装箱倒装作业同步
     *
     * @param operatingCrane 作业删除
     */
    public static void operatingCraneRemove(OperatingCraneRemove operatingCrane) {
        SenderUtils.sendGeneral("operatingCraneRemove", JSON.parseObject(JSON.toJSONString(operatingCrane)));
    }


    /**
     * 集装箱入堆场
     *
     * @param yardRegionIn 集装箱对象
     */
    public static void yardRegionIn(YardRegion yardRegionIn) {
        SenderUtils.sendGeneral("yardRegionIn", JSON.parseObject(JSON.toJSONString(yardRegionIn)));
    }

    /**
     * 集装箱出堆场
     *
     * @param yardRegionOut 集装箱对象
     */
    public static void yardRegionOut(YardRegion yardRegionOut) {
        SenderUtils.sendGeneral("yardRegionOut", JSON.parseObject(JSON.toJSONString(yardRegionOut)));
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy