|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.zy.asrs.entity.OrderDetl; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.mapper.BaseMapper; | 
|---|
|  |  |  | import com.zy.asrs.entity.OrderDetl; | 
|---|
|  |  |  | import com.zy.asrs.entity.param.PrintDataDto; | 
|---|
|  |  |  | 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> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询打印订单明细二维码数据 | 
|---|
|  |  |  | * @param id 订单明细id | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | PrintDataDto selectPrintData(Integer id); | 
|---|
|  |  |  | } | 
|---|