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.
79 lines
1.8 KiB
Java
79 lines
1.8 KiB
Java
package com.glxp.api.dao.inv;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.glxp.api.entity.inv.InvCountCodesEntity;
|
|
import com.glxp.api.req.inv.FilterInvCountCodesRequest;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 盘点单据码表Dao
|
|
*/
|
|
public interface InvCountCodesDao extends BaseMapper<InvCountCodesEntity> {
|
|
|
|
/**
|
|
* 根据盘点单号删除盘点单据码详情
|
|
*
|
|
* @param orderId
|
|
*/
|
|
void deleteByOrderId(@Param("orderId") String orderId);
|
|
|
|
/**
|
|
* 查询盘点单据码详情
|
|
*
|
|
* @param codesRequest
|
|
* @return
|
|
*/
|
|
List<InvCountCodesEntity> filterList(FilterInvCountCodesRequest codesRequest);
|
|
|
|
/**
|
|
* 根据盘点单据ID统计条码数量
|
|
*
|
|
* @param orderIdFk
|
|
* @return
|
|
*/
|
|
Long countByOrderIdFk(@Param("orderIdFk") String orderIdFk);
|
|
|
|
/**
|
|
* 根据单据号统计条码数量
|
|
*
|
|
* @param orderIdFk
|
|
* @return
|
|
*/
|
|
Long countByOrderId(@Param("orderIdFk") String orderIdFk);
|
|
|
|
/**
|
|
* 根据条码和盘点单号统计数量
|
|
*
|
|
* @param code
|
|
* @param orderIdFk
|
|
* @return
|
|
*/
|
|
Long selectCountByCodeAndOrderId(@Param("code") String code, @Param("orderIdFk") String orderIdFk);
|
|
|
|
/**
|
|
* 清空盘点单据相关字段
|
|
*
|
|
* @param orderId
|
|
*/
|
|
void resetCountFiledValue(@Param("orderId") String orderId);
|
|
|
|
/**
|
|
* 根据盘点单号和产品ID查询码表
|
|
*
|
|
* @param orderIdFk
|
|
* @param productId
|
|
* @return
|
|
*/
|
|
List<InvCountCodesEntity> selectByOrderIdAndProductId(@Param("orderIdFk") String orderIdFk, @Param("productId") String productId);
|
|
|
|
/**
|
|
* 查询盘点单据码详情集合
|
|
*
|
|
* @param codesRequest
|
|
* @return
|
|
*/
|
|
List<String> selectCodes(FilterInvCountCodesRequest codesRequest);
|
|
|
|
} |