diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index aab79b9..515a836 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -756,8 +756,10 @@ public class PatientController { f=lymsPcaseService.saveOrUpdate(pcase); illness.setId(ilid);//前端传入一组夸对象组合。后端用3组对象接受。前端传的是ilid这里id值是错误的。需要ilid赋给id。 f=lymsIllnessService.saveOrUpdate(illness); - baseResponse.setErrorcode(0); - baseResponse.setErrormsg(""); + if(f){ + baseResponse.setErrorcode(0); + baseResponse.setErrormsg("成功"); + } } return baseResponse; diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsArticle.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsArticle.java index 06e249e..18e7dda 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsArticle.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsArticle.java @@ -76,6 +76,13 @@ public class LymsArticle implements Serializable { private Date updatedTime; /** + * 文章类型,推送文章按类别依次推送1-12 + * 1.治疗2.护理3.病因4.预防5.症状6.相关问题7.好发人群8.分型9.检查10.并发症11.鉴别12.定义 + */ + @TableField(value = "article_type") + private Integer articleType; + + /** * 每个疾病文章的序号(1-100) */ @TableField(value = "serial_number") @@ -155,6 +162,7 @@ public class LymsArticle implements Serializable { ", createdtime=" + createdtime + ", updatedby=" + updatedby + ", updatedTime=" + updatedTime + + ", articleType=" + articleType + ", serialNumber=" + serialNumber + ", weixTextOne='" + weixTextOne + '\'' + ", weixTextTwo='" + weixTextTwo + '\'' +