Commit 16ae4f6a9f413417abaaa8f842ed6de92acedec1
Exists in
master
and in
1 other branch
Merge remote-tracking branch 'origin/master'
Showing 64 changed files
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
- platform-common/src/main/java/com/lyms/platform/common/enums/ServiceObjEnums.java
- platform-common/src/main/java/com/lyms/platform/common/enums/SmsServiceEnums.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-dal/src/main/java/com/lyms/platform/query/PremaritalCheckupQuery.java
- platform-data-api/src/main/java/com/lyms/platform/data/util/AmsMessageService.java
- platform-data-api/src/main/resources/spring/applicationContext-quartz.xml
- platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/PregPatientinfo.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/FolicAcidController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/InitDataController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ResidentsArchiveController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/FolicAcidFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PremaritalCheckupFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ResidentsArchiveFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/HighScoreResult.java
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
View file @
16ae4f6
| ... | ... | @@ -6,14 +6,11 @@ |
| 6 | 6 | import com.lyms.platform.common.pojo.UpdateMultiData; |
| 7 | 7 | import com.lyms.platform.common.utils.*; |
| 8 | 8 | import com.lyms.platform.pojo.*; |
| 9 | -import com.mongodb.DBObject; | |
| 10 | 9 | import com.mongodb.Mongo; |
| 11 | 10 | import org.apache.commons.codec.binary.Base64; |
| 12 | -import org.apache.commons.lang.*; | |
| 13 | 11 | import org.apache.commons.lang.StringUtils; |
| 14 | 12 | import org.springframework.beans.factory.annotation.Autowired; |
| 15 | 13 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 16 | -import org.springframework.data.mongodb.core.query.Criteria; | |
| 17 | 14 | import org.springframework.data.mongodb.core.query.Query; |
| 18 | 15 | import org.springframework.data.mongodb.core.query.Update; |
| 19 | 16 | import org.springframework.stereotype.Service; |
| ... | ... | @@ -22,7 +19,6 @@ |
| 22 | 19 | import java.util.ArrayList; |
| 23 | 20 | import java.util.Date; |
| 24 | 21 | import java.util.List; |
| 25 | -import java.util.Map; | |
| 26 | 22 | |
| 27 | 23 | /** |
| 28 | 24 | * Created by Administrator on 2016/9/13 0013. |
| ... | ... | @@ -42,13 +38,6 @@ |
| 42 | 38 | public static final String timeAtts[] = {"checkDate","nextCheckTime","created","modified","dueDate","lastMenses","nextDate","birth","fbirth","mbirth","buildDate","vipEndTime","currentVisit","nextVisitDate","publishTime","bookbuildingDate","fmDate","husbandBirth","lastThTime","LastCTime","dueWeek","received","applyDate","sendDate","stopDate","start","end","nextCheckTimeStart","nextCheckTimeEnd","gteModified","gteCreated","start","end","buildDateStart","buildDateEnd","birthStart","birthEnd","nextDateStart","nextDateEnd","createdStart","endStart"}; |
| 43 | 39 | |
| 44 | 40 | public static String mongo_crypto_key = Config.getItem("mongo_crypto_key", "0"); |
| 45 | - | |
| 46 | - public static void main(String[] a) { | |
| 47 | - | |
| 48 | - String s = "rO0ABXNyACJjb20ubHltcy5wbGF0Zm9ybS5wb2pvLkFyY2hpdmVEYXRhYLiAY6y7JRwCAAdMAAdjYXJkTnVtdAASTGphdmEvbGFuZy9TdHJpbmc7TAAKaG9zcGl0YWxJZHEAfgABTAACaWRxAH4AAUwABmlkQ2FyZHEAfgABTAAIanNvbkRhdGFxAH4AAUwABG5hbWVxAH4AAUwABXBob25lcQB+AAF4cHQAHG9jQ1Fkc3psN3FCZGotXzNHZlhRX3FxNWVXWjR0AAMyMTZ0ABYyMTY6MTMwMzAyMTk4NzA4MjUzNTI3dAASMTMwMzAyMTk4NzA4MjUzNTI3dAPAeyJwaG9uZSI6IjE1NjAzMzY0MjQ2IiwiZXJyb3Jtc2ciOiLmiJDlip8iLCJodXNFZHVjYXRpb25MZXZlbCI6IiIsImh1c1dvcmtQbGFjZSI6IiIsInJlc2lkZVR5cGUiOiLmnKzlnLAiLCJ3b3JrUGxhY2UiOiIiLCJpZCI6NjkzLCJodXNQaG9uZSI6IjEzNzMxNzkwMDQxIiwiZWR1Y2F0aW9uTGV2ZWwiOiLlpKflrabmnKznp5EiLCJuYW1lIjoi546L5LmQIiwiaHVzSm9iIjoiIiwiaGVhbHRoUmVzb3J0IjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sImh1c0JpcnRoRGF5IjowLCJwZXJtYW5lbnRBZGRyZXNzIjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sImNhcmROdW0iOiJvY0NRZHN6bDdxQmRqLV8zR2ZYUV9xcTVlV1o0IiwiaHVzTmF0aW9uIjoi5rGJ5pePIiwiaHVzTmF0aW9uYWxpdHkiOiLkuK3lm70iLCJpZENhcmQiOiIxMzAzMDIxOTg3MDgyNTM1MjciLCJqb2IiOiLlhbbku5YiLCJiaXJ0aERheSI6NTU2ODE1NjAwLCJodXNQZXJtYW5lbnRBZGRyZXNzIjpbeyJkaXN0cmljdE5hbWUiOm51bGwsImFkZHJlc3MiOiIiLCJjaXR5TmFtZSI6bnVsbCwicHJvdmluY2VOYW1lIjpudWxsfV0sIm5hdGlvbiI6IuaxieaXjyIsIm5hdGlvbmFsaXR5Ijoi5Lit5Zu9IiwiY3VycmVudEFkZHJlc3MiOlt7ImRpc3RyaWN0TmFtZSI6Iua1t+a4r+WMuiIsImFkZHJlc3MiOiLnm5vnp6bnpo/lnLA5LTEtMTIwMiIsImNpdHlOYW1lIjoi56em55qH5bKb5biCIiwicHJvdmluY2VOYW1lIjoi5rKz5YyX55yBIn1dLCJodXNOYW1lIjoi5pyx5bOwIiwiaG9zcGl0YWxOYW1lIjoi56em55qH5bKb5biC5aaH5bm85L+d5YGl6ZmiIiwiYWNjb3VudFR5cGUiOiLpnZ7lhpzkuJrmiLflj6MiLCJlcnJvcmNvZGUiOjAsImh1c0lkQ2FyZCI6IiJ9dAAG546L5LmQdAALMTU2MDMzNjQyNDY="; | |
| 49 | - Object obj = SerializUtils.byteToObj(Base64.decodeBase64(s)); | |
| 50 | - System.out.println(obj); | |
| 51 | - } | |
| 52 | 41 | |
| 53 | 42 | public boolean syncData(String action, String id, String className, String json) { |
| 54 | 43 | System.out.println(mongo_crypto_key); |
platform-common/src/main/java/com/lyms/platform/common/enums/ServiceObjEnums.java
View file @
16ae4f6
platform-common/src/main/java/com/lyms/platform/common/enums/SmsServiceEnums.java
View file @
16ae4f6
| ... | ... | @@ -28,7 +28,7 @@ |
| 28 | 28 | ETBJJCTZ(14,"儿童检查保健通知",4,""), |
| 29 | 29 | EBCXTX(15,"儿保程序提醒",14,"2"), |
| 30 | 30 | EBYYTX(16,"儿保预约提醒",14,"2"), |
| 31 | - YSGXHZD(17,"医生个性化指导",0,"0,1,2,3"), | |
| 31 | + YSGXHZD(17,"医生个性化指导",0,"0,1,2,3,4"), | |
| 32 | 32 | GSFWTZ(18,"公司服务通知",0,""), |
| 33 | 33 | FWKT(19,"服务提醒",18,"0,1,2,3"), |
| 34 | 34 | YWTG(20,"业务推广",18,"0,1,2,3"), |
platform-common/src/main/java/com/lyms/platform/common/pojo/SyncDataModel.java
View file @
16ae4f6
| ... | ... | @@ -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 @
16ae4f6
platform-dal/src/main/java/com/lyms/platform/beans/SerialIdEnum.java
View file @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| ... | ... | @@ -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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| ... | ... | @@ -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,12 +15,9 @@ |
| 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 | 20 | /** |
| 19 | - * | |
| 20 | - */ | |
| 21 | - private static final long serialVersionUID = 1L; | |
| 22 | - /** | |
| 23 | 21 | * 身份证号码 |
| 24 | 22 | */ |
| 25 | 23 | private String cardNo; |
| ... | ... | @@ -200,6 +198,8 @@ |
| 200 | 198 | private List<String> riskFactorId; |
| 201 | 199 | //建档时高危风险id |
| 202 | 200 | private List<String> firstRiskFactorId; |
| 201 | + //自定义的高危因素 | |
| 202 | + private String oRiskFactor; | |
| 203 | 203 | //风险等级颜色 |
| 204 | 204 | private String riskLevelId; |
| 205 | 205 | //高危评分值 |
| ... | ... | @@ -234,6 +234,13 @@ |
| 234 | 234 | //操作人 |
| 235 | 235 | private Integer operator; |
| 236 | 236 | |
| 237 | + public String getoRiskFactor() { | |
| 238 | + return oRiskFactor; | |
| 239 | + } | |
| 240 | + | |
| 241 | + public void setoRiskFactor(String oRiskFactor) { | |
| 242 | + this.oRiskFactor = oRiskFactor; | |
| 243 | + } | |
| 237 | 244 | |
| 238 | 245 | public Date getLastCTime() { |
| 239 | 246 | return lastCTime; |
platform-dal/src/main/java/com/lyms/platform/pojo/PersonModel.java
View file @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 | |
| 6 | 7 | |
| ... | ... | @@ -13,11 +14,13 @@ |
| 13 | 14 | @Document(collection="lyms_premarital_checkup") |
| 14 | 15 | public class PremaritalCheckup extends BaseModel { |
| 15 | 16 | |
| 17 | + private static final long serialVersionUID = SerialIdEnum.PremaritalCheckup.getCid(); | |
| 18 | + | |
| 16 | 19 | private String id; |
| 17 | 20 | //女性/男性ID |
| 18 | 21 | private String parentId; |
| 19 | 22 | //婚检时间 |
| 20 | - private String premaritalUpTime; | |
| 23 | + private Date premaritalUpTime; | |
| 21 | 24 | //医院ID |
| 22 | 25 | private String hospitalId; |
| 23 | 26 | //创建时间 |
| 24 | 27 | |
| ... | ... | @@ -404,11 +407,11 @@ |
| 404 | 407 | this.parentId = parentId; |
| 405 | 408 | } |
| 406 | 409 | |
| 407 | - public String getPremaritalUpTime() { | |
| 410 | + public Date getPremaritalUpTime() { | |
| 408 | 411 | return premaritalUpTime; |
| 409 | 412 | } |
| 410 | 413 | |
| 411 | - public void setPremaritalUpTime(String premaritalUpTime) { | |
| 414 | + public void setPremaritalUpTime(Date premaritalUpTime) { | |
| 412 | 415 | this.premaritalUpTime = premaritalUpTime; |
| 413 | 416 | } |
| 414 | 417 |
platform-dal/src/main/java/com/lyms/platform/pojo/PuerperaModel.java
View file @
16ae4f6
| ... | ... | @@ -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 @
16ae4f6
| ... | ... | @@ -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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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 @
16ae4f6
| 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; |
platform-dal/src/main/java/com/lyms/platform/query/PremaritalCheckupQuery.java
View file @
16ae4f6
| ... | ... | @@ -5,10 +5,13 @@ |
| 5 | 5 | import com.lyms.platform.common.dao.operator.MongoCondition; |
| 6 | 6 | import com.lyms.platform.common.dao.operator.MongoOper; |
| 7 | 7 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 8 | +import org.apache.commons.collections.CollectionUtils; | |
| 8 | 9 | import org.apache.commons.lang.StringUtils; |
| 9 | 10 | import org.springframework.data.mongodb.core.query.Criteria; |
| 10 | 11 | |
| 12 | +import java.util.ArrayList; | |
| 11 | 13 | import java.util.Date; |
| 14 | +import java.util.List; | |
| 12 | 15 | |
| 13 | 16 | /** |
| 14 | 17 | * Created by Administrator on 2016/11/23 0023. |
| ... | ... | @@ -47,6 +50,8 @@ |
| 47 | 50 | private Integer yiXueYiJian; |
| 48 | 51 | //性别类型 |
| 49 | 52 | private Integer sexType; |
| 53 | + //建档ID | |
| 54 | + List<String> parentIds; | |
| 50 | 55 | |
| 51 | 56 | |
| 52 | 57 | @Override |
| ... | ... | @@ -61,6 +66,9 @@ |
| 61 | 66 | if (StringUtils.isNotBlank(hospitalId)) { |
| 62 | 67 | condition = condition.and("hospitalId", hospitalId, MongoOper.IS); |
| 63 | 68 | } |
| 69 | + if(CollectionUtils.isNotEmpty(parentIds)){ | |
| 70 | + condition = condition.and("parentId", parentIds, MongoOper.IN); | |
| 71 | + } | |
| 64 | 72 | if (created!=null) { |
| 65 | 73 | condition = condition.and("created", created, MongoOper.IS); |
| 66 | 74 | } |
| ... | ... | @@ -109,6 +117,14 @@ |
| 109 | 117 | condition = condition.andCondition(new MongoCondition(c1)); |
| 110 | 118 | } |
| 111 | 119 | return condition.toMongoQuery(); |
| 120 | + } | |
| 121 | + | |
| 122 | + public List<String> getParentIds() { | |
| 123 | + return parentIds; | |
| 124 | + } | |
| 125 | + | |
| 126 | + public void setParentIds(List<String> parentIds) { | |
| 127 | + this.parentIds = parentIds; | |
| 112 | 128 | } |
| 113 | 129 | |
| 114 | 130 | public Integer getSexType() { |
platform-data-api/src/main/java/com/lyms/platform/data/util/AmsMessageService.java
View file @
16ae4f6
| ... | ... | @@ -183,7 +183,7 @@ |
| 183 | 183 | |
| 184 | 184 | |
| 185 | 185 | public static void main(String[] args) { |
| 186 | - Map<String,List<MessageContent>> list = getMessageTemplateMap("61f0255b-3c3b-4d5e-99e0-ee3649769a9c", | |
| 186 | + Map<String,List<MessageContent>> list = getMessageTemplateMap("1000000006", | |
| 187 | 187 | AmsServiceTypeEnum.CHILD_GUIDE); |
| 188 | 188 | |
| 189 | 189 | // List<MessageContent> msgs = list.get("肺结核"); |
platform-data-api/src/main/resources/spring/applicationContext-quartz.xml
View file @
16ae4f6
| ... | ... | @@ -9,8 +9,8 @@ |
| 9 | 9 | http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache-3.1.xsd |
| 10 | 10 | http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd"> |
| 11 | 11 | |
| 12 | - <!--<bean id="startWorkJob" class="com.lyms.platform.data.service.impl.SmsServiceImpl"></bean>--> | |
| 13 | - <!--<!– 配置任务的具体类和方法 –>--> | |
| 12 | + <bean id="startWorkJob" class="com.lyms.platform.data.service.impl.SmsServiceImpl"></bean> | |
| 13 | + <!-- 配置任务的具体类和方法 --> | |
| 14 | 14 | <!--<bean id="startWorkTask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">--> |
| 15 | 15 | <!--<!– 要调用的bean –>--> |
| 16 | 16 | <!--<property name="targetObject" ref="startWorkJob"></property>--> |
| 17 | 17 | |
| 18 | 18 | |
| ... | ... | @@ -25,13 +25,31 @@ |
| 25 | 25 | <!--<property name="cronExpression" value="0 0 1 * * ?"></property>--> |
| 26 | 26 | <!--</bean>--> |
| 27 | 27 | |
| 28 | - <!--<!– 总调度,用于启动定时器 –>--> | |
| 28 | + <!-- 总调度,用于启动定时器 --> | |
| 29 | 29 | <!--<bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">--> |
| 30 | 30 | <!--<property name="triggers" >--> |
| 31 | 31 | <!--<list>--> |
| 32 | - <!--<ref bean="startWorkTrigger"/>--> | |
| 32 | + <!--<!–<ref bean="startWorkTrigger"/>–>--> | |
| 33 | + <!--<ref bean="deleteDueSmsTrigger"/>--> | |
| 33 | 34 | <!--</list>--> |
| 34 | 35 | <!--</property>--> |
| 36 | + <!--</bean>--> | |
| 37 | + | |
| 38 | + | |
| 39 | + <!--<bean id="deleteDueSmsJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">--> | |
| 40 | + <!--<!– 要调用的bean –>--> | |
| 41 | + <!--<property name="targetObject" ref="startWorkJob"></property>--> | |
| 42 | + <!--<!– 要调用的Method –>--> | |
| 43 | + <!--<property name="targetMethod" value="deleteDueSms"></property>--> | |
| 44 | + <!--<!– 是否并发,false表示 如果发生错误也不影响下一次的调用 –>--> | |
| 45 | + <!--<property name="concurrent" value="false"></property>--> | |
| 46 | + <!--</bean>--> | |
| 47 | + | |
| 48 | + | |
| 49 | + <!--<!– 配置一个触发器 –>--> | |
| 50 | + <!--<bean id="deleteDueSmsTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">--> | |
| 51 | + <!--<property name="jobDetail" ref="deleteDueSmsJob"></property>--> | |
| 52 | + <!--<property name="cronExpression" value="0 20 16 * * ?"></property>--> | |
| 35 | 53 | <!--</bean>--> |
| 36 | 54 | </beans> |
platform-operate-api/src/main/java/com/lyms/hospitalapi/pojo/PregPatientinfo.java
View file @
16ae4f6
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java
View file @
16ae4f6
| ... | ... | @@ -328,5 +328,36 @@ |
| 328 | 328 | return result; |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | + public List<Map<String,Object>> getPatientInfoList(String cardNo){ | |
| 332 | + List<Map<String,Object>> result = new ArrayList<>(); | |
| 333 | + if (StringUtils.isNotBlank(cardNo)) { | |
| 334 | + Connection conn = com.lyms.hospitalapi.qhdfy.ConnTools.makeHisConnection(); | |
| 335 | + QueryRunner queryRunner = new QueryRunner(); | |
| 336 | + try { | |
| 337 | + List<PregPatientinfo> list = queryRunner.query(conn, "select top 1 patid as P_ID,cardno as P_CARDNO,hzxm as P_NAME, sex as P_SEX, birth as P_BIRTHDAY, sfzh as P_IDNUM, lxdh as P_MOBILEPHONE from SF_BRXXK where cardno= '"+cardNo+"'", new BeanListHandler<PregPatientinfo>(PregPatientinfo.class)); | |
| 338 | + if (list.size() > 0) { | |
| 339 | + for (PregPatientinfo info:list) { | |
| 340 | + Map<String,Object> map = new HashMap<>(); | |
| 341 | + map.put("bhnum", info.getP_BHNUM()); | |
| 342 | + if ("1".equals(info.getP_SEX())) { | |
| 343 | + map.put("sex", "男"); | |
| 344 | + } else if ("2".equals(info.getP_SEX())) { | |
| 345 | + map.put("sex", "女"); | |
| 346 | + } | |
| 347 | + map.put("name", info.getP_NAME()); | |
| 348 | + map.put("cardNo", info.getP_CARDNO()); | |
| 349 | + map.put("phone", info.getP_MOBILEPHONE()); | |
| 350 | + map.put("birth", DateUtil.getyyyy_MM_dd(info.getP_BIRTHDAY())); | |
| 351 | + result.add(map); | |
| 352 | + } | |
| 353 | + } | |
| 354 | + DbUtils.closeQuietly(conn); | |
| 355 | + } catch (SQLException e) { | |
| 356 | + DbUtils.closeQuietly(conn); | |
| 357 | + e.printStackTrace(); | |
| 358 | + } | |
| 359 | + } | |
| 360 | + return result; | |
| 361 | + } | |
| 331 | 362 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/FolicAcidController.java
View file @
16ae4f6
| ... | ... | @@ -57,6 +57,17 @@ |
| 57 | 57 | return folicAcidFacade.queryFolicAcid(folicAcidQueryRequest); |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | + //删除叶酸发放记录 | |
| 61 | + @RequestMapping(value = "/deleteFolicAcid", method = RequestMethod.DELETE) | |
| 62 | + @ResponseBody | |
| 63 | + @TokenRequired | |
| 64 | + public BaseResponse deleteFolicAcid(@RequestParam("id") String id, | |
| 65 | + HttpServletRequest request) { | |
| 66 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 67 | + return folicAcidFacade.deleteFolicAcid(id,loginState.getId()); | |
| 68 | + } | |
| 69 | + | |
| 70 | + | |
| 60 | 71 | //叶酸数据导出 |
| 61 | 72 | @RequestMapping(value = "/folicAcidExport", method = RequestMethod.GET) |
| 62 | 73 | @ResponseBody |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/InitDataController.java
View file @
16ae4f6
| ... | ... | @@ -6,25 +6,20 @@ |
| 6 | 6 | import com.lyms.platform.common.dao.operator.MongoQuery; |
| 7 | 7 | import com.lyms.platform.common.result.BaseModel; |
| 8 | 8 | import com.lyms.platform.common.utils.*; |
| 9 | -import com.lyms.platform.common.utils.ReflectionUtils; | |
| 10 | -import com.lyms.platform.common.utils.StringUtils; | |
| 11 | 9 | import com.lyms.platform.pojo.*; |
| 12 | 10 | import org.apache.commons.codec.binary.Base64; |
| 13 | 11 | import org.apache.commons.httpclient.HttpClient; |
| 14 | 12 | import org.apache.commons.httpclient.NameValuePair; |
| 15 | 13 | import org.apache.commons.httpclient.methods.PostMethod; |
| 16 | -import org.apache.commons.io.FileUtils; | |
| 17 | 14 | import org.springframework.beans.factory.annotation.Autowired; |
| 18 | 15 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 19 | 16 | import org.springframework.data.mongodb.core.query.Query; |
| 20 | 17 | import org.springframework.data.mongodb.core.query.Update; |
| 21 | 18 | import org.springframework.stereotype.Controller; |
| 22 | -import org.springframework.util.*; | |
| 23 | 19 | import org.springframework.web.bind.annotation.RequestMapping; |
| 24 | 20 | import org.springframework.web.bind.annotation.RequestMethod; |
| 25 | 21 | import org.springframework.web.bind.annotation.ResponseBody; |
| 26 | 22 | |
| 27 | -import java.io.Serializable; | |
| 28 | 23 | import java.util.ArrayList; |
| 29 | 24 | import java.util.List; |
| 30 | 25 | |
| ... | ... | @@ -86,7 +81,7 @@ |
| 86 | 81 | boolean boo = postser(synclist, cla.getName()); |
| 87 | 82 | if (!boo) { |
| 88 | 83 | System.out.println(cla.getName()); |
| 89 | - System.out.println(JsonUtil.array2JsonString(list)); | |
| 84 | + System.out.println(JsonUtil.array2JsonString(synclist)); | |
| 90 | 85 | } |
| 91 | 86 | synclist.clear(); |
| 92 | 87 | } |
| ... | ... | @@ -95,7 +90,7 @@ |
| 95 | 90 | boolean boo = postser(synclist, cla.getName()); |
| 96 | 91 | if (!boo) { |
| 97 | 92 | System.out.println(cla.getName()); |
| 98 | - System.out.println(JsonUtil.array2JsonString(list)); | |
| 93 | + System.out.println(JsonUtil.array2JsonString(synclist)); | |
| 99 | 94 | } |
| 100 | 95 | } |
| 101 | 96 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ResidentsArchiveController.java
View file @
16ae4f6
| ... | ... | @@ -141,10 +141,10 @@ |
| 141 | 141 | */ |
| 142 | 142 | @RequestMapping(value = "/sendWomenGuildSms", method = RequestMethod.POST) |
| 143 | 143 | @ResponseBody |
| 144 | - @TokenRequired | |
| 144 | +// @TokenRequired | |
| 145 | 145 | public BaseResponse womenGuildSms(@RequestBody @Valid WomenGuideSmsRequest womenGuideSmsRequest,HttpServletRequest request){ |
| 146 | - LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 147 | - return residentsArchiveFacade.womenGuildSms(womenGuideSmsRequest, loginState.getId()); | |
| 146 | +// LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 147 | + return residentsArchiveFacade.womenGuildSms(womenGuideSmsRequest, null); | |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | 150 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
16ae4f6
| ... | ... | @@ -6,6 +6,7 @@ |
| 6 | 6 | import com.lyms.platform.biz.service.PatientsService; |
| 7 | 7 | import com.lyms.platform.biz.service.SieveService; |
| 8 | 8 | import com.lyms.platform.common.enums.YnEnums; |
| 9 | +import com.lyms.platform.common.utils.CompressEncodeingUtil; | |
| 9 | 10 | import com.lyms.platform.common.utils.DateUtil; |
| 10 | 11 | import com.lyms.platform.common.utils.JsonUtil; |
| 11 | 12 | import com.lyms.platform.operate.web.service.SyncDataTaskService; |
| ... | ... | @@ -155,6 +156,14 @@ |
| 155 | 156 | // return "starting..........."; |
| 156 | 157 | // } |
| 157 | 158 | |
| 159 | + @RequestMapping(value = "/uncompress", method = RequestMethod.GET) | |
| 160 | + @ResponseBody | |
| 161 | + public String uncompress(String watermark) { | |
| 162 | + Long l = CompressEncodeingUtil.unCompressNumber(watermark); | |
| 163 | + String s = l.toString(); | |
| 164 | + int len = s.length(); | |
| 165 | + return s.substring(0,len-6) + "," + s.substring(len-6); | |
| 166 | + } | |
| 158 | 167 | |
| 159 | 168 | @RequestMapping(value = "/addSieveJob", method = RequestMethod.GET) |
| 160 | 169 | @ResponseBody |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
16ae4f6
| ... | ... | @@ -631,7 +631,7 @@ |
| 631 | 631 | Object obj = map.get("fxysu"); |
| 632 | 632 | if (null != obj && !"null".equals(obj.toString()) && !"".equals(obj.toString())) { |
| 633 | 633 | map1.put("name", map.get("fxysu")); |
| 634 | - | |
| 634 | + highScoreResult.setOtherRisk(map.get("fxysu").toString()); | |
| 635 | 635 | Object idObj1 = map.get("fyyse"); |
| 636 | 636 | if (null != idObj1 && !"null".equals(idObj1.toString()) && !"".equals(idObj1.toString())) { |
| 637 | 637 | BasicConfig basicConfig = basicConfigService.getOneBasicConfigById(idObj1.toString()); |
| ... | ... | @@ -709,6 +709,7 @@ |
| 709 | 709 | Object obj = map.get("fxysu"); |
| 710 | 710 | if (null != obj && !"null".equals(obj.toString()) && !"".equals(obj.toString())) { |
| 711 | 711 | map1.put("name", map.get("fxysu")); |
| 712 | + highScoreResult.setOtherRisk(map.get("fxysu").toString()); | |
| 712 | 713 | Object idObj1 = map.get("fyyse"); |
| 713 | 714 | if (null != idObj1 && !"null".equals(idObj1.toString()) && !"".equals(idObj1.toString())) { |
| 714 | 715 | BasicConfig basicConfig = basicConfigService.getOneBasicConfigById(idObj1.toString()); |
| 715 | 716 | |
| ... | ... | @@ -1506,9 +1507,9 @@ |
| 1506 | 1507 | antExChuQuery.setYn(YnEnums.YES.getId()); |
| 1507 | 1508 | antExChuQuery.setHospitalId(pat.getHospitalId()); |
| 1508 | 1509 | antExChuQuery.setParentId(pat.getId()); |
| 1510 | + Date nextTime = null; | |
| 1509 | 1511 | List<AntExChuModel> chus = antenatalExaminationService.queryAntExChu(antExChuQuery); |
| 1510 | 1512 | if (CollectionUtils.isNotEmpty(chus)) { |
| 1511 | - Date nextTime = null; | |
| 1512 | 1513 | AntExChuModel chu = chus.get(0); |
| 1513 | 1514 | if (chu != null) |
| 1514 | 1515 | { |
| 1515 | 1516 | |
| 1516 | 1517 | |
| ... | ... | @@ -1527,11 +1528,9 @@ |
| 1527 | 1528 | nextTime = ae.getNextCheckTime(); |
| 1528 | 1529 | } |
| 1529 | 1530 | } |
| 1530 | - patientsService.updatePatientOneCol(pat.getId(), nextTime); | |
| 1531 | - | |
| 1532 | 1531 | } |
| 1533 | - | |
| 1534 | 1532 | } |
| 1533 | + patientsService.updatePatientOneCol(pat.getId(), nextTime); | |
| 1535 | 1534 | } |
| 1536 | 1535 | } |
| 1537 | 1536 | } |
| ... | ... | @@ -1559,7 +1558,8 @@ |
| 1559 | 1558 | patients1.setRiskScore(highScoreResult.getScore()); |
| 1560 | 1559 | patients1.setRiskFactorId(highScoreResult.getHighId()); |
| 1561 | 1560 | patients1.setRiskLevelId(JsonUtil.array2JsonString(highScoreResult.getLevelId())); |
| 1562 | - | |
| 1561 | + //设置其他的高危因素 | |
| 1562 | + patients1.setoRiskFactor(highScoreResult.getOtherRisk()); | |
| 1563 | 1563 | patientsService.findAndModify(patientsQuery1, patients1); |
| 1564 | 1564 | } |
| 1565 | 1565 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
16ae4f6
| 1 | 1 | package com.lyms.platform.operate.web.facade; |
| 2 | 2 | |
| 3 | 3 | import com.lyms.hospitalapi.fnfy.FnfyHisService; |
| 4 | +import com.lyms.hospitalapi.qhdfy.QhdfyHisService; | |
| 4 | 5 | import com.lyms.hospitalapi.qinglongxian.QingLongXianHisService; |
| 5 | 6 | import com.lyms.hospitalapi.v2.HisService; |
| 6 | 7 | import com.lyms.platform.biz.service.*; |
| ... | ... | @@ -48,6 +49,8 @@ |
| 48 | 49 | @Autowired |
| 49 | 50 | private FnfyHisService fnfyHisService; |
| 50 | 51 | |
| 52 | + @Autowired | |
| 53 | + private QhdfyHisService qhdfyHisService; | |
| 51 | 54 | |
| 52 | 55 | @Autowired |
| 53 | 56 | private BabyBookbuildingService babyBookbuildingService; |
| ... | ... | @@ -642,89 +645,6 @@ |
| 642 | 645 | } |
| 643 | 646 | |
| 644 | 647 | |
| 645 | - public static void main(String[] args) { | |
| 646 | - | |
| 647 | - Integer serviceType = 1; | |
| 648 | - Integer serviceStatus = 3; | |
| 649 | - List<SmsTemplateModel> sendList = new ArrayList<>(); | |
| 650 | - List<SmsTemplateModel> temps = new ArrayList<>(); | |
| 651 | - | |
| 652 | - SmsTemplateModel model = new SmsTemplateModel(); | |
| 653 | - model.setServiceType(100); | |
| 654 | - model.setServiceStatus(7); | |
| 655 | - temps.add(model); | |
| 656 | - | |
| 657 | - if (CollectionUtils.isNotEmpty(temps)) { | |
| 658 | - | |
| 659 | - for (SmsTemplateModel temp : temps) { | |
| 660 | - if (temp.getServiceType() == serviceType && temp.getServiceStatus() == serviceStatus) { | |
| 661 | - sendList.add(temp); | |
| 662 | - break; | |
| 663 | - } | |
| 664 | - } | |
| 665 | - | |
| 666 | - for (SmsTemplateModel temp : temps) { | |
| 667 | - if (temp.getServiceStatus() == ServiceStatusEnums.STANDARD_ALL.getId()) { | |
| 668 | - if (serviceStatus == ServiceStatusEnums.STANDARD_OPEN.getId() || serviceStatus == ServiceStatusEnums.NO_OPEN.getId() || serviceStatus == ServiceStatusEnums.STANDARD_OVERDUE.getId()) { | |
| 669 | - sendList.add(temp); | |
| 670 | - break; | |
| 671 | - } | |
| 672 | - } | |
| 673 | - } | |
| 674 | - | |
| 675 | - for (SmsTemplateModel temp : temps) { | |
| 676 | - if (temp.getServiceStatus() == ServiceStatusEnums.ADD_ALL.getId()) { | |
| 677 | - if (serviceStatus == ServiceStatusEnums.ADD_OPEN.getId() || serviceStatus == ServiceStatusEnums.UNSUBSCRIBE.getId() | |
| 678 | - || serviceStatus == ServiceStatusEnums.ADD_OVERDUE.getId() || serviceStatus == ServiceStatusEnums.SUSPEND.getId()) { | |
| 679 | - sendList.add(temp); | |
| 680 | - break; | |
| 681 | - } | |
| 682 | - } | |
| 683 | - } | |
| 684 | - | |
| 685 | - | |
| 686 | - for (SmsTemplateModel temp : temps) { | |
| 687 | - if (temp.getServiceStatus() == ServiceStatusEnums.ALL_OPEN.getId()) { | |
| 688 | - if (serviceStatus == ServiceStatusEnums.STANDARD_OPEN.getId() || serviceStatus == ServiceStatusEnums.ADD_OPEN.getId()) { | |
| 689 | - sendList.add(temp); | |
| 690 | - break; | |
| 691 | - } | |
| 692 | - } | |
| 693 | - } | |
| 694 | - | |
| 695 | - | |
| 696 | - for (SmsTemplateModel temp : temps) { | |
| 697 | - if (temp.getServiceStatus() == ServiceStatusEnums.ALL_NO_OPEN.getId()) { | |
| 698 | - if (serviceStatus == ServiceStatusEnums.NO_OPEN.getId() || serviceStatus == ServiceStatusEnums.UNSUBSCRIBE.getId()) { | |
| 699 | - sendList.add(temp); | |
| 700 | - break; | |
| 701 | - } | |
| 702 | - } | |
| 703 | - } | |
| 704 | - | |
| 705 | - | |
| 706 | - for (SmsTemplateModel temp : temps) { | |
| 707 | - if (temp.getServiceStatus() == ServiceStatusEnums.ALL_OVERDUE.getId()) { | |
| 708 | - if (serviceStatus == ServiceStatusEnums.STANDARD_OVERDUE.getId() || serviceStatus == ServiceStatusEnums.ADD_OVERDUE.getId()) { | |
| 709 | - sendList.add(temp); | |
| 710 | - break; | |
| 711 | - } | |
| 712 | - } | |
| 713 | - } | |
| 714 | - | |
| 715 | - | |
| 716 | - for (SmsTemplateModel temp : temps) { | |
| 717 | - if (temp.getServiceType() == ServiceTypeEnums.ALL_SERVICE.getId() && temp.getServiceStatus() == ServiceStatusEnums.ALL.getId()) { | |
| 718 | - sendList.add(temp); | |
| 719 | - break; | |
| 720 | - } | |
| 721 | - } | |
| 722 | - | |
| 723 | - System.out.print(sendList.size()); | |
| 724 | - } | |
| 725 | - } | |
| 726 | - | |
| 727 | - | |
| 728 | 648 | /** |
| 729 | 649 | * 准备修改和添加的孕妇建档数据 |
| 730 | 650 | * |
| ... | ... | @@ -1290,6 +1210,8 @@ |
| 1290 | 1210 | map.put("hisPatient", qingLongXianHisService.getPatientInfoList(param.getVcCardNo())); |
| 1291 | 1211 | } else if ("5".equals(HIS_VERSION)) { |
| 1292 | 1212 | map.put("hisPatient", fnfyHisService.getPatientInfoList(param.getVcCardNo())); |
| 1213 | + }else if ("4".equals(HIS_VERSION)) { | |
| 1214 | + map.put("hisPatient", qhdfyHisService.getPatientInfoList(param.getVcCardNo())); | |
| 1293 | 1215 | } |
| 1294 | 1216 | } |
| 1295 | 1217 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BookbuildingFacade.java
View file @
16ae4f6
| 1 | 1 | package com.lyms.platform.operate.web.facade; |
| 2 | 2 | |
| 3 | 3 | import com.lyms.hospitalapi.fnfy.FnfyHisService; |
| 4 | +import com.lyms.hospitalapi.qhdfy.QhdfyHisService; | |
| 4 | 5 | import com.lyms.hospitalapi.qinglongxian.QingLongXianHisService; |
| 5 | 6 | import com.lyms.hospitalapi.v2.HisService; |
| 6 | 7 | import com.lyms.platform.biz.dal.IPersonDao; |
| ... | ... | @@ -90,6 +91,8 @@ |
| 90 | 91 | |
| 91 | 92 | @Autowired |
| 92 | 93 | private FnfyHisService fnfyHisService; |
| 94 | + @Autowired | |
| 95 | + private QhdfyHisService qhdfyHisService; | |
| 93 | 96 | |
| 94 | 97 | |
| 95 | 98 | @Autowired |
| ... | ... | @@ -565,6 +568,8 @@ |
| 565 | 568 | typeMap.put("hisPatient", qingLongXianHisService.getPatientInfoList(bookbuildingQueryRequest.getVcCardNo())); |
| 566 | 569 | } else if ("5".equals(HIS_VERSION)) { |
| 567 | 570 | typeMap.put("hisPatient", fnfyHisService.getPatientInfoList(bookbuildingQueryRequest.getVcCardNo())); |
| 571 | + }else if ("4".equals(HIS_VERSION)) { | |
| 572 | + typeMap.put("hisPatient", qhdfyHisService.getPatientInfoList(bookbuildingQueryRequest.getVcCardNo())); | |
| 568 | 573 | } |
| 569 | 574 | } |
| 570 | 575 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/FolicAcidFacade.java
View file @
16ae4f6
| ... | ... | @@ -19,14 +19,12 @@ |
| 19 | 19 | import com.lyms.platform.permission.model.Users; |
| 20 | 20 | import com.lyms.platform.permission.service.OrganizationService; |
| 21 | 21 | import com.lyms.platform.permission.service.UsersService; |
| 22 | -import com.lyms.platform.pojo.BasicConfig; | |
| 23 | 22 | import com.lyms.platform.pojo.FolicAcid; |
| 24 | 23 | import com.lyms.platform.pojo.ResidentsArchiveModel; |
| 25 | 24 | import com.lyms.platform.query.FolicAcidQuery; |
| 26 | 25 | import com.lyms.platform.query.ResidentsArchiveQuery; |
| 27 | 26 | import org.apache.commons.collections.CollectionUtils; |
| 28 | 27 | import org.apache.commons.lang.StringUtils; |
| 29 | -import org.apache.struts.config.BaseConfig; | |
| 30 | 28 | import org.springframework.beans.factory.annotation.Autowired; |
| 31 | 29 | import org.springframework.stereotype.Component; |
| 32 | 30 | |
| ... | ... | @@ -286,6 +284,18 @@ |
| 286 | 284 | baseListResponse.setData(list); |
| 287 | 285 | baseListResponse.setPageInfo(folicAcidQuery.getPageInfo()); |
| 288 | 286 | return baseListResponse; |
| 287 | + } | |
| 288 | + | |
| 289 | + public BaseResponse deleteFolicAcid(String id,Integer userId){ | |
| 290 | + BaseResponse br = new BaseResponse(); | |
| 291 | + if (StringUtils.isNotEmpty(id)){ | |
| 292 | + FolicAcid folicAcid = folicAcidService.getFolicAcid(id); | |
| 293 | + folicAcid.setYn(YnEnums.NO.getId()); | |
| 294 | + folicAcid.setModified(new Date()); | |
| 295 | + folicAcidService.updateFolicAcid(folicAcid,id); | |
| 296 | + return br.setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 297 | + } | |
| 298 | + return br.setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("id is null"); | |
| 289 | 299 | } |
| 290 | 300 | |
| 291 | 301 | //叶酸发放导出 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PremaritalCheckupFacade.java
View file @
16ae4f6
| ... | ... | @@ -29,6 +29,8 @@ |
| 29 | 29 | import org.springframework.data.domain.Sort; |
| 30 | 30 | import org.springframework.stereotype.Component; |
| 31 | 31 | |
| 32 | +import javax.servlet.http.HttpServletResponse; | |
| 33 | +import java.io.OutputStream; | |
| 32 | 34 | import java.util.*; |
| 33 | 35 | |
| 34 | 36 | /** |
| ... | ... | @@ -47,6 +49,8 @@ |
| 47 | 49 | private BasicConfigService basicConfigService; |
| 48 | 50 | @Autowired |
| 49 | 51 | private OrganizationService organizationService; |
| 52 | + @Autowired | |
| 53 | + private AutoMatchFacade autoMatchFacade; | |
| 50 | 54 | |
| 51 | 55 | /** |
| 52 | 56 | * 查询单个(男/女)婚前检查 |
| ... | ... | @@ -108,7 +112,7 @@ |
| 108 | 112 | for (PremaritalCheckup data : checkupList){ |
| 109 | 113 | PremaritalCheckupHistoryResult historyResult = new PremaritalCheckupHistoryResult(); |
| 110 | 114 | historyResult.setId(data.getId()); |
| 111 | - historyResult.setPremaritalUpTime(data.getPremaritalUpTime()); | |
| 115 | + historyResult.setPremaritalUpTime(DateUtil.getyyyy_MM_dd(data.getPremaritalUpTime())); | |
| 112 | 116 | Organization org = organizationService.getOrganization(Integer.valueOf(data.getHospitalId())); |
| 113 | 117 | if (org!=null){ |
| 114 | 118 | historyResult.setPremaritalUpHospital(org.getName()); |
| 115 | 119 | |
| 116 | 120 | |
| 117 | 121 | |
| 118 | 122 | |
| 119 | 123 | |
| 120 | 124 | |
| 121 | 125 | |
| 122 | 126 | |
| 123 | 127 | |
| 124 | 128 | |
| ... | ... | @@ -160,41 +164,42 @@ |
| 160 | 164 | * @param request |
| 161 | 165 | * @return |
| 162 | 166 | */ |
| 163 | - public BaseListResponse queryPremaritalCheckup(PremaritalCheckupQueryRequest request){ | |
| 167 | + public BaseListResponse queryPremaritalCheckup(PremaritalCheckupQueryRequest request) { | |
| 164 | 168 | |
| 165 | - List<PremaritalCheckup> data = new ArrayList<>(); | |
| 169 | + List<String> parentIds = null; | |
| 166 | 170 | |
| 167 | - List<String> parentIds = new ArrayList<>(); | |
| 168 | - | |
| 169 | 171 | //用姓名和联系方式查询到的居民建档ID |
| 170 | - if (StringUtils.isNotEmpty(request.getUsername()) || StringUtils.isNotEmpty(request.getPhone())){ | |
| 172 | + if (StringUtils.isNotEmpty(request.getUsername()) || StringUtils.isNotEmpty(request.getPhone()) || StringUtils.isNotEmpty(request.getCardNo())) { | |
| 171 | 173 | ResidentsArchiveQuery archiveQuery = new ResidentsArchiveQuery(); |
| 172 | 174 | archiveQuery.setYn(YnEnums.YES.getId()); |
| 173 | 175 | archiveQuery.setUsername(request.getUsername()); |
| 176 | + archiveQuery.setCertificateNum(request.getCardNo()); | |
| 174 | 177 | archiveQuery.setPhone(request.getPhone()); |
| 175 | 178 | archiveQuery.setHospitalId(request.getHospitalId()); |
| 176 | 179 | List<ResidentsArchiveModel> modelList = residentsArchiveService.queryResident(archiveQuery); |
| 177 | - if (CollectionUtils.isNotEmpty(modelList)){ | |
| 178 | - for (ResidentsArchiveModel model : modelList){ | |
| 180 | + parentIds = new ArrayList<>(); | |
| 181 | + if (CollectionUtils.isNotEmpty(modelList)) { | |
| 182 | + for (ResidentsArchiveModel model : modelList) { | |
| 179 | 183 | parentIds.add(model.getId()); |
| 180 | 184 | } |
| 185 | + }else { | |
| 186 | + parentIds.add("-1"); | |
| 181 | 187 | } |
| 182 | 188 | } |
| 183 | - | |
| 184 | 189 | PremaritalCheckupQuery query = new PremaritalCheckupQuery(); |
| 185 | 190 | query.setPage(request.getPage()); |
| 186 | 191 | query.setLimit(request.getLimit()); |
| 187 | 192 | query.setNeed("y"); |
| 188 | 193 | query.setYn(YnEnums.YES.getId()); |
| 189 | - query.setCertificateNum(request.getCardNo()); | |
| 194 | + | |
| 190 | 195 | query.setYiXueYiJian(request.getYiXueYiJian()); |
| 191 | 196 | |
| 192 | - if(StringUtils.isNotEmpty(request.getPremaritalUpTime())){ | |
| 197 | + if (StringUtils.isNotEmpty(request.getPremaritalUpTime())) { | |
| 193 | 198 | String[] dates = request.getPremaritalUpTime().split(" - "); |
| 194 | 199 | query.setPremaritalUpTimeStart(DateUtil.parseYMD(dates[0])); |
| 195 | - if(dates.length>=2){ | |
| 196 | - Date date= DateUtil.parseYMD(dates[1]); | |
| 197 | - if(null!=date){ | |
| 200 | + if (dates.length >= 2) { | |
| 201 | + Date date = DateUtil.parseYMD(dates[1]); | |
| 202 | + if (null != date) { | |
| 198 | 203 | long d = date.getTime() + 86398000; |
| 199 | 204 | date = new Date(d); |
| 200 | 205 | } |
| 201 | 206 | |
| 202 | 207 | |
| 203 | 208 | |
| 204 | 209 | |
| 205 | 210 | |
| 206 | 211 | |
| 207 | 212 | |
| 208 | 213 | |
| ... | ... | @@ -203,36 +208,30 @@ |
| 203 | 208 | } |
| 204 | 209 | query.setSexType(request.getSexType()); |
| 205 | 210 | |
| 206 | - if (CollectionUtils.isNotEmpty(parentIds)){ | |
| 207 | - for (String parentId : parentIds){ | |
| 208 | - query.setParentId(parentId); | |
| 209 | - List<PremaritalCheckup> premaritalCheckupList = premaritalCheckupService.queryPremaritalCheckup(query); | |
| 210 | - if (CollectionUtils.isNotEmpty(premaritalCheckupList)){ | |
| 211 | - data.addAll(premaritalCheckupList); | |
| 212 | - } | |
| 213 | - } | |
| 214 | - }else { | |
| 215 | - data = premaritalCheckupService.queryPremaritalCheckup(query); | |
| 211 | + if (parentIds!=null) { | |
| 212 | + query.setParentIds(parentIds); | |
| 216 | 213 | } |
| 217 | 214 | |
| 215 | + List<PremaritalCheckup> data = premaritalCheckupService.queryPremaritalCheckup(query); | |
| 218 | 216 | List<Map> list = new ArrayList<>(); |
| 219 | - if (CollectionUtils.isNotEmpty(data)){ | |
| 220 | - for (PremaritalCheckup checkup : data){ | |
| 221 | - Map<String,Object> map = new HashMap<>(); | |
| 217 | + if (CollectionUtils.isNotEmpty(data)) { | |
| 218 | + for (PremaritalCheckup checkup : data) { | |
| 219 | + Map<String, Object> map = new HashMap<>(); | |
| 222 | 220 | ResidentsArchiveModel model = residentsArchiveService.getResident(checkup.getParentId()); |
| 223 | - map.put("premaritalUpTime", checkup.getPremaritalUpTime()); | |
| 221 | + map.put("premaritalUpTime", DateUtil.getyyyy_MM_dd(checkup.getPremaritalUpTime())); | |
| 224 | 222 | map.put("username", model.getUsername()); |
| 225 | - map.put("certificateNum",model.getCertificateNum()); | |
| 223 | + map.put("certificateNum", model.getCertificateNum()); | |
| 226 | 224 | map.put("phone", model.getPhone()); |
| 227 | - if (checkup.getJianChaJieGuo() != null && checkup.getJianChaJieGuo()== PhysiologyStatusEnum.NORMAL.getId()){ | |
| 225 | + if (checkup.getJianChaJieGuo() != null && checkup.getJianChaJieGuo() == PhysiologyStatusEnum.NORMAL.getId()) { | |
| 228 | 226 | map.put("jianChaJieGuo", PhysiologyStatusEnum.NORMAL.getTitle()); |
| 229 | - }else { | |
| 227 | + } else { | |
| 230 | 228 | map.put("jianChaJieGuo", checkup.getJianChaDetails()); |
| 231 | 229 | } |
| 232 | - map.put("yiXueYiJian", checkup.getYiXueYiJian() ==null ? "" :MedicalAdviceEnum.getEnum(checkup.getYiXueYiJian()).getTitle()); | |
| 233 | - map.put("residence", CommonsHelper.getResidence(model.getProvinceId(),model.getCityId(),model.getAreaId(),model.getStreetId(), | |
| 234 | - model.getAddress(),basicConfigService)); | |
| 230 | + map.put("yiXueYiJian", checkup.getYiXueYiJian() == null ? "" : MedicalAdviceEnum.getEnum(checkup.getYiXueYiJian()).getTitle()); | |
| 231 | + map.put("residence", CommonsHelper.getResidence(model.getProvinceId(), model.getCityId(), model.getAreaId(), model.getStreetId(), | |
| 232 | + model.getAddress(), basicConfigService)); | |
| 235 | 233 | map.put("hunJianDoctor", checkup.getHunJianDoctor()); |
| 234 | + map.put("id", checkup.getId()); | |
| 236 | 235 | list.add(map); |
| 237 | 236 | } |
| 238 | 237 | } |
| ... | ... | @@ -279,7 +278,7 @@ |
| 279 | 278 | String id = null; |
| 280 | 279 | |
| 281 | 280 | PremaritalCheckup checkup = new PremaritalCheckup(); |
| 282 | - if (model.getSex() != null && model.getSex()== SystemConfig.WOMAN_ID){ | |
| 281 | + if (model.getSex() != null && model.getSex().equals(SystemConfig.WOMAN_ID)){ | |
| 283 | 282 | checkup.setSexType(1); |
| 284 | 283 | }else { |
| 285 | 284 | checkup.setSexType(2); |
| ... | ... | @@ -486,7 +485,7 @@ |
| 486 | 485 | checkup.setModified(new Date()); |
| 487 | 486 | checkup.setVcCardNo(addRequest.getVcCardNo()); |
| 488 | 487 | checkup.setCertificateNum(addRequest.getCertificateNum()); |
| 489 | - checkup.setPremaritalUpTime(addRequest.getPremaritalUpTime()); | |
| 488 | + checkup.setPremaritalUpTime(DateUtil.parseYMD(addRequest.getPremaritalUpTime())); | |
| 490 | 489 | if (StringUtils.isNotEmpty(addRequest.getId())){ |
| 491 | 490 | //修改 |
| 492 | 491 | checkup.setId(addRequest.getId()); |
| ... | ... | @@ -503,6 +502,33 @@ |
| 503 | 502 | id = premaritalCheckup.getId(); |
| 504 | 503 | } |
| 505 | 504 | return id; |
| 505 | + } | |
| 506 | + | |
| 507 | + //婚前检查导出 | |
| 508 | + public void premaritalCheckupExport(PremaritalCheckupQueryRequest request,Integer userId, | |
| 509 | + HttpServletResponse response){ | |
| 510 | + OutputStream out = null; | |
| 511 | + List<Map<String,Object>> list = new ArrayList<>(); | |
| 512 | + | |
| 513 | + try { | |
| 514 | + PremaritalCheckupQuery query = new PremaritalCheckupQuery(); | |
| 515 | + query.setYn(YnEnums.YES.getId()); | |
| 516 | + String hospitalId = autoMatchFacade.getHospitalId(userId); | |
| 517 | + query.setHospitalId(hospitalId); | |
| 518 | + | |
| 519 | + if (StringUtils.isNotEmpty(request.getPremaritalUpTime())){ | |
| 520 | + | |
| 521 | + } | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + }catch (Exception e){ | |
| 528 | + e.printStackTrace(); | |
| 529 | + } | |
| 530 | + | |
| 531 | + | |
| 506 | 532 | } |
| 507 | 533 | |
| 508 | 534 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ResidentsArchiveFacade.java
View file @
16ae4f6
| ... | ... | @@ -662,7 +662,7 @@ |
| 662 | 662 | * @return |
| 663 | 663 | */ |
| 664 | 664 | public BaseResponse womenGuildSms(WomenGuideSmsRequest request,Integer userId){ |
| 665 | - String hospitalId = ""; | |
| 665 | + String hospitalId = "216"; | |
| 666 | 666 | //得到当前登录的医院id |
| 667 | 667 | if (userId != null) { |
| 668 | 668 | Users dbuser = usersService.getUsers(userId); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/HighScoreResult.java
View file @
16ae4f6
| ... | ... | @@ -15,6 +15,9 @@ |
| 15 | 15 | private List highRisk = new ArrayList(); |
| 16 | 16 | //风险等级颜色 |
| 17 | 17 | private List level = new ArrayList(); |
| 18 | + | |
| 19 | + private String otherRisk; | |
| 20 | + | |
| 18 | 21 | //高危评分 |
| 19 | 22 | private Integer score = 0; |
| 20 | 23 | |
| ... | ... | @@ -24,6 +27,14 @@ |
| 24 | 27 | |
| 25 | 28 | public List getLevel() { |
| 26 | 29 | return /*filter(*/level/*)*/; |
| 30 | + } | |
| 31 | + | |
| 32 | + public String getOtherRisk() { | |
| 33 | + return otherRisk; | |
| 34 | + } | |
| 35 | + | |
| 36 | + public void setOtherRisk(String otherRisk) { | |
| 37 | + this.otherRisk = otherRisk; | |
| 27 | 38 | } |
| 28 | 39 | |
| 29 | 40 | public static List filter(List<java.util.Map> level){ |