|  |  | 
 |  |  | package com.zy.asrs.mapper; | 
 |  |  |  | 
 |  |  | import com.zy.asrs.entity.OrderDetl; | 
 |  |  | import com.baomidou.mybatisplus.mapper.BaseMapper; | 
 |  |  | import com.zy.asrs.entity.OrderDetl; | 
 |  |  | import org.apache.ibatis.annotations.Mapper; | 
 |  |  | import org.apache.ibatis.annotations.Param; | 
 |  |  | import org.springframework.stereotype.Repository; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  |  | 
 |  |  | @Mapper | 
 |  |  | @Repository | 
 |  |  | public interface OrderDetlMapper extends BaseMapper<OrderDetl> { | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 批量存储单据明细 | 
 |  |  |      */ | 
 |  |  |     int batchDetls(@Param("list") List<OrderDetl> list); | 
 |  |  |  | 
 |  |  |     OrderDetl selectItem(@Param("orderId") Long orderId, @Param("matnr") String matnr, @Param("batch") String batch); | 
 |  |  |  | 
 |  |  |     OrderDetl selectItemByOrderNo(@Param("orderNo") String orderNo, @Param("matnr") String matnr, @Param("batch") String batch); | 
 |  |  |  | 
 |  |  |     List<OrderDetl> selectWorkingDetls(Long orderId); | 
 |  |  |  | 
 |  |  |     List<OrderDetl> getPakoutPage(Map<String, Object> map); | 
 |  |  |  | 
 |  |  |     Integer getPakoutPageCount(Map<String, Object> map); | 
 |  |  |  | 
 |  |  |     int increase(@Param("orderId")Long orderId, @Param("matnr")String matnr, @Param("batch")String batch, @Param("qty")Double qty); | 
 |  |  |  | 
 |  |  |     int decrease(@Param("orderNo")String orderNo, @Param("matnr")String matnr, @Param("batch")String batch, @Param("qty")Double qty); | 
 |  |  |  | 
 |  |  |     int modifyStatus(@Param("orderId") Long orderId, @Param("status")Integer status); | 
 |  |  |  | 
 |  |  |     int addToLogTable(OrderDetl orderDetl); | 
 |  |  |  | 
 |  |  |     int increaseQtyByOrderNo(@Param("orderNo")String orderNo, @Param("matnr")String matnr, @Param("batch")String batch, @Param("qty")Double qty); | 
 |  |  |  | 
 |  |  |     int increaseWorkQty(@Param("orderId")Long orderId, @Param("matnr")String matnr, @Param("batch")String batch, @Param("workQty")Double workQty); | 
 |  |  |  | 
 |  |  |     void updateOrderDetlByGroupNo(@Param("orderNo") String orderNo,@Param("brand") String brand, @Param("count") double count); | 
 |  |  |  | 
 |  |  |     void updateOrderDetlByModel(@Param("orderNo") String orderNo,@Param("model") String model, @Param("count") double count); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     void updateOrderDetlQtyByGroupNo(@Param("orderNo") String orderNo,@Param("brand") String brand); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 按包装组号标记盘点记录异常 | 
 |  |  |      */ | 
 |  |  |     void updateCheckExceptionByGroup(@Param("groups") List<String> groups); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 按包装组号更新订单明细状态 | 
 |  |  |      */ | 
 |  |  |     void updateOrderDetlStatusByPackageNo(@Param("brands") List<String> brands,@Param("status") int status); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 查询跨巷道移库的未执行的库位 | 
 |  |  |      */ | 
 |  |  |     List<OrderDetl> selectMoveLocDetl(); | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 获取包装组号列表 | 
 |  |  |      */ | 
 |  |  |     List<String> selectDetlList(@Param("orderNo") String orderNo); | 
 |  |  |  | 
 |  |  |     List<OrderDetl> selectByBrand(@Param("brand") String brand); | 
 |  |  |  | 
 |  |  |     List<OrderDetl> selectByModel(@Param("model") String model); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     OrderDetl selectByOrderNoAndPkgGroupNoAndVolumeNo(@Param("orderNo") String orderNo,@Param("brand") String brand,@Param("model") String model); | 
 |  |  |  | 
 |  |  |     OrderDetl selectByOrderNoAndVolumeNo(@Param("orderNo") String orderNo,@Param("model") String model); | 
 |  |  |  | 
 |  |  | } |