LandBusListService.java 1.9 KB
package com.sy.service;


import com.sy.model.GatherInfo;
import com.sy.model.LandBusinessTypeList;

import java.util.List;

public interface LandBusListService {

    List<LandBusinessTypeList> selectByFrameNoAndType(String frameNo, String flag);

    int updateById(LandBusinessTypeList list);

    int saveList(LandBusinessTypeList list);

    /**
     *
     * @param frameNo 车牌号
     * @param barcode 二维码
     * @param station 场站ID/号
     * @param aisle 通道ID/号
     * @param flag 进出业务类型标识I/E
     * @return
     */
    LandBusinessTypeList selectForOne(String frameNo, String barcode, String station, String aisle, String flag);

    List<LandBusinessTypeList> selectByBarcode(String barcode);

    List<LandBusinessTypeList> selectByBarcodeWithE(String barcode);

    int updateByBarcode(String barcode);

    List<LandBusinessTypeList> selectMessageId(String messageId);
    //查询进场过磅重量,货物重量
    List<LandBusinessTypeList> selectwt(String frameNo, String barcode, String station, String flag);
    //失效已进场或出场的申请记录
    int updateisvalid(String frameNo, String barcode, String station, String flag);
    //查询出场申请为最后一个
    int selectlaststation(String frameNo, String barcode);

    /**
     * 根据gatherInfo获取对应的流转申请
     * @return 对应通道的流转申请信息
     */
    LandBusinessTypeList getLandBusinessTypeListByGather(GatherInfo info);

    List<LandBusinessTypeList> getLandBusinessTypeListsByGather(GatherInfo info);

    /**
     * 首次离场查询
     * @param barcode           二维码
     * @param trailerFrameNo    车牌
     * @param turnoverflag      进出标识
     * @return 0 代表首次离场,大于0代表非首次离场已经产生过离场记录
     */
    int selectFirstLeave(String trailerFrameNo, String barcode, String turnoverflag);

}