|
@@ -767,7 +767,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
|
|
|
if (StringUtil.isNotBlank(id)) {
|
|
|
//查询当前节点的祖级路径和pkid
|
|
|
String ancestors = jdbcTemplate.query("SELECT concat(ancestors_p_id,',',p_key_id) FROM m_wbs_tree_contract WHERE contract_id = " + contractId
|
|
|
- + "and id = " + id,
|
|
|
+ + " and id = " + id,
|
|
|
new BeanPropertyRowMapper<>(String.class)).stream().findAny().orElse(null);
|
|
|
|
|
|
String contractExtendSql = "select ancestors from m_wbs_tree_contract_extend where type = " + tableOwner + " and is_sync = 1 and is_deleted = 0 and ancestors like concat( " + ancestors + ",'%')";
|