Bladeren bron

代码修改

suqinyi 3 maanden geleden
bovenliggende
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) {
    public HashMap<String, Object> findSendPatientList(String doctorCode, String patientCode, String sendType, int page, int pageSize) {
        String sql = " SELECT DISTINCT \n" +
        String sql = " SELECT DISTINCT \n" +
                " b.doctor 'sendDoctorCode',b.doctor_name 'sendDoctorName'," +
                " 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'," +
                " c.fabulous 'userFabulous', c.is_read 'userIsRead',c.is_share 'userShare',c.collection 'userCollection'," +
                " a.* \n" +
                " a.* \n" +
                " FROM wlyy_knowledge_article_dict a " +
                " FROM wlyy_knowledge_article_dict a " +
@ -497,7 +498,7 @@ public class KnowledgeArticleService extends BaseJpaService<KnowledgeArticleDO,
        List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
        List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
        Integer count = jdbcTemplate.queryForObject(countSql, Integer.class);
        Integer count = jdbcTemplate.queryForObject(countSql, Integer.class);
        HashMap<String, Object> resultMap = new HashMap<>();
        HashMap<String, Object> resultMap = new HashMap<>();
        resultMap.put("data", ServiceApi.AppPushMessage.list);
        resultMap.put("data", list);
        resultMap.put("count", count);
        resultMap.put("count", count);
        return resultMap;
        return resultMap;
    }
    }