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
package cn.iocoder.yudao.module.mes.service.md.autocode.strategy;
 
import cn.iocoder.yudao.module.mes.dal.dataobject.md.autocode.MesMdAutoCodePartDO;
 
/**
 * MES 编码规则分段策略接口
 *
 * @author 芋道源码
 */
public interface MesMdAutoCodePartStrategy {
 
    /**
     * 获取策略类型
     *
     * @return 分段类型
     */
    Integer getType();
 
    /**
     * 生成分段内容
     *
     * @param part 规则组成
     * @param context 上下文
     * @return 分段内容
     */
    String generate(MesMdAutoCodePartDO part, MesMdAutoCodeContext context);
 
}