├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── README.md ├── hospital.sql ├── lib ├── javax.ejb.jar ├── javax.jms.jar ├── javax.persistence.jar ├── javax.resource.jar ├── javax.servlet.jsp.jar ├── javax.servlet.jsp.jstl.jar └── javax.transaction.jar ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── example │ │ └── HIS │ │ ├── DTO │ │ ├── CheckTableDto.java │ │ ├── PayHistoryDto.java │ │ ├── PrescriptionTableDto.java │ │ ├── RecordHistoryDto.java │ │ ├── RemainDoctorDto.java │ │ ├── ReserveHistoryDto.java │ │ ├── ReserveTableDto.java │ │ ├── ReturnMedicenDto.java │ │ └── TakeMedicineDto.java │ │ ├── HisApplication.java │ │ ├── Interceptor │ │ └── RemeberLoginIntercepter.java │ │ ├── config │ │ └── WebConfig.java │ │ ├── controller │ │ ├── AppointmentController.java │ │ ├── IndexController.java │ │ ├── LoginController.java │ │ ├── PayHistoryController.java │ │ ├── PaymentController.java │ │ ├── PharmacyController.java │ │ ├── RefundController.java │ │ ├── RegisterController.java │ │ ├── TakeNumberController.java │ │ ├── TestKafkaProducerController.java │ │ └── diagnosisController.java │ │ ├── generate │ │ ├── CashierDao.java │ │ ├── CheckTableDao.java │ │ ├── DepartmentDao.java │ │ ├── DeptQueueDao.java │ │ ├── DoctorDao.java │ │ ├── DoctorQueueDao.java │ │ ├── MedicineDao.java │ │ ├── PatientDao.java │ │ ├── PayTableDao.java │ │ ├── PharmacistDao.java │ │ ├── PrescriptionTableDao.java │ │ ├── RecordDao.java │ │ ├── RefundTableDao.java │ │ ├── RegisterTableDao.java │ │ ├── RemainDeptNumberDao.java │ │ ├── RemainDoctorNumberDao.java │ │ ├── ReserveTableDao.java │ │ ├── ReturnMedicineTableDao.java │ │ ├── TakeMedineTableDao.java │ │ └── ViolateTableDao.java │ │ ├── models │ │ ├── Cashier.java │ │ ├── CheckTable.java │ │ ├── Department.java │ │ ├── DepartmentExample.java │ │ ├── DeptQueue.java │ │ ├── Doctor.java │ │ ├── DoctorQueue.java │ │ ├── Medicine.java │ │ ├── Patient.java │ │ ├── PayTable.java │ │ ├── Pharmacist.java │ │ ├── PrescriptionTable.java │ │ ├── Record.java │ │ ├── RefundTable.java │ │ ├── RegisterTable.java │ │ ├── RemainDeptNumber.java │ │ ├── RemainDoctorNumber.java │ │ ├── ReserveTable.java │ │ ├── ReturnMedicineTable.java │ │ ├── TakeMedineTable.java │ │ ├── TakeMedineTableKey.java │ │ └── ViolateTable.java │ │ ├── service │ │ ├── AppointmentService.java │ │ ├── AppointmentServiceImpl.java │ │ ├── CheckService.java │ │ ├── CheckServiceImpl.java │ │ ├── DoctorService.java │ │ ├── DoctorServiceImpl.java │ │ ├── LoginService.java │ │ ├── LoginServiceImpl.java │ │ ├── PatientService.java │ │ ├── PatientServiceImpl.java │ │ ├── PayHistoryService.java │ │ ├── PayHistoryServiceImpl.java │ │ ├── PaymentService.java │ │ ├── PaymentServiceImpl.java │ │ ├── PharmacyService.java │ │ ├── PharmacyServiceImpl.java │ │ ├── PrescriptionService.java │ │ ├── PrescriptionServiceImpl.java │ │ ├── RecordService.java │ │ ├── RecordServiceImpl.java │ │ ├── RefundService.java │ │ ├── RefundServiceImpl.java │ │ ├── RegisterService.java │ │ ├── RegisterServiceImpl.java │ │ ├── TakeNumberService.java │ │ ├── TakeNumberServiceimpl.java │ │ ├── medicineService.java │ │ └── medicineServiceImpl.java │ │ ├── start │ │ └── TestConsumer.java │ │ └── tool │ │ └── DateTool.java └── resources │ ├── META-INF │ └── additional-spring-configuration-metadata.json │ ├── application.yml │ ├── generator │ ├── CashierDao.xml │ ├── CheckTableDao.xml │ ├── DepartmentDao.xml │ ├── DeptQueueDao.xml │ ├── DoctorDao.xml │ ├── DoctorQueueDao.xml │ ├── MedicineDao.xml │ ├── PatientDao.xml │ ├── PayTableDao.xml │ ├── PharmacistDao.xml │ ├── PrescriptionTableDao.xml │ ├── RecordDao.xml │ ├── RefundTableDao.xml │ ├── RegisterTableDao.xml │ ├── RemainDeptNumberDao.xml │ ├── RemainDoctorNumberDao.xml │ ├── ReserveTableDao.xml │ ├── ReturnMedicineTableDao.xml │ ├── TakeMedineTableDao.xml │ └── ViolateTableDao.xml │ ├── mybatis-config.xml │ └── static │ ├── _menu.json │ ├── appointment-dept.html │ ├── appointment-doc.html │ ├── css │ ├── animate.min.css │ ├── bootstrap.min.css │ ├── color │ │ └── color1.css │ ├── datepicker.css │ ├── font-awesome.min.css │ ├── icofont.css │ ├── magnific-popup.css │ ├── nice-select.css │ ├── normalize.css │ ├── owl-carousel.css │ ├── responsive.css │ └── slicknav.min.css │ ├── doctor-main.html │ ├── fonts │ ├── fontawesome-webfont.woff2 │ └── icofont.woff2 │ ├── img │ ├── about-img.jpg │ ├── author1.jpg │ ├── author2.jpg │ ├── author3.jpg │ ├── blockqoute-bg.jpg │ ├── blog-sidebar1.jpg │ ├── blog-sidebar2.jpg │ ├── blog-sidebar3.jpg │ ├── blog1.jpg │ ├── blog2.jpg │ ├── blog3.jpg │ ├── bread-bg.jpg │ ├── call-bg.jpg │ ├── client-bg.jpg │ ├── client1.png │ ├── client2.png │ ├── client3.png │ ├── client4.png │ ├── client5.png │ ├── contact-img.png │ ├── department.jpg │ ├── doctor-detail.jpg │ ├── fun-bg.jpg │ ├── logo.png │ ├── mission-img.jpg │ ├── pf1.jpg │ ├── pf2.jpg │ ├── pf3.jpg │ ├── pf4.jpg │ ├── section-img.png │ ├── section-img2.png │ ├── service-details-bg.jpg │ ├── signup-bg.jpg │ ├── slider.jpg │ ├── slider2.jpg │ ├── slider3.jpg │ ├── team1.jpg │ ├── team2.jpg │ ├── team3.jpg │ ├── team4.jpg │ ├── testi-bg.jpg │ ├── testi1.png │ ├── testi2.png │ ├── testi3.png │ └── video-bg.jpg │ ├── index2.html │ ├── js │ ├── bootstrap-datepicker.js │ ├── bootstrap.min.js │ ├── colors.js │ ├── easing.js │ ├── gmaps.min.js │ ├── jquery-migrate-3.0.0.js │ ├── jquery-ui.min.js │ ├── jquery.counterup.min.js │ ├── jquery.magnific-popup.min.js │ ├── jquery.min.js │ ├── jquery.nav.js │ ├── jquery.scrollUp.min.js │ ├── main.js │ ├── map-active.js │ ├── niceselect.js │ ├── owl-carousel.js │ ├── popper.min.js │ ├── slicknav.min.js │ ├── steller.js │ ├── tilt.jquery.min.js │ ├── waypoints.min.js │ └── wow.min.js │ ├── login.html │ ├── my.html │ ├── pay-app.html │ ├── pay-history.html │ ├── pay-main.html │ ├── pay-new-app.html │ ├── pay-refund.html │ ├── pharm-history.html │ ├── pharm-realtime.html │ ├── pharm-return.html │ ├── register.html │ ├── staff-login.html │ └── style.css └── test └── java └── com └── example └── his └── HisApplicationTests.java /.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/**/target/ 5 | !**/src/test/**/target/ 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | !**/src/main/**/build/ 30 | !**/src/test/**/build/ 31 | 32 | ### VS Code ### 33 | .vscode/ 34 | -------------------------------------------------------------------------------- /.mvn/wrapper/MavenWrapperDownloader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-present the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * https://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | 17 | import java.net.*; 18 | import java.io.*; 19 | import java.nio.channels.*; 20 | import java.util.Properties; 21 | 22 | public class MavenWrapperDownloader { 23 | 24 | private static final String WRAPPER_VERSION = "0.5.6"; 25 | /** 26 | * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. 27 | */ 28 | private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" 29 | + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar"; 30 | 31 | /** 32 | * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to 33 | * use instead of the default one. 34 | */ 35 | private static final String MAVEN_WRAPPER_PROPERTIES_PATH = 36 | ".mvn/wrapper/maven-wrapper.properties"; 37 | 38 | /** 39 | * Path where the maven-wrapper.jar will be saved to. 40 | */ 41 | private static final String MAVEN_WRAPPER_JAR_PATH = 42 | ".mvn/wrapper/maven-wrapper.jar"; 43 | 44 | /** 45 | * Name of the property which should be used to override the default download url for the wrapper. 46 | */ 47 | private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; 48 | 49 | public static void main(String args[]) { 50 | System.out.println("- Downloader started"); 51 | File baseDirectory = new File(args[0]); 52 | System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); 53 | 54 | // If the maven-wrapper.properties exists, read it and check if it contains a custom 55 | // wrapperUrl parameter. 56 | File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); 57 | String url = DEFAULT_DOWNLOAD_URL; 58 | if (mavenWrapperPropertyFile.exists()) { 59 | FileInputStream mavenWrapperPropertyFileInputStream = null; 60 | try { 61 | mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); 62 | Properties mavenWrapperProperties = new Properties(); 63 | mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); 64 | url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); 65 | } catch (IOException e) { 66 | System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); 67 | } finally { 68 | try { 69 | if (mavenWrapperPropertyFileInputStream != null) { 70 | mavenWrapperPropertyFileInputStream.close(); 71 | } 72 | } catch (IOException e) { 73 | // Ignore ... 74 | } 75 | } 76 | } 77 | System.out.println("- Downloading from: " + url); 78 | 79 | File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); 80 | if (!outputFile.getParentFile().exists()) { 81 | if (!outputFile.getParentFile().mkdirs()) { 82 | System.out.println( 83 | "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"); 84 | } 85 | } 86 | System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); 87 | try { 88 | downloadFileFromURL(url, outputFile); 89 | System.out.println("Done"); 90 | System.exit(0); 91 | } catch (Throwable e) { 92 | System.out.println("- Error downloading"); 93 | e.printStackTrace(); 94 | System.exit(1); 95 | } 96 | } 97 | 98 | private static void downloadFileFromURL(String urlString, File destination) throws Exception { 99 | if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) { 100 | String username = System.getenv("MVNW_USERNAME"); 101 | char[] password = System.getenv("MVNW_PASSWORD").toCharArray(); 102 | Authenticator.setDefault(new Authenticator() { 103 | @Override 104 | protected PasswordAuthentication getPasswordAuthentication() { 105 | return new PasswordAuthentication(username, password); 106 | } 107 | }); 108 | } 109 | URL website = new URL(urlString); 110 | ReadableByteChannel rbc; 111 | rbc = Channels.newChannel(website.openStream()); 112 | FileOutputStream fos = new FileOutputStream(destination); 113 | fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); 114 | fos.close(); 115 | rbc.close(); 116 | } 117 | 118 | } 119 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.3/apache-maven-3.8.3-bin.zip 2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HIS 2 | 医院门诊管理系统,主要功能:预约挂号、医生诊断、缴费退费、药房发药等。 3 | -------------------------------------------------------------------------------- /lib/javax.ejb.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/lib/javax.ejb.jar -------------------------------------------------------------------------------- /lib/javax.jms.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/lib/javax.jms.jar -------------------------------------------------------------------------------- /lib/javax.persistence.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/lib/javax.persistence.jar -------------------------------------------------------------------------------- /lib/javax.resource.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/lib/javax.resource.jar -------------------------------------------------------------------------------- /lib/javax.servlet.jsp.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/lib/javax.servlet.jsp.jar -------------------------------------------------------------------------------- /lib/javax.servlet.jsp.jstl.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/lib/javax.servlet.jsp.jstl.jar -------------------------------------------------------------------------------- /lib/javax.transaction.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/lib/javax.transaction.jar -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.6.2 9 | 10 | 11 | com.example 12 | HIS 13 | 0.0.1-SNAPSHOT 14 | HIS 15 | HIS 16 | 17 | 11 18 | 19 | 20 | 21 | org.springframework.boot 22 | spring-boot-starter-web 23 | 24 | 25 | org.springframework.kafka 26 | spring-kafka 27 | 28 | 29 | org.springframework.boot 30 | spring-boot-starter-test 31 | test 32 | 33 | 34 | org.springframework.kafka 35 | spring-kafka-test 36 | test 37 | 38 | 39 | org.projectlombok 40 | lombok 41 | provided 42 | 43 | 44 | org.mybatis.generator 45 | mybatis-generator-maven-plugin 46 | 1.4.0 47 | 48 | 49 | 50 | org.mybatis.spring.boot 51 | mybatis-spring-boot-starter 52 | 2.2.0 53 | 54 | 55 | mysql 56 | mysql-connector-java 57 | 8.0.27 58 | 59 | 60 | com.alibaba 61 | fastjson 62 | 1.2.79 63 | 64 | 65 | com.google.code.gson 66 | gson 67 | 68 | 69 | org.springframework 70 | spring-beans 71 | 5.3.14 72 | 73 | 74 | org.springframework 75 | spring-beans 76 | 5.3.14 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | org.springframework.boot 98 | spring-boot-maven-plugin 99 | 100 | 101 | 102 | 103 | 104 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/CheckTableDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | public class CheckTableDto { 4 | private String patientIdentity; 5 | private String patientName; 6 | private int checkId; 7 | private String checkDescription; 8 | 9 | public String getPatientIdentity() { 10 | return patientIdentity; 11 | } 12 | 13 | public void setPatientIdentity(String patientIdentity) { 14 | this.patientIdentity = patientIdentity; 15 | } 16 | 17 | public String getPatientName() { 18 | return patientName; 19 | } 20 | 21 | public void setPatientName(String patientName) { 22 | this.patientName = patientName; 23 | } 24 | 25 | public int getCheckId() { 26 | return checkId; 27 | } 28 | 29 | public void setCheckId(int checkId) { 30 | this.checkId = checkId; 31 | } 32 | 33 | public String getCheckDescription() { 34 | return checkDescription; 35 | } 36 | 37 | public void setCheckDescription(String checkDescription) { 38 | this.checkDescription = checkDescription; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/PayHistoryDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | import com.fasterxml.jackson.annotation.JsonFormat; 4 | 5 | import java.util.Date; 6 | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8") 7 | public class PayHistoryDto { 8 | int payId; 9 | String patientName; 10 | String patientIdentity; 11 | float payMoney; 12 | String payItem; 13 | String cashierName; 14 | Date payTime; 15 | 16 | public int getPayId() { 17 | return payId; 18 | } 19 | 20 | public void setPayId(int payId) { 21 | this.payId = payId; 22 | } 23 | 24 | public String getPatientName() { 25 | return patientName; 26 | } 27 | 28 | public void setPatientName(String patientName) { 29 | this.patientName = patientName; 30 | } 31 | 32 | public String getPatientIdentity() { 33 | return patientIdentity; 34 | } 35 | 36 | public void setPatientIdentity(String patientIdentity) { 37 | this.patientIdentity = patientIdentity; 38 | } 39 | 40 | public float getPayMoney() { 41 | return payMoney; 42 | } 43 | 44 | public void setPayMoney(float payMoney) { 45 | this.payMoney = payMoney; 46 | } 47 | 48 | public String getPayItem() { 49 | return payItem; 50 | } 51 | 52 | public void setPayItem(String payItem) { 53 | this.payItem = payItem; 54 | } 55 | 56 | public String getCashierName() { 57 | return cashierName; 58 | } 59 | 60 | public void setCashierName(String cashierName) { 61 | this.cashierName = cashierName; 62 | } 63 | 64 | public Date getPayTime() { 65 | return payTime; 66 | } 67 | 68 | public void setPayTime(Date payTime) { 69 | this.payTime = payTime; 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/PrescriptionTableDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | public class PrescriptionTableDto {//处方单号、药品Id、药品名称、药品数量、药品单价 4 | private String patientIdentity; 5 | private String patientName; 6 | private int prescriptionId; 7 | private String medicineId; 8 | private String medicineName; 9 | private int medicineNumber; 10 | private float medicineMoney; 11 | 12 | 13 | public String getPatientIdentity() { 14 | return patientIdentity; 15 | } 16 | 17 | public void setPatientIdentity(String patientIdentity) { 18 | this.patientIdentity = patientIdentity; 19 | } 20 | 21 | public String getPatientName() { 22 | return patientName; 23 | } 24 | 25 | public void setPatientName(String patientName) { 26 | this.patientName = patientName; 27 | } 28 | 29 | public int getPrescriptionId() { 30 | return prescriptionId; 31 | } 32 | 33 | public void setPrescriptionId(int prescriptionId) { 34 | this.prescriptionId = prescriptionId; 35 | } 36 | 37 | public String getMedicineId() { 38 | return medicineId; 39 | } 40 | 41 | public void setMedicineId(String medicineId) { 42 | this.medicineId = medicineId; 43 | } 44 | 45 | public String getMedicineName() { 46 | return medicineName; 47 | } 48 | 49 | public void setMedicineName(String medicineName) { 50 | this.medicineName = medicineName; 51 | } 52 | 53 | public int getMedicineNumber() { 54 | return medicineNumber; 55 | } 56 | 57 | public void setMedicineNumber(int medicineNumber) { 58 | this.medicineNumber = medicineNumber; 59 | } 60 | 61 | public float getMedicineMoney() { 62 | return medicineMoney; 63 | } 64 | 65 | public void setMedicineMoney(float medicineMoney) { 66 | this.medicineMoney = medicineMoney; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/RecordHistoryDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | import java.util.Date; 4 | 5 | public class RecordHistoryDto { 6 | private String departmentId; 7 | private String doctorName; 8 | private int recordId; 9 | private Date billTime; 10 | 11 | public String getDepartmentId() { 12 | return departmentId; 13 | } 14 | 15 | public void setDepartmentId(String departmentId) { 16 | this.departmentId = departmentId; 17 | } 18 | 19 | public String getDoctorName() { 20 | return doctorName; 21 | } 22 | 23 | public void setDoctorName(String doctorName) { 24 | this.doctorName = doctorName; 25 | } 26 | 27 | public int getRecordId() { 28 | return recordId; 29 | } 30 | 31 | public void setRecordId(int recordId) { 32 | this.recordId = recordId; 33 | } 34 | 35 | public Date getBillTime() { 36 | return billTime; 37 | } 38 | 39 | public void setBillTime(Date billTime) { 40 | this.billTime = billTime; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/RemainDoctorDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | import java.util.Date; 4 | 5 | public class RemainDoctorDto { 6 | private Integer remainDoctorNumberId; 7 | 8 | private String departmentId; 9 | 10 | private String doctorId; 11 | 12 | private Date time; 13 | 14 | private Integer number; 15 | 16 | private String doctorName; 17 | 18 | public Integer getRemainDoctorNumberId() { 19 | return remainDoctorNumberId; 20 | } 21 | 22 | public void setRemainDoctorNumberId(Integer remainDoctorNumberId) { 23 | this.remainDoctorNumberId = remainDoctorNumberId; 24 | } 25 | 26 | public String getDoctorId() { 27 | return doctorId; 28 | } 29 | 30 | public void setDoctorId(String doctorId) { 31 | this.doctorId = doctorId; 32 | } 33 | 34 | public Date getTime() { 35 | return time; 36 | } 37 | 38 | public void setTime(Date time) { 39 | this.time = time; 40 | } 41 | 42 | public Integer getNumber() { 43 | return number; 44 | } 45 | 46 | public void setNumber(Integer number) { 47 | this.number = number; 48 | } 49 | 50 | public String getDoctorName() { 51 | return doctorName; 52 | } 53 | 54 | public void setDoctorName(String doctorName) { 55 | this.doctorName = doctorName; 56 | } 57 | 58 | public String getDepartmentId() { 59 | return departmentId; 60 | } 61 | 62 | public void setDepartmentId(String departmentId) { 63 | this.departmentId = departmentId; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/ReserveHistoryDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | import java.util.Date; 4 | 5 | public class ReserveHistoryDto { 6 | 7 | private int reserveId; 8 | private String reserveType; 9 | private String departmentName; 10 | private String doctorName; 11 | private Date reserveTime; 12 | private String reserveState; 13 | 14 | public int getReserveId() { 15 | return reserveId; 16 | } 17 | 18 | public void setReserveId(int reserveId) { 19 | this.reserveId = reserveId; 20 | } 21 | 22 | public String getReserveType() { 23 | return reserveType; 24 | } 25 | 26 | public void setReserveType(String reserveType) { 27 | this.reserveType = reserveType; 28 | } 29 | 30 | public String getDepartmentName() { 31 | return departmentName; 32 | } 33 | 34 | public void setDepartmentName(String departmentName) { 35 | this.departmentName = departmentName; 36 | } 37 | 38 | public String getDoctorName() { 39 | return doctorName; 40 | } 41 | 42 | public void setDoctorName(String doctorName) { 43 | this.doctorName = doctorName; 44 | } 45 | 46 | public Date getReserveTime() { 47 | return reserveTime; 48 | } 49 | 50 | public void setReserveTime(Date reserveTime) { 51 | this.reserveTime = reserveTime; 52 | } 53 | 54 | public String getReserveState() { 55 | return reserveState; 56 | } 57 | 58 | public void setReserveState(String reserveState) { 59 | this.reserveState = reserveState; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/ReserveTableDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | public class ReserveTableDto { 4 | //患者姓名、患者身份证号、预约种类(1科室,0专家)、预约科室id、预约医生姓名、时间,状态(,0待确认,1已完成,-1已取消) 5 | int reserveId; 6 | String patientIdentity; 7 | String patientName; 8 | int reserveType; 9 | String departmentId; 10 | String doctorName; 11 | String reserveTime; 12 | int reserveState; 13 | 14 | public int getReserveId() { 15 | return reserveId; 16 | } 17 | 18 | public void setReserveId(int reserveId) { 19 | this.reserveId = reserveId; 20 | } 21 | 22 | public String getPatientIdentity() { 23 | return patientIdentity; 24 | } 25 | 26 | public void setPatientIdentity(String patientIdentity) { 27 | this.patientIdentity = patientIdentity; 28 | } 29 | 30 | public String getPatientName() { 31 | return patientName; 32 | } 33 | 34 | public void setPatientName(String patientName) { 35 | this.patientName = patientName; 36 | } 37 | 38 | public int getReserveType() { 39 | return reserveType; 40 | } 41 | 42 | public void setReserveType(int reserveType) { 43 | this.reserveType = reserveType; 44 | } 45 | 46 | public String getDepartmentId() { 47 | return departmentId; 48 | } 49 | 50 | public void setDepartmentId(String departmentId) { 51 | this.departmentId = departmentId; 52 | } 53 | 54 | public String getDoctorName() { 55 | return doctorName; 56 | } 57 | 58 | public void setDoctorName(String doctorName) { 59 | this.doctorName = doctorName; 60 | } 61 | 62 | public String getReserveTime() { 63 | return reserveTime; 64 | } 65 | 66 | public void setReserveTime(String reserveTime) { 67 | this.reserveTime = reserveTime; 68 | } 69 | 70 | public int getReserveState() { 71 | return reserveState; 72 | } 73 | 74 | public void setReserveState(int reserveState) { 75 | this.reserveState = reserveState; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/ReturnMedicenDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | @Data 7 | public class ReturnMedicenDto { 8 | private Integer prescriptionId; 9 | 10 | private String medicineId; 11 | 12 | private String medicineName; 13 | 14 | private int medicineNumber; 15 | 16 | private Double medicineMoney; 17 | 18 | private int takeState; 19 | 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/DTO/TakeMedicineDto.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.DTO; 2 | 3 | import lombok.Data; 4 | 5 | import java.util.Date; 6 | @Data 7 | public class TakeMedicineDto { 8 | 9 | private Integer takeId; 10 | 11 | private String patientName; 12 | 13 | private String patientIdentity; 14 | 15 | private String takeState; 16 | 17 | private String mainDoc; 18 | 19 | private String pharDoc; 20 | 21 | private Date billTime; 22 | 23 | private Date takeTime; 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/HisApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.his; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class HisApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(HisApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/Interceptor/RemeberLoginIntercepter.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.Interceptor; 2 | 3 | 4 | import org.springframework.stereotype.Component; 5 | import org.springframework.web.servlet.HandlerInterceptor; 6 | 7 | import javax.servlet.http.Cookie; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | import javax.servlet.http.HttpSession; 11 | 12 | @Component 13 | public class RemeberLoginIntercepter implements HandlerInterceptor { 14 | 15 | // @Autowired 16 | // private UserMapper userMapper; 17 | 18 | @Override 19 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { 20 | HttpSession session = request.getSession(); 21 | Object patientSession = session.getAttribute("patientInfo");//查找患者session 22 | Object cashierSession = session.getAttribute("cashierInfo");//查找员工session 23 | Object doctorSession = session.getAttribute("doctorInfo");//查找员工session 24 | Object pharmacistSession = session.getAttribute("pharmacistInfo");//查找员工session 25 | 26 | 27 | if(null==patientSession && null==cashierSession && null==doctorSession && null==pharmacistSession){ 28 | response.sendRedirect(request.getContextPath()+"/login.html"); 29 | return false; 30 | } 31 | return true; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/config/WebConfig.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.config; 2 | 3 | import com.example.HIS.Interceptor.RemeberLoginIntercepter; 4 | import org.springframework.beans.factory.annotation.Autowired; 5 | import org.springframework.context.annotation.Configuration; 6 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 7 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 8 | 9 | @Configuration 10 | public class WebConfig implements WebMvcConfigurer { 11 | 12 | @Autowired 13 | private RemeberLoginIntercepter remeberLoginIntercepter; 14 | 15 | /*添加登录拦截器*/ 16 | @Override 17 | public void addInterceptors(InterceptorRegistry registry) { 18 | registry.addInterceptor(remeberLoginIntercepter) 19 | .addPathPatterns("/**") 20 | .excludePathPatterns("/index2.html","/index","/","/login","/register.html","/staff-login.html","/staff_login","/register", 21 | "/css/**","/fonts/**","/img/**", 22 | "/js/**","/login.html","/style.css"); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/controller/IndexController.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.ui.Model; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.servlet.view.RedirectView; 7 | 8 | import javax.servlet.http.HttpServletResponse; 9 | @Controller 10 | public class IndexController { 11 | @RequestMapping("/") 12 | public RedirectView start(Model model, HttpServletResponse response) { 13 | RedirectView redirectTarget = new RedirectView(); 14 | redirectTarget.setContextRelative(true); 15 | redirectTarget.setUrl("index"); 16 | return redirectTarget; 17 | } 18 | @RequestMapping("index") 19 | public String index(Model model, HttpServletResponse response) { 20 | return "index2"; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/controller/PayHistoryController.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.controller; 2 | 3 | 4 | import com.example.HIS.service.PayHistoryService; 5 | import com.example.HIS.DTO.PayHistoryDto; 6 | import com.google.gson.GsonBuilder; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Controller; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.ResponseBody; 11 | 12 | import javax.servlet.http.HttpServletRequest; 13 | import javax.servlet.http.HttpServletResponse; 14 | import java.io.IOException; 15 | import java.util.List; 16 | 17 | //查看缴费单记录 18 | @Controller 19 | public class PayHistoryController { 20 | @Autowired 21 | private PayHistoryService payHistoryService; 22 | 23 | //点击查看缴费单记录 24 | @RequestMapping("/pay_history") 25 | @ResponseBody 26 | public void payHistory(HttpServletRequest request, HttpServletResponse response){ 27 | response.setContentType("text/html; charset=utf-8"); 28 | String patientIdentity = request.getParameter("patientIdentity"); 29 | List payHistoryInfoList=payHistoryService.getPayHistoryByPatientId(patientIdentity); 30 | try{ 31 | response.getWriter().print(new GsonBuilder().serializeNulls().create().toJson(payHistoryInfoList)); 32 | } catch (IOException e) { 33 | e.printStackTrace(); 34 | } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/controller/RegisterController.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.controller; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import com.example.HIS.service.RegisterService; 5 | import com.example.HIS.models.Patient; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Controller; 8 | import org.springframework.util.StringUtils; 9 | import org.springframework.web.bind.annotation.RequestMapping; 10 | import org.springframework.web.bind.annotation.ResponseBody; 11 | import org.springframework.web.servlet.ModelAndView; 12 | 13 | import javax.servlet.http.HttpServletRequest; 14 | import javax.servlet.http.HttpSession; 15 | import java.sql.SQLIntegrityConstraintViolationException; 16 | import java.util.HashMap; 17 | import java.util.List; 18 | import java.util.Map; 19 | 20 | @Controller 21 | public class RegisterController { 22 | @Autowired 23 | RegisterService registerService; 24 | 25 | @RequestMapping("/register") 26 | @ResponseBody 27 | public String userRegister(HttpServletRequest request, HttpSession session){ 28 | Map parameter = new HashMap<>(); 29 | String patientIdentity = request.getParameter("patientIdentity"); 30 | String password1 = request.getParameter("password1"); 31 | String patientName = request.getParameter("patientName"); 32 | String gender=request.getParameter("patientGender"); 33 | int patientGender = 0; 34 | if(gender.equals("男")){ 35 | patientGender=1; 36 | } 37 | String patientAddress = request.getParameter("patientAddress"); 38 | String patientTel = request.getParameter("patientTel"); 39 | 40 | Patient patient = registerService.selectPatient(patientIdentity); 41 | if (null==patient){ 42 | Patient patient1 = new Patient(patientIdentity,password1); 43 | patient1.setPatientName(patientName); 44 | patient1.setPatientAddress(patientAddress); 45 | patient1.setPatientGender(patientGender); 46 | patient1.setPatientIsBlack(0); 47 | patient1.setPatientTel(patientTel); 48 | registerService.addPatient(patient1); 49 | session.setAttribute("patientInfo", patient1); 50 | parameter.put("status", "ok"); 51 | System.out.println("用户注册成功"); 52 | return JSON.toJSONString(parameter); 53 | } 54 | else { 55 | parameter.put("status", "no"); 56 | System.out.println("用户存在,注册失败"); 57 | return JSON.toJSONString(parameter); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/controller/TestKafkaProducerController.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.controller; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.kafka.core.KafkaTemplate; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.bind.annotation.RestController; 7 | 8 | 9 | @RestController //定义这是一个控制器,可以通过浏览器访问 10 | @RequestMapping("kafka") 11 | public class TestKafkaProducerController { 12 | 13 | @Autowired 14 | // 定义一个kafka模板 15 | private KafkaTemplate kafkaTemplate; //这里会报错,但不影响 16 | 17 | //当在浏览器上输入http://localhost:8080/kafka/send?msg=abc,就会发送abc到服务器上去让消费者接收,msg对应下面的String msg 18 | @RequestMapping("send") 19 | public String send(String msg) { 20 | kafkaTemplate.send("yhtest", msg); //使用kafka模板发送信息 21 | return "success"; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/CashierDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.Cashier; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | @Mapper 7 | public interface CashierDao { 8 | int deleteByPrimaryKey(String cashierId); 9 | 10 | int insert(Cashier record); 11 | 12 | int insertSelective(Cashier record); 13 | 14 | Cashier selectByPrimaryKey(String cashierId); 15 | 16 | int updateByPrimaryKeySelective(Cashier record); 17 | 18 | int updateByPrimaryKey(Cashier record); 19 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/CheckTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.DTO.CheckTableDto; 4 | import com.example.HIS.models.CheckTable; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | @Mapper 8 | public interface CheckTableDao { 9 | int deleteByPrimaryKey(Integer checkId); 10 | 11 | int insert(CheckTable record); 12 | 13 | int insertSelective(CheckTable record); 14 | 15 | CheckTable selectByPrimaryKey(Integer checkId); 16 | 17 | int updateByPrimaryKeySelective(CheckTable record); 18 | 19 | int updateByPrimaryKey(CheckTable record); 20 | 21 | String getMaxId(); 22 | 23 | CheckTableDto getCheckTableDtoById(int checkId); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/DepartmentDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import java.util.List; 4 | import com.example.HIS.models.Department; 5 | import com.example.HIS.models.DepartmentExample; 6 | import org.apache.ibatis.annotations.Mapper; 7 | import org.apache.ibatis.annotations.Param; 8 | @Mapper 9 | public interface DepartmentDao { 10 | long countByExample(DepartmentExample example); 11 | 12 | int deleteByExample(DepartmentExample example); 13 | 14 | int deleteByPrimaryKey(String departmentId); 15 | 16 | int insert(Department record); 17 | 18 | int insertSelective(Department record); 19 | 20 | List selectByExample(DepartmentExample example); 21 | 22 | Department selectByPrimaryKey(String departmentId); 23 | 24 | int updateByExampleSelective(@Param("record") Department record, @Param("example") DepartmentExample example); 25 | 26 | int updateByExample(@Param("record") Department record, @Param("example") DepartmentExample example); 27 | 28 | int updateByPrimaryKeySelective(Department record); 29 | 30 | int updateByPrimaryKey(Department record); 31 | 32 | List getAll(); 33 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/DeptQueueDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.DeptQueue; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | @Mapper 8 | public interface DeptQueueDao { 9 | int deleteByPrimaryKey(Integer deptQueueId); 10 | 11 | int insert(DeptQueue record); 12 | 13 | int insertSelective(DeptQueue record); 14 | 15 | DeptQueue selectByPrimaryKey(Integer deptQueueId); 16 | 17 | int updateByPrimaryKeySelective(DeptQueue record); 18 | 19 | int updateByPrimaryKey(DeptQueue record); 20 | 21 | int getMaxIdByDeptId(String departmentId); 22 | 23 | DeptQueue getByRegisterId(Integer registerId); 24 | 25 | List getByDeptId(String deptId); 26 | 27 | List getReserveByDeptId(String deptId); 28 | 29 | List getSiteByDeptId(String deptId); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/DoctorDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.Doctor; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface DoctorDao { 10 | int deleteByPrimaryKey(String doctorId); 11 | 12 | int insert(Doctor record); 13 | 14 | int insertSelective(Doctor record); 15 | 16 | Doctor selectByPrimaryKey(String doctorId); 17 | 18 | int updateByPrimaryKeySelective(Doctor record); 19 | 20 | int updateByPrimaryKey(Doctor record); 21 | 22 | List getAll(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/DoctorQueueDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.DoctorQueue; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | @Mapper 8 | public interface DoctorQueueDao { 9 | int deleteByPrimaryKey(Integer doctorQueueId); 10 | 11 | int insert(DoctorQueue record); 12 | 13 | int insertSelective(DoctorQueue record); 14 | 15 | DoctorQueue selectByPrimaryKey(Integer doctorQueueId); 16 | 17 | int updateByPrimaryKeySelective(DoctorQueue record); 18 | 19 | int updateByPrimaryKey(DoctorQueue record); 20 | 21 | Integer getMaxIdByDoctorId(String doctorId); 22 | 23 | DoctorQueue getByRegisterId(Integer registerId); 24 | 25 | List getByDoctorId(String doctorId); 26 | 27 | List getReserveByDoctorId(String doctorId); 28 | 29 | List getSiteByDoctorId(String doctorId); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/MedicineDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.Medicine; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | @Mapper 7 | public interface MedicineDao { 8 | int deleteByPrimaryKey(String medicineId); 9 | 10 | int insert(Medicine record); 11 | 12 | int insertSelective(Medicine record); 13 | 14 | Medicine selectByPrimaryKey(String medicineId); 15 | 16 | int updateByPrimaryKeySelective(Medicine record); 17 | 18 | int updateByPrimaryKey(Medicine record); 19 | 20 | Medicine selectByName(String medicineName); 21 | 22 | double selectMoneyById(String medicineId); 23 | 24 | String selectMedicineNameById(String medicineId); 25 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/PatientDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.Patient; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface PatientDao { 10 | int deleteByPrimaryKey(String patientIdentity); 11 | 12 | int insert(Patient record); 13 | 14 | int insertSelective(Patient record); 15 | 16 | Patient selectByPrimaryKey(String patientIdentity); 17 | 18 | int updateByPrimaryKeySelective(Patient record); 19 | 20 | int updateByPrimaryKey(Patient record); 21 | 22 | List getAll(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/PayTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.PayTable; 4 | import com.example.HIS.DTO.PayHistoryDto; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | import java.util.List; 8 | 9 | @Mapper 10 | public interface PayTableDao { 11 | int deleteByPrimaryKey(Integer payId); 12 | 13 | int insert(PayTable record); 14 | 15 | int insertSelective(PayTable record); 16 | 17 | PayTable selectByPrimaryKey(Integer payId); 18 | 19 | int updateByPrimaryKeySelective(PayTable record); 20 | 21 | int updateByPrimaryKey(PayTable record); 22 | 23 | List getHistoryByPatientIdentity(String patientIdentity); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/PharmacistDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.Pharmacist; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | @Mapper 7 | public interface PharmacistDao { 8 | int deleteByPrimaryKey(String pharmacistId); 9 | 10 | int insert(Pharmacist record); 11 | 12 | int insertSelective(Pharmacist record); 13 | 14 | Pharmacist selectByPrimaryKey(String pharmacistId); 15 | 16 | int updateByPrimaryKeySelective(Pharmacist record); 17 | 18 | int updateByPrimaryKey(Pharmacist record); 19 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/PrescriptionTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.DTO.PrescriptionTableDto; 4 | import com.example.HIS.models.PrescriptionTable; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | @Mapper 8 | public interface PrescriptionTableDao { 9 | int deleteByPrimaryKey(Integer prescriptionId); 10 | 11 | int insert(PrescriptionTable record); 12 | 13 | int insertSelective(PrescriptionTable record); 14 | 15 | PrescriptionTable selectByPrimaryKey(Integer prescriptionId); 16 | 17 | int updateByPrimaryKeySelective(PrescriptionTable record); 18 | 19 | int updateByPrimaryKey(PrescriptionTable record); 20 | 21 | Integer getMaxId(); 22 | 23 | PrescriptionTableDto selectPrescriptionTableDtoById(int prescriptionId); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/RecordDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.DTO.RecordHistoryDto; 4 | import com.example.HIS.models.Record; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | import java.util.List; 8 | 9 | @Mapper 10 | public interface RecordDao { 11 | int deleteByPrimaryKey(Integer recordId); 12 | 13 | int insert(Record record); 14 | 15 | int insertSelective(Record record); 16 | 17 | Record selectByPrimaryKey(Integer recordId); 18 | 19 | int updateByPrimaryKeySelective(Record record); 20 | 21 | int updateByPrimaryKey(Record record); 22 | 23 | Integer getMaxId(); 24 | 25 | List findByPatientId(String patientId); 26 | 27 | List findHistoryByPatientId(String patientId); 28 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/RefundTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.RefundTable; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface RefundTableDao { 10 | int deleteByPrimaryKey(Integer refundId); 11 | 12 | int insert(RefundTable record); 13 | 14 | int insertSelective(RefundTable record); 15 | 16 | RefundTable selectByPrimaryKey(Integer refundId); 17 | 18 | int updateByPrimaryKeySelective(RefundTable record); 19 | 20 | int updateByPrimaryKey(RefundTable record); 21 | 22 | List selectAll(); 23 | 24 | RefundTable getByPayId(int payId); 25 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/RegisterTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.RegisterTable; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | @Mapper 7 | public interface RegisterTableDao { 8 | int deleteByPrimaryKey(Integer registerId); 9 | 10 | int insert(RegisterTable record); 11 | 12 | int insertSelective(RegisterTable record); 13 | 14 | RegisterTable selectByPrimaryKey(Integer registerId); 15 | 16 | int updateByPrimaryKeySelective(RegisterTable record); 17 | 18 | int updateByPrimaryKey(RegisterTable record); 19 | 20 | RegisterTable selectByPId(String patientIdentity); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/RemainDeptNumberDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.RemainDeptNumber; 4 | import org.apache.ibatis.annotations.Mapper; 5 | import org.apache.ibatis.annotations.Param; 6 | 7 | import java.util.Date; 8 | import java.util.List; 9 | 10 | @Mapper 11 | public interface RemainDeptNumberDao { 12 | List getAll(); 13 | 14 | int deleteByPrimaryKey(Integer remainDeptNumderId); 15 | 16 | int insert(RemainDeptNumber record); 17 | 18 | int insertSelective(RemainDeptNumber record); 19 | 20 | RemainDeptNumber selectByPrimaryKey(Integer remainDeptNumderId); 21 | 22 | int updateByPrimaryKeySelective(RemainDeptNumber record); 23 | 24 | int updateByPrimaryKey(RemainDeptNumber record); 25 | 26 | List selectByDeptId(@Param("DeptId") String DeptId); 27 | 28 | List getAllToday(); 29 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/RemainDoctorNumberDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.RemainDoctorNumber; 4 | import com.example.HIS.DTO.RemainDoctorDto; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | import java.util.Date; 8 | import java.util.List; 9 | @Mapper 10 | public interface RemainDoctorNumberDao { 11 | 12 | List selectByDoctorId(String doctorId); 13 | 14 | List getAllDoctorRemain(); 15 | 16 | int insert(RemainDoctorNumber record); 17 | 18 | int insertSelective(RemainDoctorNumber record); 19 | 20 | List selectByDoctorID(String doctorId); 21 | 22 | void updateByPrimaryKey(RemainDoctorNumber remainDoctorNumber); 23 | 24 | List getAllDoctorRemainToday(); 25 | 26 | List selectByDoctorIdAndTime(String doctorId); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/ReserveTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.ReserveTable; 4 | import com.example.HIS.DTO.ReserveHistoryDto; 5 | import com.example.HIS.DTO.ReserveTableDto; 6 | import org.apache.ibatis.annotations.Mapper; 7 | 8 | import java.util.List; 9 | 10 | @Mapper 11 | public interface ReserveTableDao { 12 | int deleteByPrimaryKey(Integer reserveId); 13 | 14 | int insert(ReserveTable record); 15 | 16 | int insertSelective(ReserveTable record); 17 | 18 | ReserveTable selectByPrimaryKey(Integer reserveId); 19 | 20 | int updateByPrimaryKeySelective(ReserveTable record); 21 | 22 | int updateByPrimaryKey(ReserveTable record); 23 | 24 | List selectViolateByPatientId(String patientId); 25 | 26 | List selectHistoryByPatientId(String patientIdentity); 27 | 28 | List selectInfoByPIdToday(String patientIdentity); 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/ReturnMedicineTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.ReturnMedicineTable; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | @Mapper 7 | public interface ReturnMedicineTableDao { 8 | int deleteByPrimaryKey(Integer returnId); 9 | 10 | int insert(ReturnMedicineTable record); 11 | 12 | int insertSelective(ReturnMedicineTable record); 13 | 14 | ReturnMedicineTable selectByPrimaryKey(Integer returnId); 15 | 16 | int updateByPrimaryKeySelective(ReturnMedicineTable record); 17 | 18 | int updateByPrimaryKey(ReturnMedicineTable record); 19 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/TakeMedineTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.TakeMedineTable; 4 | import org.apache.ibatis.annotations.Mapper; 5 | 6 | import java.util.List; 7 | 8 | @Mapper 9 | public interface TakeMedineTableDao { 10 | int deleteByPrimaryKey(Integer takeId); 11 | 12 | int insert(TakeMedineTable record); 13 | 14 | int insertSelective(TakeMedineTable record); 15 | 16 | List selectByPrimaryKey(Integer takeId); 17 | 18 | List selectAllTakeMedineTable(); 19 | 20 | int updateByPrimaryKeySelective(TakeMedineTable record); 21 | 22 | int updateByPrimaryKey(TakeMedineTable record); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/generate/ViolateTableDao.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.generate; 2 | 3 | import com.example.HIS.models.Patient; 4 | import com.example.HIS.models.ViolateTable; 5 | import org.apache.ibatis.annotations.Mapper; 6 | 7 | import java.util.List; 8 | 9 | @Mapper 10 | public interface ViolateTableDao { 11 | int deleteByPrimaryKey(Integer violateId); 12 | 13 | int insert(ViolateTable record); 14 | 15 | int insertSelective(ViolateTable record); 16 | 17 | ViolateTable selectByPrimaryKey(Integer violateId); 18 | 19 | int updateByPrimaryKeySelective(ViolateTable record); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/Cashier.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import lombok.Data; 5 | 6 | /** 7 | * cashiers 8 | * @author 9 | */ 10 | @Data 11 | public class Cashier implements Serializable { 12 | /** 13 | * 工号 14 | */ 15 | private String cashierId; 16 | 17 | /** 18 | * 身份证号 19 | */ 20 | private String cashierIdentity; 21 | 22 | /** 23 | * 密码 24 | */ 25 | private String cashierPassword; 26 | 27 | /** 28 | * 姓名 29 | */ 30 | private String cashierName; 31 | 32 | /** 33 | * 性别1男,0女 34 | */ 35 | private Integer cashierGender; 36 | 37 | /** 38 | * 电话 39 | */ 40 | private String cashierTel; 41 | 42 | /** 43 | * 家庭住址 44 | */ 45 | private String cashierAddress; 46 | 47 | private static final long serialVersionUID = 1L; 48 | 49 | public Cashier(String cashierId, String cashierPassword) { 50 | this.cashierId = cashierId; 51 | this.cashierPassword = cashierPassword; 52 | } 53 | 54 | public String getCashierId() { 55 | return cashierId; 56 | } 57 | 58 | public void setCashierId(String cashierId) { 59 | this.cashierId = cashierId; 60 | } 61 | 62 | public String getCashierIdentity() { 63 | return cashierIdentity; 64 | } 65 | 66 | public void setCashierIdentity(String cashierIdentity) { 67 | this.cashierIdentity = cashierIdentity; 68 | } 69 | 70 | public String getCashierPassword() { 71 | return cashierPassword; 72 | } 73 | 74 | public void setCashierPassword(String cashierPassword) { 75 | this.cashierPassword = cashierPassword; 76 | } 77 | 78 | public String getCashierName() { 79 | return cashierName; 80 | } 81 | 82 | public void setCashierName(String cashierName) { 83 | this.cashierName = cashierName; 84 | } 85 | 86 | public Integer getCashierGender() { 87 | return cashierGender; 88 | } 89 | 90 | public void setCashierGender(Integer cashierGender) { 91 | this.cashierGender = cashierGender; 92 | } 93 | 94 | public String getCashierTel() { 95 | return cashierTel; 96 | } 97 | 98 | public void setCashierTel(String cashierTel) { 99 | this.cashierTel = cashierTel; 100 | } 101 | 102 | public String getCashierAddress() { 103 | return cashierAddress; 104 | } 105 | 106 | public void setCashierAddress(String cashierAddress) { 107 | this.cashierAddress = cashierAddress; 108 | } 109 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/CheckTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * check_tables 9 | * @author 10 | */ 11 | @Data 12 | public class CheckTable implements Serializable { 13 | /** 14 | * 检查单号 15 | */ 16 | private Integer checkId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 医生工号 25 | */ 26 | private String doctorId; 27 | 28 | /** 29 | * 检查项目描述 30 | */ 31 | private String checkDescription; 32 | 33 | /** 34 | * 是否支付1是,0否 35 | */ 36 | private Integer isPayed; 37 | 38 | /** 39 | * 是否完成检查1是,0否 40 | */ 41 | private Integer isChecked; 42 | 43 | /** 44 | * 开具时间 45 | */ 46 | private Date billTime; 47 | 48 | private static final long serialVersionUID = 1L; 49 | 50 | public CheckTable() { 51 | } 52 | 53 | public Integer getCheckId() { 54 | return checkId; 55 | } 56 | 57 | public void setCheckId(Integer checkId) { 58 | this.checkId = checkId; 59 | } 60 | 61 | public String getPatientIdentity() { 62 | return patientIdentity; 63 | } 64 | 65 | public void setPatientIdentity(String patientIdentity) { 66 | this.patientIdentity = patientIdentity; 67 | } 68 | 69 | public String getDoctorId() { 70 | return doctorId; 71 | } 72 | 73 | public void setDoctorId(String doctorId) { 74 | this.doctorId = doctorId; 75 | } 76 | 77 | public String getCheckDescription() { 78 | return checkDescription; 79 | } 80 | 81 | public void setCheckDescription(String checkDescription) { 82 | this.checkDescription = checkDescription; 83 | } 84 | 85 | public Integer getIsPayed() { 86 | return isPayed; 87 | } 88 | 89 | public void setIsPayed(Integer isPayed) { 90 | this.isPayed = isPayed; 91 | } 92 | 93 | public Integer getIsChecked() { 94 | return isChecked; 95 | } 96 | 97 | public void setIsChecked(Integer isChecked) { 98 | this.isChecked = isChecked; 99 | } 100 | 101 | public Date getBillTime() { 102 | return billTime; 103 | } 104 | 105 | public void setBillTime(Date billTime) { 106 | this.billTime = billTime; 107 | } 108 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/Department.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import lombok.Data; 5 | 6 | /** 7 | * departments 8 | * @author 9 | */ 10 | @Data 11 | public class Department implements Serializable { 12 | /** 13 | * 科室编号 14 | */ 15 | private String departmentId; 16 | 17 | /** 18 | * 科室名称 19 | */ 20 | private String departmentName; 21 | 22 | /** 23 | * 科室电话 24 | */ 25 | private String departmentTel; 26 | 27 | /** 28 | * 科室地址 29 | */ 30 | private String departmentAddress; 31 | 32 | private static final long serialVersionUID = 1L; 33 | 34 | public Department(String departmentId, String departmentName) { 35 | this.departmentId = departmentId; 36 | this.departmentName = departmentName; 37 | } 38 | 39 | public String getDepartmentId() { 40 | return departmentId; 41 | } 42 | 43 | public void setDepartmentId(String departmentId) { 44 | this.departmentId = departmentId; 45 | } 46 | 47 | public String getDepartmentName() { 48 | return departmentName; 49 | } 50 | 51 | public void setDepartmentName(String departmentName) { 52 | this.departmentName = departmentName; 53 | } 54 | 55 | public String getDepartmentTel() { 56 | return departmentTel; 57 | } 58 | 59 | public void setDepartmentTel(String departmentTel) { 60 | this.departmentTel = departmentTel; 61 | } 62 | 63 | public String getDepartmentAddress() { 64 | return departmentAddress; 65 | } 66 | 67 | public void setDepartmentAddress(String departmentAddress) { 68 | this.departmentAddress = departmentAddress; 69 | } 70 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/DeptQueue.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * dept_queue 9 | * @author 10 | */ 11 | @Data 12 | public class DeptQueue implements Serializable { 13 | /** 14 | * 科室号队列编号 15 | */ 16 | private Integer deptQueueId; 17 | 18 | /** 19 | * 科室编号 20 | */ 21 | private String departmentId; 22 | 23 | /** 24 | * 日期 25 | */ 26 | private Date deptQueueDate; 27 | 28 | /** 29 | * 挂号单号 30 | */ 31 | private Integer registerId; 32 | 33 | /** 34 | * 挂号单上的号码 35 | */ 36 | private Integer registerNumber; 37 | 38 | /** 39 | * 是否完成诊断(1:是,0:否) 40 | */ 41 | private Integer state; 42 | 43 | private static final long serialVersionUID = 1L; 44 | 45 | public Integer getDeptQueueId() { 46 | return deptQueueId; 47 | } 48 | 49 | public void setDeptQueueId(Integer deptQueueId) { 50 | this.deptQueueId = deptQueueId; 51 | } 52 | 53 | public String getDepartmentId() { 54 | return departmentId; 55 | } 56 | 57 | public void setDepartmentId(String departmentId) { 58 | this.departmentId = departmentId; 59 | } 60 | 61 | public Date getDeptQueueDate() { 62 | return deptQueueDate; 63 | } 64 | 65 | public void setDeptQueueDate(Date deptQueueDate) { 66 | this.deptQueueDate = deptQueueDate; 67 | } 68 | 69 | public Integer getRegisterId() { 70 | return registerId; 71 | } 72 | 73 | public void setRegisterId(Integer registerId) { 74 | this.registerId = registerId; 75 | } 76 | 77 | public Integer getRegisterNumber() { 78 | return registerNumber; 79 | } 80 | 81 | public void setRegisterNumber(Integer registerNumber) { 82 | this.registerNumber = registerNumber; 83 | } 84 | 85 | public Integer getState() { 86 | return state; 87 | } 88 | 89 | public void setState(Integer state) { 90 | this.state = state; 91 | } 92 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/Doctor.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import lombok.Data; 5 | 6 | /** 7 | * doctors 8 | * @author 9 | */ 10 | @Data 11 | public class Doctor implements Serializable { 12 | /** 13 | * 工号 14 | */ 15 | private String doctorId; 16 | 17 | /** 18 | * 身份证号 19 | */ 20 | private String doctorIdentity; 21 | 22 | /** 23 | * 密码 24 | */ 25 | private String doctorPassword; 26 | 27 | /** 28 | * 姓名 29 | */ 30 | private String doctorName; 31 | 32 | /** 33 | * 性别1男,0女 34 | */ 35 | private Integer doctorGender; 36 | 37 | /** 38 | * 电话 39 | */ 40 | private String doctorTel; 41 | 42 | /** 43 | * 家庭住址 44 | */ 45 | private String doctorAddress; 46 | 47 | private String departmentId; 48 | 49 | private static final long serialVersionUID = 1L; 50 | 51 | public Doctor(String doctorId, String doctorPassword) { 52 | this.doctorId = doctorId; 53 | this.doctorPassword = doctorPassword; 54 | } 55 | 56 | public String getDoctorId() { 57 | return doctorId; 58 | } 59 | 60 | public void setDoctorId(String doctorId) { 61 | this.doctorId = doctorId; 62 | } 63 | 64 | public String getDoctorIdentity() { 65 | return doctorIdentity; 66 | } 67 | 68 | public void setDoctorIdentity(String doctorIdentity) { 69 | this.doctorIdentity = doctorIdentity; 70 | } 71 | 72 | public String getDoctorPassword() { 73 | return doctorPassword; 74 | } 75 | 76 | public void setDoctorPassword(String doctorPassword) { 77 | this.doctorPassword = doctorPassword; 78 | } 79 | 80 | public String getDoctorName() { 81 | return doctorName; 82 | } 83 | 84 | public void setDoctorName(String doctorName) { 85 | this.doctorName = doctorName; 86 | } 87 | 88 | public Integer getDoctorGender() { 89 | return doctorGender; 90 | } 91 | 92 | public void setDoctorGender(Integer doctorGender) { 93 | this.doctorGender = doctorGender; 94 | } 95 | 96 | public String getDoctorTel() { 97 | return doctorTel; 98 | } 99 | 100 | public void setDoctorTel(String doctorTel) { 101 | this.doctorTel = doctorTel; 102 | } 103 | 104 | public String getDoctorAddress() { 105 | return doctorAddress; 106 | } 107 | 108 | public void setDoctorAddress(String doctorAddress) { 109 | this.doctorAddress = doctorAddress; 110 | } 111 | 112 | public String getDepartmentId() { 113 | return departmentId; 114 | } 115 | 116 | public void setDepartmentId(String departmentId) { 117 | this.departmentId = departmentId; 118 | } 119 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/DoctorQueue.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * doctor_queue 9 | * @author 10 | */ 11 | @Data 12 | public class DoctorQueue implements Serializable { 13 | private Integer doctorQueueId; 14 | 15 | private String doctorId; 16 | 17 | private Date doctorQueueDate; 18 | 19 | private Integer registerId; 20 | 21 | private Integer registerNumber; 22 | 23 | /** 24 | * 是否完成诊断(1:是,0:否) 25 | */ 26 | private Integer state; 27 | 28 | private static final long serialVersionUID = 1L; 29 | 30 | public Integer getDoctorQueueId() { 31 | return doctorQueueId; 32 | } 33 | 34 | public void setDoctorQueueId(Integer doctorQueueId) { 35 | this.doctorQueueId = doctorQueueId; 36 | } 37 | 38 | public String getDoctorId() { 39 | return doctorId; 40 | } 41 | 42 | public void setDoctorId(String doctorId) { 43 | this.doctorId = doctorId; 44 | } 45 | 46 | public Date getDoctorQueueDate() { 47 | return doctorQueueDate; 48 | } 49 | 50 | public void setDoctorQueueDate(Date doctorQueueDate) { 51 | this.doctorQueueDate = doctorQueueDate; 52 | } 53 | 54 | public Integer getRegisterId() { 55 | return registerId; 56 | } 57 | 58 | public void setRegisterId(Integer registerId) { 59 | this.registerId = registerId; 60 | } 61 | 62 | public Integer getRegisterNumber() { 63 | return registerNumber; 64 | } 65 | 66 | public void setRegisterNumber(Integer registerNumber) { 67 | this.registerNumber = registerNumber; 68 | } 69 | 70 | public Integer getState() { 71 | return state; 72 | } 73 | 74 | public void setState(Integer state) { 75 | this.state = state; 76 | } 77 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/Medicine.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import lombok.Data; 5 | 6 | /** 7 | * medicines 8 | * @author 9 | */ 10 | @Data 11 | public class Medicine implements Serializable { 12 | /** 13 | * 药品编号 14 | */ 15 | private String medicineId; 16 | 17 | /** 18 | * 药品名称 19 | */ 20 | private String medicineName; 21 | 22 | /** 23 | * 药品余量 24 | */ 25 | private Integer medicineNumber; 26 | 27 | /** 28 | * 药品单价 29 | */ 30 | private Double medicineMoney; 31 | 32 | private static final long serialVersionUID = 1L; 33 | 34 | public Medicine(String medicineId, String medicineName) { 35 | this.medicineId = medicineId; 36 | this.medicineName = medicineName; 37 | } 38 | 39 | public String getMedicineId() { 40 | return medicineId; 41 | } 42 | 43 | public void setMedicineId(String medicineId) { 44 | this.medicineId = medicineId; 45 | } 46 | 47 | public String getMedicineName() { 48 | return medicineName; 49 | } 50 | 51 | public void setMedicineName(String medicineName) { 52 | this.medicineName = medicineName; 53 | } 54 | 55 | public Integer getMedicineNumber() { 56 | return medicineNumber; 57 | } 58 | 59 | public void setMedicineNumber(Integer medicineNumber) { 60 | this.medicineNumber = medicineNumber; 61 | } 62 | 63 | public Double getMedicineMoney() { 64 | return medicineMoney; 65 | } 66 | 67 | public void setMedicineMoney(Double medicineMoney) { 68 | this.medicineMoney = medicineMoney; 69 | } 70 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/Patient.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import lombok.Data; 5 | 6 | /** 7 | * patients 8 | * @author 9 | */ 10 | @Data 11 | public class Patient implements Serializable { 12 | /** 13 | * 身份证号 14 | */ 15 | private String patientIdentity; 16 | 17 | /** 18 | * 密码 19 | */ 20 | private String patientPassword; 21 | 22 | /** 23 | * 姓名 24 | */ 25 | private String patientName; 26 | 27 | /** 28 | * 性别1男,0女 29 | */ 30 | private Integer patientGender; 31 | 32 | /** 33 | * 电话 34 | */ 35 | private String patientTel; 36 | 37 | /** 38 | * 家庭住址 39 | */ 40 | private String patientAddress; 41 | 42 | /** 43 | * 黑名单标记1在,0不在 44 | */ 45 | private Integer patientIsBlack; 46 | 47 | private static final long serialVersionUID = 1L; 48 | 49 | public Patient(String patientIdentity, String patientPassword) { 50 | this.patientIdentity = patientIdentity; 51 | this.patientPassword = patientPassword; 52 | } 53 | 54 | public String getPatientIdentity() { 55 | return patientIdentity; 56 | } 57 | 58 | public void setPatientIdentity(String patientIdentity) { 59 | this.patientIdentity = patientIdentity; 60 | } 61 | 62 | public String getPatientPassword() { 63 | return patientPassword; 64 | } 65 | 66 | public void setPatientPassword(String patientPassword) { 67 | this.patientPassword = patientPassword; 68 | } 69 | 70 | public String getPatientName() { 71 | return patientName; 72 | } 73 | 74 | public void setPatientName(String patientName) { 75 | this.patientName = patientName; 76 | } 77 | 78 | public Integer getPatientGender() { 79 | return patientGender; 80 | } 81 | 82 | public void setPatientGender(Integer patientGender) { 83 | this.patientGender = patientGender; 84 | } 85 | 86 | public String getPatientTel() { 87 | return patientTel; 88 | } 89 | 90 | public void setPatientTel(String patientTel) { 91 | this.patientTel = patientTel; 92 | } 93 | 94 | public String getPatientAddress() { 95 | return patientAddress; 96 | } 97 | 98 | public void setPatientAddress(String patientAddress) { 99 | this.patientAddress = patientAddress; 100 | } 101 | 102 | public Integer getPatientIsBlack() { 103 | return patientIsBlack; 104 | } 105 | 106 | public void setPatientIsBlack(Integer patientIsBlack) { 107 | this.patientIsBlack = patientIsBlack; 108 | } 109 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/PayTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * pay_tables 9 | * @author 10 | */ 11 | @Data 12 | public class PayTable implements Serializable { 13 | /** 14 | * 缴费单号 15 | */ 16 | private Integer payId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 收费人员工号 25 | */ 26 | private String cashierId; 27 | 28 | /** 29 | * 缴费项目 30 | */ 31 | private String payItem; 32 | 33 | /** 34 | * 缴费方式:0现金,1微信,2支付宝 35 | */ 36 | private Integer payWay; 37 | 38 | /** 39 | * 缴费金额 40 | */ 41 | private Double payMoney; 42 | 43 | /** 44 | * 缴费时间 45 | */ 46 | private Date payTime; 47 | 48 | private static final long serialVersionUID = 1L; 49 | 50 | public PayTable() { 51 | } 52 | 53 | public Integer getPayId() { 54 | return payId; 55 | } 56 | 57 | public void setPayId(Integer payId) { 58 | this.payId = payId; 59 | } 60 | 61 | public String getPatientIdentity() { 62 | return patientIdentity; 63 | } 64 | 65 | public void setPatientIdentity(String patientIdentity) { 66 | this.patientIdentity = patientIdentity; 67 | } 68 | 69 | public String getCashierId() { 70 | return cashierId; 71 | } 72 | 73 | public void setCashierId(String cashierId) { 74 | this.cashierId = cashierId; 75 | } 76 | 77 | public String getPayItem() { 78 | return payItem; 79 | } 80 | 81 | public void setPayItem(String payItem) { 82 | this.payItem = payItem; 83 | } 84 | 85 | public Integer getPayWay() { 86 | return payWay; 87 | } 88 | 89 | public void setPayWay(Integer payWay) { 90 | this.payWay = payWay; 91 | } 92 | 93 | public Double getPayMoney() { 94 | return payMoney; 95 | } 96 | 97 | public void setPayMoney(Double payMoney) { 98 | this.payMoney = payMoney; 99 | } 100 | 101 | public Date getPayTime() { 102 | return payTime; 103 | } 104 | 105 | public void setPayTime(Date payTime) { 106 | this.payTime = payTime; 107 | } 108 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/Pharmacist.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import lombok.Data; 5 | 6 | /** 7 | * pharmacists 8 | * @author 9 | */ 10 | @Data 11 | public class Pharmacist implements Serializable { 12 | /** 13 | * 工号 14 | */ 15 | private String pharmacistId; 16 | 17 | /** 18 | * 身份证号 19 | */ 20 | private String pharmacistIdentity; 21 | 22 | /** 23 | * 密码 24 | */ 25 | private String pharmacistPassword; 26 | 27 | /** 28 | * 姓名 29 | */ 30 | private String pharmacistName; 31 | 32 | /** 33 | * 性别1男,0女 34 | */ 35 | private Integer pharmacistGender; 36 | 37 | /** 38 | * 电话 39 | */ 40 | private String pharmacistTel; 41 | 42 | /** 43 | * 家庭住址 44 | */ 45 | private String pharmacistAddress; 46 | 47 | private static final long serialVersionUID = 1L; 48 | 49 | public Pharmacist(String pharmacistId, String pharmacistPassword) { 50 | this.pharmacistId = pharmacistId; 51 | this.pharmacistPassword = pharmacistPassword; 52 | } 53 | 54 | public String getPharmacistId() { 55 | return pharmacistId; 56 | } 57 | 58 | public void setPharmacistId(String pharmacistId) { 59 | this.pharmacistId = pharmacistId; 60 | } 61 | 62 | public String getPharmacistIdentity() { 63 | return pharmacistIdentity; 64 | } 65 | 66 | public void setPharmacistIdentity(String pharmacistIdentity) { 67 | this.pharmacistIdentity = pharmacistIdentity; 68 | } 69 | 70 | public String getPharmacistPassword() { 71 | return pharmacistPassword; 72 | } 73 | 74 | public void setPharmacistPassword(String pharmacistPassword) { 75 | this.pharmacistPassword = pharmacistPassword; 76 | } 77 | 78 | public String getPharmacistName() { 79 | return pharmacistName; 80 | } 81 | 82 | public void setPharmacistName(String pharmacistName) { 83 | this.pharmacistName = pharmacistName; 84 | } 85 | 86 | public Integer getPharmacistGender() { 87 | return pharmacistGender; 88 | } 89 | 90 | public void setPharmacistGender(Integer pharmacistGender) { 91 | this.pharmacistGender = pharmacistGender; 92 | } 93 | 94 | public String getPharmacistTel() { 95 | return pharmacistTel; 96 | } 97 | 98 | public void setPharmacistTel(String pharmacistTel) { 99 | this.pharmacistTel = pharmacistTel; 100 | } 101 | 102 | public String getPharmacistAddress() { 103 | return pharmacistAddress; 104 | } 105 | 106 | public void setPharmacistAddress(String pharmacistAddress) { 107 | this.pharmacistAddress = pharmacistAddress; 108 | } 109 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/PrescriptionTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * prescription_tables 9 | * @author 10 | */ 11 | @Data 12 | public class PrescriptionTable implements Serializable { 13 | /** 14 | * 处方单号 15 | */ 16 | private Integer prescriptionId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 医生工号 25 | */ 26 | private String doctorId; 27 | 28 | /** 29 | * 药品编号 30 | */ 31 | private String medicineId; 32 | 33 | /** 34 | * 药品数量 35 | */ 36 | private Integer medicineNumber; 37 | 38 | /** 39 | * 开具时间 40 | */ 41 | private Date billTime; 42 | 43 | private static final long serialVersionUID = 1L; 44 | 45 | public PrescriptionTable() { 46 | } 47 | 48 | public Integer getPrescriptionId() { 49 | return prescriptionId; 50 | } 51 | 52 | public void setPrescriptionId(Integer prescriptionId) { 53 | this.prescriptionId = prescriptionId; 54 | } 55 | 56 | public String getPatientIdentity() { 57 | return patientIdentity; 58 | } 59 | 60 | public void setPatientIdentity(String patientIdentity) { 61 | this.patientIdentity = patientIdentity; 62 | } 63 | 64 | public String getDoctorId() { 65 | return doctorId; 66 | } 67 | 68 | public void setDoctorId(String doctorId) { 69 | this.doctorId = doctorId; 70 | } 71 | 72 | public String getMedicineId() { 73 | return medicineId; 74 | } 75 | 76 | public void setMedicineId(String medicineId) { 77 | this.medicineId = medicineId; 78 | } 79 | 80 | public Integer getMedicineNumber() { 81 | return medicineNumber; 82 | } 83 | 84 | public void setMedicineNumber(Integer medicineNumber) { 85 | this.medicineNumber = medicineNumber; 86 | } 87 | 88 | public Date getBillTime() { 89 | return billTime; 90 | } 91 | 92 | public void setBillTime(Date billTime) { 93 | this.billTime = billTime; 94 | } 95 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/Record.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * records 9 | * @author 10 | */ 11 | @Data 12 | public class Record implements Serializable { 13 | /** 14 | * 病历编号 15 | */ 16 | private Integer recordId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 医生工号 25 | */ 26 | private String doctorId; 27 | 28 | /** 29 | * 症状描述 30 | */ 31 | private String symptomDescription; 32 | 33 | /** 34 | * 开具的处方单号,多个编号,逗号分隔 35 | */ 36 | private String prescriptionIds; 37 | 38 | /** 39 | * 开具的检查单号,多个编号,逗号分隔 40 | */ 41 | private String checkIds; 42 | 43 | /** 44 | * 开具时间 45 | */ 46 | private Date billTime; 47 | 48 | private static final long serialVersionUID = 1L; 49 | 50 | public Record() { 51 | } 52 | 53 | public Integer getRecordId() { 54 | return recordId; 55 | } 56 | 57 | public void setRecordId(Integer recordId) { 58 | this.recordId = recordId; 59 | } 60 | 61 | public String getPatientIdentity() { 62 | return patientIdentity; 63 | } 64 | 65 | public void setPatientIdentity(String patientIdentity) { 66 | this.patientIdentity = patientIdentity; 67 | } 68 | 69 | public String getDoctorId() { 70 | return doctorId; 71 | } 72 | 73 | public void setDoctorId(String doctorId) { 74 | this.doctorId = doctorId; 75 | } 76 | 77 | public String getSymptomDescription() { 78 | return symptomDescription; 79 | } 80 | 81 | public void setSymptomDescription(String symptomDescription) { 82 | this.symptomDescription = symptomDescription; 83 | } 84 | 85 | public String getPrescriptionIds() { 86 | return prescriptionIds; 87 | } 88 | 89 | public void setPrescriptionIds(String prescriptionIds) { 90 | this.prescriptionIds = prescriptionIds; 91 | } 92 | 93 | public String getCheckIds() { 94 | return checkIds; 95 | } 96 | 97 | public void setCheckIds(String checkIds) { 98 | this.checkIds = checkIds; 99 | } 100 | 101 | public Date getBillTime() { 102 | return billTime; 103 | } 104 | 105 | public void setBillTime(Date billTime) { 106 | this.billTime = billTime; 107 | } 108 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/RefundTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * refund_tables 9 | * @author 10 | */ 11 | @Data 12 | public class RefundTable implements Serializable { 13 | /** 14 | * 退费单号 15 | */ 16 | private Integer refundId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 收费人员工号 25 | */ 26 | private String cashierId; 27 | 28 | /** 29 | * 缴费单号 30 | */ 31 | private Integer payId; 32 | 33 | /** 34 | * 退费方式:0现金,1微信,2支付宝 35 | */ 36 | private Integer refundWay; 37 | 38 | /** 39 | * 退费金额 40 | */ 41 | private Double refundMoney; 42 | 43 | /** 44 | * 退费时间 45 | */ 46 | private Date refundTime; 47 | 48 | private static final long serialVersionUID = 1L; 49 | 50 | public RefundTable() { 51 | } 52 | 53 | public Integer getRefundId() { 54 | return refundId; 55 | } 56 | 57 | public void setRefundId(Integer refundId) { 58 | this.refundId = refundId; 59 | } 60 | 61 | public String getPatientIdentity() { 62 | return patientIdentity; 63 | } 64 | 65 | public void setPatientIdentity(String patientIdentity) { 66 | this.patientIdentity = patientIdentity; 67 | } 68 | 69 | public String getCashierId() { 70 | return cashierId; 71 | } 72 | 73 | public void setCashierId(String cashierId) { 74 | this.cashierId = cashierId; 75 | } 76 | 77 | public Integer getPayId() { 78 | return payId; 79 | } 80 | 81 | public void setPayId(Integer payId) { 82 | this.payId = payId; 83 | } 84 | 85 | public Integer getRefundWay() { 86 | return refundWay; 87 | } 88 | 89 | public void setRefundWay(Integer refundWay) { 90 | this.refundWay = refundWay; 91 | } 92 | 93 | public Double getRefundMoney() { 94 | return refundMoney; 95 | } 96 | 97 | public void setRefundMoney(Double refundMoney) { 98 | this.refundMoney = refundMoney; 99 | } 100 | 101 | public Date getRefundTime() { 102 | return refundTime; 103 | } 104 | 105 | public void setRefundTime(Date refundTime) { 106 | this.refundTime = refundTime; 107 | } 108 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/RegisterTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * register_tables 9 | * @author 10 | */ 11 | @Data 12 | public class RegisterTable implements Serializable { 13 | /** 14 | * 挂号单号 15 | */ 16 | private Integer registerId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 挂号的科室编号 25 | */ 26 | private String departmentId; 27 | 28 | /** 29 | * 挂号的医生工号 30 | */ 31 | private String doctorId; 32 | 33 | /** 34 | * 挂号类型1科室,0专家 35 | */ 36 | private Integer registerType; 37 | 38 | /** 39 | * 挂号排队类型1预约,0现场 40 | */ 41 | private Integer registerQueueType; 42 | 43 | /** 44 | * 排队号 45 | */ 46 | private Integer registerNumber; 47 | 48 | /** 49 | * 预约时段的起始时间 50 | */ 51 | private Date registerTime; 52 | 53 | private static final long serialVersionUID = 1L; 54 | 55 | public RegisterTable() { 56 | } 57 | 58 | public Integer getRegisterId() { 59 | return registerId; 60 | } 61 | 62 | public void setRegisterId(Integer registerId) { 63 | this.registerId = registerId; 64 | } 65 | 66 | public String getPatientIdentity() { 67 | return patientIdentity; 68 | } 69 | 70 | public void setPatientIdentity(String patientIdentity) { 71 | this.patientIdentity = patientIdentity; 72 | } 73 | 74 | public String getDepartmentId() { 75 | return departmentId; 76 | } 77 | 78 | public void setDepartmentId(String departmentId) { 79 | this.departmentId = departmentId; 80 | } 81 | 82 | public String getDoctorId() { 83 | return doctorId; 84 | } 85 | 86 | public void setDoctorId(String doctorId) { 87 | this.doctorId = doctorId; 88 | } 89 | 90 | public Integer getRegisterType() { 91 | return registerType; 92 | } 93 | 94 | public void setRegisterType(Integer registerType) { 95 | this.registerType = registerType; 96 | } 97 | 98 | public Integer getRegisterQueueType() { 99 | return registerQueueType; 100 | } 101 | 102 | public void setRegisterQueueType(Integer registerQueueType) { 103 | this.registerQueueType = registerQueueType; 104 | } 105 | 106 | public Integer getRegisterNumber() { 107 | return registerNumber; 108 | } 109 | 110 | public void setRegisterNumber(Integer registerNumber) { 111 | this.registerNumber = registerNumber; 112 | } 113 | 114 | public Date getRegisterTime() { 115 | return registerTime; 116 | } 117 | 118 | public void setRegisterTime(Date registerTime) { 119 | this.registerTime = registerTime; 120 | } 121 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/RemainDeptNumber.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * remain_dept_numbers 9 | * @author 10 | */ 11 | @Data 12 | public class RemainDeptNumber implements Serializable { 13 | private Integer remainDeptNumberId; 14 | 15 | private String departmentId; 16 | 17 | private Date time; 18 | 19 | private Integer number; 20 | 21 | private static final long serialVersionUID = 1L; 22 | 23 | public Integer getRemainDeptNumberId() { 24 | return remainDeptNumberId; 25 | } 26 | 27 | public void setRemainDeptNumberId(Integer remainDeptNumberId) { 28 | this.remainDeptNumberId = remainDeptNumberId; 29 | } 30 | 31 | public String getDepartmentId() { 32 | return departmentId; 33 | } 34 | 35 | public void setDepartmentId(String departmentId) { 36 | this.departmentId = departmentId; 37 | } 38 | 39 | public Date getTime() { 40 | return time; 41 | } 42 | 43 | public void setTime(Date time) { 44 | this.time = time; 45 | } 46 | 47 | public Integer getNumber() { 48 | return number; 49 | } 50 | 51 | public void setNumber(Integer number) { 52 | this.number = number; 53 | } 54 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/RemainDoctorNumber.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * remain_doctor_numders 9 | * @author 10 | */ 11 | @Data 12 | public class RemainDoctorNumber implements Serializable { 13 | 14 | private Integer remainDoctorNumberId; 15 | 16 | private String doctorId; 17 | 18 | private Date time; 19 | 20 | private Integer number; 21 | 22 | private static final long serialVersionUID = 1L; 23 | 24 | public Integer getRemainDoctorNumberId() { 25 | return remainDoctorNumberId; 26 | } 27 | 28 | public void setRemainDoctorNumberId(Integer remainDoctorNumberId) { 29 | this.remainDoctorNumberId = remainDoctorNumberId; 30 | } 31 | 32 | public String getDoctorId() { 33 | return doctorId; 34 | } 35 | 36 | public void setDoctorId(String doctorId) { 37 | this.doctorId = doctorId; 38 | } 39 | 40 | public Date getTime() { 41 | return time; 42 | } 43 | 44 | public void setTime(Date time) { 45 | this.time = time; 46 | } 47 | 48 | public Integer getNumber() { 49 | return number; 50 | } 51 | 52 | public void setNumber(Integer number) { 53 | this.number = number; 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/ReserveTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * reserve_tables 9 | * @author 10 | */ 11 | @Data 12 | public class ReserveTable implements Serializable { 13 | /** 14 | * 预约单号 15 | */ 16 | private Integer reserveId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 预约的科室编号 25 | */ 26 | private String departmentId; 27 | 28 | /** 29 | * 预约的医生工号 30 | */ 31 | private String doctorId; 32 | 33 | /** 34 | * 预约类型1科室,0专家 35 | */ 36 | private Integer reserveType; 37 | 38 | /** 39 | * 预约状态,0待确认,1已完成,-1已取消 40 | */ 41 | private Integer reserveState; 42 | 43 | /** 44 | * 预约时段的起始时间 45 | */ 46 | private Date reserveTime; 47 | 48 | private static final long serialVersionUID = 1L; 49 | 50 | public ReserveTable() { 51 | } 52 | 53 | public Integer getReserveId() { 54 | return reserveId; 55 | } 56 | 57 | public void setReserveId(Integer reserveId) { 58 | this.reserveId = reserveId; 59 | } 60 | 61 | public String getPatientIdentity() { 62 | return patientIdentity; 63 | } 64 | 65 | public void setPatientIdentity(String patientIdentity) { 66 | this.patientIdentity = patientIdentity; 67 | } 68 | 69 | public String getDepartmentId() { 70 | return departmentId; 71 | } 72 | 73 | public void setDepartmentId(String departmentId) { 74 | this.departmentId = departmentId; 75 | } 76 | 77 | public String getDoctorId() { 78 | return doctorId; 79 | } 80 | 81 | public void setDoctorId(String doctorId) { 82 | this.doctorId = doctorId; 83 | } 84 | 85 | public Integer getReserveType() { 86 | return reserveType; 87 | } 88 | 89 | public void setReserveType(Integer reserveType) { 90 | this.reserveType = reserveType; 91 | } 92 | 93 | public Integer getReserveState() { 94 | return reserveState; 95 | } 96 | 97 | public void setReserveState(Integer reserveState) { 98 | this.reserveState = reserveState; 99 | } 100 | 101 | public Date getReserveTime() { 102 | return reserveTime; 103 | } 104 | 105 | public void setReserveTime(Date reserveTime) { 106 | this.reserveTime = reserveTime; 107 | } 108 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/ReturnMedicineTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * return_medicine_tables 9 | * @author 10 | */ 11 | @Data 12 | public class ReturnMedicineTable implements Serializable { 13 | /** 14 | * 取药单号 15 | */ 16 | private Integer returnId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 药剂师工号 25 | */ 26 | private String pharmacistId; 27 | 28 | /** 29 | * 处方单号 30 | */ 31 | private Integer prescriptionId; 32 | 33 | /** 34 | * 药品编号 35 | */ 36 | private String medicineId; 37 | 38 | /** 39 | * 药品数量 40 | */ 41 | private Integer returnNumber; 42 | 43 | /** 44 | * 退药时间 45 | */ 46 | private Date returnTime; 47 | 48 | private static final long serialVersionUID = 1L; 49 | 50 | public ReturnMedicineTable() { 51 | } 52 | 53 | public Integer getReturnId() { 54 | return returnId; 55 | } 56 | 57 | public void setReturnId(Integer returnId) { 58 | this.returnId = returnId; 59 | } 60 | 61 | public String getPatientIdentity() { 62 | return patientIdentity; 63 | } 64 | 65 | public void setPatientIdentity(String patientIdentity) { 66 | this.patientIdentity = patientIdentity; 67 | } 68 | 69 | public String getPharmacistId() { 70 | return pharmacistId; 71 | } 72 | 73 | public void setPharmacistId(String pharmacistId) { 74 | this.pharmacistId = pharmacistId; 75 | } 76 | 77 | public Integer getPrescriptionId() { 78 | return prescriptionId; 79 | } 80 | 81 | public void setPrescriptionId(Integer prescriptionId) { 82 | this.prescriptionId = prescriptionId; 83 | } 84 | 85 | public String getMedicineId() { 86 | return medicineId; 87 | } 88 | 89 | public void setMedicineId(String medicineId) { 90 | this.medicineId = medicineId; 91 | } 92 | 93 | public Integer getReturnNumber() { 94 | return returnNumber; 95 | } 96 | 97 | public void setReturnNumber(Integer returnNumber) { 98 | this.returnNumber = returnNumber; 99 | } 100 | 101 | public Date getReturnTime() { 102 | return returnTime; 103 | } 104 | 105 | public void setReturnTime(Date returnTime) { 106 | this.returnTime = returnTime; 107 | } 108 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/TakeMedineTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import java.util.Date; 5 | import lombok.Data; 6 | 7 | /** 8 | * take_medine_tables 9 | * @author 10 | */ 11 | @Data 12 | public class TakeMedineTable implements Serializable { 13 | /** 14 | * 取药单号 15 | */ 16 | private Integer takeId; 17 | 18 | /** 19 | * 患者身份证号 20 | */ 21 | private String patientIdentity; 22 | 23 | /** 24 | * 药剂师工号 25 | */ 26 | private String pharmacistId; 27 | 28 | /** 29 | * 处方编号 30 | */ 31 | private int prescriptionId; 32 | 33 | 34 | /** 35 | * 取药状态,0待配药,1配药中,2待取药,3已取药 36 | */ 37 | private Integer takeState; 38 | 39 | /** 40 | * 开具时间 41 | */ 42 | private Date billTime; 43 | 44 | /** 45 | * 取药时间 46 | */ 47 | private Date takeTime; 48 | 49 | private static final long serialVersionUID = 1L; 50 | 51 | public TakeMedineTable() { 52 | } 53 | 54 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/TakeMedineTableKey.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import lombok.Data; 5 | 6 | /** 7 | * take_medine_tables 8 | * @author 9 | */ 10 | @Data 11 | public class TakeMedineTableKey implements Serializable { 12 | /** 13 | * 取药单号 14 | */ 15 | private Integer takeId; 16 | 17 | /** 18 | * 药品编号 19 | */ 20 | private Integer prescriptionId; 21 | 22 | private static final long serialVersionUID = 1L; 23 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/models/ViolateTable.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.models; 2 | 3 | import java.io.Serializable; 4 | import lombok.Data; 5 | 6 | /** 7 | * violate_tables 8 | * @author 9 | */ 10 | @Data 11 | public class ViolateTable implements Serializable { 12 | /** 13 | * 违约记录编号 14 | */ 15 | private Integer violateId; 16 | 17 | /** 18 | * 预约单号 19 | */ 20 | private Integer reserveId; 21 | 22 | private static final long serialVersionUID = 1L; 23 | 24 | public ViolateTable() { 25 | } 26 | 27 | public Integer getViolateId() { 28 | return violateId; 29 | } 30 | 31 | public void setViolateId(Integer violateId) { 32 | this.violateId = violateId; 33 | } 34 | 35 | public Integer getReserveId() { 36 | return reserveId; 37 | } 38 | 39 | public void setReserveId(Integer reserveId) { 40 | this.reserveId = reserveId; 41 | } 42 | } -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/AppointmentService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.*; 4 | import com.example.HIS.DTO.RemainDoctorDto; 5 | import com.example.HIS.DTO.ReserveHistoryDto; 6 | 7 | import java.util.List; 8 | 9 | public interface AppointmentService { 10 | List getAllRemainDeptNumber(); 11 | 12 | List getAllDoctorRemain(); 13 | int addReserveTable(ReserveTable reserveTable); 14 | int getBlackFlag(Patient patient); 15 | int updateRemainDeptNumber(RemainDeptNumber remainDeptNumber); 16 | List getRemainDeptNumberByDeptId( String DeptId); 17 | 18 | int addRemainDeptNumber(RemainDeptNumber remainDeptNumber); 19 | List getAllDepartment(); 20 | 21 | List getAllDoctor(); 22 | 23 | void addremainDoctorNumber(RemainDoctorNumber remainDoctorNumber); 24 | 25 | List getRemainDeptNumberByDoctorId(String doctorId); 26 | 27 | void updateRemainDoctorNumber(RemainDoctorNumber remainDoctorNumber); 28 | 29 | List getReserveHistoryByPatientId(String patientIdentity); 30 | 31 | void updateReserveState(ReserveTable reserveTable); 32 | 33 | ReserveTable getRserveTabltByPk(int reserveId); 34 | 35 | void addViolateTable(ViolateTable violateTable); 36 | 37 | List getAllDoctorRemainByDoctorId(String doctorId); 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/AppointmentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.*; 4 | import com.example.HIS.models.*; 5 | import com.example.HIS.tool.DateTool; 6 | import com.example.HIS.DTO.RemainDoctorDto; 7 | import com.example.HIS.DTO.ReserveHistoryDto; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import java.util.Calendar; 12 | import java.util.Date; 13 | import java.util.List; 14 | 15 | @Service 16 | public class AppointmentServiceImpl implements AppointmentService{ 17 | @Autowired 18 | private RemainDeptNumberDao remainDeptNumberDao; 19 | @Autowired 20 | private RemainDoctorNumberDao remainDoctorNumberDao; 21 | @Autowired 22 | private ReserveTableDao reserveTableDao; 23 | @Autowired 24 | private PatientDao patientDao; 25 | @Autowired 26 | private DepartmentDao departmentDao; 27 | @Autowired 28 | private DoctorDao doctorDao; 29 | @Autowired 30 | private ViolateTableDao violateTableDao; 31 | 32 | @Override 33 | public List getAllRemainDeptNumber() { 34 | return remainDeptNumberDao.getAll(); 35 | } 36 | 37 | @Override 38 | public List getAllDoctorRemain() { 39 | return remainDoctorNumberDao.getAllDoctorRemain(); 40 | } 41 | 42 | @Override 43 | public int addReserveTable(ReserveTable reserveTable) { 44 | return reserveTableDao.insert(reserveTable); 45 | } 46 | 47 | 48 | 49 | @Override 50 | public int getBlackFlag(Patient patient) { 51 | //查询违约记录,判断是否应该在黑名单中-->七天内两次,90天内5次 52 | List reserveTableList=reserveTableDao.selectViolateByPatientId(patient.getPatientIdentity()); 53 | //当前时间前一周的时刻 54 | Calendar calendar = Calendar.getInstance(); 55 | int hour=calendar.get(Calendar.HOUR_OF_DAY); 56 | Date lastWeek= DateTool.getPastDate(7,hour); 57 | int count7=0,count90=0; 58 | Date last90= DateTool.getPastDate(90,hour); 59 | for (ReserveTable table :reserveTableList){ 60 | if (table.getReserveState()==-1){ 61 | if (table.getReserveTime().after(lastWeek)){ 62 | count7 +=1; 63 | } 64 | if (table.getReserveTime().after(last90)){ 65 | count90 +=1; 66 | } 67 | } 68 | } 69 | if(count7 >=2 || count90>=5){ 70 | patient.setPatientIsBlack(1); 71 | patientDao.updateByPrimaryKey(patient); 72 | return 1; 73 | } 74 | else{ 75 | patient.setPatientIsBlack(0); 76 | patientDao.updateByPrimaryKey(patient); 77 | return 0; 78 | } 79 | } 80 | 81 | @Override 82 | public int updateRemainDeptNumber(RemainDeptNumber remainDeptNumber) { 83 | return remainDeptNumberDao.updateByPrimaryKey(remainDeptNumber); 84 | } 85 | 86 | 87 | @Override 88 | public List getRemainDeptNumberByDeptId(String DeptId) { 89 | return remainDeptNumberDao.selectByDeptId(DeptId); 90 | } 91 | 92 | @Override 93 | public int addRemainDeptNumber(RemainDeptNumber remainDeptNumber) { 94 | return remainDeptNumberDao.insertSelective(remainDeptNumber); 95 | } 96 | 97 | @Override 98 | public List getAllDepartment() { 99 | return departmentDao.getAll(); 100 | } 101 | 102 | @Override 103 | public List getAllDoctor() { 104 | return doctorDao.getAll(); 105 | } 106 | 107 | @Override 108 | public void addremainDoctorNumber(RemainDoctorNumber remainDoctorNumber) { 109 | remainDoctorNumberDao.insertSelective(remainDoctorNumber); 110 | } 111 | 112 | @Override 113 | public List getRemainDeptNumberByDoctorId(String doctorId) { 114 | return remainDoctorNumberDao.selectByDoctorID(doctorId); 115 | } 116 | 117 | @Override 118 | public void updateRemainDoctorNumber(RemainDoctorNumber remainDoctorNumber) { 119 | remainDoctorNumberDao.updateByPrimaryKey(remainDoctorNumber); 120 | } 121 | 122 | @Override 123 | public List getReserveHistoryByPatientId(String patientIdentity) { 124 | return reserveTableDao.selectHistoryByPatientId(patientIdentity); 125 | } 126 | 127 | @Override 128 | public void updateReserveState(ReserveTable reserveTable) { 129 | reserveTableDao.updateByPrimaryKey(reserveTable); 130 | } 131 | 132 | @Override 133 | public ReserveTable getRserveTabltByPk(int reserveId) { 134 | return reserveTableDao.selectByPrimaryKey(reserveId); 135 | } 136 | 137 | @Override 138 | public void addViolateTable(ViolateTable violateTable) { 139 | violateTableDao.insertSelective(violateTable); 140 | } 141 | 142 | @Override 143 | public List getAllDoctorRemainByDoctorId(String doctorId) { 144 | return remainDoctorNumberDao.selectByDoctorId(doctorId); 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/CheckService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.CheckTable; 4 | 5 | public interface CheckService { 6 | public String getMaxId(); 7 | 8 | public Integer create(CheckTable checkTable); 9 | 10 | public CheckTable findById(String checkId); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/CheckServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.CheckTableDao; 4 | import com.example.HIS.models.CheckTable; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | @Service 9 | public class CheckServiceImpl implements CheckService{ 10 | @Autowired 11 | CheckTableDao checkTableDao; 12 | 13 | // 14 | public String getMaxId(){return checkTableDao.getMaxId();}; 15 | 16 | public Integer create(CheckTable checkTable){return checkTableDao.insertSelective(checkTable);} 17 | 18 | public CheckTable findById(String checkId){return checkTableDao.selectByPrimaryKey(Integer.valueOf(checkId));} 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/DoctorService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.Doctor; 4 | 5 | public interface DoctorService { 6 | public Doctor findById(String doctorId); 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/DoctorServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | 4 | import com.example.HIS.generate.DoctorDao; 5 | import com.example.HIS.models.Doctor; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class DoctorServiceImpl implements DoctorService{ 11 | @Autowired 12 | DoctorDao doctorDao; 13 | 14 | // 15 | public Doctor findById(String doctorId){return doctorDao.selectByPrimaryKey(doctorId);} 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/LoginService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.Cashier; 4 | import com.example.HIS.models.Doctor; 5 | import com.example.HIS.models.Patient; 6 | import com.example.HIS.models.Pharmacist; 7 | 8 | public interface LoginService { 9 | int login(String patientIdentity,String password); 10 | Patient selectPatient(String patientIdentity); 11 | 12 | Cashier selectCashier(String staffId); 13 | 14 | Doctor selectDoctor(String staffId); 15 | 16 | Pharmacist selectPharmacist(String staffId); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/LoginServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.CashierDao; 4 | import com.example.HIS.generate.DoctorDao; 5 | import com.example.HIS.generate.PatientDao; 6 | import com.example.HIS.generate.PharmacistDao; 7 | import com.example.HIS.models.Cashier; 8 | import com.example.HIS.models.Doctor; 9 | import com.example.HIS.models.Patient; 10 | import com.example.HIS.models.Pharmacist; 11 | import org.springframework.beans.factory.annotation.Autowired; 12 | import org.springframework.stereotype.Service; 13 | 14 | @Service 15 | public class LoginServiceImpl implements LoginService { 16 | @Autowired 17 | PatientDao patientDao; 18 | @Autowired 19 | DoctorDao doctorDao; 20 | @Autowired 21 | CashierDao cashierDao; 22 | @Autowired 23 | PharmacistDao pharmacistDao; 24 | @Override 25 | public int login(String patientIdentity, String password) { 26 | return 0; 27 | } 28 | 29 | @Override 30 | public Patient selectPatient(String patientIdentity) { 31 | return patientDao.selectByPrimaryKey(patientIdentity); 32 | } 33 | 34 | @Override 35 | public Cashier selectCashier(String staffId) { 36 | return cashierDao.selectByPrimaryKey(staffId); 37 | } 38 | 39 | @Override 40 | public Doctor selectDoctor(String staffId) { 41 | return doctorDao.selectByPrimaryKey(staffId); 42 | } 43 | 44 | @Override 45 | public Pharmacist selectPharmacist(String staffId) { 46 | return pharmacistDao.selectByPrimaryKey(staffId); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PatientService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.Patient; 4 | 5 | public interface PatientService { 6 | public Patient selectPatient(String patientIdentity); 7 | } 8 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PatientServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.PatientDao; 4 | import com.example.HIS.models.Patient; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | @Service 9 | public class PatientServiceImpl implements PatientService { 10 | @Autowired 11 | private PatientDao patientDao; 12 | 13 | //增删改查 14 | public Patient selectPatient(String patientIdentity){return patientDao.selectByPrimaryKey(patientIdentity);}; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PayHistoryService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.DTO.PayHistoryDto; 4 | 5 | import java.util.List; 6 | 7 | public interface PayHistoryService { 8 | 9 | List getPayHistoryByPatientId(String patientIdentity); 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PayHistoryServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.PayTableDao; 4 | import com.example.HIS.DTO.PayHistoryDto; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import java.util.List; 9 | 10 | @Service 11 | public class PayHistoryServiceImpl implements PayHistoryService{ 12 | 13 | @Autowired 14 | private PayTableDao payTableDao; 15 | 16 | @Override 17 | public List getPayHistoryByPatientId(String patientIdentity) { 18 | return payTableDao.getHistoryByPatientIdentity(patientIdentity); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PaymentService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.DTO.CheckTableDto; 4 | import com.example.HIS.DTO.PrescriptionTableDto; 5 | import com.example.HIS.models.*; 6 | 7 | public interface PaymentService { 8 | 9 | 10 | CheckTable findCheckTableById(int payId); 11 | 12 | PrescriptionTable findPrescriptionTableById(int payId); 13 | 14 | Medicine getMedicineByMId(String medicineId); 15 | 16 | CheckTableDto findCheckTableDtoById(int parseInt); 17 | 18 | PrescriptionTableDto findPrescriptionTableDtoById(int parseInt); 19 | 20 | void addPayTable(PayTable payTable); 21 | 22 | void addTakeMedicineTable(TakeMedineTable takeMedineTable); 23 | 24 | double getMedicineMoney(String medicineId); 25 | 26 | void updateCheckTableState(CheckTable checkTable); 27 | 28 | RegisterTable getRegisterTableById(int parseInt); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PaymentServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.DTO.CheckTableDto; 4 | import com.example.HIS.DTO.PrescriptionTableDto; 5 | import com.example.HIS.generate.*; 6 | import com.example.HIS.models.*; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | @Service 11 | public class PaymentServiceImpl implements PaymentService{ 12 | @Autowired 13 | private CheckTableDao checkTableDao; 14 | @Autowired 15 | private PrescriptionTableDao prescriptionTableDao; 16 | @Autowired 17 | private MedicineDao medicineDao; 18 | @Autowired 19 | private PayTableDao payTableDao; 20 | @Autowired 21 | private TakeMedineTableDao takeMedineTableDao; 22 | @Autowired 23 | RegisterTableDao registerTableDao; 24 | 25 | @Override 26 | public CheckTable findCheckTableById(int payId) { 27 | return checkTableDao.selectByPrimaryKey(payId); 28 | } 29 | 30 | @Override 31 | public PrescriptionTable findPrescriptionTableById(int payId) { 32 | return prescriptionTableDao.selectByPrimaryKey(payId); 33 | } 34 | 35 | @Override 36 | public Medicine getMedicineByMId(String medicineId) { 37 | return medicineDao.selectByPrimaryKey(medicineId); 38 | } 39 | 40 | @Override 41 | public CheckTableDto findCheckTableDtoById(int parseInt) { 42 | return checkTableDao.getCheckTableDtoById(parseInt); 43 | } 44 | 45 | @Override 46 | public PrescriptionTableDto findPrescriptionTableDtoById(int parseInt) { 47 | return prescriptionTableDao.selectPrescriptionTableDtoById(parseInt); 48 | } 49 | 50 | @Override 51 | public void addPayTable(PayTable payTable) { 52 | payTableDao.insert(payTable); 53 | } 54 | 55 | @Override 56 | public void addTakeMedicineTable(TakeMedineTable takeMedineTable) { 57 | takeMedineTableDao.insertSelective(takeMedineTable); 58 | } 59 | 60 | @Override 61 | public double getMedicineMoney(String medicineId) { 62 | return medicineDao.selectMoneyById(medicineId); 63 | } 64 | 65 | @Override 66 | public void updateCheckTableState(CheckTable checkTable) { 67 | checkTableDao.updateByPrimaryKeySelective(checkTable); 68 | } 69 | 70 | @Override 71 | public RegisterTable getRegisterTableById(int parseInt) { 72 | return registerTableDao.selectByPrimaryKey(parseInt); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PharmacyService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.Medicine; 4 | import com.example.HIS.models.PrescriptionTable; 5 | import com.example.HIS.models.ReturnMedicineTable; 6 | import com.example.HIS.models.TakeMedineTable; 7 | 8 | import java.util.List; 9 | 10 | public interface PharmacyService { 11 | 12 | List selectAllTakeMedineTable(); 13 | 14 | List selectTakeMedicineTable(int takeMedicineTableId); 15 | 16 | PrescriptionTable selectPrescription(int prescriptionId); 17 | 18 | Medicine getMedicine(String medicineId); 19 | 20 | void updateTakeMedicine(TakeMedineTable takeMedineTable); 21 | 22 | void updateMedicine(Medicine medicine); 23 | 24 | String selectPharmacistName(String pharmacistId); 25 | 26 | void insertReturnTable(ReturnMedicineTable returnMedicineTable); 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PharmacyServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.*; 4 | import com.example.HIS.models.Medicine; 5 | import com.example.HIS.models.PrescriptionTable; 6 | import com.example.HIS.models.ReturnMedicineTable; 7 | import com.example.HIS.models.TakeMedineTable; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | 11 | import java.util.List; 12 | 13 | @Service 14 | public class PharmacyServiceImpl implements PharmacyService { 15 | @Autowired 16 | TakeMedineTableDao takeMedineTableDao; 17 | @Autowired 18 | PrescriptionTableDao prescriptionTableDao; 19 | @Autowired 20 | MedicineDao medicineDao; 21 | @Autowired 22 | PharmacistDao pharmacistDao; 23 | @Autowired 24 | ReturnMedicineTableDao returnMedicineTableDao; 25 | @Override 26 | public List selectAllTakeMedineTable() { 27 | return takeMedineTableDao.selectAllTakeMedineTable(); 28 | } 29 | 30 | @Override 31 | public List selectTakeMedicineTable(int takeMedicineTableId) { 32 | return takeMedineTableDao.selectByPrimaryKey(takeMedicineTableId); 33 | } 34 | 35 | @Override 36 | public PrescriptionTable selectPrescription(int prescriptionId) { 37 | return prescriptionTableDao.selectByPrimaryKey(prescriptionId); 38 | } 39 | 40 | @Override 41 | public Medicine getMedicine(String medicineId) { 42 | return medicineDao.selectByPrimaryKey(medicineId); 43 | } 44 | 45 | @Override 46 | public void updateTakeMedicine(TakeMedineTable takeMedineTable) { 47 | takeMedineTableDao.updateByPrimaryKey(takeMedineTable); 48 | } 49 | 50 | @Override 51 | public void updateMedicine(Medicine medicine) { 52 | medicineDao.updateByPrimaryKey(medicine); 53 | } 54 | 55 | @Override 56 | public String selectPharmacistName(String pharmacistId) { 57 | return pharmacistDao.selectByPrimaryKey(pharmacistId).getPharmacistName(); 58 | } 59 | 60 | @Override 61 | public void insertReturnTable(ReturnMedicineTable returnMedicineTable) { 62 | returnMedicineTableDao.insert(returnMedicineTable); 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PrescriptionService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.PrescriptionTable; 4 | 5 | public interface PrescriptionService { 6 | public Integer getMaxId(); 7 | 8 | public Integer addPrescription(PrescriptionTable prescriptionTable); 9 | 10 | public PrescriptionTable findById(String prescriptionId); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/PrescriptionServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | 4 | import com.example.HIS.generate.PrescriptionTableDao; 5 | import com.example.HIS.models.PrescriptionTable; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | @Service 10 | public class PrescriptionServiceImpl implements PrescriptionService{ 11 | @Autowired 12 | PrescriptionTableDao prescriptionTableDao; 13 | 14 | // 15 | public Integer getMaxId(){return prescriptionTableDao.getMaxId();} 16 | 17 | public Integer addPrescription(PrescriptionTable prescriptionTable){return prescriptionTableDao.insertSelective(prescriptionTable);} 18 | 19 | public PrescriptionTable findById(String prescriptionId){return prescriptionTableDao.selectByPrimaryKey(Integer.valueOf(prescriptionId));} 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/RecordService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.DTO.RecordHistoryDto; 4 | import com.example.HIS.models.Record; 5 | 6 | import java.util.List; 7 | 8 | public interface RecordService { 9 | 10 | public Integer create(Record record); 11 | 12 | // 13 | public List findByPatientId(String patientId); 14 | 15 | // 16 | public Integer getMaxId(); 17 | 18 | public Record findByRecordId(String RecordId); 19 | 20 | public void updateSelective(Record record); 21 | 22 | public List findHistoryByPatientId(String patientId); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/RecordServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.DTO.RecordHistoryDto; 4 | import com.example.HIS.generate.RecordDao; 5 | import com.example.HIS.models.Record; 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import java.util.List; 10 | 11 | @Service 12 | public class RecordServiceImpl implements RecordService{ 13 | @Autowired 14 | private RecordDao recordDao; 15 | 16 | 17 | public Integer create(Record record){return recordDao.insert(record);}; 18 | 19 | // 20 | public List findByPatientId(String patientId){return recordDao.findByPatientId(patientId);} 21 | 22 | // 23 | public Integer getMaxId(){return recordDao.getMaxId();}; 24 | 25 | public Record findByRecordId(String RecordId){return recordDao.selectByPrimaryKey(Integer.valueOf(RecordId));} 26 | 27 | public void updateSelective(Record record) { 28 | recordDao.updateByPrimaryKeySelective(record); 29 | } 30 | 31 | public List findHistoryByPatientId(String patientId) { 32 | return recordDao.findHistoryByPatientId(patientId); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/RefundService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.*; 4 | 5 | import java.util.List; 6 | 7 | public interface RefundService { 8 | List selectAllPayRefund(); 9 | 10 | // RefundTable selectPayRefund(int pid); 11 | 12 | RefundTable selectPayRefundByPayId(int payId); 13 | 14 | PayTable getPayTableByPayId(int payId); 15 | 16 | PrescriptionTable getPrescriptionTableById(int payId1); 17 | 18 | String getMedicineNameByMId(String medicineId); 19 | 20 | CheckTable getCheckTableById(int payId1); 21 | 22 | void addRefundTable(RefundTable refundTable1); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/RefundServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.*; 4 | import com.example.HIS.models.*; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import java.util.List; 9 | 10 | @Service 11 | public class RefundServiceImpl implements RefundService { 12 | @Autowired 13 | RefundTableDao refundTableDao; 14 | @Autowired 15 | PayTableDao payTableDao; 16 | @Autowired 17 | PrescriptionTableDao prescriptionTableDao; 18 | @Autowired 19 | MedicineDao medicineDao; 20 | @Autowired 21 | CheckTableDao checkTableDao; 22 | 23 | @Override 24 | public List selectAllPayRefund() { 25 | return refundTableDao.selectAll(); 26 | } 27 | 28 | // @Override 29 | // public RefundTable selectPayRefund(int pid) { 30 | // return refundTableDao.selectByPrimaryKey(pid); 31 | // } 32 | 33 | @Override 34 | public RefundTable selectPayRefundByPayId(int payId) { 35 | return refundTableDao.getByPayId(payId); 36 | } 37 | 38 | @Override 39 | public PayTable getPayTableByPayId(int payId) { 40 | return payTableDao.selectByPrimaryKey(payId); 41 | } 42 | 43 | @Override 44 | public PrescriptionTable getPrescriptionTableById(int payId1) { 45 | return prescriptionTableDao.selectByPrimaryKey(payId1); 46 | } 47 | 48 | @Override 49 | public String getMedicineNameByMId(String medicineId) { 50 | return medicineDao.selectMedicineNameById(medicineId); 51 | } 52 | 53 | @Override 54 | public CheckTable getCheckTableById(int payId1) { 55 | return checkTableDao.selectByPrimaryKey(payId1); 56 | } 57 | 58 | @Override 59 | public void addRefundTable(RefundTable refundTable1) { 60 | refundTableDao.insertSelective(refundTable1); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/RegisterService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.Patient; 4 | import com.example.HIS.models.RegisterTable; 5 | import org.springframework.stereotype.Service; 6 | 7 | import java.util.List; 8 | 9 | 10 | public interface RegisterService { 11 | int addPatient(Patient patient); 12 | 13 | Patient selectPatient(String patientIdentity); 14 | 15 | RegisterTable findById(Integer registerId); 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/RegisterServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.PatientDao; 4 | import com.example.HIS.generate.RegisterTableDao; 5 | import com.example.HIS.models.Patient; 6 | import com.example.HIS.models.RegisterTable; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | @Service 11 | public class RegisterServiceImpl implements RegisterService { 12 | @Autowired 13 | PatientDao patientDao; 14 | @Autowired 15 | private RegisterTableDao registerTableDao; 16 | 17 | //患者注册 18 | @Override 19 | public int addPatient(Patient patient) { 20 | return patientDao.insertSelective(patient); 21 | } 22 | 23 | 24 | 25 | //取号单 26 | @Override 27 | public Patient selectPatient(String patientIdentity) { 28 | return patientDao.selectByPrimaryKey(patientIdentity); 29 | } 30 | 31 | @Override 32 | public RegisterTable findById(Integer registerId) { 33 | return registerTableDao.selectByPrimaryKey(registerId); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/TakeNumberService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.*; 4 | import com.example.HIS.DTO.RemainDoctorDto; 5 | import com.example.HIS.DTO.ReserveTableDto; 6 | 7 | import java.util.Date; 8 | import java.util.List; 9 | 10 | public interface TakeNumberService { 11 | 12 | List getReserveInfoByPIdToday(String patientIdentity); 13 | 14 | ReserveTable getReserveTableByPrimaryKey(int reserveId); 15 | 16 | int addRegisterTable(RegisterTable registerTable); 17 | 18 | List getRemainDeptNumberToday(); 19 | 20 | List getDoctorRmainToday(); 21 | 22 | int getMaxDeptNumberByDeptId(String departmentId); 23 | 24 | void addDeptqueue(DeptQueue deptQueue); 25 | 26 | void addDoctorqueue(DoctorQueue doctorQueue); 27 | 28 | RegisterTable getRegisterTableById(Integer registerId); 29 | 30 | DeptQueue getDeptQueueByRegisterId(Integer registerId); 31 | 32 | void updateDeptQueue(DeptQueue deptQueue); 33 | 34 | DoctorQueue getDoctorQueueByRegisterId(Integer registerId); 35 | 36 | void updateDoctorQueue(DoctorQueue doctorQueue); 37 | 38 | void updateReserveState(ReserveTable reserveTable); 39 | 40 | List getDoctorQueueByDoctorId(String doctorId); 41 | 42 | List getDeptQueueByDeptId(String deptId); 43 | 44 | List getReserveDoctorQueueByDoctorId(String doctorId); 45 | 46 | List getSiteDoctorQueueByDoctorId(String doctorId); 47 | 48 | List getReserveDeptQueueByDeptId(String deptId); 49 | 50 | List getSiteDeptQueueByDeptId(String deptId); 51 | 52 | int getMaxDoctorNumberByDoctorId(String doctorId); 53 | 54 | List getRemainDcotorNumberByTimeAndDoctorId(String doctorId); 55 | 56 | void updateRemainDcotorNumber(RemainDoctorNumber remainDoctorNumber); 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/TakeNumberServiceimpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.*; 4 | import com.example.HIS.models.*; 5 | import com.example.HIS.DTO.RemainDoctorDto; 6 | import com.example.HIS.DTO.ReserveTableDto; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.stereotype.Service; 9 | 10 | import java.util.Date; 11 | import java.util.List; 12 | 13 | @Service 14 | public class TakeNumberServiceimpl implements TakeNumberService { 15 | @Autowired 16 | RegisterTableDao registerTableDao; 17 | @Autowired 18 | ReserveTableDao reserveTableDao; 19 | @Autowired 20 | RemainDeptNumberDao remainDeptNumberDao; 21 | @Autowired 22 | RemainDoctorNumberDao remainDoctorNumberDao; 23 | @Autowired 24 | DeptQueueDao deptQueueDao; 25 | @Autowired 26 | DoctorQueueDao doctorQueueDao; 27 | 28 | 29 | @Override 30 | public List getReserveInfoByPIdToday(String patientIdentity) { 31 | return reserveTableDao.selectInfoByPIdToday(patientIdentity); 32 | } 33 | 34 | @Override 35 | public ReserveTable getReserveTableByPrimaryKey(int reserveId) { 36 | return reserveTableDao.selectByPrimaryKey(reserveId); 37 | } 38 | 39 | @Override 40 | public int addRegisterTable(RegisterTable registerTable) { 41 | return registerTableDao.insert(registerTable); 42 | } 43 | 44 | @Override 45 | public List getRemainDeptNumberToday() { 46 | return remainDeptNumberDao.getAllToday(); 47 | } 48 | 49 | @Override 50 | public List getDoctorRmainToday() { 51 | return remainDoctorNumberDao.getAllDoctorRemainToday(); 52 | } 53 | 54 | @Override 55 | public int getMaxDeptNumberByDeptId(String departmentId) { 56 | return deptQueueDao.getMaxIdByDeptId(departmentId); 57 | } 58 | 59 | @Override 60 | public int getMaxDoctorNumberByDoctorId(String doctorId) { 61 | return doctorQueueDao.getMaxIdByDoctorId(doctorId); 62 | } 63 | 64 | @Override 65 | public List getRemainDcotorNumberByTimeAndDoctorId(String doctorId) { 66 | return remainDoctorNumberDao.selectByDoctorIdAndTime(doctorId); 67 | } 68 | 69 | @Override 70 | public void updateRemainDcotorNumber(RemainDoctorNumber remainDoctorNumber) { 71 | remainDoctorNumberDao.updateByPrimaryKey(remainDoctorNumber); 72 | } 73 | 74 | @Override 75 | public void addDeptqueue(DeptQueue deptQueue) { 76 | deptQueueDao.insertSelective(deptQueue); 77 | } 78 | 79 | @Override 80 | public void addDoctorqueue(DoctorQueue doctorQueue) { 81 | doctorQueueDao.insertSelective(doctorQueue); 82 | } 83 | 84 | @Override 85 | public RegisterTable getRegisterTableById(Integer registerId) { 86 | return registerTableDao.selectByPrimaryKey(registerId); 87 | } 88 | 89 | @Override 90 | public DeptQueue getDeptQueueByRegisterId(Integer registerId) { 91 | return deptQueueDao.getByRegisterId(registerId); 92 | } 93 | 94 | @Override 95 | public void updateDeptQueue(DeptQueue deptQueue) { 96 | deptQueueDao.updateByPrimaryKey(deptQueue); 97 | } 98 | 99 | @Override 100 | public DoctorQueue getDoctorQueueByRegisterId(Integer registerId) { 101 | return doctorQueueDao.getByRegisterId(registerId); 102 | } 103 | 104 | @Override 105 | public void updateDoctorQueue(DoctorQueue doctorQueue) { 106 | doctorQueueDao.updateByPrimaryKey(doctorQueue); 107 | } 108 | 109 | @Override 110 | public void updateReserveState(ReserveTable reserveTable) { 111 | reserveTableDao.updateByPrimaryKey(reserveTable); 112 | } 113 | 114 | @Override 115 | public List getDoctorQueueByDoctorId(String doctorId) { 116 | return doctorQueueDao.getByDoctorId(doctorId); 117 | } 118 | 119 | @Override 120 | public List getDeptQueueByDeptId(String deptId) { 121 | return deptQueueDao.getByDeptId(deptId); 122 | } 123 | 124 | @Override 125 | public List getReserveDoctorQueueByDoctorId(String doctorId) { 126 | return doctorQueueDao.getReserveByDoctorId(doctorId); 127 | } 128 | 129 | @Override 130 | public List getSiteDoctorQueueByDoctorId(String doctorId) { 131 | return doctorQueueDao.getSiteByDoctorId(doctorId); 132 | } 133 | 134 | @Override 135 | public List getReserveDeptQueueByDeptId(String deptId) { 136 | return deptQueueDao.getReserveByDeptId(deptId); 137 | } 138 | 139 | @Override 140 | public List getSiteDeptQueueByDeptId(String deptId) { 141 | return deptQueueDao.getSiteByDeptId(deptId); 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/medicineService.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.models.Medicine; 4 | 5 | public interface medicineService { 6 | public Medicine searchByName(String medicineName); 7 | 8 | public Medicine findById(String medicineId); 9 | } 10 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/service/medicineServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.service; 2 | 3 | import com.example.HIS.generate.MedicineDao; 4 | import com.example.HIS.models.Medicine; 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | @Service 9 | public class medicineServiceImpl implements medicineService { 10 | @Autowired 11 | MedicineDao medicineDao; 12 | 13 | // 14 | public Medicine searchByName(String medicineName){ return medicineDao.selectByName(medicineName);}; 15 | 16 | public Medicine findById(String medicineId){return medicineDao.selectByPrimaryKey(medicineId);} 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/start/TestConsumer.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.start; 2 | 3 | 4 | import org.apache.kafka.clients.consumer.ConsumerRecord; 5 | import org.springframework.kafka.annotation.KafkaListener; 6 | import org.springframework.stereotype.Component; 7 | 8 | 9 | //@Component 10 | //public class TestConsumer { 11 | // 12 | // @KafkaListener(topics = "yhtest") //定义此消费者接收topic为“test_topic”的消息 13 | //// 监听服务器上的kafka是否有相关的消息发过来 14 | //// record变量代表消息本身,可以通过ConsumerRecord类型的record变量来打印接收的消息的各种信息 15 | // public void listen(ConsumerRecord record) throws Exception { 16 | // System.out.printf("topic = %s, offset = %d, value = %s \n", record.topic(), record.offset(), record.value()); 17 | // } 18 | // 19 | //} -------------------------------------------------------------------------------- /src/main/java/com/example/HIS/tool/DateTool.java: -------------------------------------------------------------------------------- 1 | package com.example.HIS.tool; 2 | 3 | import java.text.SimpleDateFormat; 4 | import java.util.Calendar; 5 | import java.util.Date; 6 | 7 | public class DateTool { 8 | 9 | /** 10 | * 获取未来第i天的j点(整点) 11 | * 12 | * @param i,j 13 | * @return 14 | */ 15 | public static Date getFutureDate(int i,int j) { 16 | Calendar calendar = Calendar.getInstance(); 17 | calendar.set(Calendar.DAY_OF_YEAR, calendar.get(Calendar.DAY_OF_YEAR) + i); 18 | calendar.set(Calendar.HOUR_OF_DAY, j); 19 | calendar.set(Calendar.MINUTE, 0); 20 | calendar.set(Calendar.SECOND, 0); 21 | 22 | Date today = calendar.getTime(); 23 | // SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 24 | // String result = format.format(today); 25 | return today; 26 | } 27 | 28 | /** 29 | * 获取过去第i天的j点(整点) 30 | * 31 | * @param i,j 32 | * @return 33 | */ 34 | public static Date getPastDate(int i,int j) { 35 | Calendar calendar = Calendar.getInstance(); 36 | calendar.set(Calendar.DAY_OF_YEAR, calendar.get(Calendar.DAY_OF_YEAR) - i); 37 | calendar.set(Calendar.HOUR_OF_DAY, j); 38 | calendar.set(Calendar.MINUTE, 0); 39 | calendar.set(Calendar.SECOND, 0); 40 | 41 | Date today = calendar.getTime(); 42 | // SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 43 | // String result = format.format(today); 44 | return today; 45 | } 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/resources/META-INF/additional-spring-configuration-metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "properties": [ 3 | { 4 | "name": "spring.http.encoding", 5 | "type": "java.lang.String", 6 | "description": "Description for spring.http.encoding." 7 | } 8 | ] } -------------------------------------------------------------------------------- /src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | 2 | spring: 3 | datasource: 4 | driver-class-name: com.mysql.cj.jdbc.Driver 5 | url: jdbc:mysql://localhost:3306/hospital?useUnicode=true&characterEncoding=UTF-8 6 | username: root 7 | password: root 8 | mvc: 9 | view: 10 | prefix: / 11 | suffix: .html 12 | hiddenmethod: 13 | filter: 14 | enable:true 15 | # static-path-pattern: classpath:/resources/,classpath:/static/,classpath:/templates/ 16 | kafka: 17 | bootstrap-servers: localhost:9092 #????ip????????????????????? 18 | producer: 19 | key-serializer: org.apache.kafka.common.serialization.StringSerializer 20 | value-serializer: org.apache.kafka.common.serialization.StringSerializer 21 | consumer: 22 | group-id: yhtest #???????id 23 | enable-auto-commit: true 24 | auto-commit-interval: 1000 25 | key-deserializer: org.apache.kafka.common.serialization.StringDeserializer 26 | value-deserializer: org.apache.kafka.common.serialization.StringDeserializer 27 | mybatis: 28 | mapper-locations: classpath:generator/*.xml 29 | -------------------------------------------------------------------------------- /src/main/resources/generator/CashierDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | cashier_id, cashier_identity, cashier_password, cashier_name, cashier_gender, cashier_tel, 15 | cashier_address 16 | 17 | 23 | 24 | delete from cashiers 25 | where cashier_id = #{cashierId,jdbcType=VARCHAR} 26 | 27 | 28 | insert into cashiers (cashier_identity, cashier_password, 29 | cashier_name, cashier_gender, cashier_tel, 30 | cashier_address) 31 | values (#{cashierIdentity,jdbcType=VARCHAR}, #{cashierPassword,jdbcType=VARCHAR}, 32 | #{cashierName,jdbcType=VARCHAR}, #{cashierGender,jdbcType=INTEGER}, #{cashierTel,jdbcType=VARCHAR}, 33 | #{cashierAddress,jdbcType=VARCHAR}) 34 | 35 | 36 | insert into cashiers 37 | 38 | 39 | cashier_identity, 40 | 41 | 42 | cashier_password, 43 | 44 | 45 | cashier_name, 46 | 47 | 48 | cashier_gender, 49 | 50 | 51 | cashier_tel, 52 | 53 | 54 | cashier_address, 55 | 56 | 57 | 58 | 59 | #{cashierIdentity,jdbcType=VARCHAR}, 60 | 61 | 62 | #{cashierPassword,jdbcType=VARCHAR}, 63 | 64 | 65 | #{cashierName,jdbcType=VARCHAR}, 66 | 67 | 68 | #{cashierGender,jdbcType=INTEGER}, 69 | 70 | 71 | #{cashierTel,jdbcType=VARCHAR}, 72 | 73 | 74 | #{cashierAddress,jdbcType=VARCHAR}, 75 | 76 | 77 | 78 | 79 | update cashiers 80 | 81 | 82 | cashier_identity = #{cashierIdentity,jdbcType=VARCHAR}, 83 | 84 | 85 | cashier_password = #{cashierPassword,jdbcType=VARCHAR}, 86 | 87 | 88 | cashier_name = #{cashierName,jdbcType=VARCHAR}, 89 | 90 | 91 | cashier_gender = #{cashierGender,jdbcType=INTEGER}, 92 | 93 | 94 | cashier_tel = #{cashierTel,jdbcType=VARCHAR}, 95 | 96 | 97 | cashier_address = #{cashierAddress,jdbcType=VARCHAR}, 98 | 99 | 100 | where cashier_id = #{cashierId,jdbcType=VARCHAR} 101 | 102 | 103 | update cashiers 104 | set cashier_identity = #{cashierIdentity,jdbcType=VARCHAR}, 105 | cashier_password = #{cashierPassword,jdbcType=VARCHAR}, 106 | cashier_name = #{cashierName,jdbcType=VARCHAR}, 107 | cashier_gender = #{cashierGender,jdbcType=INTEGER}, 108 | cashier_tel = #{cashierTel,jdbcType=VARCHAR}, 109 | cashier_address = #{cashierAddress,jdbcType=VARCHAR} 110 | where cashier_id = #{cashierId,jdbcType=VARCHAR} 111 | 112 | -------------------------------------------------------------------------------- /src/main/resources/generator/MedicineDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | medicine_id, medicine_name, medicine_number, medicine_money 12 | 13 | 19 | 24 | 30 | 34 | 35 | 36 | delete from medicines 37 | where medicine_id = #{medicineId,jdbcType=VARCHAR} 38 | 39 | 40 | insert into medicines (medicine_name, medicine_number, medicine_money 41 | ) 42 | values (#{medicineName,jdbcType=VARCHAR}, #{medicineNumber,jdbcType=INTEGER}, #{medicineMoney,jdbcType=DOUBLE} 43 | ) 44 | 45 | 46 | insert into medicines 47 | 48 | 49 | medicine_name, 50 | 51 | 52 | medicine_number, 53 | 54 | 55 | medicine_money, 56 | 57 | 58 | 59 | 60 | #{medicineName,jdbcType=VARCHAR}, 61 | 62 | 63 | #{medicineNumber,jdbcType=INTEGER}, 64 | 65 | 66 | #{medicineMoney,jdbcType=DOUBLE}, 67 | 68 | 69 | 70 | 71 | update medicines 72 | 73 | 74 | medicine_name = #{medicineName,jdbcType=VARCHAR}, 75 | 76 | 77 | medicine_number = #{medicineNumber,jdbcType=INTEGER}, 78 | 79 | 80 | medicine_money = #{medicineMoney,jdbcType=DOUBLE}, 81 | 82 | 83 | where medicine_id = #{medicineId,jdbcType=VARCHAR} 84 | 85 | 86 | update medicines 87 | set medicine_name = #{medicineName,jdbcType=VARCHAR}, 88 | medicine_number = #{medicineNumber,jdbcType=INTEGER}, 89 | medicine_money = #{medicineMoney,jdbcType=DOUBLE} 90 | where medicine_id = #{medicineId,jdbcType=VARCHAR} 91 | 92 | -------------------------------------------------------------------------------- /src/main/resources/generator/PharmacistDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | pharmacist_id, pharmacist_identity, pharmacist_password, pharmacist_name, pharmacist_gender, 15 | pharmacist_tel, pharmacist_address 16 | 17 | 23 | 24 | delete from pharmacists 25 | where pharmacist_id = #{pharmacistId,jdbcType=VARCHAR} 26 | 27 | 28 | insert into pharmacists (pharmacist_identity, pharmacist_password, 29 | pharmacist_name, pharmacist_gender, pharmacist_tel, 30 | pharmacist_address) 31 | values (#{pharmacistIdentity,jdbcType=VARCHAR}, #{pharmacistPassword,jdbcType=VARCHAR}, 32 | #{pharmacistName,jdbcType=VARCHAR}, #{pharmacistGender,jdbcType=INTEGER}, #{pharmacistTel,jdbcType=VARCHAR}, 33 | #{pharmacistAddress,jdbcType=VARCHAR}) 34 | 35 | 36 | insert into pharmacists 37 | 38 | 39 | pharmacist_identity, 40 | 41 | 42 | pharmacist_password, 43 | 44 | 45 | pharmacist_name, 46 | 47 | 48 | pharmacist_gender, 49 | 50 | 51 | pharmacist_tel, 52 | 53 | 54 | pharmacist_address, 55 | 56 | 57 | 58 | 59 | #{pharmacistIdentity,jdbcType=VARCHAR}, 60 | 61 | 62 | #{pharmacistPassword,jdbcType=VARCHAR}, 63 | 64 | 65 | #{pharmacistName,jdbcType=VARCHAR}, 66 | 67 | 68 | #{pharmacistGender,jdbcType=INTEGER}, 69 | 70 | 71 | #{pharmacistTel,jdbcType=VARCHAR}, 72 | 73 | 74 | #{pharmacistAddress,jdbcType=VARCHAR}, 75 | 76 | 77 | 78 | 79 | update pharmacists 80 | 81 | 82 | pharmacist_identity = #{pharmacistIdentity,jdbcType=VARCHAR}, 83 | 84 | 85 | pharmacist_password = #{pharmacistPassword,jdbcType=VARCHAR}, 86 | 87 | 88 | pharmacist_name = #{pharmacistName,jdbcType=VARCHAR}, 89 | 90 | 91 | pharmacist_gender = #{pharmacistGender,jdbcType=INTEGER}, 92 | 93 | 94 | pharmacist_tel = #{pharmacistTel,jdbcType=VARCHAR}, 95 | 96 | 97 | pharmacist_address = #{pharmacistAddress,jdbcType=VARCHAR}, 98 | 99 | 100 | where pharmacist_id = #{pharmacistId,jdbcType=VARCHAR} 101 | 102 | 103 | update pharmacists 104 | set pharmacist_identity = #{pharmacistIdentity,jdbcType=VARCHAR}, 105 | pharmacist_password = #{pharmacistPassword,jdbcType=VARCHAR}, 106 | pharmacist_name = #{pharmacistName,jdbcType=VARCHAR}, 107 | pharmacist_gender = #{pharmacistGender,jdbcType=INTEGER}, 108 | pharmacist_tel = #{pharmacistTel,jdbcType=VARCHAR}, 109 | pharmacist_address = #{pharmacistAddress,jdbcType=VARCHAR} 110 | where pharmacist_id = #{pharmacistId,jdbcType=VARCHAR} 111 | 112 | -------------------------------------------------------------------------------- /src/main/resources/generator/RefundTableDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | refund_id, patient_identity, cashier_id, pay_id, refund_way, refund_money, refund_time 15 | 16 | 22 | 25 | 28 | 29 | delete from refund_tables 30 | where refund_id = #{refundId,jdbcType=INTEGER} 31 | 32 | 33 | insert into refund_tables (patient_identity, cashier_id, pay_id, 34 | refund_way, refund_money, refund_time 35 | ) 36 | values (#{patientIdentity,jdbcType=VARCHAR}, #{cashierId,jdbcType=VARCHAR}, #{payId,jdbcType=INTEGER}, 37 | #{refundWay,jdbcType=INTEGER}, #{refundMoney,jdbcType=FLOAT}, #{refundTime,jdbcType=TIMESTAMP} 38 | ); 39 | 40 | 41 | 42 | insert into refund_tables 43 | 44 | 45 | patient_identity, 46 | 47 | 48 | cashier_id, 49 | 50 | 51 | pay_id, 52 | 53 | 54 | refund_way, 55 | 56 | 57 | refund_money, 58 | 59 | 60 | refund_time, 61 | 62 | 63 | 64 | 65 | #{patientIdentity,jdbcType=VARCHAR}, 66 | 67 | 68 | #{cashierId,jdbcType=VARCHAR}, 69 | 70 | 71 | #{payId,jdbcType=INTEGER}, 72 | 73 | 74 | #{refundWay,jdbcType=INTEGER}, 75 | 76 | 77 | #{refundMoney,jdbcType=FLOAT}, 78 | 79 | 80 | #{refundTime,jdbcType=TIMESTAMP}, 81 | 82 | 83 | 84 | 85 | update refund_tables 86 | 87 | 88 | patient_identity = #{patientIdentity,jdbcType=VARCHAR}, 89 | 90 | 91 | cashier_id = #{cashierId,jdbcType=VARCHAR}, 92 | 93 | 94 | pay_id = #{payId,jdbcType=INTEGER}, 95 | 96 | 97 | refund_way = #{refundWay,jdbcType=INTEGER}, 98 | 99 | 100 | refund_money = #{refundMoney,jdbcType=FLOAT}, 101 | 102 | 103 | refund_time = #{refundTime,jdbcType=TIMESTAMP}, 104 | 105 | 106 | where refund_id = #{refundId,jdbcType=INTEGER} 107 | 108 | 109 | update refund_tables 110 | set patient_identity = #{patientIdentity,jdbcType=VARCHAR}, 111 | cashier_id = #{cashierId,jdbcType=VARCHAR}, 112 | pay_id = #{payId,jdbcType=INTEGER}, 113 | refund_way = #{refundWay,jdbcType=INTEGER}, 114 | refund_money = #{refundMoney,jdbcType=FLOAT}, 115 | refund_time = #{refundTime,jdbcType=TIMESTAMP} 116 | where refund_id = #{refundId,jdbcType=INTEGER} 117 | 118 | -------------------------------------------------------------------------------- /src/main/resources/generator/RemainDeptNumberDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | remain_dept_number_id, department_id, `time`, `number` 14 | 15 | 21 | 25 | 26 | 29 | 34 | 35 | delete from remain_dept_numbers 36 | where remain_dept_number_id = #{remainDeptNumberId,jdbcType=INTEGER} 37 | 38 | 39 | insert into remain_dept_numbers (department_id, `time`, `number` 40 | ) 41 | values (#{departmentId,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, #{number,jdbcType=INTEGER} 42 | ) 43 | 44 | 45 | insert into remain_dept_numbers 46 | 47 | 48 | department_id, 49 | 50 | 51 | `time`, 52 | 53 | 54 | `number`, 55 | 56 | 57 | 58 | 59 | #{departmentId,jdbcType=VARCHAR}, 60 | 61 | 62 | #{time,jdbcType=TIMESTAMP}, 63 | 64 | 65 | #{number,jdbcType=INTEGER}, 66 | 67 | 68 | 69 | 70 | update remain_dept_numbers 71 | 72 | 73 | department_id = #{departmentId,jdbcType=VARCHAR}, 74 | 75 | 76 | `time` = #{time,jdbcType=TIMESTAMP}, 77 | 78 | 79 | `number` = #{number,jdbcType=INTEGER}, 80 | 81 | 82 | where remain_dept_number_id = #{remainDeptNumberId,jdbcType=INTEGER} 83 | 84 | 85 | update remain_dept_numbers 86 | set department_id = #{departmentId,jdbcType=VARCHAR}, 87 | `time` = #{time,jdbcType=TIMESTAMP}, 88 | `number` = #{number,jdbcType=INTEGER} 89 | where remain_dept_number_id = #{remainDeptNumberId,jdbcType=INTEGER} 90 | 91 | -------------------------------------------------------------------------------- /src/main/resources/generator/RemainDoctorNumberDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | insert into remain_doctor_numbers (remain_doctor_number_id, doctor_id, `time`, 12 | `number`) 13 | values (#{remainDoctorNumberId,jdbcType=INTEGER}, #{doctorId,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, 14 | #{number,jdbcType=INTEGER}) 15 | 16 | 17 | insert into remain_doctor_numbers 18 | 19 | 20 | doctor_id, 21 | 22 | 23 | `time`, 24 | 25 | 26 | `number`, 27 | 28 | 29 | 30 | 31 | #{doctorId,jdbcType=VARCHAR}, 32 | 33 | 34 | #{time,jdbcType=TIMESTAMP}, 35 | 36 | 37 | #{number,jdbcType=INTEGER}, 38 | 39 | 40 | 41 | 42 | update remain_doctor_numbers 43 | set doctor_id = #{doctorId,jdbcType=VARCHAR}, 44 | `time` = #{time,jdbcType=TIMESTAMP}, 45 | `number` = #{number,jdbcType=INTEGER} 46 | where remain_doctor_number_id = #{remainDoctorNumberId,jdbcType=INTEGER} 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 61 | 64 | 71 | 80 | 85 | 86 | -------------------------------------------------------------------------------- /src/main/resources/generator/ReturnMedicineTableDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | return_id, patient_identity, pharmacist_id, prescription_id, medicine_id, return_number, 15 | return_time 16 | 17 | 23 | 24 | delete from return_medicine_tables 25 | where return_id = #{returnId,jdbcType=INTEGER} 26 | 27 | 28 | insert into return_medicine_tables (patient_identity, pharmacist_id, prescription_id, 29 | medicine_id, return_number, return_time 30 | ) 31 | values (#{patientIdentity,jdbcType=VARCHAR}, #{pharmacistId,jdbcType=VARCHAR}, #{prescriptionId,jdbcType=INTEGER}, 32 | #{medicineId,jdbcType=VARCHAR}, #{returnNumber,jdbcType=INTEGER}, #{returnTime,jdbcType=TIMESTAMP} 33 | ); 34 | 35 | SELECT LAST_INSERT_ID() 36 | 37 | 38 | 39 | insert into return_medicine_tables 40 | 41 | 42 | patient_identity, 43 | 44 | 45 | pharmacist_id, 46 | 47 | 48 | prescription_id, 49 | 50 | 51 | medicine_id, 52 | 53 | 54 | return_number, 55 | 56 | 57 | return_time, 58 | 59 | 60 | 61 | 62 | #{patientIdentity,jdbcType=VARCHAR}, 63 | 64 | 65 | #{pharmacistId,jdbcType=VARCHAR}, 66 | 67 | 68 | #{prescriptionId,jdbcType=INTEGER}, 69 | 70 | 71 | #{medicineId,jdbcType=VARCHAR}, 72 | 73 | 74 | #{returnNumber,jdbcType=INTEGER}, 75 | 76 | 77 | #{returnTime,jdbcType=TIMESTAMP}, 78 | 79 | 80 | 81 | 82 | update return_medicine_tables 83 | 84 | 85 | patient_identity = #{patientIdentity,jdbcType=VARCHAR}, 86 | 87 | 88 | pharmacist_id = #{pharmacistId,jdbcType=VARCHAR}, 89 | 90 | 91 | prescription_id = #{prescriptionId,jdbcType=INTEGER}, 92 | 93 | 94 | medicine_id = #{medicineId,jdbcType=VARCHAR}, 95 | 96 | 97 | return_number = #{returnNumber,jdbcType=INTEGER}, 98 | 99 | 100 | return_time = #{returnTime,jdbcType=TIMESTAMP}, 101 | 102 | 103 | where return_id = #{returnId,jdbcType=INTEGER} 104 | 105 | 106 | update return_medicine_tables 107 | set patient_identity = #{patientIdentity,jdbcType=VARCHAR}, 108 | pharmacist_id = #{pharmacistId,jdbcType=VARCHAR}, 109 | prescription_id = #{prescriptionId,jdbcType=INTEGER}, 110 | medicine_id = #{medicineId,jdbcType=VARCHAR}, 111 | return_number = #{returnNumber,jdbcType=INTEGER}, 112 | return_time = #{returnTime,jdbcType=TIMESTAMP} 113 | where return_id = #{returnId,jdbcType=INTEGER} 114 | 115 | -------------------------------------------------------------------------------- /src/main/resources/generator/ViolateTableDao.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | violate_id, reserve_id 10 | 11 | 17 | 18 | delete from violate_tables 19 | where violate_id = #{violateId,jdbcType=INTEGER} 20 | 21 | 22 | insert into violate_tables (reserve_id) 23 | values (#{reserveId,jdbcType=INTEGER}) 24 | 25 | 26 | insert into violate_tables 27 | 28 | 29 | reserve_id, 30 | 31 | 32 | 33 | 34 | #{reserveId,jdbcType=INTEGER}, 35 | 36 | 37 | 38 | 39 | update violate_tables 40 | 41 | 42 | reserve_id = #{reserveId,jdbcType=INTEGER}, 43 | 44 | 45 | where violate_id = #{violateId,jdbcType=INTEGER} 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /src/main/resources/mybatis-config.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/main/resources/static/_menu.json: -------------------------------------------------------------------------------- 1 | {"code":"success","data":[{"dataName":"404.html","dataSrc":"404.html"},{"dataName":"about.html","dataSrc":"about.html"},{"dataName":"appointment.html","dataSrc":"appointment.html"},{"dataName":"blog-grid.html","dataSrc":"blog-grid.html"},{"dataName":"blog-single.html","dataSrc":"blog-single.html"},{"dataName":"contact.html","dataSrc":"contact.html"},{"dataName":"doctor-details.html","dataSrc":"doctor-details.html"},{"dataName":"doctors.html","dataSrc":"doctors.html"},{"dataName":"faq.html","dataSrc":"faq.html"},{"dataName":"index.html","dataSrc":"index.html"},{"dataName":"index2.html","dataSrc":"index2.html"},{"dataName":"login.html","dataSrc":"login.html"},{"dataName":"mail-success.html","dataSrc":"mail-success.html"},{"dataName":"pricing.html","dataSrc":"pricing.html"},{"dataName":"register.html","dataSrc":"register.html"},{"dataName":"service-details.html","dataSrc":"service-details.html"},{"dataName":"service.html","dataSrc":"service.html"},{"dataName":"testimonials.html","dataSrc":"testimonials.html"},{"dataName":"time-table.html","dataSrc":"time-table.html"}]} -------------------------------------------------------------------------------- /src/main/resources/static/css/color/color1.css: -------------------------------------------------------------------------------- 1 | .doctor-details-item .doctor-details-contact .basic-info li i,.doctor-details-item .doctor-details-biography h3,.header .top-link li:hover a,.header .top-contact li a:hover,.header .top-contact li i,.header .nav li.active a,.header .nav li:hover a,.header .nav li .dropdown li:hover a,.header .search-form button:hover,.slider .single-slider h1 span,.Feautes .single-features .signle-icon i,.fun-facts .single-fun:hover i,.call-action .content .btn,.call-action .content .second:hover,.portfolio .single-pf .btn,.pf-details .image-slider .owl-carousel .owl-nav div,.services .single-service i,.services .single-service h4 a:hover,.departments .department-tab .nav li a.active i,.departments .department-tab .tab-pane .department-left .p1,.pricing-table .single-table .icon i,.pricing-table .single-table .amount,.team .t-bottom h2 a:hover,.blog .single-news .news-body h2 a:hover,.main-sidebar .categor-list li a:hover,.main-sidebar .single-post .content h5 a:hover, 2 | .news-single .news-title a:hover,.slicknav_nav li:hover a,.slicknav_nav li .dropdown li a:hover,.slicknav_nav li:hover .slicknav_arrow,.news-single .meta span i,.news-single .form-group i,.login .login-form p a,.login .login-form .lost-pass:hover,.register .register-form p a,.register .register-form .terms,.error-page .error-inner h1,.mail-seccess .success-inner h1,.doctor-calendar-table table tbody tr td span.time,.doctor-calendar-table table tbody tr td:hover span.time,.about-content span,.about-content ul li i,.single-vision-box:hover .icon,.our-mission-content .sub-title,.our-mission-content ul li .icon,.footer .single-footer .social li a:hover,.footer .single-footer .newsletter-inner .button{ 3 | color:#1A76D1; 4 | } 5 | .accordion li a.active,#scrollUp,.team .t-icon a,.slicknav_menu .slicknav_icon-bar,.color-plate .color-plate-icon,.header .nav li a::before,.header .single-widget i,.header .right-bar a,.header .search-form button,.slider .single-slider .btn,.slider .single-slider .btn.primary:before,.slider .owl-carousel .owl-nav div,.schedule .single-schedule,.schedule .single-schedule:before,.Feautes .single-features:hover .signle-icon i,.why-choose .choose-left h3:before,.why-choose .choose-left .list li i,.why-choose .choose-right .video,.call-action .content .btn:before,.call-action .content .btn:hover,.portfolio .single-pf:before,.pf-details .image-slider .owl-carousel .owl-nav div:hover,.pf-details .date,.pf-details .body-text .share ul li a:hover,.services-details-img blockquote,.departments .department-tab .tab-pane .department-left .list li i,.pricing-table .table-list i,.doctor-details-area .doctor-details-left .social li a:hover,.blog .single-news .news-content:before,.blog .single-news .news-body .date,.main-sidebar .single-widget .title::before, 6 | .main-sidebar .search .button:hover,.main-sidebar .side-tags .tag a:hover,.news-single .prev-next li a:hover,.news-single .single-comments a,.news-single .form-group.button .btn,.appointment .form-group .list li:hover,.appointment.single-page .work-hour,.login .login-form h2:before,.login .form .btn:hover,.login .login-form .checkbox label::after,.register .register-form h2:before,.register .form .btn:hover,.register .register-form .checkbox label::after,.contact-us .contact-us-form h2:before,.contact-us .form .btn:hover,.contact-us .contact-us-form .checkbox label::after,.contact-us .single-info,.contact-us .single-info:before,.error-page .search-form .btn,.doctor-calendar-table table thead tr th,.doctor-calendar-table table tbody tr td:hover,.about-content ul li:hover i,.single-vision-box .icon,.single-vision-box::before,.our-mission-content ul li:hover .icon,.footer .copyright,.footer .footer-top,.preloader::before, .preloader::after,.btn,.overlay:before,.pagination .pagination-list li.active a,.pagination .pagination-list li:hover a{ 7 | background:#1A76D1; 8 | } 9 | .accordion a:hover{ 10 | background:#1A76D1 !important; 11 | } 12 | .Feautes .single-features::before{ 13 | border-bottom-color:#1A76D1; 14 | } 15 | .service-details-inner h2,.header .nav li .dropdown{ 16 | border-left-color:#1A76D1; 17 | } 18 | .accordion li a.active,.departments .department-tab .nav li a.active,.login .login-form .checkbox label::before,.register .register-form .checkbox label::before,.accordion li a.active,.contact-us .contact-us-form .checkbox label::before,.doctor-calendar-table table tbody tr td:hover{ 19 | border-color:#1A76D1; 20 | } 21 | .preloader .loader .indicator svg polyline#front { 22 | stroke: #1A76D1; 23 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/datepicker.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Datepicker for Bootstrap 3 | * 4 | * Copyright 2012 Stefan Petre 5 | * Licensed under the Apache License v2.0 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * 8 | */ 9 | .datepicker { 10 | top: 0; 11 | left: 0; 12 | padding: 4px; 13 | margin-top: 1px; 14 | -webkit-border-radius: 4px; 15 | -moz-border-radius: 4px; 16 | border-radius: 0; 17 | /*.dow { 18 | border-top: 1px solid #ddd !important; 19 | }*/ 20 | 21 | } 22 | .datepicker:before { 23 | content: ''; 24 | display: inline-block; 25 | border-left: 7px solid transparent; 26 | border-right: 7px solid transparent; 27 | border-bottom: 7px solid #ccc; 28 | border-bottom-color: rgba(0, 0, 0, 0.2); 29 | position: absolute; 30 | top: -7px; 31 | left: 6px; 32 | } 33 | .datepicker:after { 34 | content: ''; 35 | display: inline-block; 36 | border-left: 6px solid transparent; 37 | border-right: 6px solid transparent; 38 | border-bottom: 6px solid #ffffff; 39 | position: absolute; 40 | top: -6px; 41 | left: 7px; 42 | } 43 | .datepicker > div { 44 | display: none; 45 | } 46 | .datepicker table { 47 | width: 100%; 48 | margin: 0; 49 | } 50 | .datepicker td, .datepicker th { 51 | text-align: center; 52 | padding: 5px 9px; 53 | font-size: 13px; 54 | font-weight: 400; 55 | } 56 | .datepicker td.day:hover { 57 | background: #1A76D1; 58 | cursor: pointer; 59 | color:#fff; 60 | } 61 | .datepicker td.day.disabled { 62 | color: #eeeeee; 63 | } 64 | .datepicker td.old, 65 | .datepicker td.new { 66 | color: #999999; 67 | } 68 | .datepicker td.active, 69 | .datepicker td.active:hover { 70 | color: #ffffff; 71 | background-color: #1A76D1; 72 | color: #fff; 73 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 74 | } 75 | .datepicker td.active:hover, 76 | .datepicker td.active:hover:hover, 77 | .datepicker td.active:focus, 78 | .datepicker td.active:hover:focus, 79 | .datepicker td.active:active, 80 | .datepicker td.active:hover:active, 81 | .datepicker td.active.active, 82 | .datepicker td.active:hover.active, 83 | .datepicker td.active.disabled, 84 | .datepicker td.active:hover.disabled, 85 | .datepicker td.active[disabled], 86 | .datepicker td.active:hover[disabled] { 87 | color: #ffffff; 88 | background-color: #1A76D1; 89 | *background-color: #1A76D1; 90 | } 91 | .datepicker td.active:active, 92 | .datepicker td.active:hover:active, 93 | .datepicker td.active.active, 94 | .datepicker td.active:hover.active { 95 | background-color: #003399 \9; 96 | } 97 | .datepicker td span { 98 | display: block; 99 | width: 47px; 100 | height: 54px; 101 | line-height: 54px; 102 | float: left; 103 | margin: 2px; 104 | cursor: pointer; 105 | -webkit-border-radius: 4px; 106 | -moz-border-radius: 4px; 107 | border-radius: 4px; 108 | } 109 | .datepicker td span:hover { 110 | background: #1A76D1; 111 | } 112 | .datepicker td span.active { 113 | color: #ffffff; 114 | background-color: #1A76D1; 115 | color: #fff; 116 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 117 | } 118 | .datepicker td span.active:hover, 119 | .datepicker td span.active:focus, 120 | .datepicker td span.active:active, 121 | .datepicker td span.active.active, 122 | .datepicker td span.active.disabled, 123 | .datepicker td span.active[disabled] { 124 | color: #ffffff; 125 | background-color: #0044cc; 126 | *background-color: #003bb3; 127 | } 128 | .datepicker td span.active:active, 129 | .datepicker td span.active.active { 130 | background-color: #003399 \9; 131 | } 132 | .datepicker td span.old { 133 | color: #999999; 134 | } 135 | .datepicker th.switch { 136 | width: 145px; 137 | } 138 | .datepicker th.next, 139 | .datepicker th.prev { 140 | font-size: 21px; 141 | } 142 | .datepicker thead tr:first-child th { 143 | cursor: pointer; 144 | } 145 | .datepicker thead tr:first-child th:hover { 146 | background: #1A76D1; 147 | color:#fff; 148 | } 149 | .input-append.date .add-on i, 150 | .input-prepend.date .add-on i { 151 | display: block; 152 | cursor: pointer; 153 | width: 16px; 154 | height: 16px; 155 | } -------------------------------------------------------------------------------- /src/main/resources/static/css/nice-select.css: -------------------------------------------------------------------------------- 1 | 2 | .nice-select { 3 | -webkit-tap-highlight-color: transparent; 4 | background-color: #fff; 5 | border-radius: 5px; 6 | border: solid 1px #e8e8e8; 7 | box-sizing: border-box; 8 | clear: both; 9 | cursor: pointer; 10 | display: block; 11 | float: left; 12 | font-family: inherit; 13 | font-size: 15px; 14 | font-weight: normal; 15 | height: 42px; 16 | line-height: 27px; 17 | outline: none; 18 | padding-left: 18px; 19 | padding-right: 30px; 20 | position: relative; 21 | text-align: left !important; 22 | -webkit-transition: all 0.2s ease-in-out; 23 | transition: all 0.2s ease-in-out; 24 | -webkit-user-select: none; 25 | -moz-user-select: none; 26 | -ms-user-select: none; 27 | user-select: none; 28 | white-space: nowrap; 29 | width: auto; 30 | margin-bottom: 16px; 31 | } 32 | 33 | .nice-select:hover { 34 | border-color: #3164F4; 35 | } 36 | 37 | .nice-select:active, 38 | .nice-select.open, 39 | .nice-select:focus { 40 | border-color: #999; 41 | } 42 | 43 | .nice-select:after { 44 | border-bottom: 2px solid #999; 45 | border-right: 2px solid #999; 46 | content: ''; 47 | display: block; 48 | height: 8px; 49 | margin-top: -4px; 50 | pointer-events: none; 51 | position: absolute; 52 | right: 12px; 53 | top: 50%; 54 | -webkit-transform-origin: 66% 66%; 55 | -ms-transform-origin: 66% 66%; 56 | transform-origin: 66% 66%; 57 | -webkit-transform: rotate(45deg); 58 | -ms-transform: rotate(45deg); 59 | transform: rotate(45deg); 60 | -webkit-transition: all 0.15s ease-in-out; 61 | transition: all 0.15s ease-in-out; 62 | width: 8px; 63 | } 64 | 65 | .nice-select.open:after { 66 | -webkit-transform: rotate(-135deg); 67 | -ms-transform: rotate(-135deg); 68 | transform: rotate(-135deg); 69 | } 70 | 71 | .nice-select.open .list { 72 | opacity: 1; 73 | pointer-events: auto; 74 | -webkit-transform: scale(1) translateY(0); 75 | -ms-transform: scale(1) translateY(0); 76 | transform: scale(1) translateY(0); 77 | } 78 | 79 | .nice-select.disabled { 80 | border-color: #ededed; 81 | color: #999; 82 | pointer-events: none; 83 | } 84 | 85 | .nice-select.disabled:after { 86 | border-color: #cccccc; 87 | } 88 | 89 | .nice-select.wide { 90 | width: 100%; 91 | } 92 | 93 | .nice-select.wide .list { 94 | left: 0 !important; 95 | right: 0 !important; 96 | } 97 | 98 | .nice-select.right { 99 | float: right; 100 | } 101 | 102 | .nice-select.right .list { 103 | left: auto; 104 | right: 0; 105 | } 106 | 107 | .nice-select.small { 108 | font-size: 12px; 109 | height: 36px; 110 | line-height: 34px; 111 | } 112 | 113 | .nice-select.small:after { 114 | height: 4px; 115 | width: 4px; 116 | } 117 | 118 | .nice-select.small .option { 119 | line-height: 34px; 120 | min-height: 34px; 121 | } 122 | 123 | .nice-select .list { 124 | background-color: #fff; 125 | border-radius: 5px; 126 | box-shadow: 0 0 0 1px rgba(68, 68, 68, 0.11); 127 | box-sizing: border-box; 128 | margin-top: 4px; 129 | opacity: 0; 130 | overflow: hidden; 131 | padding: 0; 132 | pointer-events: none; 133 | position: absolute; 134 | top: 100%; 135 | left: 0; 136 | -webkit-transform-origin: 50% 0; 137 | -ms-transform-origin: 50% 0; 138 | transform-origin: 50% 0; 139 | -webkit-transform: scale(0.75) translateY(-21px); 140 | -ms-transform: scale(0.75) translateY(-21px); 141 | transform: scale(0.75) translateY(-21px); 142 | -webkit-transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out; 143 | transition: all 0.2s cubic-bezier(0.5, 0, 0, 1.25), opacity 0.15s ease-out; 144 | z-index: 9; 145 | } 146 | 147 | .nice-select .list:hover .option:not(:hover) { 148 | background-color: transparent !important; 149 | } 150 | 151 | .nice-select .option { 152 | cursor: pointer; 153 | font-weight: 400; 154 | line-height: 40px; 155 | list-style: none; 156 | min-height: 40px; 157 | outline: none; 158 | padding-left: 18px; 159 | padding-right: 29px; 160 | text-align: left; 161 | -webkit-transition: all 0.2s; 162 | transition: all 0.2s; 163 | } 164 | 165 | .nice-select .option:hover { 166 | background-color: #238AC1; 167 | color: #fff; 168 | } 169 | 170 | .nice-select .option.selected { 171 | font-weight: bold; 172 | } 173 | 174 | .nice-select .option.disabled { 175 | background-color: transparent; 176 | color: #999; 177 | cursor: default; 178 | } 179 | 180 | .no-csspointerevents .nice-select .list { 181 | display: none; 182 | } 183 | 184 | .no-csspointerevents .nice-select.open .list { 185 | display: block; 186 | } 187 | 188 | .contact-form-wrapper .list { 189 | background: #2f3341 none repeat scroll 0 0; 190 | border-radius: 0; 191 | } 192 | -------------------------------------------------------------------------------- /src/main/resources/static/css/slicknav.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * SlickNav Responsive Mobile Menu v1.0.10 3 | * (c) 2016 Josh Cope 4 | * licensed under MIT 5 | */.slicknav_btn,.slicknav_nav .slicknav_item{cursor:pointer}.slicknav_menu,.slicknav_menu *{box-sizing:border-box}.slicknav_btn{position:relative;display:block;vertical-align:middle;float:right;padding:.438em .625em;line-height:1.125em}.slicknav_btn .slicknav_icon-bar+.slicknav_icon-bar{margin-top:.188em}.slicknav_menu .slicknav_menutxt{display:block;line-height:1.188em;float:left;color:#fff;font-weight:700;}.slicknav_menu .slicknav_icon{float:left;width:1.125em;height:.875em;margin:.188em 0 0 .438em}.slicknav_menu .slicknav_icon:before{background:0 0;width:1.125em;height:.875em;display:block;content:"";position:absolute}.slicknav_menu .slicknav_no-text{margin:0}.slicknav_menu .slicknav_icon-bar{display:block;width:1.125em;height:.125em;-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.25);-moz-box-shadow:0 1px 0 rgba(0,0,0,.25);box-shadow:0 1px 0 rgba(0,0,0,.25)}.slicknav_menu:after,.slicknav_menu:before{content:" ";display:table}.slicknav_menu:after{clear:both}.slicknav_nav li,.slicknav_nav ul{display:block}.slicknav_nav .slicknav_arrow{font-size:.8em;margin:0 0 0 .4em}.slicknav_nav .slicknav_item a{display:inline}.slicknav_nav .slicknav_row,.slicknav_nav a{display:block}.slicknav_nav .slicknav_parent-link a{display:inline}.slicknav_menu{*zoom:1;font-size:16px;background:#4c4c4c;padding:5px}.slicknav_nav,.slicknav_nav ul{list-style:none;overflow:hidden;padding:0}.slicknav_menu .slicknav_icon-bar{background-color:#fff}.slicknav_btn{margin:5px 5px 6px;text-decoration:none;text-shadow:0 1px 1px rgba(255,255,255,.75);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;background-color:#222}.slicknav_nav{clear:both;color:#fff;margin:0;font-size:.875em}.slicknav_nav ul{margin:0 0 0 20px}.slicknav_nav .slicknav_row,.slicknav_nav a{padding:5px 10px;margin:2px 5px}.slicknav_nav a{text-decoration:none;color:#fff}.slicknav_nav .slicknav_txtnode{margin-left:15px}.slicknav_nav .slicknav_item a,.slicknav_nav .slicknav_parent-link a{padding:0;margin:0}.slicknav_brand{float:left;color:#fff;font-size:18px;line-height:30px;padding:7px 12px;height:44px} -------------------------------------------------------------------------------- /src/main/resources/static/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/static/fonts/icofont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/fonts/icofont.woff2 -------------------------------------------------------------------------------- /src/main/resources/static/img/about-img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/about-img.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/author1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/author1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/author2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/author2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/author3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/author3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/blockqoute-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/blockqoute-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/blog-sidebar1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/blog-sidebar1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/blog-sidebar2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/blog-sidebar2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/blog-sidebar3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/blog-sidebar3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/blog1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/blog1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/blog2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/blog2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/blog3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/blog3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/bread-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/bread-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/call-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/call-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/client-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/client-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/client1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/client1.png -------------------------------------------------------------------------------- /src/main/resources/static/img/client2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/client2.png -------------------------------------------------------------------------------- /src/main/resources/static/img/client3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/client3.png -------------------------------------------------------------------------------- /src/main/resources/static/img/client4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/client4.png -------------------------------------------------------------------------------- /src/main/resources/static/img/client5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/client5.png -------------------------------------------------------------------------------- /src/main/resources/static/img/contact-img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/contact-img.png -------------------------------------------------------------------------------- /src/main/resources/static/img/department.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/department.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/doctor-detail.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/doctor-detail.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/fun-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/fun-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/logo.png -------------------------------------------------------------------------------- /src/main/resources/static/img/mission-img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/mission-img.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/pf1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/pf1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/pf2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/pf2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/pf3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/pf3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/pf4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/pf4.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/section-img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/section-img.png -------------------------------------------------------------------------------- /src/main/resources/static/img/section-img2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/section-img2.png -------------------------------------------------------------------------------- /src/main/resources/static/img/service-details-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/service-details-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/signup-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/signup-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/slider.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/slider.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/slider2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/slider2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/slider3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/slider3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/team1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/team1.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/team2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/team2.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/team3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/team3.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/team4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/team4.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/testi-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/testi-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/img/testi1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/testi1.png -------------------------------------------------------------------------------- /src/main/resources/static/img/testi2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/testi2.png -------------------------------------------------------------------------------- /src/main/resources/static/img/testi3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/testi3.png -------------------------------------------------------------------------------- /src/main/resources/static/img/video-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catherine499/HIS/7e137ad13b27d416c6585c252b9bdada916f672b/src/main/resources/static/img/video-bg.jpg -------------------------------------------------------------------------------- /src/main/resources/static/js/colors.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | 3 | 4 | $(".color1" ).click(function(){ 5 | $("#colors" ).attr("href", "css/color/color1.css" ); 6 | return false; 7 | }); 8 | 9 | $(".color2" ).click(function(){ 10 | $("#colors" ).attr("href", "css/color/color2.css" ); 11 | return false; 12 | }); 13 | 14 | $(".color3" ).click(function(){ 15 | $("#colors" ).attr("href", "css/color/color3.css" ); 16 | return false; 17 | }); 18 | 19 | $(".color4" ).click(function(){ 20 | $("#colors" ).attr("href", "css/color/color4.css" ); 21 | return false; 22 | }); 23 | $(".color5" ).click(function(){ 24 | $("#colors" ).attr("href", "css/color/color5.css" ); 25 | return false; 26 | }); 27 | $(".color6" ).click(function(){ 28 | $("#colors" ).attr("href", "css/color/color6.css" ); 29 | return false; 30 | }); 31 | $(".color7" ).click(function(){ 32 | $("#colors" ).attr("href", "css/color/color7.css" ); 33 | return false; 34 | }); 35 | $(".color8" ).click(function(){ 36 | $("#colors" ).attr("href", "css/color/color8.css" ); 37 | return false; 38 | }); 39 | $(".color9" ).click(function(){ 40 | $("#colors" ).attr("href", "css/color/color9.css" ); 41 | return false; 42 | }); 43 | $(".color10" ).click(function(){ 44 | $("#colors" ).attr("href", "css/color/color10.css" ); 45 | return false; 46 | }); 47 | $(".color11" ).click(function(){ 48 | $("#colors" ).attr("href", "css/color/color11.css" ); 49 | return false; 50 | }); 51 | $(".color12" ).click(function(){ 52 | $("#colors" ).attr("href", "css/color/color12.css" ); 53 | return false; 54 | }); 55 | 56 | 57 | $('.color-plate .color-plate-icon').on( "click", function(){ 58 | $('.color-plate').toggleClass('active'); 59 | }); 60 | 61 | 62 | 63 | 64 | } ); 65 | -------------------------------------------------------------------------------- /src/main/resources/static/js/easing.js: -------------------------------------------------------------------------------- 1 | 2 | // Easing JS // 3 | !function(n){"function"==typeof define&&define.amd?define(["jquery"],function(e){return n(e)}):"object"==typeof module&&"object"==typeof module.exports?exports=n(require("jquery")):n(jQuery)}(function(n){function e(n){var e=7.5625,t=2.75;return n<1/t?e*n*n:n<2/t?e*(n-=1.5/t)*n+.75:n<2.5/t?e*(n-=2.25/t)*n+.9375:e*(n-=2.625/t)*n+.984375}n.easing.jswing=n.easing.swing;var t=Math.pow,u=Math.sqrt,r=Math.sin,i=Math.cos,a=Math.PI,c=1.70158,o=1.525*c,s=2*a/3,f=2*a/4.5;n.extend(n.easing,{def:"easeOutQuad",swing:function(e){return n.easing[n.easing.def](e)},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return 1-(1-n)*(1-n)},easeInOutQuad:function(n){return n<.5?2*n*n:1-t(-2*n+2,2)/2},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1-t(1-n,3)},easeInOutCubic:function(n){return n<.5?4*n*n*n:1-t(-2*n+2,3)/2},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return 1-t(1-n,4)},easeInOutQuart:function(n){return n<.5?8*n*n*n*n:1-t(-2*n+2,4)/2},easeInQuint:function(n){return n*n*n*n*n},easeOutQuint:function(n){return 1-t(1-n,5)},easeInOutQuint:function(n){return n<.5?16*n*n*n*n*n:1-t(-2*n+2,5)/2},easeInSine:function(n){return 1-i(n*a/2)},easeOutSine:function(n){return r(n*a/2)},easeInOutSine:function(n){return-(i(a*n)-1)/2},easeInExpo:function(n){return 0===n?0:t(2,10*n-10)},easeOutExpo:function(n){return 1===n?1:1-t(2,-10*n)},easeInOutExpo:function(n){return 0===n?0:1===n?1:n<.5?t(2,20*n-10)/2:(2-t(2,-20*n+10))/2},easeInCirc:function(n){return 1-u(1-t(n,2))},easeOutCirc:function(n){return u(1-t(n-1,2))},easeInOutCirc:function(n){return n<.5?(1-u(1-t(2*n,2)))/2:(u(1-t(-2*n+2,2))+1)/2},easeInElastic:function(n){return 0===n?0:1===n?1:-t(2,10*n-10)*r((10*n-10.75)*s)},easeOutElastic:function(n){return 0===n?0:1===n?1:t(2,-10*n)*r((10*n-.75)*s)+1},easeInOutElastic:function(n){return 0===n?0:1===n?1:n<.5?-(t(2,20*n-10)*r((20*n-11.125)*f))/2:t(2,-20*n+10)*r((20*n-11.125)*f)/2+1},easeInBack:function(n){return(c+1)*n*n*n-c*n*n},easeOutBack:function(n){return 1+(c+1)*t(n-1,3)+c*t(n-1,2)},easeInOutBack:function(n){return n<.5?t(2*n,2)*(7.189819*n-o)/2:(t(2*n-2,2)*((o+1)*(2*n-2)+o)+2)/2},easeInBounce:function(n){return 1-e(1-n)},easeOutBounce:e,easeInOutBounce:function(n){return n<.5?(1-e(1-2*n))/2:(1+e(2*n-1))/2}})}); -------------------------------------------------------------------------------- /src/main/resources/static/js/jquery.counterup.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jquery.counterup.js 1.0 3 | * 4 | * Copyright 2013, Benjamin Intal http://gambit.ph @bfintal 5 | * Released under the GPL v2 License 6 | * 7 | * Date: Nov 26, 2013 8 | */(function(e){"use strict";e.fn.counterUp=function(t){var n=e.extend({time:400,delay:10},t);return this.each(function(){var t=e(this),r=n,i=function(){var e=[],n=r.time/r.delay,i=t.text(),s=/[0-9]+,[0-9]+/.test(i);i=i.replace(/,/g,"");var o=/^[0-9]+$/.test(i),u=/^[0-9]+\.[0-9]+$/.test(i),a=u?(i.split(".")[1]||[]).length:0;for(var f=n;f>=1;f--){var l=parseInt(i/n*f);u&&(l=parseFloat(i/n*f).toFixed(a));if(s)while(/(\d+)(\d{3})/.test(l.toString()))l=l.toString().replace(/(\d+)(\d{3})/,"$1,$2");e.unshift(l)}t.data("counterup-nums",e);t.text("0");var c=function(){t.text(t.data("counterup-nums").shift());if(t.data("counterup-nums").length)setTimeout(t.data("counterup-func"),r.delay);else{delete t.data("counterup-nums");t.data("counterup-nums",null);t.data("counterup-func",null)}};t.data("counterup-func",c);setTimeout(t.data("counterup-func"),r.delay)};t.waypoint(i,{offset:"100%",triggerOnce:!0})})}})(jQuery); -------------------------------------------------------------------------------- /src/main/resources/static/js/jquery.scrollUp.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * scrollup v2.4.1 3 | * Url: http://markgoodyear.com/labs/scrollup/ 4 | * Copyright (c) Mark Goodyear — @markgdyr — http://markgoodyear.com 5 | * License: MIT 6 | */ 7 | !function(l,o,e){"use strict";l.fn.scrollUp=function(o){l.data(e.body,"scrollUp")||(l.data(e.body,"scrollUp",!0),l.fn.scrollUp.init(o))},l.fn.scrollUp.init=function(r){var s,t,c,i,n,a,d,p=l.fn.scrollUp.settings=l.extend({},l.fn.scrollUp.defaults,r),f=!1;switch(d=p.scrollTrigger?l(p.scrollTrigger):l("",{id:p.scrollName,href:"#top"}),p.scrollTitle&&d.attr("title",p.scrollTitle),d.appendTo("body"),p.scrollImg||p.scrollTrigger||d.html(p.scrollText),d.css({display:"none",position:"fixed",zIndex:p.zIndex}),p.activeOverlay&&l("
",{id:p.scrollName+"-active"}).css({position:"absolute",top:p.scrollDistance+"px",width:"100%",borderTop:"1px dotted"+p.activeOverlay,zIndex:p.zIndex}).appendTo("body"),p.animation){case"fade":s="fadeIn",t="fadeOut",c=p.animationSpeed;break;case"slide":s="slideDown",t="slideUp",c=p.animationSpeed;break;default:s="show",t="hide",c=0}i="top"===p.scrollFrom?p.scrollDistance:l(e).height()-l(o).height()-p.scrollDistance,n=l(o).scroll(function(){l(o).scrollTop()>i?f||(d[s](c),f=!0):f&&(d[t](c),f=!1)}),p.scrollTarget?"number"==typeof p.scrollTarget?a=p.scrollTarget:"string"==typeof p.scrollTarget&&(a=Math.floor(l(p.scrollTarget).offset().top)):a=0,d.click(function(o){o.preventDefault(),l("html, body").animate({scrollTop:a},p.scrollSpeed,p.easingType)})},l.fn.scrollUp.defaults={scrollName:"scrollUp",scrollDistance:300,scrollFrom:"top",scrollSpeed:300,easingType:"linear",animation:"fade",animationSpeed:200,scrollTrigger:!1,scrollTarget:!1,scrollText:"Scroll to top",scrollTitle:!1,scrollImg:!1,activeOverlay:!1,zIndex:2147483647},l.fn.scrollUp.destroy=function(r){l.removeData(e.body,"scrollUp"),l("#"+l.fn.scrollUp.settings.scrollName).remove(),l("#"+l.fn.scrollUp.settings.scrollName+"-active").remove(),l.fn.jquery.split(".")[1]>=7?l(o).off("scroll",r):l(o).unbind("scroll",r)},l.scrollUp=l.fn.scrollUp}(jQuery,window,document); -------------------------------------------------------------------------------- /src/main/resources/static/js/map-active.js: -------------------------------------------------------------------------------- 1 | $(document).ready(function(){ 2 | /*==================================== 3 | Google Map JS 4 | ======================================*/ 5 | (function(){ 6 | 7 | var map; 8 | map = new GMaps({ 9 | el: '#myMap', 10 | lat: 51.507351, 11 | lng: -0.127758, 12 | scrollwheel:false, 13 | zoom: 15, 14 | zoomControl : false, 15 | panControl : false, 16 | streetViewControl : true, 17 | mapTypeControl: false, 18 | overviewMapControl: false, 19 | clickable: false 20 | }); 21 | 22 | var image = 'img/map-marker.png'; 23 | map.addMarker({ 24 | lat: 51.507351, 25 | lng: -0.127758, 26 | icon: image, 27 | animation: google.maps.Animation.DROP, 28 | verticalAlign: 'bottom', 29 | horizontalAlign: 'left', 30 | backgroundColor: '#efece0', 31 | }); 32 | 33 | var styles = [ 34 | 35 | { 36 | "featureType": "road", 37 | "stylers": [ 38 | { "color": "#ffffff" } 39 | ] 40 | },{ 41 | "featureType": "water", 42 | "stylers": [ 43 | { "color": "#bde5f6" } 44 | ] 45 | },{ 46 | "featureType": "landscape", 47 | "stylers": [ 48 | { "color": "#f2f2f2" } 49 | ] 50 | },{ 51 | "elementType": "labels.text.fill", 52 | "stylers": [ 53 | { "color": "#FF7550" } 54 | ] 55 | },{ 56 | "featureType": "poi", 57 | "stylers": [ 58 | { "color": "#e2f0cd" } 59 | ] 60 | },{ 61 | "elementType": "labels.text", 62 | "stylers": [ 63 | { "saturation": 2 }, 64 | { "weight": 0.3}, 65 | { "color": "#a8a8a8" } 66 | ] 67 | } 68 | 69 | ]; 70 | 71 | map.addStyle({ 72 | styledMapName:"Styled Map", 73 | styles: styles, 74 | mapTypeId: "map_style" 75 | }); 76 | 77 | map.setStyle("map_style"); 78 | }()); 79 | 80 | }); -------------------------------------------------------------------------------- /src/main/resources/static/js/niceselect.js: -------------------------------------------------------------------------------- 1 | /* jQuery Nice Select - v1.0 2 | https://github.com/hernansartorio/jquery-nice-select 3 | Made by Hernán Sartorio */ 4 | !function(e){e.fn.niceSelect=function(t){function s(t){t.after(e("
").addClass("nice-select").addClass(t.attr("class")||"").addClass(t.attr("disabled")?"disabled":"").attr("tabindex",t.attr("disabled")?null:"0").html('
    '));var s=t.next(),n=t.find("option"),i=t.find("option:selected");s.find(".current").html(i.data("display")||i.text()),n.each(function(t){var n=e(this),i=n.data("display");s.find("ul").append(e("
  • ").attr("data-value",n.val()).attr("data-display",i||null).addClass("option"+(n.is(":selected")?" selected":"")+(n.is(":disabled")?" disabled":"")).html(n.text()))})}if("string"==typeof t)return"update"==t?this.each(function(){var t=e(this),n=e(this).next(".nice-select"),i=n.hasClass("open");n.length&&(n.remove(),s(t),i&&t.next().trigger("click"))}):"destroy"==t?(this.each(function(){var t=e(this),s=e(this).next(".nice-select");s.length&&(s.remove(),t.css("display",""))}),0==e(".nice-select").length&&e(document).off(".nice_select")):console.log('Method "'+t+'" does not exist.'),this;this.hide(),this.each(function(){var t=e(this);t.next().hasClass("nice-select")||s(t)}),e(document).off(".nice_select"),e(document).on("click.nice_select",".nice-select",function(t){var s=e(this);e(".nice-select").not(s).removeClass("open"),s.toggleClass("open"),s.hasClass("open")?(s.find(".option"),s.find(".focus").removeClass("focus"),s.find(".selected").addClass("focus")):s.focus()}),e(document).on("click.nice_select",function(t){0===e(t.target).closest(".nice-select").length&&e(".nice-select").removeClass("open").find(".option")}),e(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(t){var s=e(this),n=s.closest(".nice-select");n.find(".selected").removeClass("selected"),s.addClass("selected");var i=s.data("display")||s.text();n.find(".current").text(i),n.prev("select").val(s.data("value")).trigger("change")}),e(document).on("keydown.nice_select",".nice-select",function(t){var s=e(this),n=e(s.find(".focus")||s.find(".list .option.selected"));if(32==t.keyCode||13==t.keyCode)return s.hasClass("open")?n.trigger("click"):s.trigger("click"),!1;if(40==t.keyCode){if(s.hasClass("open")){var i=n.nextAll(".option:not(.disabled)").first();i.length>0&&(s.find(".focus").removeClass("focus"),i.addClass("focus"))}else s.trigger("click");return!1}if(38==t.keyCode){if(s.hasClass("open")){var l=n.prevAll(".option:not(.disabled)").first();l.length>0&&(s.find(".focus").removeClass("focus"),l.addClass("focus"))}else s.trigger("click");return!1}if(27==t.keyCode)s.hasClass("open")&&s.trigger("click");else if(9==t.keyCode&&s.hasClass("open"))return!1});var n=document.createElement("a").style;return n.cssText="pointer-events:auto","auto"!==n.pointerEvents&&e("html").addClass("no-csspointerevents"),this}}(jQuery); -------------------------------------------------------------------------------- /src/main/resources/static/js/tilt.jquery.min.js: -------------------------------------------------------------------------------- 1 | "use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(i,s){return void 0===s&&(s="undefined"!=typeof window?require("jquery"):require("jquery")(i)),t(s),s}:t(jQuery)}(function(t){return t.fn.tilt=function(i){var s=function(){this.ticking||(requestAnimationFrame(g.bind(this)),this.ticking=!0)},e=function(){var i=this;t(this).on("mousemove",o),t(this).on("mouseenter",a),this.settings.reset&&t(this).on("mouseleave",h),this.settings.glare&&t(window).on("resize",u.bind(i))},n=function(){var i=this;void 0!==this.timeout&&clearTimeout(this.timeout),t(this).css({transition:this.settings.speed+"ms "+this.settings.easing}),this.settings.glare&&this.glareElement.css({transition:"opacity "+this.settings.speed+"ms "+this.settings.easing}),this.timeout=setTimeout(function(){t(i).css({transition:""}),i.settings.glare&&i.glareElement.css({transition:""})},this.settings.speed)},a=function(i){this.ticking=!1,t(this).css({"will-change":"transform"}),n.call(this),t(this).trigger("tilt.mouseEnter")},r=function(i){return"undefined"==typeof i&&(i={pageX:t(this).offset().left+t(this).outerWidth()/2,pageY:t(this).offset().top+t(this).outerHeight()/2}),{x:i.pageX,y:i.pageY}},o=function(t){this.mousePositions=r(t),s.call(this)},h=function(){n.call(this),this.reset=!0,s.call(this),t(this).trigger("tilt.mouseLeave")},l=function(){var i=t(this).outerWidth(),s=t(this).outerHeight(),e=t(this).offset().left,n=t(this).offset().top,a=(this.mousePositions.x-e)/i,r=(this.mousePositions.y-n)/s,o=(this.settings.maxTilt/2-a*this.settings.maxTilt).toFixed(2),h=(r*this.settings.maxTilt-this.settings.maxTilt/2).toFixed(2),l=Math.atan2(this.mousePositions.x-(e+i/2),-(this.mousePositions.y-(n+s/2)))*(180/Math.PI);return{tiltX:o,tiltY:h,percentageX:100*a,percentageY:100*r,angle:l}},g=function(){return this.transforms=l.call(this),this.reset?(this.reset=!1,t(this).css("transform","perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg)"),void(this.settings.glare&&(this.glareElement.css("transform","rotate(180deg) translate(-50%, -50%)"),this.glareElement.css("opacity","0")))):(t(this).css("transform","perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.axis?0:this.transforms.tiltY)+"deg) rotateY("+("y"===this.settings.axis?0:this.transforms.tiltX)+"deg) scale3d("+this.settings.scale+","+this.settings.scale+","+this.settings.scale+")"),this.settings.glare&&(this.glareElement.css("transform","rotate("+this.transforms.angle+"deg) translate(-50%, -50%)"),this.glareElement.css("opacity",""+this.transforms.percentageY*this.settings.maxGlare/100)),t(this).trigger("change",[this.transforms]),void(this.ticking=!1))},c=function(){var i=this.settings.glarePrerender;if(i||t(this).append('
    '),this.glareElementWrapper=t(this).find(".js-tilt-glare"),this.glareElement=t(this).find(".js-tilt-glare-inner"),!i){var s={position:"absolute",top:"0",left:"0",width:"100%",height:"100%"};this.glareElementWrapper.css(s).css({overflow:"hidden"}),this.glareElement.css({position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:""+2*t(this).outerWidth(),height:""+2*t(this).outerWidth(),transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"})}},u=function(){this.glareElement.css({width:""+2*t(this).outerWidth(),height:""+2*t(this).outerWidth()})};return t.fn.tilt.destroy=function(){t(this).each(function(){t(this).find(".js-tilt-glare").remove(),t(this).css({"will-change":"",transform:""}),t(this).off("mousemove mouseenter mouseleave")})},t.fn.tilt.getValues=function(){var i=[];return t(this).each(function(){this.mousePositions=r.call(this),i.push(l.call(this))}),i},t.fn.tilt.reset=function(){t(this).each(function(){var i=this;this.mousePositions=r.call(this),this.settings=t(this).data("settings"),h.call(this),setTimeout(function(){i.reset=!1},this.settings.transition)})},this.each(function(){var s=this;this.settings=t.extend({maxTilt:t(this).is("[data-tilt-max]")?t(this).data("tilt-max"):20,perspective:t(this).is("[data-tilt-perspective]")?t(this).data("tilt-perspective"):300,easing:t(this).is("[data-tilt-easing]")?t(this).data("tilt-easing"):"cubic-bezier(.03,.98,.52,.99)",scale:t(this).is("[data-tilt-scale]")?t(this).data("tilt-scale"):"1",speed:t(this).is("[data-tilt-speed]")?t(this).data("tilt-speed"):"400",transition:!t(this).is("[data-tilt-transition]")||t(this).data("tilt-transition"),axis:t(this).is("[data-tilt-axis]")?t(this).data("tilt-axis"):null,reset:!t(this).is("[data-tilt-reset]")||t(this).data("tilt-reset"),glare:!!t(this).is("[data-tilt-glare]")&&t(this).data("tilt-glare"),maxGlare:t(this).is("[data-tilt-maxglare]")?t(this).data("tilt-maxglare"):1},i),this.init=function(){t(s).data("settings",s.settings),s.settings.glare&&c.call(s),e.call(s)},this.init()})},t("[data-tilt]").tilt(),!0}); -------------------------------------------------------------------------------- /src/test/java/com/example/his/HisApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.his; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class HisApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | --------------------------------------------------------------------------------