diff --git a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RemoteController.java b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RemoteController.java index 2a2114a..b8b902b 100644 --- a/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RemoteController.java +++ b/platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/RemoteController.java @@ -149,13 +149,6 @@ public class RemoteController extends BaseController { public BaseResponse isBookArchive(HttpServletResponse response, String idCard){ - ArchiveDataQuery query = new ArchiveDataQuery(); - query.setIdCard(idCard); - List list = archiveDataServicer.query(query.convertToQuery()); - if (CollectionUtils.isNotEmpty(list)) - { - return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_POWER).setErrormsg("已经提交过预约建档,请到医生处建档"); - } PatientsQuery patientsQuery = new PatientsQuery(); patientsQuery.setYn(YnEnums.YES.getId()); @@ -166,6 +159,16 @@ public class RemoteController extends BaseController { { return new BaseResponse().setErrorcode(ErrorCodeConstants.DATA_EXIST).setErrormsg("已经建档"); } + + ArchiveDataQuery query = new ArchiveDataQuery(); + query.setIdCard(idCard); + List list = archiveDataServicer.query(query.convertToQuery()); + if (CollectionUtils.isNotEmpty(list)) + { + return new BaseResponse().setErrorcode(ErrorCodeConstants.NO_POWER).setErrormsg("已经提交过预约建档,请到医生处建档"); + } + + return new BaseResponse().setErrorcode(ErrorCodeConstants.SUCCESS).setErrormsg("成功"); }