|
|
@ -6,6 +6,7 @@ import com.win.framework.datapermission.annotation.SubDataScope; |
|
|
|
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
|
|
|
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
|
|
|
import com.win.framework.mybatis.core.util.QueryWrapperUtils; |
|
|
|
import com.win.module.wms.controller.purchaseBarterRequest.vo.PurchaseBarterRequestDetailCreateReqVO; |
|
|
|
import com.win.module.wms.controller.purchaseBarterRequest.vo.PurchaseBarterRequestDetailExportReqVO; |
|
|
|
import com.win.module.wms.controller.purchaseBarterRequest.vo.PurchaseBarterRequestDetailPageReqVO; |
|
|
|
import com.win.module.wms.dal.dataobject.purchaseBarterRequest.PurchaseBarterRequestDetailDO; |
|
|
@ -71,4 +72,11 @@ public interface PurchaseBarterRequestDetailMapper extends BaseMapperX<PurchaseB |
|
|
|
.orderByDesc(PurchaseBarterRequestDetailDO::getId)); |
|
|
|
} |
|
|
|
|
|
|
|
default Long validateExists(PurchaseBarterRequestDetailCreateReqVO createReqVO){ |
|
|
|
return selectCount(new LambdaQueryWrapperX<PurchaseBarterRequestDetailDO>() |
|
|
|
.eq(PurchaseBarterRequestDetailDO::getItemCode, createReqVO.getItemCode()) |
|
|
|
.eq(PurchaseBarterRequestDetailDO::getBatch, createReqVO.getBatch()) |
|
|
|
.eq(PurchaseBarterRequestDetailDO::getLocationCode, createReqVO.getLocationCode()) |
|
|
|
.eq(PurchaseBarterRequestDetailDO::getInventoryStatus, createReqVO.getInventoryStatus())); |
|
|
|
} |
|
|
|
} |
|
|
|