Przeglądaj źródła

医生圈导出功能

wangzhinan 1 rok temu
rodzic
commit
d7df93a483

+ 1 - 1
business/base-service/src/main/java/com/yihu/jw/article/dao/KnowledgeArticleDoctorDao.java

@ -20,7 +20,7 @@ public interface KnowledgeArticleDoctorDao extends JpaRepository<KnowledgeArticl
    @Query("select a from KnowledgeArticleDoctorDO a where a.baseArticleDoctorId=?1 and a.type=?2 order by a.createTime desc")
    List<KnowledgeArticleDoctorDO> findByBaseArticleDoctorIdAndType(String baseArticleDoctorId,Integer type);
    @Query("select a from KnowledgeArticleDoctorDO a where a.relationCode=?1 and a.type=?2 and a.user=?3 and a.baseArticleDoctorId is null order by a.createTime desc")
    @Query("select a from KnowledgeArticleDoctorDO a where a.relationCode=?1 and a.type=?2 and a.user=?3 and (a.baseArticleDoctorId is null or a.baseArticleDoctorId ='') order by a.createTime desc")
    List<KnowledgeArticleDoctorDO> findByRelationCodeAndTypeAndUser(String relationCode,Integer type,String user);//根据业务code获取医生文章/医生关系
    @Query("select a from KnowledgeArticleDoctorDO a where a.relationCode=?1 and a.type=?2 and a.user=?3 and a.baseArticleDoctorId=?4 order by a.createTime desc")