chen.lin
19 小时以前 c81fc5e2a4f4153be2bb8602ed14a0743e6ecd29
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
package com.vincent.rsf.server.manager.service;
 
import com.vincent.rsf.server.system.entity.DictData;
 
import java.util.List;
 
/**
 * 订单业务类型:从字典表动态获取与配置,替代/补充 OrderWorkType 枚举。
 */
public interface OrderWorkTypeService {
 
    /**
     * 查询所有启用的订单业务类型(带缓存,字典变更后需调用 refreshCache)
     */
    List<DictData> listAll();
 
    /**
     * 根据显示名称(label)取类型编码(value),如 "采购入库单" -> "1"
     */
    String getTypeByLabel(String label);
 
    /**
     * 根据类型编码(value)取显示名称(label),如 "1" -> "采购入库单"
     */
    String getLabelByType(String type);
 
    /**
     * 清除缓存,下次 listAll 时从数据库重新加载(字典数据变更后调用)
     */
    void refreshCache();
}