package com.steerinfo.dil.mapper; import io.swagger.models.auth.In; import org.apache.ibatis.annotations.Param; import org.mapstruct.Mapper; import java.math.BigDecimal; import java.util.List; import java.util.Map; /** * 通用接口 * @ author :TXF * @ time :2021/10/19 18:03 */ @Mapper public interface UniversalMapper { int updateLineSqe(Map map); //通过运输订单号查询订单信息 Map getTiHuoDan(String orderNumber); //通过运输订单号查找订单子表物资信息 List> getOOMMes(String orderNumber); //模糊查询所有物资 List> queryAPOMaterialByLike(Map map); //模糊查询发货单位 List> querySupplierByLike(Map map); //模糊查询承运商的运力信息 List> getAllCapacityByCarrierLike(Map map); //通过运输订单ID查询物资子表(针对多拼) List> getMaterialMesByOrderId(Map map); //通过订单ID查询订单下所有物资 List> getOrderMaterialMesByOrderId(BigDecimal orderId); //通过物资ID查询该物资的发货单位信息 List> getSupplierMesByMaterialId(Map map); //模糊查询所有的卸货点信息 List> getUnloadingMesByLike(Map map); //模糊查询所有物资 List> queryMaterialByLike(Map map); //查询所有的批次及其关联的采购订单号 List> getBatchAndOrderMes(Map map); //承运商边输边查 List> getCarrierMesByLike(String index); //边输边查发货单位 List> getSupplierMesByLike(String index); //边输边查收货单位 List> getConsigneeByLike(String index); // 收货单位 List> queryConsigneeByLike(Map mapValue); List> getConsigneeHistory(); // 所有物资 List> selectAllMaterialName(Map mapValue); // 所有承运商 List> getCarrierListByLike(Map mapValue); //查卸货点 List> selectUnloadingPoint(String index1); // 查询所有门岗 List> getAllGatepost(); //获取承运商下拉框 List> getAllCarrierIdForSso(); //根据承运商id获取userId String getUserIdbyCarrierId(Integer carrierId); // 模糊查询收货单位 List> getConsigneeListByLike(Map mapValue); //模糊查询所有发货单位 List> queryAllSupplierByLike(Map mapValue); // 通过ssoId查询承运商id BigDecimal getCarrierIdBySSO(String carrierSsoId); Integer getSaleOrderStatus(BigDecimal orderId); //通过运输订单号查询订单类型和ID Map getOrderMesByOrderNumber(String orderNumber); //查询所有的门岗(下拉框) List> getAllCalculateMes(); //查询所有的焦炭子类 List> getAllMaterialCoke(); //边输边查发货单位 List> getCapacityByLike(String index); //模糊查询批次品名 List> getBatchByLike(String index); // 根据运力id查询所有承运商 List> getCarrierByCapacityId(BigDecimal capacityId); // 根据收货客户查询承运商 Map getCarrierByConsignee(String consigneeName); // 确认车牌号与承运商关系是否存在 BigDecimal isInCapacityCarrier(Map mapValue); BigDecimal isInCapacity(Map mapValue); List> getOilFormula(Map mapValue); //边输边查用车单位 List> getRequireUnitName(String index); //获得港口下拉框 List> getPortId(); //根据车牌号查询正在运输的订单号 Map getOrderNumber(String num); //查询车牌号 List> getCapacityNumber(String num); //根据订单Id查询物资 List> getMaterialIdByOrderId(Integer orderId); //边输边查物资 List> getMaterialByLike(String index); Map getRmsCarrierByCarrierSsoId(String carrierSsoId); //边输边查物资 List> getSteelMaterial(Map mapValue); // 得到所有省份 List> getAllProvince(); // 通过省份得到省份下面的市 List> getDistrictByProvince(String addressProvince); // 通过市得到市下面的区和县 List> getTownByDistrict(String addressDistrict); // 通过省市县得到具体地址 List> getPlaceByAllAddress(Map mapValue); // 得到销售员下拉 List> getSalerList(); // 获得销售组 String getSaleArea(BigDecimal receiveId); List> getWarranty(String orderNumber); List> getCapacityType(Map mapValue); Integer getPlanCount(); List> getTransRange(); BigDecimal getResultMaterialId(String orderNumber); Map selectNum(String orderNumber); List> selectOutbound(String orderNumber); List> getNoListCarrier(); //通过车牌号查询未接收的订单数量(用于APP显示未接收小红点) Integer getNotReceiveOrderQuantity(String capacityNumber); List> getXiNanCarrier(); //边输边查发站到站 List> getArrivalByLike(String index); //查询已下发订单数量 -->APP小红点 Integer getOrderNum(String capacityNumber); //仓库月台下拉框 List> getSteelWarehouse(); List> getShipNameMesByLike(Map map); //查询运力联系方式 Map getCapacityTel(BigDecimal capacityId); // 边输边查收货客户 List> getConsigneeMesByLike(String s); Map getConsigneeByuserid(String userId); int updateSaleOrderStatusById(BigDecimal saleOrderId); // 修改司机电话 int updateDriverTel(Map map); //同步修改到运力 int updateCapacityDriverTel(int orderId,String driverTel); int getQueueCount(); // 下拉下单客户的历史使用过的地址 List> getReceiverAllPlaceUsed(Integer receiveId); // 片区边输边查 List> getSaleAreaByLike(String index); // 判断收货客户是否绑定片区 BigDecimal isReceiveHaveArea(Integer receiveId); // 绑定片区 int bandSaleArea(Map map); int getSteelOrderNum(); // 边输边查收货地址 List> getPlaceAndAddress(String index); // 边输边查物资名称 List> getMaterialNameLike(String index); // 边输边查仓库名称 List> getWareHouseNameLike(String index); // 边输边查物资规格型号 List> getSpecificationModelLike(Map map); int closePassedOrder(); List> findPassedOrder(); List> getInwardWeightMaterial(Map mapValue); List> selectPurchaseOrderForShip(Map map); List> getBatchOfNotice(Map map); List> findBatchHavingLoad(Map map); List> getInwardSendStation(); List> getInwardInboundResult(Map map); List> getMaterialList(Map map1); List> getLuhaoNum(@Param("orderId") BigDecimal orderId, @Param("materialId") BigDecimal materialId); //查询多拼数据 BigDecimal queueMore(BigDecimal orderId); //查询实绩 BigDecimal sumNetWeight(BigDecimal orderId); //状态设为2 int updateStatusTwo(BigDecimal orderId); //状态设为7 int updateStatusSeven(BigDecimal orderId); //查询单拼数据 BigDecimal queueSingle(BigDecimal orderId); //删除单拼数据 int delectQueueS(BigDecimal capacityIdS); //删除多拼数据 int delectQueueM(BigDecimal capacityIdM); Map getDispachSwitch(); int updateDispachSwitch(Map map); String getReleaseFlag(); Map getConsigneeInfo(String consigneeName); List getColumnNoRoutList(Map map); Map getSteelReportDetailsBySmId(BigDecimal saleOrderMaterialId); List getColumnHiddenData(Map map); List> getColumnShowData(Map map); List> getColumnAllData(Map map); }