package com.steerinfo.dil.mapper; import org.apache.ibatis.annotations.Param; import org.mapstruct.Mapper; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.Map; @Mapper public interface BackgroundProcessingMapper { //通过采购订单号关闭一车多趟 int closePurOrderMoreTrips(String purchaseOrderNo); Integer getOrderType(Map map); int updatePurOrderOrgId(Map map); Map getOrderMesByOrderNum(String orderNumber); ArrayList getAllPurOrder(String purchaseOrderNo); int deleteOrders(ArrayList list); int deleteOrderMaterials(ArrayList list); int batchByOrderIdForTotalDelete(ArrayList list); List enFactoryCheck(BigDecimal resultTotalId); List loadCheck(BigDecimal resultTotalId); List unloadCheck(BigDecimal resultTotalId); List weightCheck(BigDecimal resultTotalId); List outFactoryCheck(BigDecimal resultTotalId); List> getEnFactoryResult(@Param("resultTotalId") BigDecimal resultTotalId,@Param("sqe") Integer sqe); List> loadResult(@Param("resultTotalId") BigDecimal resultTotalId,@Param("sqe") Integer sqe); List> unloadResult(@Param("resultTotalId") BigDecimal resultTotalId,@Param("sqe") Integer sqe); List> weightResult(@Param("resultTotalId") BigDecimal resultTotalId,@Param("sqe") Integer sqe); List> outFactoryResult(@Param("resultTotalId") BigDecimal resultTotalId,@Param("sqe") Integer sqe); int deleteEnFactoryUnnecessaryResult(@Param("list") List list); int deleteLoadUnnecessaryResult(@Param("list") List list); int deleteUnloadUnnecessaryResult(@Param("list") List list); int deleteWeightUnnecessaryResult(@Param("list") List list); int deleteOutFactoryUnnecessaryResult(@Param("list") List list); int allowEnfactory(String orderNumber); int updateOrderCanWork(String orderNumber); int updateOrderStatus(Map map); //根据总实绩无差别删除多余计量实绩,仅保留一条 int deleteExtraWeight(BigDecimal resultTotalId); //根据总实绩无差别删除多余装货实绩,仅保留一条 int deleteExtraLoad(BigDecimal resultTotalId); //根据总实绩无差别删除多余卸货实绩,仅保留一条 int deleteExtraUnload(BigDecimal resultTotalId); //插入待传金蝶表格 int insertNotUpload(Map map); //重置钢材打印数量 int resetPrintNumber(Map map); //查询钢材车辆进厂并且没有净重的总实绩 Map getDetailsForEnAndQue(Map map); //清空进厂信息 int clearEnDetails(Map map); }