2026-08-19 16:24:02 +08:00
|
|
|
package com.baiyue.warehouse.mapper;
|
|
|
|
|
|
2026-08-28 23:01:52 +08:00
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
2026-08-19 16:24:02 +08:00
|
|
|
import com.baiyue.warehouse.entity.WarehousePalletBindingEntity;
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
2026-08-28 23:01:52 +08:00
|
|
|
@Mapper
|
2026-08-19 16:24:02 +08:00
|
|
|
public interface WarehousePalletBindingMapper extends BaseMapper<WarehousePalletBindingEntity> {
|
|
|
|
|
@Select("SELECT * FROM wh_pallet_business_binding WHERE customer_id=#{customerId} AND warehouse_id=#{warehouseId} " +
|
|
|
|
|
"AND business_type=#{businessType} AND business_id=#{businessId} LIMIT 1")
|
|
|
|
|
WarehousePalletBindingEntity find(@Param("customerId") long customerId, @Param("warehouseId") long warehouseId,
|
|
|
|
|
@Param("businessType") String businessType, @Param("businessId") String businessId);
|
|
|
|
|
}
|