|
@@ -618,7 +618,7 @@ public class WbsTreeContractServiceImpl extends BaseServiceImpl<WbsTreeContractM
|
|
|
List<Long> collect1 = resultTabs.stream().map(WbsTreeContract::getPKeyId).collect(Collectors.toList());
|
|
|
List<Long> longs = null;
|
|
|
try {
|
|
|
- longs = jdbcTemplate.queryForList("select p_key_id from m_wbs_tree_contract_extend where p_key_id in (" + StringUtils.join(collect1, ",") + ")", Long.class);
|
|
|
+ longs = jdbcTemplate.queryForList("select p_key_id from m_wbs_tree_contract_extend where is_sync = 1 and is_deleted = 0 and p_key_id in (" + StringUtils.join(collect1, ",") + ")", Long.class);
|
|
|
} catch (DataAccessException e) {
|
|
|
//TODO 暂时忽略异常,避免表不存在报错
|
|
|
e.printStackTrace();
|