| | |
| | | package cn.iocoder.yudao.module.mes.service.wm.barcode; |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.ObjUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; |
| | |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.validation.annotation.Validated; |
| | | |
| | | import java.util.Collection; |
| | | |
| | | import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception; |
| | | import static cn.iocoder.yudao.module.mes.enums.ErrorCodeConstants.*; |
| | |
| | | barcodeMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteBarcodeByBizTypeAndBizIds(Integer bizType, Collection<Long> bizIds) { |
| | | if (CollUtil.isEmpty(bizIds)) { |
| | | return; |
| | | } |
| | | barcodeMapper.deleteByBizTypeAndBizIds(bizType, bizIds); |
| | | } |
| | | |
| | | private MesWmBarcodeDO validateBarcodeExists(Long id) { |
| | | MesWmBarcodeDO barcode = barcodeMapper.selectById(id); |
| | | if (barcode == null) { |