You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.2 KiB
Java
86 lines
2.2 KiB
Java
package com.glxp.api.dao.inv;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.glxp.api.entity.inv.InvCountOrderDetailEntity;
|
|
import com.glxp.api.req.inv.FilterInvCountOrderDetailRequest;
|
|
import com.glxp.api.res.inv.InvCountOrderDetailResponse;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 盘点单据详情Dao
|
|
*/
|
|
public interface InvCountOrderDetailDao extends BaseMapper<InvCountOrderDetailEntity> {
|
|
|
|
/**
|
|
* 根据盘点单号删除单据详情
|
|
*
|
|
* @param orderId
|
|
*/
|
|
void deleteByOrderId(@Param("orderId") String orderId);
|
|
|
|
/**
|
|
* 查询盘点单据详情
|
|
*
|
|
* @param detailRequest
|
|
* @return
|
|
*/
|
|
List<InvCountOrderDetailEntity> filterList(FilterInvCountOrderDetailRequest detailRequest);
|
|
|
|
/**
|
|
* 根据盘点单据ID统计单据详情数量
|
|
*
|
|
* @param orderIdFk
|
|
* @return
|
|
*/
|
|
Long countByOrderIdFk(@Param("orderIdFk") String orderIdFk);
|
|
|
|
/**
|
|
* 查询盘点单据详情
|
|
*
|
|
* @param detailRequest
|
|
* @return
|
|
*/
|
|
List<InvCountOrderDetailResponse> filterCountDetail(FilterInvCountOrderDetailRequest detailRequest);
|
|
|
|
/**
|
|
* 根据产品ID和盘点单号删除条码
|
|
*
|
|
* @param orderIdFk
|
|
* @param productId
|
|
*/
|
|
void deleteByOrderIdAndProductId(@Param("orderIdFk") String orderIdFk, @Param("productId") Long productId);
|
|
|
|
/**
|
|
* 根据单据号和产品DI查询单据详情
|
|
*
|
|
* @param orderIdFk
|
|
* @param nameCode
|
|
* @return
|
|
*/
|
|
InvCountOrderDetailEntity selectOrderDetail(@Param("orderIdFk") String orderIdFk, @Param("nameCode") String nameCode, @Param("batchNo") String batchNo, @Param("produceDate") String produceDate, @Param("expireDate") String expireDate);
|
|
|
|
/**
|
|
* 查询此盘点单的单据详情
|
|
*
|
|
* @param orderId
|
|
* @return
|
|
*/
|
|
List<InvCountOrderDetailEntity> selectByOrderId(@Param("orderId") String orderId);
|
|
|
|
/**
|
|
* 置空盘点相关字段值
|
|
*
|
|
* @param orderId
|
|
*/
|
|
void resetCountFiledValue(@Param("orderId") String orderId);
|
|
|
|
/**
|
|
* 批量更新盘点单据详情
|
|
*
|
|
* @param list
|
|
*/
|
|
int updateBatch(List<InvCountOrderDetailEntity> list);
|
|
|
|
} |