|
@@ -15,6 +15,7 @@ import org.springblade.common.utils.BaiduApiUtil;
|
|
|
import org.springblade.common.utils.SnowFlakeUtil;
|
|
|
import org.springblade.core.log.exception.ServiceException;
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl;
|
|
|
+import org.springblade.core.secure.utils.SecureUtil;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.core.tool.node.ForestNodeMerger;
|
|
|
import org.springblade.core.tool.utils.BeanUtil;
|
|
@@ -375,15 +376,17 @@ public class ContractInfoServiceImpl extends BaseServiceImpl<ContractInfoMapper,
|
|
|
"inner join m_wbs_tree_contract b on a.p_key_id = b.p_key_id and b.is_deleted = 0 and b.is_buss_show != 2 " +
|
|
|
"where a.type = " + tableOwner + " and a.is_sync = 1 and a.is_deleted = 0 and a.contract_id = " + contractId;
|
|
|
Set<String> syncPKeyIds = new HashSet<>();
|
|
|
- List<String> strings = null;
|
|
|
- try {
|
|
|
- strings = jdbcTemplate.queryForList(contractExtendSql, String.class);
|
|
|
- } catch (DataAccessException e) {
|
|
|
- e.printStackTrace();
|
|
|
- //TODO 暂时忽略错误
|
|
|
- }
|
|
|
- if(CollectionUtil.isNotEmpty(strings)){
|
|
|
- strings.stream().filter(com.alibaba.nacos.common.utils.StringUtils::isNotEmpty).forEach(f -> syncPKeyIds.addAll(Arrays.asList(f.split(","))));
|
|
|
+ if(SecureUtil.isAdministrator()){
|
|
|
+ List<String> strings = null;
|
|
|
+ try {
|
|
|
+ strings = jdbcTemplate.queryForList(contractExtendSql, String.class);
|
|
|
+ } catch (DataAccessException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ //TODO 暂时忽略错误
|
|
|
+ }
|
|
|
+ if(CollectionUtil.isNotEmpty(strings)){
|
|
|
+ strings.stream().filter(com.alibaba.nacos.common.utils.StringUtils::isNotEmpty).forEach(f -> syncPKeyIds.addAll(Arrays.asList(f.split(","))));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (contractInfo != null) {
|