suqinyi 3 mesiacov pred
rodič
commit
7ebdc2bfed

+ 2 - 1
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/service/consult/KnowledgeArticleService.java

@ -477,6 +477,7 @@ public class KnowledgeArticleService extends BaseJpaService<KnowledgeArticleDO,
    public HashMap<String, Object> findSendPatientList(String doctorCode, String patientCode, String sendType, int page, int pageSize) {
        String sql = " SELECT DISTINCT \n" +
                " b.doctor 'sendDoctorCode',b.doctor_name 'sendDoctorName'," +
                " date_format(a.create_time,'%Y-%m-%d %H:%i:%S' ) 'articleCreateTime'," +
                " c.fabulous 'userFabulous', c.is_read 'userIsRead',c.is_share 'userShare',c.collection 'userCollection'," +
                " a.* \n" +
                " FROM wlyy_knowledge_article_dict a " +
@ -497,7 +498,7 @@ public class KnowledgeArticleService extends BaseJpaService<KnowledgeArticleDO,
        List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
        Integer count = jdbcTemplate.queryForObject(countSql, Integer.class);
        HashMap<String, Object> resultMap = new HashMap<>();
        resultMap.put("data", ServiceApi.AppPushMessage.list);
        resultMap.put("data", list);
        resultMap.put("count", count);
        return resultMap;
    }