4 天以前 84ac2b6b12bc3e5de072661fb25e87877c01d0d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package cn.iocoder.yudao.module.mes.service.wm.barcode;
 
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.mes.controller.admin.wm.barcode.vo.MesWmBarcodePageReqVO;
import cn.iocoder.yudao.module.mes.controller.admin.wm.barcode.vo.MesWmBarcodeSaveReqVO;
import cn.iocoder.yudao.module.mes.dal.dataobject.wm.barcode.MesWmBarcodeDO;
import jakarta.validation.Valid;
 
import java.util.Collection;
 
/**
 * MES 条码清单 Service 接口
 *
 * @author 芋道源码
 */
public interface MesWmBarcodeService {
 
    /**
     * 创建条码
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createBarcode(@Valid MesWmBarcodeSaveReqVO createReqVO);
 
    /**
     * 更新条码
     *
     * @param updateReqVO 更新信息
     */
    void updateBarcode(@Valid MesWmBarcodeSaveReqVO updateReqVO);
 
    /**
     * 删除条码
     *
     * @param id 编号
     */
    void deleteBarcode(Long id);
 
    /**
     * 基于业务类型和业务编号数组,删除条码
     *
     * @param bizType 业务类型
     * @param bizIds 业务编号数组
     */
    void deleteBarcodeByBizTypeAndBizIds(Integer bizType, Collection<Long> bizIds);
 
    /**
     * 获得条码
     *
     * @param id 编号
     * @return 条码
     */
    MesWmBarcodeDO getBarcode(Long id);
 
    /**
     * 获得条码分页
     *
     * @param pageReqVO 分页参数
     * @return 条码分页
     */
    PageResult<MesWmBarcodeDO> getBarcodePage(MesWmBarcodePageReqVO pageReqVO);
 
    /**
     * 根据业务类型和业务编号获取条码
     *
     * @param bizType 业务类型
     * @param bizId 业务编号
     * @return 条码
     */
    MesWmBarcodeDO getBarcodeByBizTypeAndBizId(Integer bizType, Long bizId);
 
    /**
     * 自动生成条码
     *
     * @param bizType 业务类型
     * @param bizId 业务编号
     * @param bizCode 业务编码
     * @param bizName 业务名称
     */
    void autoGenerateBarcode(Integer bizType, Long bizId, String bizCode, String bizName);
 
    /**
     * 生成条码内容(供前端预览使用)
     *
     * @param bizType 业务类型
     * @param bizCode 业务编码
     * @return 生成的条码内容
     */
    String generateBarcodeContent(Integer bizType, String bizCode);
 
    /**
     * 根据条码配置编号获取相关联的条码数量
     *
     * @param configId 条码配置编号
     * @return 条码数量
     */
    long getBarcodeCountByConfigId(Long configId);
 
}