From b670c64208a10c789bc7ab61eddb1f8528ef8daa Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 18 三月 2024 15:22:41 +0800 Subject: [PATCH] # --- zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/WrkMastServiceImpl.java | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/WrkMastServiceImpl.java b/zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/WrkMastServiceImpl.java index fd1bce3..2d7355e 100644 --- a/zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/WrkMastServiceImpl.java +++ b/zy-asrs-common/src/main/java/com/zy/asrs/common/wms/service/impl/WrkMastServiceImpl.java @@ -1,12 +1,40 @@ package com.zy.asrs.common.wms.service.impl; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.zy.asrs.common.domain.dto.LocRangeDto; import com.zy.asrs.common.wms.mapper.WrkMastMapper; import com.zy.asrs.common.wms.entity.WrkMast; import com.zy.asrs.common.wms.service.WrkMastService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.zy.asrs.framework.common.Cools; import org.springframework.stereotype.Service; + +import java.util.List; @Service("wrkMastService") public class WrkMastServiceImpl extends ServiceImpl<WrkMastMapper, WrkMast> implements WrkMastService { + @Override + public List<WrkMast> selectToBeCompleteData() { + return this.baseMapper.selectToBeCompleteData(); + } + + @Override + public List<WrkMast> selectToBeHistoryData() { + return this.baseMapper.selectToBeHistoryData(); + } + + @Override + public WrkMast selectByBarcode(String barcode, Long hostId) { + List<WrkMast> wrkMasts = this.list(new LambdaQueryWrapper<WrkMast>().eq(WrkMast::getBarcode, barcode).eq(WrkMast::getHostId, hostId)); + if (Cools.isEmpty(wrkMasts)) { + return null; + } + return wrkMasts.get(0); + } + + @Override + public List<WrkMast> selectSameMatnrs(String matnr, String batch, LocRangeDto locRangeDto, Long hostId) { + return this.baseMapper.selectSameLevMatnrs(matnr, batch, locRangeDto, hostId); + } } -- Gitblit v1.9.1