diff --git a/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/DoctorMapper.java b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/DoctorMapper.java index 43943d4a5ad76ce8a0ed94cd7abe96125a1d0a83..738627c6f07e0f873c4f49ac106b355996831be5 100644 --- a/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/DoctorMapper.java +++ b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/DoctorMapper.java @@ -15,5 +15,5 @@ public interface DoctorMapper { Doctor findByName(String name); Doctor findById(int id); String findPswByName(String UserName); - void save(Doctor user); + //void save(Doctor user); } diff --git a/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/DoctorMapper.xml b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/DoctorMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..b3c65af1cd92910984957e95f01f0bc1e85221f8 --- /dev/null +++ b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/DoctorMapper.xml @@ -0,0 +1,18 @@ + + + + + + + + \ No newline at end of file diff --git a/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/ManagerMapper.java b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/ManagerMapper.java index 14f85579cded62e6ec2f5e03212aded611118576..77c99e682303358bb9f8ba48b9bef887e4ca4b31 100644 --- a/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/ManagerMapper.java +++ b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/ManagerMapper.java @@ -12,7 +12,7 @@ import java.util.List; public interface ManagerMapper { List findAll(); Manager findByName(String name); - Manager findById(int id); + //Manager findById(int id); String findPswByName(String UserName); - void save(Manager user); + //void save(Manager user); } diff --git a/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/ManagerMapper.xml b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/ManagerMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..5815607582cdb2bb4f669b80b45673f85e47f48c --- /dev/null +++ b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/ManagerMapper.xml @@ -0,0 +1,15 @@ + + + + + + + \ No newline at end of file diff --git a/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/PatientMapper.xml b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/PatientMapper.xml new file mode 100644 index 0000000000000000000000000000000000000000..cfc394bd731f9228ada0b4def9b3a56bc247013b --- /dev/null +++ b/MonitorPatientStatus/src/main/java/com/example/monitorpatientstatus/mapper/PatientMapper.xml @@ -0,0 +1,18 @@ + + + + + + + + INSERT INTO patient set username=#{username},password=#{password} + + \ No newline at end of file diff --git a/MonitorPatientStatus/src/main/resources/mybatis-config.xml b/MonitorPatientStatus/src/main/resources/mybatis-config.xml index 2793a169249c27ffa8107739cc01e5e0bef0872a..f2bb3d40543878fe632db94d7d08995a5d357129 100644 --- a/MonitorPatientStatus/src/main/resources/mybatis-config.xml +++ b/MonitorPatientStatus/src/main/resources/mybatis-config.xml @@ -17,5 +17,8 @@ + + + \ No newline at end of file