package cn.iocoder.yudao.module.mdm.service.agent;
|
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 智能体物料导入的写入策略:默认全关,联调时显式打开。
|
*/
|
@Component
|
public class MdmAgentImportPolicy {
|
|
public static final String POLICY_REVISION = "mdm-item-import-v1";
|
|
@Value("${yudao.agent.bridge.write-enabled:false}")
|
private boolean writeEnabled;
|
|
@Value("${yudao.agent.bridge.allow-mes-sync:false}")
|
private boolean allowMesSync;
|
|
@Value("${yudao.agent.bridge.max-rows:5000}")
|
private int maxRows;
|
|
public boolean isWriteEnabled() {
|
return writeEnabled;
|
}
|
|
public boolean isAllowMesSync() {
|
return allowMesSync;
|
}
|
|
public int getMaxRows() {
|
return maxRows;
|
}
|
}
|