change - add库位管理条码功能v2
parent
11e673453c
commit
1baec40d07
@ -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<WmsLocationBarcode> 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue