浏览代码

居民一键已读接口

huangwenjie 7 年之前
父节点
当前提交
6c82310097

+ 2 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/jimeiJkEdu/JMJkEduArticleService.java

@ -1105,7 +1105,7 @@ public class JMJkEduArticleService extends BaseService {
            article = thirdJkEduArticleService.getArticalById(one.getArticleId(),"");
            article = thirdJkEduArticleService.getArticalById(one.getArticleId(),"");
            heapm = new HealthEduArticlePatientModel();
            heapm = new HealthEduArticlePatientModel();
            heapm.setSendName(one.getSendName());
            heapm.setSendName(one.getSendName());
            heapm.setSendCode(one.getDoctorCode());
            heapm.setSendCode(one.getSendCode());
            heapm.setCreateTime(DateUtil.dateToStrLong(one.getCreateTime()));
            heapm.setCreateTime(DateUtil.dateToStrLong(one.getCreateTime()));
            heapm.setArticleId(article.getString("articleId"));
            heapm.setArticleId(article.getString("articleId"));
            heapm.setAttachedTitle(article.getString("articleTitle"));
            heapm.setAttachedTitle(article.getString("articleTitle"));
@ -1124,7 +1124,7 @@ public class JMJkEduArticleService extends BaseService {
            heapm.setSendType(one.getSendType());//发送类型
            heapm.setSendType(one.getSendType());//发送类型
            heapm.setIsread(String.valueOf(one.getIsRead()));//已读未读标识,1已读,2未读
            heapm.setIsread(String.valueOf(one.getIsRead()));//已读未读标识,1已读,2未读
            heapm.setLeaveWords(one.getLeaveWords());//医生留言
            heapm.setLeaveWords(one.getLeaveWords());//医生留言
            doctor = doctorDao.findByCode(one.getDoctorCode());
            doctor = doctorDao.findByCode(one.getSendCode());
            heapm.setPhoto(doctor.getPhoto());
            heapm.setPhoto(doctor.getPhoto());
            result.add(heapm);
            result.add(heapm);
            // heapm.setTime();//时间  xx小时前  2017-10-11
            // heapm.setTime();//时间  xx小时前  2017-10-11

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

@ -212,7 +212,7 @@ public class HealthEduArticleController extends BaseController {
//            String patient = getUID();
//            String patient = getUID();
            String patient = getRepUID();
            String patient = getRepUID();
//            healthEduArticleService.readAllArticle(patient);
//            healthEduArticleService.readAllArticle(patient);
            jmJkEduArticleService.readAllArticle(patient);
            jmJkEduArticleService.readAllArticleNew(patient);
            return write(200, "更改状态成功!");
            return write(200, "更改状态成功!");
        } catch (Exception e) {
        } catch (Exception e) {
            error(e);
            error(e);