Browse Source

Merge branch 'dev' of wujunjie/patient-management into dev

chenweida 8 năm trước cách đây
mục cha
commit
5959a0c710

+ 5 - 1
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/common/im/imController.java

@ -142,12 +142,16 @@ public class imController extends BaseController {
                map.put("sex", doc.get("sex").toString());
                map.put("doctor", doctor);
                map.put("type",doc.get("level")==null?"":doc.get("level").toString());
//                未回复
                String totalUnReply = ImUtill.getConsultData(doctor, 0, 0);
                int unReply = Integer.parseInt(totalUnReply);
                map.put("totalUnReply", unReply);
//                已回复
                String totalReply = ImUtill.getConsultData(doctor, 0, 1);
                int reply = Integer.parseInt(totalReply);
                String totalReply1 = ImUtill.getConsultData(doctor, 10, null);
                int reply = Integer.parseInt(totalReply)+Integer.parseInt(totalReply1);
                map.put("totalReply", reply);
//                总咨询量
                String totalConsult = ImUtill.getConsultData(doctor, null, null);
                int consult = Integer.parseInt(totalConsult);
                map.put("totalConsult", consult);

+ 1 - 3
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/health/HealthEduArticleController.java

@ -193,9 +193,7 @@ public class HealthEduArticleController extends BaseController {
    public String readAllArticle() {
        try {
            String patient = getUID();
//            String patient = "0cc6e4562de2437ab2dbbf51a9fc3b49";
            int row = healthEduArticleService.readAllArticle(patient);
            System.out.println(row);
            healthEduArticleService.readAllArticle(patient);
            return write(200,"更改状态成功!");
        } catch (Exception e) {
            error(e);