Commit b1050cce35551ee457a5b3645b8bce0a77d4855f
Exists in
master
and in
8 other branches
Merge remote-tracking branch 'origin/master'
Showing 16 changed files
- platform-dal/src/main/java/com/lyms/platform/pojo/AntExChuModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/AntenatalExaminationModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/MaternalDeliverModel.java
- platform-dal/src/main/java/com/lyms/platform/pojo/PostReviewModel.java
- platform-dal/src/main/java/com/lyms/platform/query/ReferralApplyOrderQuery.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AntenatalExaminationController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PostReviewController.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/ApplyOrderFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/AntData.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/AntexListResult.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/ReferralApplyOrderResult.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/SieveApplyOrderResult.java
platform-dal/src/main/java/com/lyms/platform/pojo/AntExChuModel.java
View file @
b1050cc
| ... | ... | @@ -85,6 +85,15 @@ |
| 85 | 85 | //附件 |
| 86 | 86 | private String fujian; |
| 87 | 87 | private Date created; |
| 88 | + private String hospitalId; | |
| 89 | + | |
| 90 | + public String getHospitalId() { | |
| 91 | + return hospitalId; | |
| 92 | + } | |
| 93 | + | |
| 94 | + public void setHospitalId(String hospitalId) { | |
| 95 | + this.hospitalId = hospitalId; | |
| 96 | + } | |
| 88 | 97 | |
| 89 | 98 | public String getCervical() { |
| 90 | 99 | return cervical; |
platform-dal/src/main/java/com/lyms/platform/pojo/AntenatalExaminationModel.java
View file @
b1050cc
| ... | ... | @@ -89,6 +89,16 @@ |
| 89 | 89 | private Integer yn; |
| 90 | 90 | private Date created; |
| 91 | 91 | |
| 92 | + private String hospitalId; | |
| 93 | + | |
| 94 | + public String getHospitalId() { | |
| 95 | + return hospitalId; | |
| 96 | + } | |
| 97 | + | |
| 98 | + public void setHospitalId(String hospitalId) { | |
| 99 | + this.hospitalId = hospitalId; | |
| 100 | + } | |
| 101 | + | |
| 92 | 102 | public String getTypeYc() { |
| 93 | 103 | return typeYc; |
| 94 | 104 | } |
platform-dal/src/main/java/com/lyms/platform/pojo/MaternalDeliverModel.java
View file @
b1050cc
| ... | ... | @@ -97,6 +97,15 @@ |
| 97 | 97 | private Integer yn; |
| 98 | 98 | private Date created; |
| 99 | 99 | private Date modified; |
| 100 | + private String hospitalId; | |
| 101 | + | |
| 102 | + public String getHospitalId() { | |
| 103 | + return hospitalId; | |
| 104 | + } | |
| 105 | + | |
| 106 | + public void setHospitalId(String hospitalId) { | |
| 107 | + this.hospitalId = hospitalId; | |
| 108 | + } | |
| 100 | 109 | |
| 101 | 110 | public Date getCreated() { |
| 102 | 111 | return created; |
platform-dal/src/main/java/com/lyms/platform/pojo/PostReviewModel.java
View file @
b1050cc
| ... | ... | @@ -87,6 +87,15 @@ |
| 87 | 87 | private Integer yn; |
| 88 | 88 | private Date created; |
| 89 | 89 | private Date modified; |
| 90 | + private String hospitalId; | |
| 91 | + | |
| 92 | + public String getHospitalId() { | |
| 93 | + return hospitalId; | |
| 94 | + } | |
| 95 | + | |
| 96 | + public void setHospitalId(String hospitalId) { | |
| 97 | + this.hospitalId = hospitalId; | |
| 98 | + } | |
| 90 | 99 | |
| 91 | 100 | public String getBasin() { |
| 92 | 101 | return basin; |
platform-dal/src/main/java/com/lyms/platform/query/ReferralApplyOrderQuery.java
View file @
b1050cc
| ... | ... | @@ -12,6 +12,8 @@ |
| 12 | 12 | */ |
| 13 | 13 | public class ReferralApplyOrderQuery extends BaseQuery implements IConvertToNativeQuery { |
| 14 | 14 | |
| 15 | + private String id; | |
| 16 | + | |
| 15 | 17 | private String parentId; |
| 16 | 18 | |
| 17 | 19 | /** |
| 18 | 20 | |
| ... | ... | @@ -72,11 +74,22 @@ |
| 72 | 74 | this.transferredHospital = transferredHospital; |
| 73 | 75 | } |
| 74 | 76 | |
| 77 | + public String getId() { | |
| 78 | + return id; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public void setId(String id) { | |
| 82 | + this.id = id; | |
| 83 | + } | |
| 84 | + | |
| 75 | 85 | @Override |
| 76 | 86 | public MongoQuery convertToQuery() { |
| 77 | 87 | MongoCondition condition = MongoCondition.newInstance(); |
| 78 | 88 | if(null!=parentId){ |
| 79 | 89 | condition=condition.and("parentId",parentId, MongoOper.IS); |
| 90 | + } | |
| 91 | + if(null!=id){ | |
| 92 | + condition=condition.and("id",id, MongoOper.IS); | |
| 80 | 93 | } |
| 81 | 94 | if(null!=name){ |
| 82 | 95 | condition=condition.and("name",name, MongoOper.IS); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/AntenatalExaminationController.java
View file @
b1050cc
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.annotation.TokenRequired; | |
| 3 | 4 | import com.lyms.platform.common.base.BaseController; |
| 5 | +import com.lyms.platform.common.base.LoginContext; | |
| 4 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 5 | 7 | import com.lyms.platform.common.result.BaseResponse; |
| 6 | 8 | import com.lyms.platform.operate.web.facade.AntenatalExaminationFacade; |
| ... | ... | @@ -13,6 +15,7 @@ |
| 13 | 15 | import org.springframework.web.bind.annotation.RequestMethod; |
| 14 | 16 | import org.springframework.web.bind.annotation.ResponseBody; |
| 15 | 17 | |
| 18 | +import javax.servlet.http.HttpServletRequest; | |
| 16 | 19 | import javax.validation.Valid; |
| 17 | 20 | |
| 18 | 21 | /** |
| ... | ... | @@ -49,8 +52,10 @@ |
| 49 | 52 | */ |
| 50 | 53 | @RequestMapping(method = RequestMethod.POST, value = "/antexmanage") |
| 51 | 54 | @ResponseBody |
| 52 | - public BaseResponse addOneAntenatalExamination(@Valid @RequestBody AntExAddRequest antExAddRequest) { | |
| 53 | - return antenatalExaminationFacade.addOneAntEx(antExAddRequest); | |
| 55 | + @TokenRequired | |
| 56 | + public BaseResponse addOneAntenatalExamination(@Valid @RequestBody AntExAddRequest antExAddRequest,HttpServletRequest request) { | |
| 57 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 58 | + return antenatalExaminationFacade.addOneAntEx(antExAddRequest,loginState.getId()); | |
| 54 | 59 | } |
| 55 | 60 | |
| 56 | 61 | /** |
| ... | ... | @@ -61,8 +66,10 @@ |
| 61 | 66 | */ |
| 62 | 67 | @RequestMapping(method = RequestMethod.POST, value = "/antex") |
| 63 | 68 | @ResponseBody |
| 64 | - public BaseResponse addOneAntEx(@Valid @RequestBody AntExcAddRequest antExcAddRequest) { | |
| 65 | - return antenatalExaminationFacade.addOneAnetExChu(antExcAddRequest); | |
| 69 | + @TokenRequired | |
| 70 | + public BaseResponse addOneAntEx(@Valid @RequestBody AntExcAddRequest antExcAddRequest,HttpServletRequest request) { | |
| 71 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 72 | + return antenatalExaminationFacade.addOneAnetExChu(antExcAddRequest,loginState.getId()); | |
| 66 | 73 | } |
| 67 | 74 | |
| 68 | 75 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java
View file @
b1050cc
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.annotation.TokenRequired; | |
| 3 | 4 | import com.lyms.platform.common.base.BaseController; |
| 5 | +import com.lyms.platform.common.base.LoginContext; | |
| 4 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 5 | 7 | import com.lyms.platform.common.result.BaseResponse; |
| 6 | 8 | import com.lyms.platform.operate.web.facade.MatDeliverFacade; |
| ... | ... | @@ -11,6 +13,7 @@ |
| 11 | 13 | import org.springframework.stereotype.Controller; |
| 12 | 14 | import org.springframework.web.bind.annotation.*; |
| 13 | 15 | |
| 16 | +import javax.servlet.http.HttpServletRequest; | |
| 14 | 17 | import javax.validation.Valid; |
| 15 | 18 | |
| 16 | 19 | /** |
| ... | ... | @@ -47,8 +50,10 @@ |
| 47 | 50 | */ |
| 48 | 51 | @RequestMapping(value = "/matdel",method = RequestMethod.POST) |
| 49 | 52 | @ResponseBody |
| 50 | - public BaseResponse addOneMatDeliver(@Valid @RequestBody MatDeliverAddRequest deliverAddRequest){ | |
| 51 | - return matDeliverFacade.addOrUpdateMatDeliver(deliverAddRequest); | |
| 53 | + @TokenRequired | |
| 54 | + public BaseResponse addOneMatDeliver(@Valid @RequestBody MatDeliverAddRequest deliverAddRequest,HttpServletRequest request){ | |
| 55 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 56 | + return matDeliverFacade.addOrUpdateMatDeliver(deliverAddRequest,loginState.getId()); | |
| 52 | 57 | } |
| 53 | 58 | /** |
| 54 | 59 | * 删除一条删除记录 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/PostReviewController.java
View file @
b1050cc
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.annotation.TokenRequired; | |
| 3 | 4 | import com.lyms.platform.common.base.BaseController; |
| 5 | +import com.lyms.platform.common.base.LoginContext; | |
| 4 | 6 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 5 | 7 | import com.lyms.platform.common.result.BaseResponse; |
| 6 | 8 | import com.lyms.platform.operate.web.facade.PostReviewFacade; |
| ... | ... | @@ -11,6 +13,7 @@ |
| 11 | 13 | import org.springframework.stereotype.Controller; |
| 12 | 14 | import org.springframework.web.bind.annotation.*; |
| 13 | 15 | |
| 16 | +import javax.servlet.http.HttpServletRequest; | |
| 14 | 17 | import javax.validation.Valid; |
| 15 | 18 | |
| 16 | 19 | /** |
| ... | ... | @@ -32,8 +35,10 @@ |
| 32 | 35 | */ |
| 33 | 36 | @RequestMapping(method = RequestMethod.POST,value = "/postreview") |
| 34 | 37 | @ResponseBody |
| 35 | - public BaseResponse addPostReview(@Valid @RequestBody PostReviewRequest postReviewRequest){ | |
| 36 | - return postReviewFacade.addPostReview(postReviewRequest); | |
| 38 | + @TokenRequired | |
| 39 | + public BaseResponse addPostReview(@Valid @RequestBody PostReviewRequest postReviewRequest,HttpServletRequest request){ | |
| 40 | + LoginContext loginState = (LoginContext) request.getAttribute("loginContext"); | |
| 41 | + return postReviewFacade.addPostReview(postReviewRequest,loginState.getId()); | |
| 37 | 42 | } |
| 38 | 43 | |
| 39 | 44 | /** |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntenatalExaminationFacade.java
View file @
b1050cc
| ... | ... | @@ -49,6 +49,8 @@ |
| 49 | 49 | private MatDeliverService matDeliverService; |
| 50 | 50 | @Autowired |
| 51 | 51 | private PostReviewService postReviewService; |
| 52 | + @Autowired | |
| 53 | + private AutoMatchFacade autoMatchFacade; | |
| 52 | 54 | |
| 53 | 55 | /** |
| 54 | 56 | * 增加一条产前检查 |
| 55 | 57 | |
| 56 | 58 | |
| ... | ... | @@ -56,14 +58,19 @@ |
| 56 | 58 | * @param antExAddRequest |
| 57 | 59 | * @return |
| 58 | 60 | */ |
| 59 | - public BaseResponse addOneAntEx(AntExAddRequest antExAddRequest) { | |
| 61 | + public BaseResponse addOneAntEx(AntExAddRequest antExAddRequest,Integer userId) { | |
| 60 | 62 | if (StringUtils.isNotEmpty(antExAddRequest.getId())) { |
| 61 | 63 | AntenatalExaminationModel antenatalExamination = antExAddRequest.convertToDataModel(); |
| 64 | + antenatalExamination.setHospitalId(autoMatchFacade.matchOrgId(userId).get(0)+""); | |
| 62 | 65 | antenatalExaminationService.updateOneAnt(antenatalExamination, antExAddRequest.getId()); |
| 63 | 66 | updateApplyOrder(antenatalExamination, antExAddRequest.getParentId()); |
| 64 | 67 | } else { |
| 65 | 68 | AntenatalExaminationModel model = antExAddRequest.convertToDataModel(); |
| 66 | 69 | model.setYn(YnEnums.YES.getId()); |
| 70 | + List list1 = autoMatchFacade.matchOrgId(userId); | |
| 71 | + if(CollectionUtils.isNotEmpty(list1)){ | |
| 72 | + model.setHospitalId(list1.get(0)+""); | |
| 73 | + } | |
| 67 | 74 | antenatalExaminationService.addOneBabyAnt(model); |
| 68 | 75 | updateApplyOrder(model, antExAddRequest.getParentId()); |
| 69 | 76 | } |
| 70 | 77 | |
| ... | ... | @@ -93,11 +100,15 @@ |
| 93 | 100 | * @param excAddRequest |
| 94 | 101 | * @return |
| 95 | 102 | */ |
| 96 | - public BaseResponse addOneAnetExChu(AntExcAddRequest excAddRequest) { | |
| 103 | + public BaseResponse addOneAnetExChu(AntExcAddRequest excAddRequest,Integer userId) { | |
| 97 | 104 | AntExChuModel antExChuModel = excAddRequest.convertToDataModel(); |
| 98 | 105 | if (StringUtils.isNotEmpty(antExChuModel.getId()) && StringUtils.isNotEmpty(antExChuModel.getParentId())) { |
| 99 | 106 | antenatalExaminationService.updateAntExChu(antExChuModel, antExChuModel.getId()); |
| 100 | 107 | } else { |
| 108 | + List list1 = autoMatchFacade.matchOrgId(userId); | |
| 109 | + if(CollectionUtils.isNotEmpty(list1)){ | |
| 110 | + antExChuModel.setHospitalId(list1.get(0)+""); | |
| 111 | + } | |
| 101 | 112 | antExChuModel.setYn(YnEnums.YES.getId()); |
| 102 | 113 | antenatalExaminationService.addOneAntEx(antExChuModel); |
| 103 | 114 | } |
| ... | ... | @@ -128,7 +139,8 @@ |
| 128 | 139 | matDeliverQuery.setYn(YnEnums.YES.getId()); |
| 129 | 140 | matDeliverQuery.setParentId(patients.getId()); |
| 130 | 141 | //建档记录 |
| 131 | - data.add(new AntData(patients)); | |
| 142 | + Organization organization = organizationService.getOrganization(patients.getHospitalId()); | |
| 143 | + data.add(new AntData(patients, null != organization ? organization.getName() : "")); | |
| 132 | 144 | //分娩记录 |
| 133 | 145 | List<MaternalDeliverModel> modelList = matDeliverService.query(matDeliverQuery); |
| 134 | 146 | String dueDate = ""; |
| ... | ... | @@ -148,7 +160,8 @@ |
| 148 | 160 | List<AntExChuModel> antExChuModels = antenatalExaminationService.queryAntExChu(antExChuQuery); |
| 149 | 161 | if (CollectionUtils.isNotEmpty(antExChuModels)) { |
| 150 | 162 | for (AntExChuModel an : antExChuModels) { |
| 151 | - data.add(new AntData(an)); | |
| 163 | + organization = organizationService.getOrganization(Integer.valueOf(an.getHospitalId())); | |
| 164 | + data.add(new AntData(an,null != organization ? organization.getName() : "")); | |
| 152 | 165 | } |
| 153 | 166 | } |
| 154 | 167 | //复诊记录 |
| 155 | 168 | |
| ... | ... | @@ -160,12 +173,13 @@ |
| 160 | 173 | List<AntenatalExaminationModel> list1 = antenatalExaminationService.queryAntenatalExamination(antExQuery.convertToQuery()); |
| 161 | 174 | if (CollectionUtils.isNotEmpty(list1)) { |
| 162 | 175 | for (AntenatalExaminationModel an : list1) { |
| 163 | - data.add(new AntData(an)); | |
| 176 | + organization = organizationService.getOrganization(Integer.valueOf(an.getHospitalId())); | |
| 177 | + data.add(new AntData(an,null != organization ? organization.getName() : "")); | |
| 164 | 178 | } |
| 165 | 179 | } |
| 166 | 180 | postReviewQuery = new PostReviewQuery(); |
| 167 | 181 | postReviewQuery.setYn(YnEnums.YES.getId()); |
| 168 | - if(list.size() - 1 > i){ | |
| 182 | + if (list.size() - 1 > i) { | |
| 169 | 183 | postReviewQuery.setStart(date); |
| 170 | 184 | //下次建档记录前都是产后复查,如果没有下个产程的数据就直接显示 |
| 171 | 185 | // postReviewQuery.setEnd(list.size() - 1 > i ? list.get(i).getCreated() :null/* new Date()*/); |
| 172 | 186 | |
| ... | ... | @@ -177,13 +191,15 @@ |
| 177 | 191 | i++; |
| 178 | 192 | //分娩记录 |
| 179 | 193 | if (CollectionUtils.isNotEmpty(modelList)) { |
| 180 | - data.add(new AntData(modelList.get(0), patients.getLastMenses())); | |
| 194 | + organization = organizationService.getOrganization(Integer.valueOf(modelList.get(0).getHospitalId())); | |
| 195 | + data.add(new AntData(modelList.get(0), patients.getLastMenses(),null != organization ? organization.getName() : "")); | |
| 181 | 196 | } |
| 182 | 197 | //产后复查记录 |
| 183 | 198 | List<PostReviewModel> reviewModels = postReviewService.findWithList(postReviewQuery); |
| 184 | 199 | if (CollectionUtils.isNotEmpty(reviewModels)) { |
| 185 | 200 | for (PostReviewModel postReviewModel : reviewModels) { |
| 186 | - data.add(new AntData(postReviewModel)); | |
| 201 | + organization = organizationService.getOrganization(Integer.valueOf(postReviewModel.getHospitalId())); | |
| 202 | + data.add(new AntData(postReviewModel,null != organization ? organization.getName() : "")); | |
| 187 | 203 | } |
| 188 | 204 | } |
| 189 | 205 | listDate.add(data); |
| 190 | 206 | |
| 191 | 207 | |
| ... | ... | @@ -330,13 +346,13 @@ |
| 330 | 346 | antenatalExaminationResult.setDiagnosis(queryRisk(list)); |
| 331 | 347 | } catch (Exception e) { |
| 332 | 348 | } |
| 333 | - ReferralApplyOrderQuery referralApplyOrderQuery=new ReferralApplyOrderQuery(); | |
| 349 | + ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery(); | |
| 334 | 350 | referralApplyOrderQuery.setParentId(examinationModel.getParentId()); |
| 335 | 351 | antenatalExaminationResult.setHasRefer(CollectionUtils.isEmpty(applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery)) ? 0 : 1); |
| 336 | - SieveApplyOrderQuery applyOrderQuery=new SieveApplyOrderQuery(); | |
| 352 | + SieveApplyOrderQuery applyOrderQuery = new SieveApplyOrderQuery(); | |
| 337 | 353 | applyOrderQuery.setParentId(examinationModel.getParentId()); |
| 338 | 354 | applyOrderQuery.setYn(YnEnums.YES.getId()); |
| 339 | - antenatalExaminationResult.setHasSieve(CollectionUtils.isEmpty(applyOrderService.querySieveApplyOrderWithQuery(applyOrderQuery))?0:1); | |
| 355 | + antenatalExaminationResult.setHasSieve(CollectionUtils.isEmpty(applyOrderService.querySieveApplyOrderWithQuery(applyOrderQuery)) ? 0 : 1); | |
| 340 | 356 | object = antenatalExaminationResult; |
| 341 | 357 | } else { |
| 342 | 358 | //查询初诊数据 |
| 343 | 359 | |
| 344 | 360 | |
| ... | ... | @@ -360,13 +376,13 @@ |
| 360 | 376 | antexChuResult.setHighrisk(queryRisk(list1)); |
| 361 | 377 | } catch (Exception e) { |
| 362 | 378 | } |
| 363 | - ReferralApplyOrderQuery referralApplyOrderQuery=new ReferralApplyOrderQuery(); | |
| 379 | + ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery(); | |
| 364 | 380 | referralApplyOrderQuery.setParentId(antExChuModel.getParentId()); |
| 365 | 381 | antexChuResult.setHasRefer(CollectionUtils.isEmpty(applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery)) ? 0 : 1); |
| 366 | - SieveApplyOrderQuery applyOrderQuery=new SieveApplyOrderQuery(); | |
| 382 | + SieveApplyOrderQuery applyOrderQuery = new SieveApplyOrderQuery(); | |
| 367 | 383 | applyOrderQuery.setParentId(antExChuModel.getParentId()); |
| 368 | 384 | applyOrderQuery.setYn(YnEnums.YES.getId()); |
| 369 | - antexChuResult.setHasSieve(CollectionUtils.isEmpty(applyOrderService.querySieveApplyOrderWithQuery(applyOrderQuery))?0:1); | |
| 385 | + antexChuResult.setHasSieve(CollectionUtils.isEmpty(applyOrderService.querySieveApplyOrderWithQuery(applyOrderQuery)) ? 0 : 1); | |
| 370 | 386 | object = antexChuResult; |
| 371 | 387 | } |
| 372 | 388 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/ApplyOrderFacade.java
View file @
b1050cc
| ... | ... | @@ -3,6 +3,7 @@ |
| 3 | 3 | import com.lyms.platform.biz.service.ApplyOrderService; |
| 4 | 4 | import com.lyms.platform.biz.service.PatientsService; |
| 5 | 5 | import com.lyms.platform.common.constants.ErrorCodeConstants; |
| 6 | +import com.lyms.platform.common.enums.YnEnums; | |
| 6 | 7 | import com.lyms.platform.common.result.BaseListResponse; |
| 7 | 8 | import com.lyms.platform.common.result.BaseObjectResponse; |
| 8 | 9 | import com.lyms.platform.common.result.BaseResponse; |
| ... | ... | @@ -11,6 +12,8 @@ |
| 11 | 12 | import com.lyms.platform.operate.web.request.ReferralApplyOrderAddRequest; |
| 12 | 13 | import com.lyms.platform.operate.web.request.SieveApplyOrderAddRequest; |
| 13 | 14 | import com.lyms.platform.operate.web.result.ApplyOrderOutResult; |
| 15 | +import com.lyms.platform.operate.web.result.ReferralApplyOrderResult; | |
| 16 | +import com.lyms.platform.operate.web.result.SieveApplyOrderResult; | |
| 14 | 17 | import com.lyms.platform.pojo.Patients; |
| 15 | 18 | import com.lyms.platform.pojo.ReferralApplyOrderModel; |
| 16 | 19 | import com.lyms.platform.pojo.SieveApplyOrderModel; |
| 17 | 20 | |
| 18 | 21 | |
| ... | ... | @@ -89,12 +92,15 @@ |
| 89 | 92 | * @param id |
| 90 | 93 | * @return |
| 91 | 94 | */ |
| 92 | - public BaseListResponse queryReferralApplyOrder(String id) { | |
| 95 | + public BaseObjectResponse queryReferralApplyOrder(String id) { | |
| 93 | 96 | ReferralApplyOrderQuery referralApplyOrderQuery = new ReferralApplyOrderQuery(); |
| 94 | - referralApplyOrderQuery.setParentId(id); | |
| 97 | + referralApplyOrderQuery.setId(id); | |
| 95 | 98 | List<ReferralApplyOrderModel> list = applyOrderService.queryReferralApplyOrderWithQuery(referralApplyOrderQuery); |
| 96 | - | |
| 97 | - return new BaseListResponse().setData(list).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 99 | + ReferralApplyOrderResult referralApplyOrderResult=new ReferralApplyOrderResult(); | |
| 100 | + if(CollectionUtils.isNotEmpty(list)){ | |
| 101 | + referralApplyOrderResult.convertToResult(list.get(0)); | |
| 102 | + } | |
| 103 | + return new BaseObjectResponse().setData(referralApplyOrderResult).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 98 | 104 | } |
| 99 | 105 | |
| 100 | 106 | /** |
| 101 | 107 | |
| 102 | 108 | |
| ... | ... | @@ -103,10 +109,18 @@ |
| 103 | 109 | * @param id |
| 104 | 110 | * @return |
| 105 | 111 | */ |
| 106 | - public BaseListResponse querySieveApplyOrder(String id) { | |
| 112 | + public BaseResponse querySieveApplyOrder(String id) { | |
| 107 | 113 | SieveApplyOrderQuery sieveApplyOrderQuery = new SieveApplyOrderQuery(); |
| 114 | + sieveApplyOrderQuery.setYn(YnEnums.YES.getId()); | |
| 115 | + sieveApplyOrderQuery.setId(id); | |
| 108 | 116 | List<SieveApplyOrderModel> list = applyOrderService.querySieveApplyOrderWithQuery(sieveApplyOrderQuery); |
| 109 | - return new BaseListResponse().setData(list).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 117 | + SieveApplyOrderResult sieveApplyOrderResult = new SieveApplyOrderResult(); | |
| 118 | + SieveApplyOrderModel sieveApplyOrderModel = null; | |
| 119 | + if (CollectionUtils.isNotEmpty(list)) { | |
| 120 | + sieveApplyOrderModel = list.get(0); | |
| 121 | + sieveApplyOrderResult.convertToResult(sieveApplyOrderModel); | |
| 122 | + } | |
| 123 | + return new BaseObjectResponse().setData(sieveApplyOrderResult).setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); | |
| 110 | 124 | } |
| 111 | 125 | |
| 112 | 126 | /** |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MatDeliverFacade.java
View file @
b1050cc
| ... | ... | @@ -47,6 +47,8 @@ |
| 47 | 47 | private AntenatalExaminationService antenatalExaminationService; |
| 48 | 48 | @Autowired |
| 49 | 49 | private BasicConfigService basicConfigService; |
| 50 | + @Autowired | |
| 51 | + private AutoMatchFacade autoMatchFacade; | |
| 50 | 52 | |
| 51 | 53 | |
| 52 | 54 | /** |
| ... | ... | @@ -55,7 +57,7 @@ |
| 55 | 57 | * @param deliverAddRequest |
| 56 | 58 | * @return |
| 57 | 59 | */ |
| 58 | - public BaseResponse addOrUpdateMatDeliver(MatDeliverAddRequest deliverAddRequest) { | |
| 60 | + public BaseResponse addOrUpdateMatDeliver(MatDeliverAddRequest deliverAddRequest,Integer userId) { | |
| 59 | 61 | //增加 |
| 60 | 62 | if (StringUtils.isEmpty(deliverAddRequest.getId()) && StringUtils.isNotEmpty(deliverAddRequest.getParentId())) { |
| 61 | 63 | MaternalDeliverModel maternalDeliverModel = deliverAddRequest.convertToDataModel(); |
| ... | ... | @@ -86,7 +88,10 @@ |
| 86 | 88 | babyIds.add(babyService.addOneBaby(babyModel).getId()); |
| 87 | 89 | } |
| 88 | 90 | } |
| 89 | - | |
| 91 | + List list1 = autoMatchFacade.matchOrgId(userId); | |
| 92 | + if(CollectionUtils.isNotEmpty(list1)){ | |
| 93 | + maternalDeliverModel.setHospitalId(list1.get(0)+""); | |
| 94 | + } | |
| 90 | 95 | maternalDeliverModel.setBaby(babyIds); |
| 91 | 96 | maternalDeliverModel.setYn(YnEnums.YES.getId()); |
| 92 | 97 | matDeliverService.addMatDeliver(maternalDeliverModel); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/PostReviewFacade.java
View file @
b1050cc
| ... | ... | @@ -39,10 +39,18 @@ |
| 39 | 39 | private PatientsService patientsService; |
| 40 | 40 | @Autowired |
| 41 | 41 | private MatDeliverService matDeliverService; |
| 42 | + @Autowired | |
| 43 | + private AutoMatchFacade autoMatchFacade; | |
| 42 | 44 | |
| 43 | - public BaseResponse addPostReview(PostReviewRequest postReviewRequest) { | |
| 45 | + public BaseResponse addPostReview(PostReviewRequest postReviewRequest,Integer userId) { | |
| 44 | 46 | if (StringUtils.isEmpty(postReviewRequest.getId())) { |
| 45 | - postReviewService.addPostReview(postReviewRequest.convertToDataModel()); | |
| 47 | + PostReviewModel postReviewModel = postReviewRequest.convertToDataModel(); | |
| 48 | + postReviewModel.setYn(YnEnums.YES.getId()); | |
| 49 | + List list1 = autoMatchFacade.matchOrgId(userId); | |
| 50 | + if(CollectionUtils.isNotEmpty(list1)){ | |
| 51 | + postReviewModel.setHospitalId(list1.get(0)+""); | |
| 52 | + } | |
| 53 | + postReviewService.addPostReview(postReviewModel); | |
| 46 | 54 | } else { |
| 47 | 55 | postReviewService.updatePostById(postReviewRequest.convertToDataModel(), postReviewRequest.getId()); |
| 48 | 56 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/AntData.java
View file @
b1050cc
| ... | ... | @@ -13,6 +13,25 @@ |
| 13 | 13 | //1 建档 2初诊 3 复诊 4 产后分娩 5 产后复查 |
| 14 | 14 | private String type; |
| 15 | 15 | |
| 16 | + private String hospitalName; | |
| 17 | + private String hospitalId; | |
| 18 | + | |
| 19 | + public String getHospitalId() { | |
| 20 | + return hospitalId; | |
| 21 | + } | |
| 22 | + | |
| 23 | + public void setHospitalId(String hospitalId) { | |
| 24 | + this.hospitalId = hospitalId; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public String getHospitalName() { | |
| 28 | + return hospitalName; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public void setHospitalName(String hospitalName) { | |
| 32 | + this.hospitalName = hospitalName; | |
| 33 | + } | |
| 34 | + | |
| 16 | 35 | public String getType() { |
| 17 | 36 | return type; |
| 18 | 37 | } |
| 19 | 38 | |
| 20 | 39 | |
| ... | ... | @@ -29,15 +48,17 @@ |
| 29 | 48 | this.title = title; |
| 30 | 49 | } |
| 31 | 50 | |
| 32 | - public AntData(AntenatalExaminationModel model) { | |
| 51 | + public AntData(AntenatalExaminationModel model,String hospitalName) { | |
| 33 | 52 | this.id = model.getId(); |
| 34 | 53 | this.dueWeek = model.getCurrentDueDate(); |
| 35 | 54 | this.checkTime = model.getCheckDate(); |
| 36 | 55 | this.title="复诊"; |
| 37 | 56 | this.type="3"; |
| 57 | + this.hospitalName=hospitalName; | |
| 58 | + this.hospitalId=model.getHospitalId(); | |
| 38 | 59 | } |
| 39 | 60 | |
| 40 | - public AntData(AntExChuModel model) { | |
| 61 | + public AntData(AntExChuModel model,String hospitalName) { | |
| 41 | 62 | this.id = model.getId(); |
| 42 | 63 | int days = DateUtil.daysBetween(model.getLastMenses(), new Date()); |
| 43 | 64 | String week = (days / 7) + ""; |
| 44 | 65 | |
| ... | ... | @@ -46,9 +67,11 @@ |
| 46 | 67 | this.checkTime = model.getCheckTime(); |
| 47 | 68 | this.title="初诊"; |
| 48 | 69 | this.type="2"; |
| 70 | + this.hospitalName=hospitalName; | |
| 71 | + this.hospitalId=model.getHospitalId(); | |
| 49 | 72 | } |
| 50 | 73 | |
| 51 | - public AntData(Patients model) { | |
| 74 | + public AntData(Patients model,String hospitalName) { | |
| 52 | 75 | this.id = model.getId(); |
| 53 | 76 | int days = DateUtil.daysBetween(model.getLastMenses(), new Date()); |
| 54 | 77 | String week = (days / 7) + ""; |
| 55 | 78 | |
| ... | ... | @@ -57,9 +80,11 @@ |
| 57 | 80 | this.checkTime = DateUtil.getyyyy_MM_dd(model.getCreated()); |
| 58 | 81 | this.title="孕妇建档"; |
| 59 | 82 | this.type="1"; |
| 83 | + this.hospitalName=hospitalName; | |
| 84 | + this.hospitalId=model.getHospitalId()+""; | |
| 60 | 85 | } |
| 61 | 86 | |
| 62 | - public AntData(MaternalDeliverModel model,Date lastMenses) { | |
| 87 | + public AntData(MaternalDeliverModel model,Date lastMenses,String hospitalName) { | |
| 63 | 88 | this.id = model.getId(); |
| 64 | 89 | int days = DateUtil.daysBetween(lastMenses,model.getCreated()); |
| 65 | 90 | String week = (days / 7) + ""; |
| 66 | 91 | |
| 67 | 92 | |
| ... | ... | @@ -68,14 +93,18 @@ |
| 68 | 93 | this.checkTime = DateUtil.getyyyy_MM_dd(model.getCreated()); |
| 69 | 94 | this.title="孕妇分娩"; |
| 70 | 95 | this.type="4"; |
| 96 | + this.hospitalName=hospitalName; | |
| 97 | + this.hospitalId=model.getHospitalId(); | |
| 71 | 98 | } |
| 72 | 99 | |
| 73 | - public AntData(PostReviewModel postReviewModel) { | |
| 100 | + public AntData(PostReviewModel postReviewModel,String hospitalName) { | |
| 74 | 101 | this.id=postReviewModel.getId(); |
| 75 | 102 | this.dueWeek=postReviewModel.getDay(); |
| 76 | 103 | this.checkTime=postReviewModel.getCheckTime(); |
| 77 | 104 | this.title="产后复查"; |
| 78 | 105 | this.type="5"; |
| 106 | + this.hospitalName=hospitalName; | |
| 107 | + this.hospitalId=postReviewModel.getHospitalId(); | |
| 79 | 108 | } |
| 80 | 109 | |
| 81 | 110 | public String getCheckTime() { |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/AntexListResult.java
View file @
b1050cc
| ... | ... | @@ -138,11 +138,11 @@ |
| 138 | 138 | } |
| 139 | 139 | List<AntData> dataList = new ArrayList<>(); |
| 140 | 140 | if(null!=antExChuModel){ |
| 141 | - dataList.add(new AntData(antExChuModel)); | |
| 141 | + dataList.add(new AntData(antExChuModel,"")); | |
| 142 | 142 | } |
| 143 | 143 | if(CollectionUtils.isNotEmpty(destModel)){ |
| 144 | 144 | for(AntenatalExaminationModel model:destModel){ |
| 145 | - dataList.add(new AntData(model)); | |
| 145 | + dataList.add(new AntData(model,"")); | |
| 146 | 146 | } |
| 147 | 147 | } |
| 148 | 148 | setData(dataList); |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/ReferralApplyOrderResult.java
View file @
b1050cc
| 1 | +package com.lyms.platform.operate.web.result; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.base.IBasicResultConvert; | |
| 4 | +import com.lyms.platform.common.utils.DateUtil; | |
| 5 | +import com.lyms.platform.pojo.ReferralApplyOrderModel; | |
| 6 | +import com.lyms.platform.pojo.SieveApplyOrderModel; | |
| 7 | + | |
| 8 | +import java.util.Date; | |
| 9 | +import java.util.List; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * Created by Administrator on 2016/7/7 0007. | |
| 13 | + */ | |
| 14 | +public class ReferralApplyOrderResult implements IBasicResultConvert<ReferralApplyOrderResult, ReferralApplyOrderModel> { | |
| 15 | + | |
| 16 | + private String id; | |
| 17 | + //患者id | |
| 18 | + private String parentId; | |
| 19 | + //患者名字 | |
| 20 | + private String name; | |
| 21 | + //患者年龄 | |
| 22 | + private Integer age; | |
| 23 | + //孕周 | |
| 24 | + private String dueWeek; | |
| 25 | + //身份证号 | |
| 26 | + private String cardNo; | |
| 27 | + //预产期 | |
| 28 | + private String dueDate; | |
| 29 | + //高危分级 | |
| 30 | + private String rLevel; | |
| 31 | + //高危风险因素 | |
| 32 | + private List rRisk; | |
| 33 | + //高危评分 | |
| 34 | + private Integer score; | |
| 35 | + //转入医院 | |
| 36 | + private String transferredHospital; | |
| 37 | + //转出医院id | |
| 38 | + private String outHospitalId; | |
| 39 | + | |
| 40 | + //转入科室 | |
| 41 | + private String transferredDepartment; | |
| 42 | + //病情描述 | |
| 43 | + private String diseaseDesc; | |
| 44 | + //转院必要性 | |
| 45 | + private String transferredDisease; | |
| 46 | + // 潜在风险 | |
| 47 | + private String potentialRisk; | |
| 48 | + //转院方式 | |
| 49 | + private String transferMode; | |
| 50 | + //申请医生 | |
| 51 | + private String applyDoctor; | |
| 52 | + | |
| 53 | + public Integer getAge() { | |
| 54 | + return age; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public void setAge(Integer age) { | |
| 58 | + this.age = age; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public String getApplyDoctor() { | |
| 62 | + return applyDoctor; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public void setApplyDoctor(String applyDoctor) { | |
| 66 | + this.applyDoctor = applyDoctor; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public String getCardNo() { | |
| 70 | + return cardNo; | |
| 71 | + } | |
| 72 | + | |
| 73 | + public void setCardNo(String cardNo) { | |
| 74 | + this.cardNo = cardNo; | |
| 75 | + } | |
| 76 | + | |
| 77 | + public String getDiseaseDesc() { | |
| 78 | + return diseaseDesc; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public void setDiseaseDesc(String diseaseDesc) { | |
| 82 | + this.diseaseDesc = diseaseDesc; | |
| 83 | + } | |
| 84 | + | |
| 85 | + public String getDueDate() { | |
| 86 | + return dueDate; | |
| 87 | + } | |
| 88 | + | |
| 89 | + public void setDueDate(String dueDate) { | |
| 90 | + this.dueDate = dueDate; | |
| 91 | + } | |
| 92 | + | |
| 93 | + public String getDueWeek() { | |
| 94 | + return dueWeek; | |
| 95 | + } | |
| 96 | + | |
| 97 | + public void setDueWeek(String dueWeek) { | |
| 98 | + this.dueWeek = dueWeek; | |
| 99 | + } | |
| 100 | + | |
| 101 | + public String getId() { | |
| 102 | + return id; | |
| 103 | + } | |
| 104 | + | |
| 105 | + public void setId(String id) { | |
| 106 | + this.id = id; | |
| 107 | + } | |
| 108 | + | |
| 109 | + public String getName() { | |
| 110 | + return name; | |
| 111 | + } | |
| 112 | + | |
| 113 | + public void setName(String name) { | |
| 114 | + this.name = name; | |
| 115 | + } | |
| 116 | + | |
| 117 | + public String getOutHospitalId() { | |
| 118 | + return outHospitalId; | |
| 119 | + } | |
| 120 | + | |
| 121 | + public void setOutHospitalId(String outHospitalId) { | |
| 122 | + this.outHospitalId = outHospitalId; | |
| 123 | + } | |
| 124 | + | |
| 125 | + public String getParentId() { | |
| 126 | + return parentId; | |
| 127 | + } | |
| 128 | + | |
| 129 | + public void setParentId(String parentId) { | |
| 130 | + this.parentId = parentId; | |
| 131 | + } | |
| 132 | + | |
| 133 | + public String getPotentialRisk() { | |
| 134 | + return potentialRisk; | |
| 135 | + } | |
| 136 | + | |
| 137 | + public void setPotentialRisk(String potentialRisk) { | |
| 138 | + this.potentialRisk = potentialRisk; | |
| 139 | + } | |
| 140 | + | |
| 141 | + public String getrLevel() { | |
| 142 | + return rLevel; | |
| 143 | + } | |
| 144 | + | |
| 145 | + public void setrLevel(String rLevel) { | |
| 146 | + this.rLevel = rLevel; | |
| 147 | + } | |
| 148 | + | |
| 149 | + public List getrRisk() { | |
| 150 | + return rRisk; | |
| 151 | + } | |
| 152 | + | |
| 153 | + public void setrRisk(List rRisk) { | |
| 154 | + this.rRisk = rRisk; | |
| 155 | + } | |
| 156 | + | |
| 157 | + public Integer getScore() { | |
| 158 | + return score; | |
| 159 | + } | |
| 160 | + | |
| 161 | + public void setScore(Integer score) { | |
| 162 | + this.score = score; | |
| 163 | + } | |
| 164 | + | |
| 165 | + public String getTransferMode() { | |
| 166 | + return transferMode; | |
| 167 | + } | |
| 168 | + | |
| 169 | + public void setTransferMode(String transferMode) { | |
| 170 | + this.transferMode = transferMode; | |
| 171 | + } | |
| 172 | + | |
| 173 | + public String getTransferredDepartment() { | |
| 174 | + return transferredDepartment; | |
| 175 | + } | |
| 176 | + | |
| 177 | + public void setTransferredDepartment(String transferredDepartment) { | |
| 178 | + this.transferredDepartment = transferredDepartment; | |
| 179 | + } | |
| 180 | + | |
| 181 | + public String getTransferredDisease() { | |
| 182 | + return transferredDisease; | |
| 183 | + } | |
| 184 | + | |
| 185 | + public void setTransferredDisease(String transferredDisease) { | |
| 186 | + this.transferredDisease = transferredDisease; | |
| 187 | + } | |
| 188 | + | |
| 189 | + public String getTransferredHospital() { | |
| 190 | + return transferredHospital; | |
| 191 | + } | |
| 192 | + | |
| 193 | + public void setTransferredHospital(String transferredHospital) { | |
| 194 | + this.transferredHospital = transferredHospital; | |
| 195 | + } | |
| 196 | + | |
| 197 | + @Override | |
| 198 | + public ReferralApplyOrderResult convertToResult(ReferralApplyOrderModel destModel) { | |
| 199 | + setId(destModel.getId()); | |
| 200 | + setParentId(destModel.getParentId()); | |
| 201 | + setName(destModel.getName()); | |
| 202 | + setAge(destModel.getAge()); | |
| 203 | + setDueWeek(destModel.getDueWeek()); | |
| 204 | + setCardNo(destModel.getCardNo()); | |
| 205 | + setDueDate(DateUtil.getyyyy_MM_dd(destModel.getDueDate())); | |
| 206 | + setrLevel(destModel.getrLevel()); | |
| 207 | + setScore(destModel.getScore()); | |
| 208 | + setDiseaseDesc(destModel.getDiseaseDesc()); | |
| 209 | + setTransferredDisease(destModel.getTransferredDisease()); | |
| 210 | + setPotentialRisk(destModel.getPotentialRisk()); | |
| 211 | + setTransferMode(destModel.getTransferMode()); | |
| 212 | + setApplyDoctor(destModel.getApplyDoctor()); | |
| 213 | + return this; | |
| 214 | + } | |
| 215 | +} |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/result/SieveApplyOrderResult.java
View file @
b1050cc
| 1 | +package com.lyms.platform.operate.web.result; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.base.IBasicResultConvert; | |
| 4 | +import com.lyms.platform.common.utils.JsonUtil; | |
| 5 | +import com.lyms.platform.pojo.Patients; | |
| 6 | +import com.lyms.platform.pojo.SieveApplyOrderModel; | |
| 7 | +import org.apache.commons.lang.StringUtils; | |
| 8 | + | |
| 9 | +import java.util.List; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * Created by Administrator on 2016/7/7 0007. | |
| 13 | + */ | |
| 14 | +public class SieveApplyOrderResult implements IBasicResultConvert<SieveApplyOrderResult, SieveApplyOrderModel> { | |
| 15 | + private String id; | |
| 16 | + //患者id | |
| 17 | + private String parentId; | |
| 18 | + //产筛项 | |
| 19 | + private List checkItem; | |
| 20 | + //医生指导 | |
| 21 | + private String guide; | |
| 22 | + // 预约日期 | |
| 23 | + private String checkDate; | |
| 24 | + //申请医生 | |
| 25 | + private String applyDoctor; | |
| 26 | + | |
| 27 | + public String getApplyDoctor() { | |
| 28 | + return applyDoctor; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public void setApplyDoctor(String applyDoctor) { | |
| 32 | + this.applyDoctor = applyDoctor; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public String getCheckDate() { | |
| 36 | + return checkDate; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public void setCheckDate(String checkDate) { | |
| 40 | + this.checkDate = checkDate; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public List getCheckItem() { | |
| 44 | + return checkItem; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public void setCheckItem(List checkItem) { | |
| 48 | + this.checkItem = checkItem; | |
| 49 | + } | |
| 50 | + | |
| 51 | + public String getGuide() { | |
| 52 | + return guide; | |
| 53 | + } | |
| 54 | + | |
| 55 | + public void setGuide(String guide) { | |
| 56 | + this.guide = guide; | |
| 57 | + } | |
| 58 | + | |
| 59 | + public String getId() { | |
| 60 | + return id; | |
| 61 | + } | |
| 62 | + | |
| 63 | + public void setId(String id) { | |
| 64 | + this.id = id; | |
| 65 | + } | |
| 66 | + | |
| 67 | + public String getParentId() { | |
| 68 | + return parentId; | |
| 69 | + } | |
| 70 | + | |
| 71 | + public void setParentId(String parentId) { | |
| 72 | + this.parentId = parentId; | |
| 73 | + } | |
| 74 | + | |
| 75 | + @Override | |
| 76 | + public SieveApplyOrderResult convertToResult(SieveApplyOrderModel destModel) { | |
| 77 | + setId(destModel.getId()); | |
| 78 | + setParentId(destModel.getParentId()); | |
| 79 | + setApplyDoctor(destModel.getApplyDoctor()); | |
| 80 | + setCheckDate(destModel.getCheckDate()); | |
| 81 | + setGuide(destModel.getGuide()); | |
| 82 | + if(StringUtils.isNotEmpty(destModel.getCheckItem())){ | |
| 83 | + setCheckItem(JsonUtil.toList(destModel.getCheckItem(),List.class)); | |
| 84 | + } | |
| 85 | + return this; | |
| 86 | + } | |
| 87 | +} |