Commit bff8a39ece006a5b8bee99ebf4b98385e4c291dc
1 parent
96f6eb04c1
Exists in
master
and in
8 other branches
all model add serialid
Showing 46 changed files with 211 additions and 60 deletions
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
- platform-common/src/main/java/com/lyms/platform/common/pojo/SyncDataModel.java
- platform-common/src/main/java/com/lyms/platform/common/pojo/UpdateMultiData.java
- platform-dal/src/main/java/com/lyms/platform/beans/SerialIdEnum.java
- platform-dal/src/main/java/com/lyms/platform/pojo/AntExChuModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/AntExRecordModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/AntenatalExaminationModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/ArchiveData.java
- platform-dal/src/main/java/com/lyms/platform/pojo/AssayConfig.java
- platform-dal/src/main/java/com/lyms/platform/pojo/AwModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BCInventoryModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BCTransferInHistoryModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BabyCheckModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BabyModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BabyVisitModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/BasicConfig.java
- platform-dal/src/main/java/com/lyms/platform/pojo/CommunityConfig.java
- platform-dal/src/main/java/com/lyms/platform/pojo/CommunityModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/DataPermissionsModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/DischargeAbstractBabyModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/DischargeAbstractMotherModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/EmergenceTreatmentModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/FolicAcid.java
- platform-dal/src/main/java/com/lyms/platform/pojo/Guidelines.java
- platform-dal/src/main/java/com/lyms/platform/pojo/HighRiskSmsModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/HwModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/LisCrisisItem.java
- platform-dal/src/main/java/com/lyms/platform/pojo/LisReport.java
- platform-dal/src/main/java/com/lyms/platform/pojo/MaternalDeliverModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/Patients.java
- platform-dal/src/main/java/com/lyms/platform/pojo/PersonModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/PostReviewModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/PredictedStatisticsCountModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/PremaritalCheckup.java
- platform-dal/src/main/java/com/lyms/platform/pojo/PuerperaModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/ReferValue.java
- platform-dal/src/main/java/com/lyms/platform/pojo/ReferralApplyOrderModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/ResidentsArchiveModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/ServiceMonitor.java
- platform-dal/src/main/java/com/lyms/platform/pojo/SieveApplyOrderModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/SieveModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/SieveResultModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/SmsConfigModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/SmsTemplateModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/StopPregModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/VisitModel.java
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
View file @
bff8a39
| ... | ... | @@ -45,9 +45,10 @@ |
| 45 | 45 | |
| 46 | 46 | public static void main(String[] a) { |
| 47 | 47 | |
| 48 | - String s = "rO0ABXNyACJjb20ubHltcy5wbGF0Zm9ybS5wb2pvLkFyY2hpdmVEYXRhYLiAY6y7JRwCAAdMAAdjYXJkTnVtdAASTGphdmEvbGFuZy9TdHJpbmc7TAAKaG9zcGl0YWxJZHEAfgABTAACaWRxAH4AAUwABmlkQ2FyZHEAfgABTAAIanNvbkRhdGFxAH4AAUwABG5hbWVxAH4AAUwABXBob25lcQB+AAF4cHQAHG9jQ1Fkc3psN3FCZGotXzNHZlhRX3FxNWVXWjR0AAMyMTZ0ABYyMTY6MTMwMzAyMTk4NzA4MjUzNTI3dAASMTMwMzAyMTk4NzA4MjUzNTI3dAPAeyJwaG9uZSI6IjE1NjAzMzY0MjQ2IiwiZXJyb3Jtc2ciOiLmiJDlip8iLCJodXNFZHVjYXRpb25MZXZlbCI6IiIsImh1c1dvcmtQbGFjZSI6IiIsInJlc2lkZVR5cGUiOiLmnKzlnLAiLCJ3b3JrUGxhY2UiOiIiLCJpZCI6NjkzLCJodXNQaG9uZSI6IjEzNzMxNzkwMDQxIiwiZWR1Y2F0aW9uTGV2ZWwiOiLlpKflrabmnKznp5EiLCJuYW1lIjoi546L5LmQIiwiaHVzSm9iIjoiIiwiaGVhbHRoUmVzb3J0IjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sImh1c0JpcnRoRGF5IjowLCJwZXJtYW5lbnRBZGRyZXNzIjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sImNhcmROdW0iOiJvY0NRZHN6bDdxQmRqLV8zR2ZYUV9xcTVlV1o0IiwiaHVzTmF0aW9uIjoi5rGJ5pePIiwiaHVzTmF0aW9uYWxpdHkiOiLkuK3lm70iLCJpZENhcmQiOiIxMzAzMDIxOTg3MDgyNTM1MjciLCJqb2IiOiLlhbbku5YiLCJiaXJ0aERheSI6NTU2ODE1NjAwLCJodXNQZXJtYW5lbnRBZGRyZXNzIjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sIm5hdGlvbiI6IuaxieaXjyIsIm5hdGlvbmFsaXR5Ijoi5Lit5Zu9IiwiY3VycmVudEFkZHJlc3MiOlt7ImRpc3RyaWN0TmFtZSI6Iua1t+a4r+WMuiIsImFkZHJlc3MiOiLnm5vnp6bnpo/lnLA5LTEtMTIwMiIsImNpdHlOYW1lIjoi56em55qH5bKb5biCIiwicHJvdmluY2VOYW1lIjoi5rKz5YyX55yBIn1dLCJodXNOYW1lIjoi5pyx5bOwIiwiaG9zcGl0YWxOYW1lIjoi56em55qH5bKb5biC5aaH5bm85L+d5YGl6ZmiIiwiYWNjb3VudFR5cGUiOiLpnZ7lhpzkuJrmiLflj6MiLCJlcnJvcmNvZGUiOjAsImh1c0lkQ2FyZCI6IiJ9dAAG546L5LmQdAALMTU2MDMzNjQyNDY="; | |
| 48 | + String s = "rO0ABXNyACdjb20ubHltcy5wbGF0Zm9ybS5wb2pvLkFudEV4UmVjb3JkTW9kZWwBao8C/AMWLwIAEkkABnN0YXR1c0wABWJyaXRodAAQTGphdmEvdXRpbC9EYXRlO0wACWJ1aWxkVGltZXEAfgABTAALY2hlY2tEb2N0b3J0ABJMamF2YS9sYW5nL1N0cmluZztMAAljaGVja1RpbWVxAH4AAUwAB2NyZWF0ZWRxAH4AAUwAB2R1ZURhdGVxAH4AAUwABmhMZXZlbHQAEExqYXZhL3V0aWwvTGlzdDtMAAVoUmlza3EAfgADTAAGaFNjb3JldAATTGphdmEvbGFuZy9JbnRlZ2VyO0wACmhvc3BpdGFsSWRxAH4AAkwAAmlkcQB+AAJMAApsYXN0TWVuc2VzcQB+AAFMAAhtb2RpZmllZHEAfgABTAAEbmFtZXEAfgACTAAIcGFyZW50SWRxAH4AAkwAA3BpZHEAfgACTAAEdHlwZXEAfgAEeHIAKWNvbS5seW1zLnBsYXRmb3JtLmNvbW1vbi5yZXN1bHQuQmFzZU1vZGVsAAAAAAAAAAECAAB4cAAAAAJzcgAOamF2YS51dGlsLkRhdGVoaoEBS1l0GQMAAHhwdwgAAAC6/zVMAHhzcQB+AAd3CAAAAVjaA1AAeHQACTMzNTExMDAwMHBzcQB+AAd3CAAAAVjcT9+ReHNxAH4AB3cIAAABXLGh9AB4c3IAE2phdmEudXRpbC5BcnJheUxpc3R4gdIdmcdhnQMAAUkABHNpemV4cAAAAAF3BAAAAAF0ACRlNjM3YjM2MS05OWNmLTQxZWItODRmMi1mMGRhYjU5NmU5Mjh4c3EAfgANAAAAAXcEAAAAAXQAJGQ0MmVlYzAzLWFhODYtNDViOC1hNGUwLTc4YTBmZjM2NWZiNnhzcgARamF2YS5sYW5nLkludGVnZXIS4qCk94GHOAIAAUkABXZhbHVleHIAEGphdmEubGFuZy5OdW1iZXKGrJUdC5TgiwIAAHhwAAAAAHQAAzE5N3QAGDU4NDhjOGFiMTM1ODEyMTg0NzhkNDI3YnNxAH4AB3cIAAABVw+tVAB4c3EAfgAHdwgAAAFY3E/fj3h0AAnlkajlqpvlqpt0ABg1ODQ4Yzg4NDEzNTgxMjE4NDc4ZDQyNzJ0ABg1ODQ4Yzg4NDEzNTgxMjE4NDc4ZDQyNzBzcQB+ABIAAAAC"; | |
| 49 | 49 | Object obj = SerializUtils.byteToObj(Base64.decodeBase64(s)); |
| 50 | 50 | System.out.println(obj); |
| 51 | + System.out.println(); | |
| 51 | 52 | } |
| 52 | 53 | |
| 53 | 54 | public boolean syncData(String action, String id, String className, String json) { |
platform-common/src/main/java/com/lyms/platform/common/pojo/SyncDataModel.java
View file @
bff8a39
| ... | ... | @@ -11,7 +11,7 @@ |
| 11 | 11 | @Document(collection = "lyms_sync_data") |
| 12 | 12 | public class SyncDataModel extends BaseModel { |
| 13 | 13 | |
| 14 | - private static final long serialVersionUID = 1L; | |
| 14 | + private static final long serialVersionUID = 97531300010L; | |
| 15 | 15 | |
| 16 | 16 | private Date created; |
| 17 | 17 | private Date modified; |
platform-common/src/main/java/com/lyms/platform/common/pojo/UpdateMultiData.java
View file @
bff8a39
platform-dal/src/main/java/com/lyms/platform/beans/SerialIdEnum.java
View file @
bff8a39
| 1 | +package com.lyms.platform.beans; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Created by riecard on 2016/12/9. | |
| 5 | + */ | |
| 6 | +public enum SerialIdEnum { | |
| 7 | + AntenatalExaminationModel("AntenatalExaminationModel", 97531000010L), | |
| 8 | + AntExChuModel("AntExChuModel", 97531000020L), | |
| 9 | + AntExRecordModel("AntExRecordModel", 97531000030L), | |
| 10 | + ArchiveData("ArchiveData", 97531000040L), | |
| 11 | + AssayConfig("AssayConfig", 97531000050L), | |
| 12 | + AwModel("AwModel", 97531000060L), | |
| 13 | + BabyCheckModel("BabyCheckModel", 97531000070L), | |
| 14 | + BabyModel("BabyModel", 97531000080L), | |
| 15 | + BabyVisitModel("BabyVisitModel", 97531000090L), | |
| 16 | + BasicConfig("BasicConfig", 97531000100L), | |
| 17 | + BCInventoryModel("BCInventoryModel", 97531000110L), | |
| 18 | + BCTransferInHistoryModel("BCTransferInHistoryModel", 97531000120L), | |
| 19 | + CommunityConfig("CommunityConfig", 97531000130L), | |
| 20 | + CommunityModel("CommunityModel", 97531000140L), | |
| 21 | + DataPermissionsModel("DataPermissionsModel", 97531000150L), | |
| 22 | + DischargeAbstractBabyModel("DischargeAbstractBabyModel", 97531000160L), | |
| 23 | + DischargeAbstractMotherModel("DischargeAbstractMotherModel", 97531000170L), | |
| 24 | + EmergenceTreatmentModel("EmergenceTreatmentModel", 97531000180L), | |
| 25 | + FolicAcid("FolicAcid", 97531000190L), | |
| 26 | + Guidelines("Guidelines", 97531000200L), | |
| 27 | + HighRiskSmsModel("HighRiskSmsModel", 97531000210L), | |
| 28 | + HwModel("HwModel", 97531000220L), | |
| 29 | + LisCrisisItem("LisCrisisItem", 97531000230L), | |
| 30 | + LisReport("LisReport", 97531000240L), | |
| 31 | + MaternalDeliverModel("MaternalDeliverModel", 97531000250L), | |
| 32 | + Patients("Patients", 97531000260L), | |
| 33 | + PersonModel("PersonModel", 97531000270L), | |
| 34 | + PostReviewModel("PostReviewModel", 97531000280L), | |
| 35 | + PredictedStatisticsCountModel("PredictedStatisticsCountModel", 97531000290L), | |
| 36 | + PremaritalCheckup("PremaritalCheckup", 97531000300L), | |
| 37 | + PuerperaModel("PuerperaModel", 97531000310L), | |
| 38 | + ReferralApplyOrderModel("ReferralApplyOrderModel", 97531000330L), | |
| 39 | + ReferValue("ReferValue", 97531000340L), | |
| 40 | + ResidentsArchiveModel("ResidentsArchiveModel", 97531000350L), | |
| 41 | + ServiceMonitor("ServiceMonitor", 97531000360L), | |
| 42 | + SieveApplyOrderModel("SieveApplyOrderModel", 97531000370L), | |
| 43 | + SieveModel("SieveModel", 97531000380L), | |
| 44 | + SieveResultModel("SieveResultModel", 97531000390L), | |
| 45 | + SmsConfigModel("SmsConfigModel", 97531000400L), | |
| 46 | + SmsTemplateModel("SmsTemplateModel", 97531000410L), | |
| 47 | + StopPregModel("StopPregModel", 97531000420L), | |
| 48 | + VisitModel("VisitModel", 97531000430L), | |
| 49 | + last("last", 97531009990L); | |
| 50 | + private String cname; | |
| 51 | + private Long cid; | |
| 52 | + private SerialIdEnum(String cname, Long cid) { | |
| 53 | + this.cid = cid; | |
| 54 | + this.cname = cname; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public String getCname() { | |
| 58 | + return cname; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public void setCname(String cname) { | |
| 62 | + this.cname = cname; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public Long getCid() { | |
| 66 | + return cid; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public void setCid(Long cid) { | |
| 70 | + this.cid = cid; | |
| 71 | + } | |
| 72 | +} |
platform-dal/src/main/java/com/lyms/platform/pojo/AntExChuModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -14,6 +15,9 @@ |
| 14 | 15 | */ |
| 15 | 16 | @Document(collection = "lyms_antexc") |
| 16 | 17 | public class AntExChuModel extends BaseModel { |
| 18 | + | |
| 19 | + private static final long serialVersionUID = SerialIdEnum.AntExChuModel.getCid(); | |
| 20 | + | |
| 17 | 21 | |
| 18 | 22 | private String id; |
| 19 | 23 | private String parentId; |
platform-dal/src/main/java/com/lyms/platform/pojo/AntExRecordModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 4 | +import com.lyms.platform.common.enums.YnEnums; | |
| 3 | 5 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 6 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 7 | |
| ... | ... | @@ -14,6 +16,8 @@ |
| 14 | 16 | */ |
| 15 | 17 | @Document(collection = "lyms_antexrecord") |
| 16 | 18 | public class AntExRecordModel extends BaseModel { |
| 19 | + | |
| 20 | + private static final long serialVersionUID = SerialIdEnum.AntExRecordModel.getCid(); | |
| 17 | 21 | |
| 18 | 22 | private String id; |
| 19 | 23 | //原始表的id |
platform-dal/src/main/java/com/lyms/platform/pojo/AntenatalExaminationModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -14,6 +15,8 @@ |
| 14 | 15 | */ |
| 15 | 16 | @Document(collection = "lyms_antex") |
| 16 | 17 | public class AntenatalExaminationModel extends BaseModel { |
| 18 | + | |
| 19 | + private static final long serialVersionUID = SerialIdEnum.AntenatalExaminationModel.getCid(); | |
| 17 | 20 | |
| 18 | 21 | private String id; |
| 19 | 22 | private String pid; |
platform-dal/src/main/java/com/lyms/platform/pojo/ArchiveData.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -8,6 +9,7 @@ |
| 8 | 9 | */ |
| 9 | 10 | @Document(collection = "lyms_archivedata") |
| 10 | 11 | public class ArchiveData extends BaseModel { |
| 12 | + private static final long serialVersionUID = SerialIdEnum.ArchiveData.getCid(); | |
| 11 | 13 | |
| 12 | 14 | private String id; |
| 13 | 15 | private String name; |
platform-dal/src/main/java/com/lyms/platform/pojo/AssayConfig.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -8,10 +9,8 @@ |
| 8 | 9 | */ |
| 9 | 10 | @Document(collection = "lyms_assayconfig") |
| 10 | 11 | public class AssayConfig extends BaseModel { |
| 11 | - /** | |
| 12 | - * 添加字段注释 | |
| 13 | - */ | |
| 14 | - private static final long serialVersionUID = 1L; | |
| 12 | + | |
| 13 | + private static final long serialVersionUID = SerialIdEnum.AssayConfig.getCid(); | |
| 15 | 14 | |
| 16 | 15 | private String id; |
| 17 | 16 |
platform-dal/src/main/java/com/lyms/platform/pojo/AwModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -9,6 +10,9 @@ |
| 9 | 10 | */ |
| 10 | 11 | @Document(collection = "lyms_healthconfig") |
| 11 | 12 | public class AwModel extends BaseModel { |
| 13 | + | |
| 14 | + private static final long serialVersionUID = SerialIdEnum.AwModel.getCid(); | |
| 15 | + | |
| 12 | 16 | private String id; |
| 13 | 17 | private Integer sex; |
| 14 | 18 | private Integer age; |
platform-dal/src/main/java/com/lyms/platform/pojo/BCInventoryModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -10,6 +11,8 @@ |
| 10 | 11 | */ |
| 11 | 12 | @Document(collection = "lyms_bc_inventory") |
| 12 | 13 | public class BCInventoryModel extends BaseModel { |
| 14 | + | |
| 15 | + private static final long serialVersionUID = SerialIdEnum.BCInventoryModel.getCid(); | |
| 13 | 16 | |
| 14 | 17 | private String id; |
| 15 | 18 |
platform-dal/src/main/java/com/lyms/platform/pojo/BCTransferInHistoryModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -12,6 +13,8 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection = "lyms_bc_transferInHistory") |
| 14 | 15 | public class BCTransferInHistoryModel extends BaseModel { |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.BCTransferInHistoryModel.getCid(); | |
| 15 | 18 | |
| 16 | 19 | private String id; |
| 17 | 20 |
platform-dal/src/main/java/com/lyms/platform/pojo/BabyCheckModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | import org.springframework.data.mongodb.core.mapping.Field; |
| ... | ... | @@ -14,6 +15,8 @@ |
| 14 | 15 | */ |
| 15 | 16 | @Document(collection = "lyms_babycheck") |
| 16 | 17 | public class BabyCheckModel extends BaseModel { |
| 18 | + | |
| 19 | + private static final long serialVersionUID = SerialIdEnum.BabyCheckModel.getCid(); | |
| 17 | 20 | |
| 18 | 21 | private String id; |
| 19 | 22 |
platform-dal/src/main/java/com/lyms/platform/pojo/BabyModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | import org.springframework.data.mongodb.core.mapping.Field; |
| ... | ... | @@ -15,10 +16,7 @@ |
| 15 | 16 | @Document(collection = "lyms_baby") |
| 16 | 17 | public class BabyModel extends BaseModel { |
| 17 | 18 | |
| 18 | - /** | |
| 19 | - * | |
| 20 | - */ | |
| 21 | - private static final long serialVersionUID = 1L; | |
| 19 | + private static final long serialVersionUID = SerialIdEnum.BabyModel.getCid(); | |
| 22 | 20 | |
| 23 | 21 | private String id; |
| 24 | 22 | // 编号 |
platform-dal/src/main/java/com/lyms/platform/pojo/BabyVisitModel.java
View file @
bff8a39
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | |
| 3 | 3 | import java.util.Date; |
| 4 | 4 | |
| 5 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 5 | 6 | import org.springframework.data.annotation.Id; |
| 6 | 7 | import org.springframework.data.mongodb.core.mapping.Document; |
| 7 | 8 | import org.springframework.data.mongodb.core.mapping.Field; |
| ... | ... | @@ -24,10 +25,8 @@ |
| 24 | 25 | */ |
| 25 | 26 | @Document(collection = "lyms_babyvisit") |
| 26 | 27 | public class BabyVisitModel extends BaseModel { |
| 27 | - /** | |
| 28 | - * | |
| 29 | - */ | |
| 30 | - private static final long serialVersionUID = 1L; | |
| 28 | + | |
| 29 | + private static final long serialVersionUID = SerialIdEnum.BabyVisitModel.getCid(); | |
| 31 | 30 | |
| 32 | 31 | private Date created; |
| 33 | 32 | private Date modified; |
platform-dal/src/main/java/com/lyms/platform/pojo/BasicConfig.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import org.springframework.data.annotation.Id; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -11,10 +12,8 @@ |
| 11 | 12 | @Document(collection="lyms_basicconfig") |
| 12 | 13 | public class BasicConfig extends BaseModel { |
| 13 | 14 | |
| 14 | - /** | |
| 15 | - * | |
| 16 | - */ | |
| 17 | - private static final long serialVersionUID = 1L; | |
| 15 | + private static final long serialVersionUID = SerialIdEnum.BasicConfig.getCid(); | |
| 16 | + | |
| 18 | 17 | @Id |
| 19 | 18 | private String id; |
| 20 | 19 |
platform-dal/src/main/java/com/lyms/platform/pojo/CommunityConfig.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.enums.YnEnums; |
| 4 | 5 | import com.lyms.platform.common.result.BaseModel; |
| 5 | 6 | import org.springframework.data.mongodb.core.mapping.Document; |
| ... | ... | @@ -13,6 +14,9 @@ |
| 13 | 14 | */ |
| 14 | 15 | @Document(collection="lyms_communityConfig") |
| 15 | 16 | public class CommunityConfig extends BaseModel { |
| 17 | + | |
| 18 | + private static final long serialVersionUID = SerialIdEnum.CommunityConfig.getCid(); | |
| 19 | + | |
| 16 | 20 | private String id; |
| 17 | 21 | private String name; |
| 18 | 22 | private Integer yn; |
platform-dal/src/main/java/com/lyms/platform/pojo/CommunityModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import org.springframework.data.mongodb.core.mapping.Document; |
| 4 | 5 | |
| 5 | 6 | import com.lyms.platform.common.result.BaseModel; |
| ... | ... | @@ -12,10 +13,7 @@ |
| 12 | 13 | @Document(collection="lyms_community") |
| 13 | 14 | public class CommunityModel extends BaseModel { |
| 14 | 15 | |
| 15 | - /** | |
| 16 | - * | |
| 17 | - */ | |
| 18 | - private static final long serialVersionUID = 1L; | |
| 16 | + private static final long serialVersionUID = SerialIdEnum.CommunityModel.getCid(); | |
| 19 | 17 | |
| 20 | 18 | private String id; |
| 21 | 19 |
platform-dal/src/main/java/com/lyms/platform/pojo/DataPermissionsModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.enums.PermissionTypeEnums; |
| 4 | 5 | import com.lyms.platform.common.exception.BusinessException; |
| 5 | 6 | import com.lyms.platform.common.result.BaseModel; |
| ... | ... | @@ -18,6 +19,9 @@ |
| 18 | 19 | */ |
| 19 | 20 | @Document(collection = "lyms_data_permission") |
| 20 | 21 | public class DataPermissionsModel extends BaseModel { |
| 22 | + | |
| 23 | + private static final long serialVersionUID = SerialIdEnum.DataPermissionsModel.getCid(); | |
| 24 | + | |
| 21 | 25 | // |
| 22 | 26 | @Id |
| 23 | 27 | private String id; |
platform-dal/src/main/java/com/lyms/platform/pojo/DischargeAbstractBabyModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -12,6 +13,8 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection = "lyms_discharge_abstract_baby") |
| 14 | 15 | public class DischargeAbstractBabyModel extends BaseModel { |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.DischargeAbstractBabyModel.getCid(); | |
| 15 | 18 | |
| 16 | 19 | private String id; |
| 17 | 20 |
platform-dal/src/main/java/com/lyms/platform/pojo/DischargeAbstractMotherModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -12,6 +13,8 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection = "lyms_discharge_abstract_mother") |
| 14 | 15 | public class DischargeAbstractMotherModel extends BaseModel { |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.DischargeAbstractMotherModel.getCid(); | |
| 15 | 18 | |
| 16 | 19 | private String id; |
| 17 | 20 |
platform-dal/src/main/java/com/lyms/platform/pojo/EmergenceTreatmentModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -12,6 +13,8 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection = "lyms_emergence_treatment") |
| 14 | 15 | public class EmergenceTreatmentModel extends BaseModel{ |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.EmergenceTreatmentModel.getCid(); | |
| 15 | 18 | |
| 16 | 19 | private String id; |
| 17 | 20 | //处理内容 |
platform-dal/src/main/java/com/lyms/platform/pojo/FolicAcid.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 4 | +import com.lyms.platform.common.result.BaseModel; | |
| 3 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 4 | 6 | |
| 5 | 7 | import java.util.Date; |
| ... | ... | @@ -10,7 +12,9 @@ |
| 10 | 12 | * Created by Administrator on 2016/12/1 0001. |
| 11 | 13 | */ |
| 12 | 14 | @Document(collection="lyms_folic_acid") |
| 13 | -public class FolicAcid { | |
| 15 | +public class FolicAcid extends BaseModel { | |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.FolicAcid.getCid(); | |
| 14 | 18 | |
| 15 | 19 | private String id; |
| 16 | 20 | //妇女ID |
platform-dal/src/main/java/com/lyms/platform/pojo/Guidelines.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.annotation.Id; |
| 5 | 6 | import org.springframework.data.mongodb.core.mapping.Document; |
| ... | ... | @@ -11,7 +12,8 @@ |
| 11 | 12 | @Document(collection="lyms_guidelines") |
| 12 | 13 | public class Guidelines extends BaseModel { |
| 13 | 14 | |
| 14 | - private static final long serialVersionUID = 1L; | |
| 15 | + private static final long serialVersionUID = SerialIdEnum.Guidelines.getCid(); | |
| 16 | + | |
| 15 | 17 | @Id |
| 16 | 18 | private String id; |
| 17 | 19 | /* 1:孕期,2:产后,3:儿童 */ |
platform-dal/src/main/java/com/lyms/platform/pojo/HighRiskSmsModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | import org.springframework.data.mongodb.core.mapping.Field; |
| ... | ... | @@ -14,10 +15,7 @@ |
| 14 | 15 | @Document(collection = "lyms_highrisksms") |
| 15 | 16 | public class HighRiskSmsModel extends BaseModel { |
| 16 | 17 | |
| 17 | - /** | |
| 18 | - * | |
| 19 | - */ | |
| 20 | - private static final long serialVersionUID = 1L; | |
| 18 | + private static final long serialVersionUID = SerialIdEnum.HighRiskSmsModel.getCid(); | |
| 21 | 19 | |
| 22 | 20 | private String id; |
| 23 | 21 |
platform-dal/src/main/java/com/lyms/platform/pojo/HwModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 4 | +import com.lyms.platform.common.result.BaseModel; | |
| 3 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 4 | 6 | |
| 5 | 7 | /** |
| ... | ... | @@ -7,7 +9,10 @@ |
| 7 | 9 | * Created by Administrator on 2016/6/22. |
| 8 | 10 | */ |
| 9 | 11 | @Document(collection = "lyms_hw") |
| 10 | -public class HwModel { | |
| 12 | +public class HwModel extends BaseModel { | |
| 13 | + | |
| 14 | + private static final long serialVersionUID = SerialIdEnum.HwModel.getCid(); | |
| 15 | + | |
| 11 | 16 | private String id; |
| 12 | 17 | private Double height; |
| 13 | 18 | private Double reduceSd; |
platform-dal/src/main/java/com/lyms/platform/pojo/LisCrisisItem.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -10,6 +11,8 @@ |
| 10 | 11 | */ |
| 11 | 12 | @Document(collection = "lyms_lis_crisis_item") |
| 12 | 13 | public class LisCrisisItem extends BaseModel { |
| 14 | + | |
| 15 | + private static final long serialVersionUID = SerialIdEnum.LisCrisisItem.getCid(); | |
| 13 | 16 | |
| 14 | 17 | private String id; |
| 15 | 18 | private String hospitalId; |
platform-dal/src/main/java/com/lyms/platform/pojo/LisReport.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.apache.commons.lang.StringUtils; |
| 5 | 6 | import org.springframework.data.mongodb.core.mapping.Document; |
| ... | ... | @@ -12,6 +13,8 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection = "lyms_lis_report") |
| 14 | 15 | public class LisReport extends BaseModel { |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.LisReport.getCid(); | |
| 15 | 18 | |
| 16 | 19 | private String id; |
| 17 | 20 | private String hospitalId; |
platform-dal/src/main/java/com/lyms/platform/pojo/MaternalDeliverModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.apache.commons.lang.math.NumberUtils; |
| 5 | 6 | import org.springframework.data.mongodb.core.mapping.Document; |
| ... | ... | @@ -15,6 +16,8 @@ |
| 15 | 16 | */ |
| 16 | 17 | @Document(collection = "lyms_matdeliver") |
| 17 | 18 | public class MaternalDeliverModel extends BaseModel { |
| 19 | + | |
| 20 | + private static final long serialVersionUID = SerialIdEnum.MaternalDeliverModel.getCid(); | |
| 18 | 21 | |
| 19 | 22 | private String id; |
| 20 | 23 | //产妇id |
platform-dal/src/main/java/com/lyms/platform/pojo/Patients.java
View file @
bff8a39
| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | import java.util.List; |
| 5 | 5 | import java.util.Objects; |
| 6 | 6 | |
| 7 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 7 | 8 | import org.springframework.data.mongodb.core.mapping.Document; |
| 8 | 9 | import org.springframework.data.mongodb.core.mapping.Field; |
| 9 | 10 | |
| 10 | 11 | |
| ... | ... | @@ -14,11 +15,8 @@ |
| 14 | 15 | @Document(collection="lyms_patient") |
| 15 | 16 | public class Patients extends BaseModel { |
| 16 | 17 | |
| 18 | + private static final long serialVersionUID = SerialIdEnum.Patients.getCid(); | |
| 17 | 19 | |
| 18 | - /** | |
| 19 | - * | |
| 20 | - */ | |
| 21 | - private static final long serialVersionUID = 1L; | |
| 22 | 20 | /** |
| 23 | 21 | * 身份证号码 |
| 24 | 22 | */ |
platform-dal/src/main/java/com/lyms/platform/pojo/PersonModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -13,10 +14,7 @@ |
| 13 | 14 | @Document(collection = "lyms_person") |
| 14 | 15 | public class PersonModel extends BaseModel { |
| 15 | 16 | |
| 16 | - /** | |
| 17 | - * | |
| 18 | - */ | |
| 19 | - private static final long serialVersionUID = 1L; | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.PersonModel.getCid(); | |
| 20 | 18 | |
| 21 | 19 | private String id; |
| 22 | 20 |
platform-dal/src/main/java/com/lyms/platform/pojo/PostReviewModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -13,6 +14,9 @@ |
| 13 | 14 | */ |
| 14 | 15 | @Document(collection = "lyms_postreview") |
| 15 | 16 | public class PostReviewModel extends BaseModel { |
| 17 | + | |
| 18 | + private static final long serialVersionUID = SerialIdEnum.PostReviewModel.getCid(); | |
| 19 | + | |
| 16 | 20 | private String id; |
| 17 | 21 | //产妇id |
| 18 | 22 | private String parentId; |
platform-dal/src/main/java/com/lyms/platform/pojo/PredictedStatisticsCountModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 4 | +import com.lyms.platform.common.result.BaseModel; | |
| 5 | + | |
| 3 | 6 | /** |
| 4 | 7 | * @auther HuJiaqi |
| 5 | 8 | * @createTime 2016年11月28日 15时12分 |
| 6 | 9 | * @discription |
| 7 | 10 | */ |
| 8 | -public class PredictedStatisticsCountModel { | |
| 11 | +public class PredictedStatisticsCountModel extends BaseModel { | |
| 12 | + | |
| 13 | + private static final long serialVersionUID = SerialIdEnum.PredictedStatisticsCountModel.getCid(); | |
| 9 | 14 | |
| 10 | 15 | private String predicted; |
| 11 | 16 | private String number; |
platform-dal/src/main/java/com/lyms/platform/pojo/PremaritalCheckup.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -12,6 +13,8 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection="lyms_premarital_checkup") |
| 14 | 15 | public class PremaritalCheckup extends BaseModel { |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.PremaritalCheckup.getCid(); | |
| 15 | 18 | |
| 16 | 19 | private String id; |
| 17 | 20 | //女性/男性ID |
platform-dal/src/main/java/com/lyms/platform/pojo/PuerperaModel.java
View file @
bff8a39
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | |
| 3 | 3 | import java.util.Date; |
| 4 | 4 | |
| 5 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 5 | 6 | import org.springframework.data.mongodb.core.mapping.Document; |
| 6 | 7 | import org.springframework.data.mongodb.core.mapping.Field; |
| 7 | 8 | |
| ... | ... | @@ -17,11 +18,8 @@ |
| 17 | 18 | @Document(collection="lyms_puerpera") |
| 18 | 19 | public class PuerperaModel extends BaseModel { |
| 19 | 20 | |
| 20 | - /** | |
| 21 | - * | |
| 22 | - */ | |
| 23 | - private static final long serialVersionUID = 1L; | |
| 24 | - | |
| 21 | + private static final long serialVersionUID = SerialIdEnum.PuerperaModel.getCid(); | |
| 22 | + | |
| 25 | 23 | /** |
| 26 | 24 | * 身份证号码 |
| 27 | 25 | */ |
platform-dal/src/main/java/com/lyms/platform/pojo/ReferValue.java
View file @
bff8a39
| ... | ... | @@ -2,6 +2,7 @@ |
| 2 | 2 | |
| 3 | 3 | import javax.validation.constraints.NotNull; |
| 4 | 4 | |
| 5 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 5 | 6 | import org.hibernate.validator.constraints.NotEmpty; |
| 6 | 7 | import org.springframework.data.annotation.Id; |
| 7 | 8 | import org.springframework.data.mongodb.core.mapping.Document; |
| ... | ... | @@ -16,10 +17,9 @@ |
| 16 | 17 | @Form |
| 17 | 18 | @Document |
| 18 | 19 | public class ReferValue extends BaseModel{ |
| 19 | - /** | |
| 20 | - * TODO 添加字段注释 | |
| 21 | - */ | |
| 22 | - private static final long serialVersionUID = 1L; | |
| 20 | + | |
| 21 | + private static final long serialVersionUID = SerialIdEnum.ReferValue.getCid(); | |
| 22 | + | |
| 23 | 23 | @Id |
| 24 | 24 | private String id; |
| 25 | 25 | @NotNull(message = "医院ID不能为空") |
platform-dal/src/main/java/com/lyms/platform/pojo/ReferralApplyOrderModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -13,6 +14,8 @@ |
| 13 | 14 | */ |
| 14 | 15 | @Document(collection = "lyms_referralapplyorder") |
| 15 | 16 | public class ReferralApplyOrderModel extends BaseModel { |
| 17 | + | |
| 18 | + private static final long serialVersionUID = SerialIdEnum.ReferralApplyOrderModel.getCid(); | |
| 16 | 19 | |
| 17 | 20 | private String id; |
| 18 | 21 | //患者id |
platform-dal/src/main/java/com/lyms/platform/pojo/ResidentsArchiveModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -14,10 +15,7 @@ |
| 14 | 15 | @Document(collection="lyms_resident") |
| 15 | 16 | public class ResidentsArchiveModel extends BaseModel{ |
| 16 | 17 | |
| 17 | - /** | |
| 18 | - * | |
| 19 | - */ | |
| 20 | - private static final long serialVersionUID = 1L; | |
| 18 | + private static final long serialVersionUID = SerialIdEnum.ResidentsArchiveModel.getCid(); | |
| 21 | 19 | |
| 22 | 20 | /************基本信息*************/ |
| 23 | 21 |
platform-dal/src/main/java/com/lyms/platform/pojo/ServiceMonitor.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -8,6 +9,9 @@ |
| 8 | 9 | */ |
| 9 | 10 | @Document(collection="lyms_serviceMonitor") |
| 10 | 11 | public class ServiceMonitor extends BaseModel { |
| 12 | + | |
| 13 | + private static final long serialVersionUID = SerialIdEnum.ServiceMonitor.getCid(); | |
| 14 | + | |
| 11 | 15 | private String id; |
| 12 | 16 | private Integer type; // 1短信 2邮箱 |
| 13 | 17 | private String name; |
platform-dal/src/main/java/com/lyms/platform/pojo/SieveApplyOrderModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -12,6 +13,9 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection = "lyms_sieveapplyorder") |
| 14 | 15 | public class SieveApplyOrderModel extends BaseModel { |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.SieveApplyOrderModel.getCid(); | |
| 18 | + | |
| 15 | 19 | private String id; |
| 16 | 20 | //患者id |
| 17 | 21 | private String parentId; |
platform-dal/src/main/java/com/lyms/platform/pojo/SieveModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -12,6 +13,8 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection = "lyms_sieve") |
| 14 | 15 | public class SieveModel extends BaseModel { |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.SieveModel.getCid(); | |
| 15 | 18 | |
| 16 | 19 | private String id; |
| 17 | 20 | //患者id |
platform-dal/src/main/java/com/lyms/platform/pojo/SieveResultModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -12,6 +13,9 @@ |
| 12 | 13 | */ |
| 13 | 14 | @Document(collection = "lyms_sieveresult") |
| 14 | 15 | public class SieveResultModel extends BaseModel { |
| 16 | + | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.SieveResultModel.getCid(); | |
| 18 | + | |
| 15 | 19 | private String id; |
| 16 | 20 | private String parentId; |
| 17 | 21 |
platform-dal/src/main/java/com/lyms/platform/pojo/SmsConfigModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -13,10 +14,7 @@ |
| 13 | 14 | @Document(collection = "lyms_smsconfig") |
| 14 | 15 | public class SmsConfigModel extends BaseModel { |
| 15 | 16 | |
| 16 | - /** | |
| 17 | - * | |
| 18 | - */ | |
| 19 | - private static final long serialVersionUID = 1L; | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.SmsConfigModel.getCid(); | |
| 20 | 18 | |
| 21 | 19 | private String id; |
| 22 | 20 |
platform-dal/src/main/java/com/lyms/platform/pojo/SmsTemplateModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -10,6 +11,8 @@ |
| 10 | 11 | */ |
| 11 | 12 | @Document(collection = "lyms_smstemplate") |
| 12 | 13 | public class SmsTemplateModel extends BaseModel { |
| 14 | + | |
| 15 | + private static final long serialVersionUID = SerialIdEnum.SmsTemplateModel.getCid(); | |
| 13 | 16 | |
| 14 | 17 | private String id; |
| 15 | 18 |
platform-dal/src/main/java/com/lyms/platform/pojo/StopPregModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import com.lyms.platform.common.result.BaseModel; |
| 4 | 5 | import org.springframework.data.mongodb.core.mapping.Document; |
| 5 | 6 | |
| ... | ... | @@ -11,6 +12,8 @@ |
| 11 | 12 | */ |
| 12 | 13 | @Document(collection = "lyms_stoppreg") |
| 13 | 14 | public class StopPregModel extends BaseModel { |
| 15 | + private static final long serialVersionUID = SerialIdEnum.StopPregModel.getCid(); | |
| 16 | + | |
| 14 | 17 | private String id; |
| 15 | 18 | //孕妇建档id |
| 16 | 19 | private String patientId; |
platform-dal/src/main/java/com/lyms/platform/pojo/VisitModel.java
View file @
bff8a39
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.beans.SerialIdEnum; | |
| 3 | 4 | import org.springframework.data.mongodb.core.mapping.Document; |
| 4 | 5 | |
| 5 | 6 | import com.lyms.platform.common.result.BaseModel; |
| ... | ... | @@ -14,10 +15,7 @@ |
| 14 | 15 | @Document(collection = "lyms_visit") |
| 15 | 16 | public class VisitModel extends BaseModel { |
| 16 | 17 | |
| 17 | - /** | |
| 18 | - * | |
| 19 | - */ | |
| 20 | - private static final long serialVersionUID = 1L; | |
| 18 | + private static final long serialVersionUID = SerialIdEnum.VisitModel.getCid(); | |
| 21 | 19 | |
| 22 | 20 | private Date created; |
| 23 | 21 | private Date modified; |