From 1baec40d0777600939574c8630d4930ea77fea89 Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 2 Aug 2024 09:07:45 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20add=E5=BA=93=E4=BD=8D=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=9D=A1=E7=A0=81=E5=8A=9F=E8=83=BDv2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/WmsLocationBarcodeServiceImpl.java | 89 +++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 hw-modules/hw-wms/src/main/java/com/hw/wms/service/impl/WmsLocationBarcodeServiceImpl.java diff --git a/hw-modules/hw-wms/src/main/java/com/hw/wms/service/impl/WmsLocationBarcodeServiceImpl.java b/hw-modules/hw-wms/src/main/java/com/hw/wms/service/impl/WmsLocationBarcodeServiceImpl.java new file mode 100644 index 0000000..d2d6618 --- /dev/null +++ b/hw-modules/hw-wms/src/main/java/com/hw/wms/service/impl/WmsLocationBarcodeServiceImpl.java @@ -0,0 +1,89 @@ +package com.hw.wms.service.impl; + +import java.util.List; + +import com.hw.common.core.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.hw.wms.mapper.WmsLocationBarcodeMapper; +import com.hw.wms.domain.WmsLocationBarcode; +import com.hw.wms.service.IWmsLocationBarcodeService; + +/** + * 库位关联条码信息Service业务层处理 + * + * @author Yinq + * @date 2024-07-31 + */ +@Service +public class WmsLocationBarcodeServiceImpl implements IWmsLocationBarcodeService { + @Autowired + private WmsLocationBarcodeMapper wmsLocationBarcodeMapper; + + /** + * 查询库位关联条码信息 + * + * @param locationBarcodeId 库位关联条码信息主键 + * @return 库位关联条码信息 + */ + @Override + public WmsLocationBarcode selectWmsLocationBarcodeByLocationBarcodeId(Long locationBarcodeId) { + return wmsLocationBarcodeMapper.selectWmsLocationBarcodeByLocationBarcodeId(locationBarcodeId); + } + + /** + * 查询库位关联条码信息列表 + * + * @param wmsLocationBarcode 库位关联条码信息 + * @return 库位关联条码信息 + */ + @Override + public List selectWmsLocationBarcodeList(WmsLocationBarcode wmsLocationBarcode) { + return wmsLocationBarcodeMapper.selectWmsLocationBarcodeList(wmsLocationBarcode); + } + + /** + * 新增库位关联条码信息 + * + * @param wmsLocationBarcode 库位关联条码信息 + * @return 结果 + */ + @Override + public int insertWmsLocationBarcode(WmsLocationBarcode wmsLocationBarcode) { + wmsLocationBarcode.setCreateTime(DateUtils.getNowDate()); + return wmsLocationBarcodeMapper.insertWmsLocationBarcode(wmsLocationBarcode); + } + + /** + * 修改库位关联条码信息 + * + * @param wmsLocationBarcode 库位关联条码信息 + * @return 结果 + */ + @Override + public int updateWmsLocationBarcode(WmsLocationBarcode wmsLocationBarcode) { + return wmsLocationBarcodeMapper.updateWmsLocationBarcode(wmsLocationBarcode); + } + + /** + * 批量删除库位关联条码信息 + * + * @param locationBarcodeIds 需要删除的库位关联条码信息主键 + * @return 结果 + */ + @Override + public int deleteWmsLocationBarcodeByLocationBarcodeIds(Long[] locationBarcodeIds) { + return wmsLocationBarcodeMapper.deleteWmsLocationBarcodeByLocationBarcodeIds(locationBarcodeIds); + } + + /** + * 删除库位关联条码信息信息 + * + * @param locationBarcodeId 库位关联条码信息主键 + * @return 结果 + */ + @Override + public int deleteWmsLocationBarcodeByLocationBarcodeId(Long locationBarcodeId) { + return wmsLocationBarcodeMapper.deleteWmsLocationBarcodeByLocationBarcodeId(locationBarcodeId); + } +}