云
10 小时以前 795bc269ba9acfae74620059c4ed64bd121aa288
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
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;
    }
}