|
@ -77,9 +77,11 @@ public class KnowledgeArticleService extends BaseJpaService<KnowledgeArticleDO,
|
|
|
String ids = StringUtils.join(split, ",");
|
|
|
String sql = "update wlyy_knowledge_article a set a.del = 0 where a.id in(" + ids + ")";
|
|
|
String sqlUser = "update wlyy_knowledge_article_user a set a.del = 0 where a.relation_code in(" + ids + ")";
|
|
|
String sqlBussiness = "update base_patient_business a set a.del = 0 where a.relation_code in(" + ids + ")";
|
|
|
int update = jdbcTemplate.update(sql);
|
|
|
int updateUser = jdbcTemplate.update(sqlUser);
|
|
|
if (update > 0&&updateUser>0) {
|
|
|
int updateBussiness = jdbcTemplate.update(sqlBussiness);
|
|
|
if (update > 0||updateUser>0||updateBussiness>0) {
|
|
|
return true;
|
|
|
}
|
|
|
return false;
|