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 listAll(); /** * 根据显示名称(label)取类型编码(value),如 "采购入库单" -> "1" */ String getTypeByLabel(String label); /** * 根据类型编码(value)取显示名称(label),如 "1" -> "采购入库单" */ String getLabelByType(String type); /** * 清除缓存,下次 listAll 时从数据库重新加载(字典数据变更后调用) */ void refreshCache(); }