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.1.11
Show newest version
package io.github.linmoure;

import com.alibaba.fastjson.JSON;
import io.github.linmoure.params.administration.AdministrationManage;
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.ContainerFiling;
import io.github.linmoure.params.container.Information;
import io.github.linmoure.params.declare.GroceriesDeclare;
import io.github.linmoure.params.process.ProcessInfo;
import io.github.linmoure.params.release.Release;
import io.github.linmoure.params.remove.ChineseRemove;
import io.github.linmoure.params.remove.MongoliaRemove;
import io.github.linmoure.params.warehouseReceipt.WarehouseReceipt;
import io.github.linmoure.params.warehouseReceipt.WarehouseReceiptRemove;
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 process 过卡记录对象
     */
    public static void processIn(ProcessInfo process) {
        SenderUtils.sendGeneral("processInfoIn", JSON.parseObject(JSON.toJSONString(process)));
    }

    /**
     * 散杂货申报
     *
     * @param declare 散杂货申报对象
     */
    public static void groceriesIn(GroceriesDeclare declare) {
        SenderUtils.sendGeneral("groceriesIn", JSON.parseObject(JSON.toJSONString(declare)));
    }


    /**
     * 散杂货申报
     *
     * @param chineseRemove 散杂货申报对象
     */
    public static void groceriesRemove(ChineseRemove chineseRemove) {
        SenderUtils.sendGeneral("groceriesRemove", JSON.parseObject(JSON.toJSONString(chineseRemove)));
    }

    /**
     * 同步集装箱进厂
     *
     * @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 channel 同步通道对象
     */
    public static void channelIn(Channel channel) {
        SenderUtils.sendGeneral("channelIn", JSON.parseObject(JSON.toJSONString(channel)));
    }

    /**
     * 同步车辆备案
     *
     * @param administrationManage 同步车辆备案对象
     */
    public static void administrationManageIn(AdministrationManage administrationManage) {
        SenderUtils.sendGeneral("administrationManageIn", JSON.parseObject(JSON.toJSONString(administrationManage)));
    }

    /**
     * 同步集装箱备案
     *
     * @param containerFiling 同步集装箱备案
     */
    public static void containerFilingManageIn(ContainerFiling containerFiling) {
        SenderUtils.sendGeneral("containerFilingManageIn", JSON.parseObject(JSON.toJSONString(containerFiling)));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy