diff --git "a/PageHelper\346\265\201\347\250\213.txt" "b/PageHelper\346\265\201\347\250\213.txt"
new file mode 100644
index 0000000000000000000000000000000000000000..824e7a1313636d6fdde319f1d0457dfd9162124b
--- /dev/null
+++ "b/PageHelper\346\265\201\347\250\213.txt"
@@ -0,0 +1 @@
+pagehelper分页的流程 1. 导入分页的依赖到pox.xml 2.dao接口 3. mapper.xml 4. service 5. controller
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 38c9a0e604fe1106552cfc5c7e306dbf9e63d547..c7614194a9b76074b2a6ae75db41c9472c6873d9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -47,6 +47,31 @@
c3p0
0.9.5.2
+
+
+ io.jsonwebtoken
+ jjwt
+ 0.9.1
+
+
+
+ com.auth0
+ java-jwt
+ 3.8.3
+
+
+
+ com.alibaba
+ fastjson
+ 1.2.52.sec06
+
+
+
+
+ com.github.pagehelper
+ pagehelper-spring-boot-starter
+ 1.2.7
+
diff --git a/src/main/java/com/foreknow/config/WebConfiguration.java b/src/main/java/com/foreknow/config/WebConfiguration.java
new file mode 100644
index 0000000000000000000000000000000000000000..1dc546ab94ee7d027395be278385ad07464db649
--- /dev/null
+++ b/src/main/java/com/foreknow/config/WebConfiguration.java
@@ -0,0 +1,75 @@
+package com.foreknow.config;
+
+import com.foreknow.interceptor.TokenInterceptor;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.concurrent.ConcurrentTaskExecutor;
+import org.springframework.web.servlet.config.annotation.*;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.concurrent.Executors;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+
+/**
+ * 跨域请求支持/token拦截
+ * tip:只能写在一个配置类里
+ */
+@Configuration
+public class WebConfiguration implements WebMvcConfigurer {
+
+ private TokenInterceptor tokenInterceptor;
+
+ //构造方法
+ public WebConfiguration(TokenInterceptor tokenInterceptor){
+ this.tokenInterceptor = tokenInterceptor;
+ }
+
+ @Override
+ public void addCorsMappings(CorsRegistry registry) {
+ registry.addMapping("/**")
+ .allowCredentials(true)
+ .allowedHeaders("*")
+ .allowedMethods("*")
+ .allowedOrigins("*");
+ }
+
+ @Override
+ public void configureAsyncSupport(AsyncSupportConfigurer configurer){
+ configurer.setTaskExecutor(new ConcurrentTaskExecutor(Executors.newFixedThreadPool(3)));
+ configurer.setDefaultTimeout(30000);
+ }
+
+ @Override
+ public void addInterceptors(InterceptorRegistry registry){
+ List excludePath = new ArrayList<>();
+ //排除拦截
+ /**
+ * 用户
+ */
+ excludePath.add("/user/register"); //登录
+ excludePath.add("/user/login"); //注册
+ excludePath.add("/user/findUserByPage"); //测试查询用户
+ excludePath.add("/user/insertUser"); //测试新增用户
+ excludePath.add("/user/deleteUser"); //测试删除用户
+ excludePath.add("/user/selectUser"); //修改之前查询用户
+ excludePath.add("/user/updateUser"); //测试修改用户
+ excludePath.add("/user/deleteList"); //批量删除用户
+ /**
+ * 科室
+ */
+ excludePath.add("/department/findDepartmentByPage"); //测试查询科室
+ excludePath.add("/department/insertDepartment"); //测试新增科室
+ excludePath.add("/department/deleteDepartment"); //测试删除科室
+ excludePath.add("/department/selectDepartment"); //修改之前查询科室
+ excludePath.add("/department/updateDepartment"); //测试修改科室
+ excludePath.add("/department/deleteDepartmentList"); //批量删除科室
+ excludePath.add("/static/**"); //静态资源
+ excludePath.add("/assets/**"); //静态资源
+
+ registry.addInterceptor(tokenInterceptor)
+ .addPathPatterns("/**")
+ .excludePathPatterns(excludePath);
+ WebMvcConfigurer.super.addInterceptors(registry);
+ }
+}
diff --git a/src/main/java/com/foreknow/dao/CheckapplyMapper.java b/src/main/java/com/foreknow/dao/CheckapplyMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..6106a5d5e6a24bf6da9109a6fd9d94ba157ab84f
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/CheckapplyMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Checkapply;
+
+public interface CheckapplyMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Checkapply record);
+
+ int insertSelective(Checkapply record);
+
+ Checkapply selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Checkapply record);
+
+ int updateByPrimaryKey(Checkapply record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/CheckrelationMapper.java b/src/main/java/com/foreknow/dao/CheckrelationMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..5e79c79c55ddcd44280c0ec0149653b123e40059
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/CheckrelationMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Checkrelation;
+
+public interface CheckrelationMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Checkrelation record);
+
+ int insertSelective(Checkrelation record);
+
+ Checkrelation selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Checkrelation record);
+
+ int updateByPrimaryKey(Checkrelation record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/ChecktemplateMapper.java b/src/main/java/com/foreknow/dao/ChecktemplateMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..dcdf4045f21c82860109bfb284ca67b8a2d304f6
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/ChecktemplateMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Checktemplate;
+
+public interface ChecktemplateMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Checktemplate record);
+
+ int insertSelective(Checktemplate record);
+
+ Checktemplate selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Checktemplate record);
+
+ int updateByPrimaryKey(Checktemplate record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/ConstantitemMapper.java b/src/main/java/com/foreknow/dao/ConstantitemMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..e1d8fecedef3445932294156c73a60ac505d40a9
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/ConstantitemMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Constantitem;
+
+public interface ConstantitemMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Constantitem record);
+
+ int insertSelective(Constantitem record);
+
+ Constantitem selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Constantitem record);
+
+ int updateByPrimaryKey(Constantitem record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/ConstanttypeMapper.java b/src/main/java/com/foreknow/dao/ConstanttypeMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..16759e8a3a1269b47576858e29b4346fe3096de9
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/ConstanttypeMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Constanttype;
+
+public interface ConstanttypeMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Constanttype record);
+
+ int insertSelective(Constanttype record);
+
+ Constanttype selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Constanttype record);
+
+ int updateByPrimaryKey(Constanttype record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/DepartmentMapper.java b/src/main/java/com/foreknow/dao/DepartmentMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..4b96d522969df378c4c81885c88f1b1a93d1f237
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/DepartmentMapper.java
@@ -0,0 +1,46 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Department;
+
+import java.util.List;
+
+public interface DepartmentMapper {
+
+ /**
+ * 删除科室信息
+ * @param id
+ * @return
+ */
+ int deleteByPrimaryKey(Integer id);
+
+ /**
+ * 添加科室信息
+ * @param record
+ * @return
+ */
+ int insert(Department record);
+
+ int insertSelective(Department record);
+
+ /**
+ * 修改之前查询科室信息
+ * @param id
+ * @return
+ */
+ Department selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Department record);
+
+ /**
+ * 修改科室信息
+ * @param record
+ * @return
+ */
+ int updateByPrimaryKey(Department record);
+
+ /**
+ * 获取科室列表
+ * @return
+ */
+ List searchAll();
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/DiseaseMapper.java b/src/main/java/com/foreknow/dao/DiseaseMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..fde766f3dea2109ac8f86a4d60c1d263cda3e086
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/DiseaseMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Disease;
+
+public interface DiseaseMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Disease record);
+
+ int insertSelective(Disease record);
+
+ Disease selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Disease record);
+
+ int updateByPrimaryKey(Disease record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/DisecategoryMapper.java b/src/main/java/com/foreknow/dao/DisecategoryMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..2f16a2f41a23465583ca4ac95134a9766e52b03d
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/DisecategoryMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Disecategory;
+
+public interface DisecategoryMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Disecategory record);
+
+ int insertSelective(Disecategory record);
+
+ Disecategory selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Disecategory record);
+
+ int updateByPrimaryKey(Disecategory record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/DrugsMapper.java b/src/main/java/com/foreknow/dao/DrugsMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..f971fb089f433d5fc076af0dc3ad72df0df7b092
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/DrugsMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Drugs;
+
+public interface DrugsMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Drugs record);
+
+ int insertSelective(Drugs record);
+
+ Drugs selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Drugs record);
+
+ int updateByPrimaryKey(Drugs record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/DrugsdetailedMapper.java b/src/main/java/com/foreknow/dao/DrugsdetailedMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..2b3fa91ffd826a4ddbbc853879f206dfbd15c7d3
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/DrugsdetailedMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Drugsdetailed;
+
+public interface DrugsdetailedMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Drugsdetailed record);
+
+ int insertSelective(Drugsdetailed record);
+
+ Drugsdetailed selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Drugsdetailed record);
+
+ int updateByPrimaryKey(Drugsdetailed record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/DrugstemplateMapper.java b/src/main/java/com/foreknow/dao/DrugstemplateMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..cbabb38e51c12b4aa670a53cdf640271bb000ef5
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/DrugstemplateMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Drugstemplate;
+
+public interface DrugstemplateMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Drugstemplate record);
+
+ int insertSelective(Drugstemplate record);
+
+ Drugstemplate selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Drugstemplate record);
+
+ int updateByPrimaryKey(Drugstemplate record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/ExpenseclassMapper.java b/src/main/java/com/foreknow/dao/ExpenseclassMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..2cbe0dc2eba6da163997d7c0e46891f5b351b6b4
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/ExpenseclassMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Expenseclass;
+
+public interface ExpenseclassMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Expenseclass record);
+
+ int insertSelective(Expenseclass record);
+
+ Expenseclass selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Expenseclass record);
+
+ int updateByPrimaryKey(Expenseclass record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/FmeditemMapper.java b/src/main/java/com/foreknow/dao/FmeditemMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..760ebbe3cc1211a075b672ad0dde0a9726915c3d
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/FmeditemMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Fmeditem;
+
+public interface FmeditemMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Fmeditem record);
+
+ int insertSelective(Fmeditem record);
+
+ Fmeditem selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Fmeditem record);
+
+ int updateByPrimaryKey(Fmeditem record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/HerbaldetailedMapper.java b/src/main/java/com/foreknow/dao/HerbaldetailedMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..2cdd34cc88c496d76a664df6a6974a54a295b2ca
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/HerbaldetailedMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Herbaldetailed;
+
+public interface HerbaldetailedMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Herbaldetailed record);
+
+ int insertSelective(Herbaldetailed record);
+
+ Herbaldetailed selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Herbaldetailed record);
+
+ int updateByPrimaryKey(Herbaldetailed record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/HerbalprescriptionMapper.java b/src/main/java/com/foreknow/dao/HerbalprescriptionMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..4eec1c3e6b4b39f0fd6975892c1b1af3fb99aef6
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/HerbalprescriptionMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Herbalprescription;
+
+public interface HerbalprescriptionMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Herbalprescription record);
+
+ int insertSelective(Herbalprescription record);
+
+ Herbalprescription selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Herbalprescription record);
+
+ int updateByPrimaryKey(Herbalprescription record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/HerbaltempdetailedMapper.java b/src/main/java/com/foreknow/dao/HerbaltempdetailedMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..bad6994ed6591f2ebb68a57426b7b3c536d3a320
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/HerbaltempdetailedMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Herbaltempdetailed;
+
+public interface HerbaltempdetailedMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Herbaltempdetailed record);
+
+ int insertSelective(Herbaltempdetailed record);
+
+ Herbaltempdetailed selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Herbaltempdetailed record);
+
+ int updateByPrimaryKey(Herbaltempdetailed record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/HerbaltemplateMapper.java b/src/main/java/com/foreknow/dao/HerbaltemplateMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..77ebd21a41a3bba4461c2d64dd2fb1c30a44b48f
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/HerbaltemplateMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Herbaltemplate;
+
+public interface HerbaltemplateMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Herbaltemplate record);
+
+ int insertSelective(Herbaltemplate record);
+
+ Herbaltemplate selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Herbaltemplate record);
+
+ int updateByPrimaryKey(Herbaltemplate record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/InvoiceMapper.java b/src/main/java/com/foreknow/dao/InvoiceMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..7be3564e1c6c74d44e809f04ac716ea2bc57bbd9
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/InvoiceMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Invoice;
+
+public interface InvoiceMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Invoice record);
+
+ int insertSelective(Invoice record);
+
+ Invoice selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Invoice record);
+
+ int updateByPrimaryKey(Invoice record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/MedicaldiseaseMapper.java b/src/main/java/com/foreknow/dao/MedicaldiseaseMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..84271a27ceb4322afdf35b3f074ac845354242af
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/MedicaldiseaseMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Medicaldisease;
+
+public interface MedicaldiseaseMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Medicaldisease record);
+
+ int insertSelective(Medicaldisease record);
+
+ Medicaldisease selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Medicaldisease record);
+
+ int updateByPrimaryKey(Medicaldisease record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/MedicalrecordMapper.java b/src/main/java/com/foreknow/dao/MedicalrecordMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..e84b768ee2b5b4cd9c5dab3db569b79e9513526a
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/MedicalrecordMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Medicalrecord;
+
+public interface MedicalrecordMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Medicalrecord record);
+
+ int insertSelective(Medicalrecord record);
+
+ Medicalrecord selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Medicalrecord record);
+
+ int updateByPrimaryKey(Medicalrecord record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/PatientcostsMapper.java b/src/main/java/com/foreknow/dao/PatientcostsMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..e8ac4056cefea99499eba631cc51f31cbd36ef24
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/PatientcostsMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Patientcosts;
+
+public interface PatientcostsMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Patientcosts record);
+
+ int insertSelective(Patientcosts record);
+
+ Patientcosts selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Patientcosts record);
+
+ int updateByPrimaryKey(Patientcosts record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/PrescriptionMapper.java b/src/main/java/com/foreknow/dao/PrescriptionMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..96d9dca0a801bd83a994848e074a835d1d7cfedb
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/PrescriptionMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Prescription;
+
+public interface PrescriptionMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Prescription record);
+
+ int insertSelective(Prescription record);
+
+ Prescription selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Prescription record);
+
+ int updateByPrimaryKey(Prescription record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/PrescriptiondetailedMapper.java b/src/main/java/com/foreknow/dao/PrescriptiondetailedMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..57c002d5a8cafbfbc24ec9e2f1af79910bb9d834
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/PrescriptiondetailedMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Prescriptiondetailed;
+
+public interface PrescriptiondetailedMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Prescriptiondetailed record);
+
+ int insertSelective(Prescriptiondetailed record);
+
+ Prescriptiondetailed selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Prescriptiondetailed record);
+
+ int updateByPrimaryKey(Prescriptiondetailed record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/RegisterMapper.java b/src/main/java/com/foreknow/dao/RegisterMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..9ae17a3e83c0671d083fb9b2c6285499fea567e4
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/RegisterMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Register;
+
+public interface RegisterMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Register record);
+
+ int insertSelective(Register record);
+
+ Register selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Register record);
+
+ int updateByPrimaryKey(Register record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/RegistlevelMapper.java b/src/main/java/com/foreknow/dao/RegistlevelMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..7480afea23c8927b924402b0f4fa1bf26a60d1f7
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/RegistlevelMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Registlevel;
+
+public interface RegistlevelMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Registlevel record);
+
+ int insertSelective(Registlevel record);
+
+ Registlevel selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Registlevel record);
+
+ int updateByPrimaryKey(Registlevel record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/RegistworkMapper.java b/src/main/java/com/foreknow/dao/RegistworkMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..070eb419ffcd9065ec08746b9a5189a75e32a586
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/RegistworkMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Registwork;
+
+public interface RegistworkMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Registwork record);
+
+ int insertSelective(Registwork record);
+
+ Registwork selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Registwork record);
+
+ int updateByPrimaryKey(Registwork record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/RuleMapper.java b/src/main/java/com/foreknow/dao/RuleMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..4d779ce5a57e9df7692758b573378b50c8b7e820
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/RuleMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Rule;
+
+public interface RuleMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Rule record);
+
+ int insertSelective(Rule record);
+
+ Rule selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Rule record);
+
+ int updateByPrimaryKey(Rule record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/SchedulingMapper.java b/src/main/java/com/foreknow/dao/SchedulingMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..ae1a9f85ea3f970896bd2270ce940f9e35ae3a5e
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/SchedulingMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Scheduling;
+
+public interface SchedulingMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Scheduling record);
+
+ int insertSelective(Scheduling record);
+
+ Scheduling selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Scheduling record);
+
+ int updateByPrimaryKey(Scheduling record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/SettlecategoryMapper.java b/src/main/java/com/foreknow/dao/SettlecategoryMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..188543144237fb301d899f64005db69f6b648539
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/SettlecategoryMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Settlecategory;
+
+public interface SettlecategoryMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Settlecategory record);
+
+ int insertSelective(Settlecategory record);
+
+ Settlecategory selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Settlecategory record);
+
+ int updateByPrimaryKey(Settlecategory record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/dao/UserMapper.java b/src/main/java/com/foreknow/dao/UserMapper.java
new file mode 100644
index 0000000000000000000000000000000000000000..3446112d60c22594edf2ac767110422b901dfffe
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/UserMapper.java
@@ -0,0 +1,54 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.User;
+
+import java.util.List;
+
+public interface UserMapper {
+
+ /**
+ * 用户删除
+ * @param id
+ * @return
+ */
+ int deleteByPrimaryKey(Integer id);
+
+ /**
+ * 用户添加
+ * @param record
+ * @return
+ */
+ int insert(User record);
+
+ int insertSelective(User record);
+
+ /**
+ * 修改之前查询的用户
+ * @param id
+ * @return
+ */
+ User selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(User record);
+
+ /**
+ * 修改用户信息
+ * @param record
+ * @return
+ */
+ int updateByPrimaryKey(User record);
+
+ /**
+ * 用户登录
+ * @param username
+ * @param password
+ * @return
+ */
+ User Login(String username,String password);
+
+ /**
+ * 查询所有用户信息(分页显示)
+ * @return
+ */
+ List findUser(User user);
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Checkapply.java b/src/main/java/com/foreknow/entity/Checkapply.java
new file mode 100644
index 0000000000000000000000000000000000000000..ceef12d5b0a80d10b618f715e0442be9097148d3
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Checkapply.java
@@ -0,0 +1,185 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Checkapply {
+ private Integer id;
+
+ private Integer medicalid;
+
+ private Integer registid;
+
+ private Integer itemid;
+
+ private String name;
+
+ private String objective;
+
+ private String position;
+
+ private Integer isurgent;
+
+ private Integer num;
+
+ private Date creationtime;
+
+ private Integer doctorid;
+
+ private Integer checkoperid;
+
+ private Integer resultoperid;
+
+ private Date checktime;
+
+ private String result;
+
+ private Date resulttime;
+
+ private Integer state;
+
+ private Integer recordtype;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getMedicalid() {
+ return medicalid;
+ }
+
+ public void setMedicalid(Integer medicalid) {
+ this.medicalid = medicalid;
+ }
+
+ public Integer getRegistid() {
+ return registid;
+ }
+
+ public void setRegistid(Integer registid) {
+ this.registid = registid;
+ }
+
+ public Integer getItemid() {
+ return itemid;
+ }
+
+ public void setItemid(Integer itemid) {
+ this.itemid = itemid;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public String getObjective() {
+ return objective;
+ }
+
+ public void setObjective(String objective) {
+ this.objective = objective == null ? null : objective.trim();
+ }
+
+ public String getPosition() {
+ return position;
+ }
+
+ public void setPosition(String position) {
+ this.position = position == null ? null : position.trim();
+ }
+
+ public Integer getIsurgent() {
+ return isurgent;
+ }
+
+ public void setIsurgent(Integer isurgent) {
+ this.isurgent = isurgent;
+ }
+
+ public Integer getNum() {
+ return num;
+ }
+
+ public void setNum(Integer num) {
+ this.num = num;
+ }
+
+ public Date getCreationtime() {
+ return creationtime;
+ }
+
+ public void setCreationtime(Date creationtime) {
+ this.creationtime = creationtime;
+ }
+
+ public Integer getDoctorid() {
+ return doctorid;
+ }
+
+ public void setDoctorid(Integer doctorid) {
+ this.doctorid = doctorid;
+ }
+
+ public Integer getCheckoperid() {
+ return checkoperid;
+ }
+
+ public void setCheckoperid(Integer checkoperid) {
+ this.checkoperid = checkoperid;
+ }
+
+ public Integer getResultoperid() {
+ return resultoperid;
+ }
+
+ public void setResultoperid(Integer resultoperid) {
+ this.resultoperid = resultoperid;
+ }
+
+ public Date getChecktime() {
+ return checktime;
+ }
+
+ public void setChecktime(Date checktime) {
+ this.checktime = checktime;
+ }
+
+ public String getResult() {
+ return result;
+ }
+
+ public void setResult(String result) {
+ this.result = result == null ? null : result.trim();
+ }
+
+ public Date getResulttime() {
+ return resulttime;
+ }
+
+ public void setResulttime(Date resulttime) {
+ this.resulttime = resulttime;
+ }
+
+ public Integer getState() {
+ return state;
+ }
+
+ public void setState(Integer state) {
+ this.state = state;
+ }
+
+ public Integer getRecordtype() {
+ return recordtype;
+ }
+
+ public void setRecordtype(Integer recordtype) {
+ this.recordtype = recordtype;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Checkrelation.java b/src/main/java/com/foreknow/entity/Checkrelation.java
new file mode 100644
index 0000000000000000000000000000000000000000..fd90b3e5f4a4dccb3eca2eb94dc31bf27a27473a
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Checkrelation.java
@@ -0,0 +1,43 @@
+package com.foreknow.entity;
+
+public class Checkrelation {
+ private Integer id;
+
+ private Integer checkprojid;
+
+ private Integer checktempid;
+
+ private String position;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getCheckprojid() {
+ return checkprojid;
+ }
+
+ public void setCheckprojid(Integer checkprojid) {
+ this.checkprojid = checkprojid;
+ }
+
+ public Integer getChecktempid() {
+ return checktempid;
+ }
+
+ public void setChecktempid(Integer checktempid) {
+ this.checktempid = checktempid;
+ }
+
+ public String getPosition() {
+ return position;
+ }
+
+ public void setPosition(String position) {
+ this.position = position == null ? null : position.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Checktemplate.java b/src/main/java/com/foreknow/entity/Checktemplate.java
new file mode 100644
index 0000000000000000000000000000000000000000..a9ab02441a0d1f7b24220807eee7a3249ca9ad9d
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Checktemplate.java
@@ -0,0 +1,75 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Checktemplate {
+ private Integer id;
+
+ private String name;
+
+ private Integer userid;
+
+ private Date creationtime;
+
+ private String scope;
+
+ private Integer recordtype;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public Integer getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Integer userid) {
+ this.userid = userid;
+ }
+
+ public Date getCreationtime() {
+ return creationtime;
+ }
+
+ public void setCreationtime(Date creationtime) {
+ this.creationtime = creationtime;
+ }
+
+ public String getScope() {
+ return scope;
+ }
+
+ public void setScope(String scope) {
+ this.scope = scope == null ? null : scope.trim();
+ }
+
+ public Integer getRecordtype() {
+ return recordtype;
+ }
+
+ public void setRecordtype(Integer recordtype) {
+ this.recordtype = recordtype;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Constantitem.java b/src/main/java/com/foreknow/entity/Constantitem.java
new file mode 100644
index 0000000000000000000000000000000000000000..2cb4ac0d71178aca5f99484492d10b000065c13f
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Constantitem.java
@@ -0,0 +1,53 @@
+package com.foreknow.entity;
+
+public class Constantitem {
+ private Integer id;
+
+ private Integer constanttypeid;
+
+ private String constantcode;
+
+ private String constantname;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getConstanttypeid() {
+ return constanttypeid;
+ }
+
+ public void setConstanttypeid(Integer constanttypeid) {
+ this.constanttypeid = constanttypeid;
+ }
+
+ public String getConstantcode() {
+ return constantcode;
+ }
+
+ public void setConstantcode(String constantcode) {
+ this.constantcode = constantcode == null ? null : constantcode.trim();
+ }
+
+ public String getConstantname() {
+ return constantname;
+ }
+
+ public void setConstantname(String constantname) {
+ this.constantname = constantname == null ? null : constantname.trim();
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Constanttype.java b/src/main/java/com/foreknow/entity/Constanttype.java
new file mode 100644
index 0000000000000000000000000000000000000000..522de02d9fc6f22b14ea7891f3e55729954fd493
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Constanttype.java
@@ -0,0 +1,43 @@
+package com.foreknow.entity;
+
+public class Constanttype {
+ private Integer id;
+
+ private String constanttypecode;
+
+ private String constanttypename;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getConstanttypecode() {
+ return constanttypecode;
+ }
+
+ public void setConstanttypecode(String constanttypecode) {
+ this.constanttypecode = constanttypecode == null ? null : constanttypecode.trim();
+ }
+
+ public String getConstanttypename() {
+ return constanttypename;
+ }
+
+ public void setConstanttypename(String constanttypename) {
+ this.constanttypename = constanttypename == null ? null : constanttypename.trim();
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Department.java b/src/main/java/com/foreknow/entity/Department.java
new file mode 100644
index 0000000000000000000000000000000000000000..555a2d771c2adbdd0fc73034069f51c8bcaae2c3
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Department.java
@@ -0,0 +1,63 @@
+package com.foreknow.entity;
+
+public class Department {
+ private Integer id;
+
+ private String deptcode;
+
+ private String deptname;
+
+ private Integer deptcategoryid;
+
+ private Integer depttype;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getDeptcode() {
+ return deptcode;
+ }
+
+ public void setDeptcode(String deptcode) {
+ this.deptcode = deptcode == null ? null : deptcode.trim();
+ }
+
+ public String getDeptname() {
+ return deptname;
+ }
+
+ public void setDeptname(String deptname) {
+ this.deptname = deptname == null ? null : deptname.trim();
+ }
+
+ public Integer getDeptcategoryid() {
+ return deptcategoryid;
+ }
+
+ public void setDeptcategoryid(Integer deptcategoryid) {
+ this.deptcategoryid = deptcategoryid;
+ }
+
+ public Integer getDepttype() {
+ return depttype;
+ }
+
+ public void setDepttype(Integer depttype) {
+ this.depttype = depttype;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Disease.java b/src/main/java/com/foreknow/entity/Disease.java
new file mode 100644
index 0000000000000000000000000000000000000000..a288edd511c28c964670ecc9b903d4bfbf1a5288
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Disease.java
@@ -0,0 +1,63 @@
+package com.foreknow.entity;
+
+public class Disease {
+ private Integer id;
+
+ private String diseasecode;
+
+ private String diseasename;
+
+ private String diseaseicd;
+
+ private Integer disecategoryid;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getDiseasecode() {
+ return diseasecode;
+ }
+
+ public void setDiseasecode(String diseasecode) {
+ this.diseasecode = diseasecode == null ? null : diseasecode.trim();
+ }
+
+ public String getDiseasename() {
+ return diseasename;
+ }
+
+ public void setDiseasename(String diseasename) {
+ this.diseasename = diseasename == null ? null : diseasename.trim();
+ }
+
+ public String getDiseaseicd() {
+ return diseaseicd;
+ }
+
+ public void setDiseaseicd(String diseaseicd) {
+ this.diseaseicd = diseaseicd == null ? null : diseaseicd.trim();
+ }
+
+ public Integer getDisecategoryid() {
+ return disecategoryid;
+ }
+
+ public void setDisecategoryid(Integer disecategoryid) {
+ this.disecategoryid = disecategoryid;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Disecategory.java b/src/main/java/com/foreknow/entity/Disecategory.java
new file mode 100644
index 0000000000000000000000000000000000000000..d1d9c22726c9f4ead1b081a89db2638f35c510dc
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Disecategory.java
@@ -0,0 +1,63 @@
+package com.foreknow.entity;
+
+public class Disecategory {
+ private Integer id;
+
+ private String dicacode;
+
+ private String dicaname;
+
+ private Integer sequenceno;
+
+ private Integer dicatype;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getDicacode() {
+ return dicacode;
+ }
+
+ public void setDicacode(String dicacode) {
+ this.dicacode = dicacode == null ? null : dicacode.trim();
+ }
+
+ public String getDicaname() {
+ return dicaname;
+ }
+
+ public void setDicaname(String dicaname) {
+ this.dicaname = dicaname == null ? null : dicaname.trim();
+ }
+
+ public Integer getSequenceno() {
+ return sequenceno;
+ }
+
+ public void setSequenceno(Integer sequenceno) {
+ this.sequenceno = sequenceno;
+ }
+
+ public Integer getDicatype() {
+ return dicatype;
+ }
+
+ public void setDicatype(Integer dicatype) {
+ this.dicatype = dicatype;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Drugs.java b/src/main/java/com/foreknow/entity/Drugs.java
new file mode 100644
index 0000000000000000000000000000000000000000..174b62d76237ef7eea308b9508e09846ee2a3f99
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Drugs.java
@@ -0,0 +1,136 @@
+package com.foreknow.entity;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class Drugs {
+ private Integer id;
+
+ private String drugscode;
+
+ private String drugsname;
+
+ private String drugsformat;
+
+ private String drugsunit;
+
+ private String manufacturer;
+
+ private Integer drugsdosageid;
+
+ private Integer drugstypeid;
+
+ private BigDecimal drugsprice;
+
+ private String mnemoniccode;
+
+ private Date creationdate;
+
+ private Date lastupdatedate;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getDrugscode() {
+ return drugscode;
+ }
+
+ public void setDrugscode(String drugscode) {
+ this.drugscode = drugscode == null ? null : drugscode.trim();
+ }
+
+ public String getDrugsname() {
+ return drugsname;
+ }
+
+ public void setDrugsname(String drugsname) {
+ this.drugsname = drugsname == null ? null : drugsname.trim();
+ }
+
+ public String getDrugsformat() {
+ return drugsformat;
+ }
+
+ public void setDrugsformat(String drugsformat) {
+ this.drugsformat = drugsformat == null ? null : drugsformat.trim();
+ }
+
+ public String getDrugsunit() {
+ return drugsunit;
+ }
+
+ public void setDrugsunit(String drugsunit) {
+ this.drugsunit = drugsunit == null ? null : drugsunit.trim();
+ }
+
+ public String getManufacturer() {
+ return manufacturer;
+ }
+
+ public void setManufacturer(String manufacturer) {
+ this.manufacturer = manufacturer == null ? null : manufacturer.trim();
+ }
+
+ public Integer getDrugsdosageid() {
+ return drugsdosageid;
+ }
+
+ public void setDrugsdosageid(Integer drugsdosageid) {
+ this.drugsdosageid = drugsdosageid;
+ }
+
+ public Integer getDrugstypeid() {
+ return drugstypeid;
+ }
+
+ public void setDrugstypeid(Integer drugstypeid) {
+ this.drugstypeid = drugstypeid;
+ }
+
+ public BigDecimal getDrugsprice() {
+ return drugsprice;
+ }
+
+ public void setDrugsprice(BigDecimal drugsprice) {
+ this.drugsprice = drugsprice;
+ }
+
+ public String getMnemoniccode() {
+ return mnemoniccode;
+ }
+
+ public void setMnemoniccode(String mnemoniccode) {
+ this.mnemoniccode = mnemoniccode == null ? null : mnemoniccode.trim();
+ }
+
+ public Date getCreationdate() {
+ return creationdate;
+ }
+
+ public void setCreationdate(Date creationdate) {
+ this.creationdate = creationdate;
+ }
+
+ public Date getLastupdatedate() {
+ return lastupdatedate;
+ }
+
+ public void setLastupdatedate(Date lastupdatedate) {
+ this.lastupdatedate = lastupdatedate;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Drugsdetailed.java b/src/main/java/com/foreknow/entity/Drugsdetailed.java
new file mode 100644
index 0000000000000000000000000000000000000000..6e0c6f2c4e5126b7a47c0993980e51c7f7e08fef
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Drugsdetailed.java
@@ -0,0 +1,63 @@
+package com.foreknow.entity;
+
+public class Drugsdetailed {
+ private Integer id;
+
+ private Integer drugstempid;
+
+ private Integer drugsid;
+
+ private String drugsusage;
+
+ private String dosage;
+
+ private String frequency;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getDrugstempid() {
+ return drugstempid;
+ }
+
+ public void setDrugstempid(Integer drugstempid) {
+ this.drugstempid = drugstempid;
+ }
+
+ public Integer getDrugsid() {
+ return drugsid;
+ }
+
+ public void setDrugsid(Integer drugsid) {
+ this.drugsid = drugsid;
+ }
+
+ public String getDrugsusage() {
+ return drugsusage;
+ }
+
+ public void setDrugsusage(String drugsusage) {
+ this.drugsusage = drugsusage == null ? null : drugsusage.trim();
+ }
+
+ public String getDosage() {
+ return dosage;
+ }
+
+ public void setDosage(String dosage) {
+ this.dosage = dosage == null ? null : dosage.trim();
+ }
+
+ public String getFrequency() {
+ return frequency;
+ }
+
+ public void setFrequency(String frequency) {
+ this.frequency = frequency == null ? null : frequency.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Drugstemplate.java b/src/main/java/com/foreknow/entity/Drugstemplate.java
new file mode 100644
index 0000000000000000000000000000000000000000..698e27525f61ec743d841754c9c3504572429e20
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Drugstemplate.java
@@ -0,0 +1,65 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Drugstemplate {
+ private Integer id;
+
+ private String name;
+
+ private Integer userid;
+
+ private Date creationtime;
+
+ private String scope;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public Integer getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Integer userid) {
+ this.userid = userid;
+ }
+
+ public Date getCreationtime() {
+ return creationtime;
+ }
+
+ public void setCreationtime(Date creationtime) {
+ this.creationtime = creationtime;
+ }
+
+ public String getScope() {
+ return scope;
+ }
+
+ public void setScope(String scope) {
+ this.scope = scope == null ? null : scope.trim();
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Expenseclass.java b/src/main/java/com/foreknow/entity/Expenseclass.java
new file mode 100644
index 0000000000000000000000000000000000000000..07d319523040e432d357a138ac6c166db155eb7b
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Expenseclass.java
@@ -0,0 +1,43 @@
+package com.foreknow.entity;
+
+public class Expenseclass {
+ private Integer id;
+
+ private String expcode;
+
+ private String expname;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getExpcode() {
+ return expcode;
+ }
+
+ public void setExpcode(String expcode) {
+ this.expcode = expcode == null ? null : expcode.trim();
+ }
+
+ public String getExpname() {
+ return expname;
+ }
+
+ public void setExpname(String expname) {
+ this.expname = expname == null ? null : expname.trim();
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Fmeditem.java b/src/main/java/com/foreknow/entity/Fmeditem.java
new file mode 100644
index 0000000000000000000000000000000000000000..1f27360292008cf6b2d949b3959f8d7e8903bb6e
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Fmeditem.java
@@ -0,0 +1,126 @@
+package com.foreknow.entity;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class Fmeditem {
+ private Integer id;
+
+ private String itemcode;
+
+ private String itemname;
+
+ private String format;
+
+ private BigDecimal price;
+
+ private Integer expclassid;
+
+ private Integer deptid;
+
+ private String mnemoniccode;
+
+ private Date creationdate;
+
+ private Date lastupdatedate;
+
+ private Integer recordtype;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getItemcode() {
+ return itemcode;
+ }
+
+ public void setItemcode(String itemcode) {
+ this.itemcode = itemcode == null ? null : itemcode.trim();
+ }
+
+ public String getItemname() {
+ return itemname;
+ }
+
+ public void setItemname(String itemname) {
+ this.itemname = itemname == null ? null : itemname.trim();
+ }
+
+ public String getFormat() {
+ return format;
+ }
+
+ public void setFormat(String format) {
+ this.format = format == null ? null : format.trim();
+ }
+
+ public BigDecimal getPrice() {
+ return price;
+ }
+
+ public void setPrice(BigDecimal price) {
+ this.price = price;
+ }
+
+ public Integer getExpclassid() {
+ return expclassid;
+ }
+
+ public void setExpclassid(Integer expclassid) {
+ this.expclassid = expclassid;
+ }
+
+ public Integer getDeptid() {
+ return deptid;
+ }
+
+ public void setDeptid(Integer deptid) {
+ this.deptid = deptid;
+ }
+
+ public String getMnemoniccode() {
+ return mnemoniccode;
+ }
+
+ public void setMnemoniccode(String mnemoniccode) {
+ this.mnemoniccode = mnemoniccode == null ? null : mnemoniccode.trim();
+ }
+
+ public Date getCreationdate() {
+ return creationdate;
+ }
+
+ public void setCreationdate(Date creationdate) {
+ this.creationdate = creationdate;
+ }
+
+ public Date getLastupdatedate() {
+ return lastupdatedate;
+ }
+
+ public void setLastupdatedate(Date lastupdatedate) {
+ this.lastupdatedate = lastupdatedate;
+ }
+
+ public Integer getRecordtype() {
+ return recordtype;
+ }
+
+ public void setRecordtype(Integer recordtype) {
+ this.recordtype = recordtype;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Herbaldetailed.java b/src/main/java/com/foreknow/entity/Herbaldetailed.java
new file mode 100644
index 0000000000000000000000000000000000000000..4ef03f90805baeced47d22a0c45b7c83164f51f5
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Herbaldetailed.java
@@ -0,0 +1,65 @@
+package com.foreknow.entity;
+
+import java.math.BigDecimal;
+
+public class Herbaldetailed {
+ private Integer id;
+
+ private Integer herbalpresid;
+
+ private Integer herbalid;
+
+ private String dosage;
+
+ private BigDecimal price;
+
+ private String footnote;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getHerbalpresid() {
+ return herbalpresid;
+ }
+
+ public void setHerbalpresid(Integer herbalpresid) {
+ this.herbalpresid = herbalpresid;
+ }
+
+ public Integer getHerbalid() {
+ return herbalid;
+ }
+
+ public void setHerbalid(Integer herbalid) {
+ this.herbalid = herbalid;
+ }
+
+ public String getDosage() {
+ return dosage;
+ }
+
+ public void setDosage(String dosage) {
+ this.dosage = dosage == null ? null : dosage.trim();
+ }
+
+ public BigDecimal getPrice() {
+ return price;
+ }
+
+ public void setPrice(BigDecimal price) {
+ this.price = price;
+ }
+
+ public String getFootnote() {
+ return footnote;
+ }
+
+ public void setFootnote(String footnote) {
+ this.footnote = footnote == null ? null : footnote.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Herbalprescription.java b/src/main/java/com/foreknow/entity/Herbalprescription.java
new file mode 100644
index 0000000000000000000000000000000000000000..3fb3c11af44ee6c608c9c70a3f5b335c94fb1f1f
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Herbalprescription.java
@@ -0,0 +1,145 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Herbalprescription {
+ private Integer id;
+
+ private Integer medicalid;
+
+ private Integer registid;
+
+ private Integer userid;
+
+ private String prescriptionname;
+
+ private Date creationtime;
+
+ private String prescriptiotype;
+
+ private Integer paynumber;
+
+ private String frequency;
+
+ private String drugsusage;
+
+ private String therapy;
+
+ private String detailed;
+
+ private String advice;
+
+ private Integer state;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getMedicalid() {
+ return medicalid;
+ }
+
+ public void setMedicalid(Integer medicalid) {
+ this.medicalid = medicalid;
+ }
+
+ public Integer getRegistid() {
+ return registid;
+ }
+
+ public void setRegistid(Integer registid) {
+ this.registid = registid;
+ }
+
+ public Integer getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Integer userid) {
+ this.userid = userid;
+ }
+
+ public String getPrescriptionname() {
+ return prescriptionname;
+ }
+
+ public void setPrescriptionname(String prescriptionname) {
+ this.prescriptionname = prescriptionname == null ? null : prescriptionname.trim();
+ }
+
+ public Date getCreationtime() {
+ return creationtime;
+ }
+
+ public void setCreationtime(Date creationtime) {
+ this.creationtime = creationtime;
+ }
+
+ public String getPrescriptiotype() {
+ return prescriptiotype;
+ }
+
+ public void setPrescriptiotype(String prescriptiotype) {
+ this.prescriptiotype = prescriptiotype == null ? null : prescriptiotype.trim();
+ }
+
+ public Integer getPaynumber() {
+ return paynumber;
+ }
+
+ public void setPaynumber(Integer paynumber) {
+ this.paynumber = paynumber;
+ }
+
+ public String getFrequency() {
+ return frequency;
+ }
+
+ public void setFrequency(String frequency) {
+ this.frequency = frequency == null ? null : frequency.trim();
+ }
+
+ public String getDrugsusage() {
+ return drugsusage;
+ }
+
+ public void setDrugsusage(String drugsusage) {
+ this.drugsusage = drugsusage == null ? null : drugsusage.trim();
+ }
+
+ public String getTherapy() {
+ return therapy;
+ }
+
+ public void setTherapy(String therapy) {
+ this.therapy = therapy == null ? null : therapy.trim();
+ }
+
+ public String getDetailed() {
+ return detailed;
+ }
+
+ public void setDetailed(String detailed) {
+ this.detailed = detailed == null ? null : detailed.trim();
+ }
+
+ public String getAdvice() {
+ return advice;
+ }
+
+ public void setAdvice(String advice) {
+ this.advice = advice == null ? null : advice.trim();
+ }
+
+ public Integer getState() {
+ return state;
+ }
+
+ public void setState(Integer state) {
+ this.state = state;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Herbaltempdetailed.java b/src/main/java/com/foreknow/entity/Herbaltempdetailed.java
new file mode 100644
index 0000000000000000000000000000000000000000..f12173db082e39a2622d2ddc2b63f7d6f98d8fa4
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Herbaltempdetailed.java
@@ -0,0 +1,63 @@
+package com.foreknow.entity;
+
+public class Herbaltempdetailed {
+ private Integer id;
+
+ private Integer herbaltempid;
+
+ private Integer herbalid;
+
+ private String dosage;
+
+ private String unit;
+
+ private String footnote;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getHerbaltempid() {
+ return herbaltempid;
+ }
+
+ public void setHerbaltempid(Integer herbaltempid) {
+ this.herbaltempid = herbaltempid;
+ }
+
+ public Integer getHerbalid() {
+ return herbalid;
+ }
+
+ public void setHerbalid(Integer herbalid) {
+ this.herbalid = herbalid;
+ }
+
+ public String getDosage() {
+ return dosage;
+ }
+
+ public void setDosage(String dosage) {
+ this.dosage = dosage == null ? null : dosage.trim();
+ }
+
+ public String getUnit() {
+ return unit;
+ }
+
+ public void setUnit(String unit) {
+ this.unit = unit == null ? null : unit.trim();
+ }
+
+ public String getFootnote() {
+ return footnote;
+ }
+
+ public void setFootnote(String footnote) {
+ this.footnote = footnote == null ? null : footnote.trim();
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Herbaltemplate.java b/src/main/java/com/foreknow/entity/Herbaltemplate.java
new file mode 100644
index 0000000000000000000000000000000000000000..e3dd7fa34df1418c7952b3e2bcddf37513e81b5c
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Herbaltemplate.java
@@ -0,0 +1,125 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Herbaltemplate {
+ private Integer id;
+
+ private String name;
+
+ private Integer doctorid;
+
+ private Date creationtime;
+
+ private String prescriptiotype;
+
+ private Integer paynumber;
+
+ private String drugsusage;
+
+ private String therapy;
+
+ private String detailed;
+
+ private String advice;
+
+ private String scope;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public Integer getDoctorid() {
+ return doctorid;
+ }
+
+ public void setDoctorid(Integer doctorid) {
+ this.doctorid = doctorid;
+ }
+
+ public Date getCreationtime() {
+ return creationtime;
+ }
+
+ public void setCreationtime(Date creationtime) {
+ this.creationtime = creationtime;
+ }
+
+ public String getPrescriptiotype() {
+ return prescriptiotype;
+ }
+
+ public void setPrescriptiotype(String prescriptiotype) {
+ this.prescriptiotype = prescriptiotype == null ? null : prescriptiotype.trim();
+ }
+
+ public Integer getPaynumber() {
+ return paynumber;
+ }
+
+ public void setPaynumber(Integer paynumber) {
+ this.paynumber = paynumber;
+ }
+
+ public String getDrugsusage() {
+ return drugsusage;
+ }
+
+ public void setDrugsusage(String drugsusage) {
+ this.drugsusage = drugsusage == null ? null : drugsusage.trim();
+ }
+
+ public String getTherapy() {
+ return therapy;
+ }
+
+ public void setTherapy(String therapy) {
+ this.therapy = therapy == null ? null : therapy.trim();
+ }
+
+ public String getDetailed() {
+ return detailed;
+ }
+
+ public void setDetailed(String detailed) {
+ this.detailed = detailed == null ? null : detailed.trim();
+ }
+
+ public String getAdvice() {
+ return advice;
+ }
+
+ public void setAdvice(String advice) {
+ this.advice = advice == null ? null : advice.trim();
+ }
+
+ public String getScope() {
+ return scope;
+ }
+
+ public void setScope(String scope) {
+ this.scope = scope == null ? null : scope.trim();
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Invoice.java b/src/main/java/com/foreknow/entity/Invoice.java
new file mode 100644
index 0000000000000000000000000000000000000000..b71a2c1f43ec6875687e35a03ecdacdd240fc3a0
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Invoice.java
@@ -0,0 +1,106 @@
+package com.foreknow.entity;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class Invoice {
+ private Integer id;
+
+ private String invoicenum;
+
+ private BigDecimal money;
+
+ private Integer state;
+
+ private Date creationtime;
+
+ private Integer userid;
+
+ private Integer registid;
+
+ private Integer feetype;
+
+ private String back;
+
+ private Integer dailystate;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getInvoicenum() {
+ return invoicenum;
+ }
+
+ public void setInvoicenum(String invoicenum) {
+ this.invoicenum = invoicenum == null ? null : invoicenum.trim();
+ }
+
+ public BigDecimal getMoney() {
+ return money;
+ }
+
+ public void setMoney(BigDecimal money) {
+ this.money = money;
+ }
+
+ public Integer getState() {
+ return state;
+ }
+
+ public void setState(Integer state) {
+ this.state = state;
+ }
+
+ public Date getCreationtime() {
+ return creationtime;
+ }
+
+ public void setCreationtime(Date creationtime) {
+ this.creationtime = creationtime;
+ }
+
+ public Integer getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Integer userid) {
+ this.userid = userid;
+ }
+
+ public Integer getRegistid() {
+ return registid;
+ }
+
+ public void setRegistid(Integer registid) {
+ this.registid = registid;
+ }
+
+ public Integer getFeetype() {
+ return feetype;
+ }
+
+ public void setFeetype(Integer feetype) {
+ this.feetype = feetype;
+ }
+
+ public String getBack() {
+ return back;
+ }
+
+ public void setBack(String back) {
+ this.back = back == null ? null : back.trim();
+ }
+
+ public Integer getDailystate() {
+ return dailystate;
+ }
+
+ public void setDailystate(Integer dailystate) {
+ this.dailystate = dailystate;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Medicaldisease.java b/src/main/java/com/foreknow/entity/Medicaldisease.java
new file mode 100644
index 0000000000000000000000000000000000000000..aa84a443fea3ffc2b2e434317e74be9a67ebb099
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Medicaldisease.java
@@ -0,0 +1,75 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Medicaldisease {
+ private Integer id;
+
+ private Integer medicalid;
+
+ private Integer registid;
+
+ private Integer diseaseid;
+
+ private Integer diagnosetype;
+
+ private Date getsiskdate;
+
+ private Integer diagnosecate;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getMedicalid() {
+ return medicalid;
+ }
+
+ public void setMedicalid(Integer medicalid) {
+ this.medicalid = medicalid;
+ }
+
+ public Integer getRegistid() {
+ return registid;
+ }
+
+ public void setRegistid(Integer registid) {
+ this.registid = registid;
+ }
+
+ public Integer getDiseaseid() {
+ return diseaseid;
+ }
+
+ public void setDiseaseid(Integer diseaseid) {
+ this.diseaseid = diseaseid;
+ }
+
+ public Integer getDiagnosetype() {
+ return diagnosetype;
+ }
+
+ public void setDiagnosetype(Integer diagnosetype) {
+ this.diagnosetype = diagnosetype;
+ }
+
+ public Date getGetsiskdate() {
+ return getsiskdate;
+ }
+
+ public void setGetsiskdate(Date getsiskdate) {
+ this.getsiskdate = getsiskdate;
+ }
+
+ public Integer getDiagnosecate() {
+ return diagnosecate;
+ }
+
+ public void setDiagnosecate(Integer diagnosecate) {
+ this.diagnosecate = diagnosecate;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Medicalrecord.java b/src/main/java/com/foreknow/entity/Medicalrecord.java
new file mode 100644
index 0000000000000000000000000000000000000000..97b6386a4cfaf67dc58571dc9951b096cdf4a08d
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Medicalrecord.java
@@ -0,0 +1,153 @@
+package com.foreknow.entity;
+
+public class Medicalrecord {
+ private Integer id;
+
+ private String casenumber;
+
+ private Integer registid;
+
+ private String readme;
+
+ private String present;
+
+ private String presenttreat;
+
+ private String history;
+
+ private String allergy;
+
+ private String physique;
+
+ private String proposal;
+
+ private String careful;
+
+ private String checkresult;
+
+ private String diagnosis;
+
+ private String handling;
+
+ private Integer casestate;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getCasenumber() {
+ return casenumber;
+ }
+
+ public void setCasenumber(String casenumber) {
+ this.casenumber = casenumber == null ? null : casenumber.trim();
+ }
+
+ public Integer getRegistid() {
+ return registid;
+ }
+
+ public void setRegistid(Integer registid) {
+ this.registid = registid;
+ }
+
+ public String getReadme() {
+ return readme;
+ }
+
+ public void setReadme(String readme) {
+ this.readme = readme == null ? null : readme.trim();
+ }
+
+ public String getPresent() {
+ return present;
+ }
+
+ public void setPresent(String present) {
+ this.present = present == null ? null : present.trim();
+ }
+
+ public String getPresenttreat() {
+ return presenttreat;
+ }
+
+ public void setPresenttreat(String presenttreat) {
+ this.presenttreat = presenttreat == null ? null : presenttreat.trim();
+ }
+
+ public String getHistory() {
+ return history;
+ }
+
+ public void setHistory(String history) {
+ this.history = history == null ? null : history.trim();
+ }
+
+ public String getAllergy() {
+ return allergy;
+ }
+
+ public void setAllergy(String allergy) {
+ this.allergy = allergy == null ? null : allergy.trim();
+ }
+
+ public String getPhysique() {
+ return physique;
+ }
+
+ public void setPhysique(String physique) {
+ this.physique = physique == null ? null : physique.trim();
+ }
+
+ public String getProposal() {
+ return proposal;
+ }
+
+ public void setProposal(String proposal) {
+ this.proposal = proposal == null ? null : proposal.trim();
+ }
+
+ public String getCareful() {
+ return careful;
+ }
+
+ public void setCareful(String careful) {
+ this.careful = careful == null ? null : careful.trim();
+ }
+
+ public String getCheckresult() {
+ return checkresult;
+ }
+
+ public void setCheckresult(String checkresult) {
+ this.checkresult = checkresult == null ? null : checkresult.trim();
+ }
+
+ public String getDiagnosis() {
+ return diagnosis;
+ }
+
+ public void setDiagnosis(String diagnosis) {
+ this.diagnosis = diagnosis == null ? null : diagnosis.trim();
+ }
+
+ public String getHandling() {
+ return handling;
+ }
+
+ public void setHandling(String handling) {
+ this.handling = handling == null ? null : handling.trim();
+ }
+
+ public Integer getCasestate() {
+ return casestate;
+ }
+
+ public void setCasestate(Integer casestate) {
+ this.casestate = casestate;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Patientcosts.java b/src/main/java/com/foreknow/entity/Patientcosts.java
new file mode 100644
index 0000000000000000000000000000000000000000..850c63668fc119d36383b2805a205aef42949784
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Patientcosts.java
@@ -0,0 +1,156 @@
+package com.foreknow.entity;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class Patientcosts {
+ private Integer id;
+
+ private Integer registid;
+
+ private Integer invoiceid;
+
+ private Integer itemid;
+
+ private Integer itemtype;
+
+ private String name;
+
+ private BigDecimal price;
+
+ private BigDecimal amount;
+
+ private Integer deptid;
+
+ private Date createtime;
+
+ private Integer createoperid;
+
+ private Date paytime;
+
+ private Integer registerid;
+
+ private Integer feetype;
+
+ private Integer backid;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getRegistid() {
+ return registid;
+ }
+
+ public void setRegistid(Integer registid) {
+ this.registid = registid;
+ }
+
+ public Integer getInvoiceid() {
+ return invoiceid;
+ }
+
+ public void setInvoiceid(Integer invoiceid) {
+ this.invoiceid = invoiceid;
+ }
+
+ public Integer getItemid() {
+ return itemid;
+ }
+
+ public void setItemid(Integer itemid) {
+ this.itemid = itemid;
+ }
+
+ public Integer getItemtype() {
+ return itemtype;
+ }
+
+ public void setItemtype(Integer itemtype) {
+ this.itemtype = itemtype;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name == null ? null : name.trim();
+ }
+
+ public BigDecimal getPrice() {
+ return price;
+ }
+
+ public void setPrice(BigDecimal price) {
+ this.price = price;
+ }
+
+ public BigDecimal getAmount() {
+ return amount;
+ }
+
+ public void setAmount(BigDecimal amount) {
+ this.amount = amount;
+ }
+
+ public Integer getDeptid() {
+ return deptid;
+ }
+
+ public void setDeptid(Integer deptid) {
+ this.deptid = deptid;
+ }
+
+ public Date getCreatetime() {
+ return createtime;
+ }
+
+ public void setCreatetime(Date createtime) {
+ this.createtime = createtime;
+ }
+
+ public Integer getCreateoperid() {
+ return createoperid;
+ }
+
+ public void setCreateoperid(Integer createoperid) {
+ this.createoperid = createoperid;
+ }
+
+ public Date getPaytime() {
+ return paytime;
+ }
+
+ public void setPaytime(Date paytime) {
+ this.paytime = paytime;
+ }
+
+ public Integer getRegisterid() {
+ return registerid;
+ }
+
+ public void setRegisterid(Integer registerid) {
+ this.registerid = registerid;
+ }
+
+ public Integer getFeetype() {
+ return feetype;
+ }
+
+ public void setFeetype(Integer feetype) {
+ this.feetype = feetype;
+ }
+
+ public Integer getBackid() {
+ return backid;
+ }
+
+ public void setBackid(Integer backid) {
+ this.backid = backid;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Prescription.java b/src/main/java/com/foreknow/entity/Prescription.java
new file mode 100644
index 0000000000000000000000000000000000000000..88f12e42c174157772fff631d940686bf4d0d849
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Prescription.java
@@ -0,0 +1,75 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Prescription {
+ private Integer id;
+
+ private Integer medicalid;
+
+ private Integer registid;
+
+ private Integer userid;
+
+ private String prescriptionname;
+
+ private Date prescriptiontime;
+
+ private Integer prescriptionstate;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getMedicalid() {
+ return medicalid;
+ }
+
+ public void setMedicalid(Integer medicalid) {
+ this.medicalid = medicalid;
+ }
+
+ public Integer getRegistid() {
+ return registid;
+ }
+
+ public void setRegistid(Integer registid) {
+ this.registid = registid;
+ }
+
+ public Integer getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Integer userid) {
+ this.userid = userid;
+ }
+
+ public String getPrescriptionname() {
+ return prescriptionname;
+ }
+
+ public void setPrescriptionname(String prescriptionname) {
+ this.prescriptionname = prescriptionname == null ? null : prescriptionname.trim();
+ }
+
+ public Date getPrescriptiontime() {
+ return prescriptiontime;
+ }
+
+ public void setPrescriptiontime(Date prescriptiontime) {
+ this.prescriptiontime = prescriptiontime;
+ }
+
+ public Integer getPrescriptionstate() {
+ return prescriptionstate;
+ }
+
+ public void setPrescriptionstate(Integer prescriptionstate) {
+ this.prescriptionstate = prescriptionstate;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Prescriptiondetailed.java b/src/main/java/com/foreknow/entity/Prescriptiondetailed.java
new file mode 100644
index 0000000000000000000000000000000000000000..411c7fdf156f2f8a3f7025385f79b40098455624
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Prescriptiondetailed.java
@@ -0,0 +1,85 @@
+package com.foreknow.entity;
+
+import java.math.BigDecimal;
+
+public class Prescriptiondetailed {
+ private Integer id;
+
+ private Integer prescriptionid;
+
+ private Integer drugsid;
+
+ private String drugsusage;
+
+ private String dosage;
+
+ private String frequency;
+
+ private BigDecimal amount;
+
+ private Integer state;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getPrescriptionid() {
+ return prescriptionid;
+ }
+
+ public void setPrescriptionid(Integer prescriptionid) {
+ this.prescriptionid = prescriptionid;
+ }
+
+ public Integer getDrugsid() {
+ return drugsid;
+ }
+
+ public void setDrugsid(Integer drugsid) {
+ this.drugsid = drugsid;
+ }
+
+ public String getDrugsusage() {
+ return drugsusage;
+ }
+
+ public void setDrugsusage(String drugsusage) {
+ this.drugsusage = drugsusage == null ? null : drugsusage.trim();
+ }
+
+ public String getDosage() {
+ return dosage;
+ }
+
+ public void setDosage(String dosage) {
+ this.dosage = dosage == null ? null : dosage.trim();
+ }
+
+ public String getFrequency() {
+ return frequency;
+ }
+
+ public void setFrequency(String frequency) {
+ this.frequency = frequency == null ? null : frequency.trim();
+ }
+
+ public BigDecimal getAmount() {
+ return amount;
+ }
+
+ public void setAmount(BigDecimal amount) {
+ this.amount = amount;
+ }
+
+ public Integer getState() {
+ return state;
+ }
+
+ public void setState(Integer state) {
+ this.state = state;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Register.java b/src/main/java/com/foreknow/entity/Register.java
new file mode 100644
index 0000000000000000000000000000000000000000..a6a550987be11b1705af8626539ea1f1527227bd
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Register.java
@@ -0,0 +1,195 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Register {
+ private Integer id;
+
+ private String casenumber;
+
+ private String realname;
+
+ private Integer gender;
+
+ private String idnumber;
+
+ private Date birthdate;
+
+ private Integer age;
+
+ private String agetype;
+
+ private String homeaddress;
+
+ private Date visitdate;
+
+ private String noon;
+
+ private Integer deptid;
+
+ private Integer userid;
+
+ private Integer registleid;
+
+ private Integer settleid;
+
+ private String isbook;
+
+ private Date registtime;
+
+ private Integer registerid;
+
+ private Integer visitstate;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getCasenumber() {
+ return casenumber;
+ }
+
+ public void setCasenumber(String casenumber) {
+ this.casenumber = casenumber == null ? null : casenumber.trim();
+ }
+
+ public String getRealname() {
+ return realname;
+ }
+
+ public void setRealname(String realname) {
+ this.realname = realname == null ? null : realname.trim();
+ }
+
+ public Integer getGender() {
+ return gender;
+ }
+
+ public void setGender(Integer gender) {
+ this.gender = gender;
+ }
+
+ public String getIdnumber() {
+ return idnumber;
+ }
+
+ public void setIdnumber(String idnumber) {
+ this.idnumber = idnumber == null ? null : idnumber.trim();
+ }
+
+ public Date getBirthdate() {
+ return birthdate;
+ }
+
+ public void setBirthdate(Date birthdate) {
+ this.birthdate = birthdate;
+ }
+
+ public Integer getAge() {
+ return age;
+ }
+
+ public void setAge(Integer age) {
+ this.age = age;
+ }
+
+ public String getAgetype() {
+ return agetype;
+ }
+
+ public void setAgetype(String agetype) {
+ this.agetype = agetype == null ? null : agetype.trim();
+ }
+
+ public String getHomeaddress() {
+ return homeaddress;
+ }
+
+ public void setHomeaddress(String homeaddress) {
+ this.homeaddress = homeaddress == null ? null : homeaddress.trim();
+ }
+
+ public Date getVisitdate() {
+ return visitdate;
+ }
+
+ public void setVisitdate(Date visitdate) {
+ this.visitdate = visitdate;
+ }
+
+ public String getNoon() {
+ return noon;
+ }
+
+ public void setNoon(String noon) {
+ this.noon = noon == null ? null : noon.trim();
+ }
+
+ public Integer getDeptid() {
+ return deptid;
+ }
+
+ public void setDeptid(Integer deptid) {
+ this.deptid = deptid;
+ }
+
+ public Integer getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Integer userid) {
+ this.userid = userid;
+ }
+
+ public Integer getRegistleid() {
+ return registleid;
+ }
+
+ public void setRegistleid(Integer registleid) {
+ this.registleid = registleid;
+ }
+
+ public Integer getSettleid() {
+ return settleid;
+ }
+
+ public void setSettleid(Integer settleid) {
+ this.settleid = settleid;
+ }
+
+ public String getIsbook() {
+ return isbook;
+ }
+
+ public void setIsbook(String isbook) {
+ this.isbook = isbook == null ? null : isbook.trim();
+ }
+
+ public Date getRegisttime() {
+ return registtime;
+ }
+
+ public void setRegisttime(Date registtime) {
+ this.registtime = registtime;
+ }
+
+ public Integer getRegisterid() {
+ return registerid;
+ }
+
+ public void setRegisterid(Integer registerid) {
+ this.registerid = registerid;
+ }
+
+ public Integer getVisitstate() {
+ return visitstate;
+ }
+
+ public void setVisitstate(Integer visitstate) {
+ this.visitstate = visitstate;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Registlevel.java b/src/main/java/com/foreknow/entity/Registlevel.java
new file mode 100644
index 0000000000000000000000000000000000000000..45ef2c6d0a5c202bf1db3c2dd50705b40e8ea343
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Registlevel.java
@@ -0,0 +1,75 @@
+package com.foreknow.entity;
+
+import java.math.BigDecimal;
+
+public class Registlevel {
+ private Integer id;
+
+ private String registcode;
+
+ private String registname;
+
+ private Integer sequenceno;
+
+ private BigDecimal registfee;
+
+ private Integer registquota;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getRegistcode() {
+ return registcode;
+ }
+
+ public void setRegistcode(String registcode) {
+ this.registcode = registcode == null ? null : registcode.trim();
+ }
+
+ public String getRegistname() {
+ return registname;
+ }
+
+ public void setRegistname(String registname) {
+ this.registname = registname == null ? null : registname.trim();
+ }
+
+ public Integer getSequenceno() {
+ return sequenceno;
+ }
+
+ public void setSequenceno(Integer sequenceno) {
+ this.sequenceno = sequenceno;
+ }
+
+ public BigDecimal getRegistfee() {
+ return registfee;
+ }
+
+ public void setRegistfee(BigDecimal registfee) {
+ this.registfee = registfee;
+ }
+
+ public Integer getRegistquota() {
+ return registquota;
+ }
+
+ public void setRegistquota(Integer registquota) {
+ this.registquota = registquota;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Registwork.java b/src/main/java/com/foreknow/entity/Registwork.java
new file mode 100644
index 0000000000000000000000000000000000000000..e7fd30c7d79a1d74e14e2d80209760cfbfa481eb
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Registwork.java
@@ -0,0 +1,45 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Registwork {
+ private Integer id;
+
+ private Integer registerid;
+
+ private Date starttime;
+
+ private Date endtime;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Integer getRegisterid() {
+ return registerid;
+ }
+
+ public void setRegisterid(Integer registerid) {
+ this.registerid = registerid;
+ }
+
+ public Date getStarttime() {
+ return starttime;
+ }
+
+ public void setStarttime(Date starttime) {
+ this.starttime = starttime;
+ }
+
+ public Date getEndtime() {
+ return endtime;
+ }
+
+ public void setEndtime(Date endtime) {
+ this.endtime = endtime;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Rule.java b/src/main/java/com/foreknow/entity/Rule.java
new file mode 100644
index 0000000000000000000000000000000000000000..975aa965774a421c98b2b6b13637b0a92c8cc950
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Rule.java
@@ -0,0 +1,63 @@
+package com.foreknow.entity;
+
+public class Rule {
+ private Integer id;
+
+ private String rulename;
+
+ private Integer deptid;
+
+ private Integer userid;
+
+ private String week;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getRulename() {
+ return rulename;
+ }
+
+ public void setRulename(String rulename) {
+ this.rulename = rulename == null ? null : rulename.trim();
+ }
+
+ public Integer getDeptid() {
+ return deptid;
+ }
+
+ public void setDeptid(Integer deptid) {
+ this.deptid = deptid;
+ }
+
+ public Integer getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Integer userid) {
+ this.userid = userid;
+ }
+
+ public String getWeek() {
+ return week;
+ }
+
+ public void setWeek(String week) {
+ this.week = week == null ? null : week.trim();
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Scheduling.java b/src/main/java/com/foreknow/entity/Scheduling.java
new file mode 100644
index 0000000000000000000000000000000000000000..30596d747c000fafd3e5f451f76ccf2834c307bb
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Scheduling.java
@@ -0,0 +1,75 @@
+package com.foreknow.entity;
+
+import java.util.Date;
+
+public class Scheduling {
+ private Integer id;
+
+ private Date scheddate;
+
+ private Integer deptid;
+
+ private Integer userid;
+
+ private String noon;
+
+ private Integer ruleid;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public Date getScheddate() {
+ return scheddate;
+ }
+
+ public void setScheddate(Date scheddate) {
+ this.scheddate = scheddate;
+ }
+
+ public Integer getDeptid() {
+ return deptid;
+ }
+
+ public void setDeptid(Integer deptid) {
+ this.deptid = deptid;
+ }
+
+ public Integer getUserid() {
+ return userid;
+ }
+
+ public void setUserid(Integer userid) {
+ this.userid = userid;
+ }
+
+ public String getNoon() {
+ return noon;
+ }
+
+ public void setNoon(String noon) {
+ this.noon = noon == null ? null : noon.trim();
+ }
+
+ public Integer getRuleid() {
+ return ruleid;
+ }
+
+ public void setRuleid(Integer ruleid) {
+ this.ruleid = ruleid;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/Settlecategory.java b/src/main/java/com/foreknow/entity/Settlecategory.java
new file mode 100644
index 0000000000000000000000000000000000000000..8e3a87bf6ce07c36388a5cad57506bea8393fe67
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/Settlecategory.java
@@ -0,0 +1,53 @@
+package com.foreknow.entity;
+
+public class Settlecategory {
+ private Integer id;
+
+ private String settlecode;
+
+ private String settlename;
+
+ private Integer sequenceno;
+
+ private Integer delmark;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getSettlecode() {
+ return settlecode;
+ }
+
+ public void setSettlecode(String settlecode) {
+ this.settlecode = settlecode == null ? null : settlecode.trim();
+ }
+
+ public String getSettlename() {
+ return settlename;
+ }
+
+ public void setSettlename(String settlename) {
+ this.settlename = settlename == null ? null : settlename.trim();
+ }
+
+ public Integer getSequenceno() {
+ return sequenceno;
+ }
+
+ public void setSequenceno(Integer sequenceno) {
+ this.sequenceno = sequenceno;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/entity/User.java b/src/main/java/com/foreknow/entity/User.java
new file mode 100644
index 0000000000000000000000000000000000000000..2cc979119651292045c6968f88c9150f9af2d3cf
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/User.java
@@ -0,0 +1,113 @@
+package com.foreknow.entity;
+
+public class User {
+ private Integer id;
+
+ private String username;
+
+ private String password;
+
+ private String realname;
+
+ private Integer usetype;
+
+ private Integer doctitleid;
+
+ private String isscheduling;
+
+ private Integer deptid;
+
+ private Integer registleid;
+
+ private Integer delmark;
+
+ private String token;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username == null ? null : username.trim();
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password == null ? null : password.trim();
+ }
+
+ public String getRealname() {
+ return realname;
+ }
+
+ public void setRealname(String realname) {
+ this.realname = realname == null ? null : realname.trim();
+ }
+
+ public Integer getUsetype() {
+ return usetype;
+ }
+
+ public void setUsetype(Integer usetype) {
+ this.usetype = usetype;
+ }
+
+ public Integer getDoctitleid() {
+ return doctitleid;
+ }
+
+ public void setDoctitleid(Integer doctitleid) {
+ this.doctitleid = doctitleid;
+ }
+
+ public String getIsscheduling() {
+ return isscheduling;
+ }
+
+ public void setIsscheduling(String isscheduling) {
+ this.isscheduling = isscheduling == null ? null : isscheduling.trim();
+ }
+
+ public Integer getDeptid() {
+ return deptid;
+ }
+
+ public void setDeptid(Integer deptid) {
+ this.deptid = deptid;
+ }
+
+ public Integer getRegistleid() {
+ return registleid;
+ }
+
+ public void setRegistleid(Integer registleid) {
+ this.registleid = registleid;
+ }
+
+ public Integer getDelmark() {
+ return delmark;
+ }
+
+ public void setDelmark(Integer delmark) {
+ this.delmark = delmark;
+ }
+
+ public String getToken() {
+ return token;
+ }
+
+ public void setToken(String token) {
+ this.token = token;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/interceptor/TokenInterceptor.java b/src/main/java/com/foreknow/interceptor/TokenInterceptor.java
new file mode 100644
index 0000000000000000000000000000000000000000..0f2fe7940baa6f7110b6773f4f606b5b077e36d0
--- /dev/null
+++ b/src/main/java/com/foreknow/interceptor/TokenInterceptor.java
@@ -0,0 +1,50 @@
+package com.foreknow.interceptor;
+
+
+import com.alibaba.fastjson.JSONObject;
+import com.foreknow.utils.Constance;
+import com.foreknow.utils.TokenUtil;
+import org.springframework.stereotype.Component;
+import org.springframework.web.servlet.HandlerInterceptor;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+@Component
+public class TokenInterceptor implements HandlerInterceptor {
+
+ @Override
+ public boolean preHandle(HttpServletRequest request, HttpServletResponse response,Object handler)throws Exception{
+ if(request.getMethod().equals("OPTIONS")){
+ response.setStatus(HttpServletResponse.SC_OK);
+ return true;
+ }
+ response.setCharacterEncoding("utf-8");
+ String token = request.getHeader("Authorization");
+ if(token != null){
+ boolean result = TokenUtil.verify(token);
+ if(result){
+ JSONObject json = new JSONObject();
+ json.put("meta",new Constance("msg",200));
+
+ response.getWriter().append(json.toJSONString());
+ System.out.println("通过拦截器");
+ return true;
+ }
+ }
+ response.setCharacterEncoding("UTF-8");
+ response.setContentType("application/json; charset=utf-8");
+ try{
+ JSONObject json = new JSONObject();
+ json.put("msg","token verify fail");
+ json.put("status","401");
+ response.getWriter().append(json.toJSONString());
+ System.out.println("认证失败,未通过拦截器");
+ }catch (Exception e){
+ e.printStackTrace();
+ response.sendError(500);
+ return false;
+ }
+ return false;
+ }
+}
diff --git a/src/main/java/com/foreknow/service/DepartmentService.java b/src/main/java/com/foreknow/service/DepartmentService.java
new file mode 100644
index 0000000000000000000000000000000000000000..8592a2f427ba5bf802a6d400b3c0cf7445befe62
--- /dev/null
+++ b/src/main/java/com/foreknow/service/DepartmentService.java
@@ -0,0 +1,41 @@
+package com.foreknow.service;
+
+import com.foreknow.entity.Department;
+
+import java.util.List;
+
+public interface DepartmentService {
+ /**
+ * 获取科室列表
+ * @return
+ */
+ List searchInfo();
+
+ /**
+ * 删除科室信息
+ * @param id
+ * @return
+ */
+ int deleteDepartment(Integer id);
+
+ /**
+ * 添加科室信息
+ * @param department
+ * @return
+ */
+ int insertDepartment(Department department);
+
+ /**
+ * 修改之前查询科室信息
+ * @param id
+ * @return
+ */
+ Department searchDepartmentById(Integer id);
+
+ /**
+ * 修改科室信息
+ * @param department
+ * @return
+ */
+ int updateDepartment(Department department);
+}
diff --git a/src/main/java/com/foreknow/service/UserService.java b/src/main/java/com/foreknow/service/UserService.java
new file mode 100644
index 0000000000000000000000000000000000000000..85242b8c5bc0a4605a7c242def83049b777237cf
--- /dev/null
+++ b/src/main/java/com/foreknow/service/UserService.java
@@ -0,0 +1,48 @@
+package com.foreknow.service;
+
+import com.foreknow.entity.User;
+
+import java.util.List;
+
+public interface UserService {
+ /**
+ * 用户登录
+ * @param username
+ * @param password
+ * @return
+ */
+ User LoginService(String username,String password);
+
+ /**
+ * 查询所有用户信息
+ * @return
+ */
+ List getQueryAllUser(User user);
+
+ /**
+ * 用户添加
+ * @return
+ */
+ int insertUser(User user);
+
+ /**
+ * 用户删除
+ * @param id
+ * @return
+ */
+ int deleteUser(Integer id);
+
+ /**
+ * 修改用户
+ * @param user
+ * @return
+ */
+ int updateUser(User user);
+
+ /**
+ * 修改之前查询的用户
+ * @param id
+ * @return
+ */
+ User selectUser(Integer id);
+}
diff --git a/src/main/java/com/foreknow/service/impl/DepartmentServiceImpl.java b/src/main/java/com/foreknow/service/impl/DepartmentServiceImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..e780cdb422218a4b78f4df86bfc3a8cdf7d2233e
--- /dev/null
+++ b/src/main/java/com/foreknow/service/impl/DepartmentServiceImpl.java
@@ -0,0 +1,41 @@
+package com.foreknow.service.impl;
+
+import com.foreknow.dao.DepartmentMapper;
+import com.foreknow.entity.Department;
+import com.foreknow.service.DepartmentService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class DepartmentServiceImpl implements DepartmentService {
+ @Autowired
+ private DepartmentMapper departmentMapper;
+
+ @Override
+ public List searchInfo() {
+ List list = departmentMapper.searchAll();
+ return list;
+ }
+
+ @Override
+ public int deleteDepartment(Integer id) {
+ return departmentMapper.deleteByPrimaryKey(id);
+ }
+
+ @Override
+ public int insertDepartment(Department department) {
+ return departmentMapper.insert(department);
+ }
+
+ @Override
+ public Department searchDepartmentById(Integer id) {
+ return departmentMapper.selectByPrimaryKey(id);
+ }
+
+ @Override
+ public int updateDepartment(Department department) {
+ return departmentMapper.updateByPrimaryKey(department);
+ }
+}
diff --git a/src/main/java/com/foreknow/service/impl/UserServiceImpl.java b/src/main/java/com/foreknow/service/impl/UserServiceImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..cc4359a6aab557fee0e3ea76da5437bb3b5d4112
--- /dev/null
+++ b/src/main/java/com/foreknow/service/impl/UserServiceImpl.java
@@ -0,0 +1,46 @@
+package com.foreknow.service.impl;
+
+import com.foreknow.dao.UserMapper;
+import com.foreknow.entity.User;
+import com.foreknow.service.UserService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+@Service
+public class UserServiceImpl implements UserService {
+ @Autowired
+ private UserMapper userMapper;
+
+ @Override
+ public User LoginService(String username, String password) {
+ User user = userMapper.Login(username, password);
+ return user;
+ }
+
+ @Override
+ public List getQueryAllUser(User user) {
+ return userMapper.findUser(user);
+ }
+
+ @Override
+ public int insertUser(User user) {
+ return userMapper.insert(user);
+ }
+
+ @Override
+ public int deleteUser(Integer id) {
+ return userMapper.deleteByPrimaryKey(id);
+ }
+
+ @Override
+ public int updateUser(User user) {
+ return userMapper.updateByPrimaryKey(user);
+ }
+
+ @Override
+ public User selectUser(Integer id) {
+ return userMapper.selectByPrimaryKey(id);
+ }
+}
diff --git a/src/main/java/com/foreknow/utils/Constance.java b/src/main/java/com/foreknow/utils/Constance.java
new file mode 100644
index 0000000000000000000000000000000000000000..9cb6b9902a2a7cef5c44b5acc80396a1e963a3b8
--- /dev/null
+++ b/src/main/java/com/foreknow/utils/Constance.java
@@ -0,0 +1,30 @@
+package com.foreknow.utils;
+
+import java.io.Serializable;
+
+public class Constance implements Serializable {
+ private String msg;
+ private int status;
+
+ public String getMsg() {
+ return msg;
+ }
+
+ public void setMsg(String msg) {
+ this.msg = msg;
+ }
+
+ public int getStatus() {
+ return status;
+ }
+
+ public void setStatus(int status) {
+ this.status = status;
+ }
+
+ public Constance(String msg, int status){
+ this.msg = msg;
+ this.status = status;
+ }
+
+}
diff --git a/src/main/java/com/foreknow/utils/TokenUtil.java b/src/main/java/com/foreknow/utils/TokenUtil.java
new file mode 100644
index 0000000000000000000000000000000000000000..b2c34c7dc5f498bacc79e991e552620a7c67f2e3
--- /dev/null
+++ b/src/main/java/com/foreknow/utils/TokenUtil.java
@@ -0,0 +1,55 @@
+package com.foreknow.utils;
+
+import com.auth0.jwt.JWT;
+import com.auth0.jwt.JWTVerifier;
+import com.auth0.jwt.algorithms.Algorithm;
+import com.auth0.jwt.interfaces.DecodedJWT;
+import com.foreknow.entity.User;
+
+
+import java.util.Date;
+
+public class TokenUtil {
+
+ private static final long EXPIRE_TIME= 10*60*60*1000;
+ private static final String TOKEN_SECRET="txdy"; //密钥盐
+
+ /**
+ * 签名生成
+ * @param user
+ * @return
+ */
+ public static String sign(User user){
+ String token = null;
+ try {
+ Date expiresAt = new Date(System.currentTimeMillis() + EXPIRE_TIME);
+ token = JWT.create()
+ .withIssuer("auth0")
+ .withClaim("username", user.getUsername())
+ .withExpiresAt(expiresAt)
+ // 使用了HMAC256加密算法。
+ .sign(Algorithm.HMAC256(TOKEN_SECRET));
+ } catch (Exception e){
+ e.printStackTrace();
+ }
+ return token;
+ }
+
+ /**
+ * 签名验证
+ * @param token
+ * @return
+ */
+ public static boolean verify(String token){
+ try {
+ JWTVerifier verifier = JWT.require(Algorithm.HMAC256(TOKEN_SECRET)).withIssuer("auth0").build();
+ DecodedJWT jwt = verifier.verify(token);
+ System.out.println("认证通过:");
+ System.out.println("username: " + jwt.getClaim("username").asString());
+ System.out.println("过期时间: " + jwt.getExpiresAt());
+ return true;
+ } catch (Exception e){
+ return false;
+ }
+ }
+}
diff --git a/src/main/java/com/foreknow/web/DepartmentController.java b/src/main/java/com/foreknow/web/DepartmentController.java
new file mode 100644
index 0000000000000000000000000000000000000000..d24cfd36944925adf87458b755899d19b8dcdd5e
--- /dev/null
+++ b/src/main/java/com/foreknow/web/DepartmentController.java
@@ -0,0 +1,119 @@
+package com.foreknow.web;
+
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.foreknow.entity.Department;
+import com.foreknow.entity.User;
+import com.foreknow.service.DepartmentService;
+import com.foreknow.service.UserService;
+import com.foreknow.utils.Constance;
+import com.foreknow.utils.TokenUtil;
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/department")
+public class DepartmentController {
+ @Autowired
+ private DepartmentService departmentService;
+
+ @RequestMapping(value = "/findDepartmentByPage", method = RequestMethod.POST)
+ @ResponseBody
+ public String findUserByPage(@RequestBody Map param) throws JsonProcessingException {
+ //设置分页信息
+ int pagenum = (int) param.get("pagenum");
+ int pagesize = (int) param.get("pagesize");
+ PageHelper.startPage(pagenum, pagesize);
+ List list = departmentService.searchInfo();
+ PageInfo info = new PageInfo(list);
+ HashMap hs = new HashMap<>();
+ if (list.size() > 0) {
+ hs.put("data", info);
+ hs.put("meta", new Constance("获取科室列表成功", 200));
+ } else {
+ hs.put("meta", new Constance("获取科室列表失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/insertDepartment", method = RequestMethod.POST)
+ @ResponseBody
+ public String insertDepartmentInfo(@RequestBody Department department) throws JsonProcessingException {
+ int x = departmentService.insertDepartment(department);
+ HashMap hs = new HashMap<>();
+ if (x == 1) {
+ hs.put("meta", new Constance("添加科室成功", 200));
+ } else {
+ hs.put("meta", new Constance("添加科室失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/deleteDepartment", method = RequestMethod.GET)
+ @ResponseBody
+ public String deleteDepartmentById(@RequestParam Integer departmentId) throws JsonProcessingException {
+ int x = departmentService.deleteDepartment(departmentId);
+ HashMap hs = new HashMap<>();
+ if (x == 1) {
+ hs.put("meta", new Constance("删除科室成功", 200));
+ } else {
+ hs.put("meta", new Constance("删除科室失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/selectDepartment", method = RequestMethod.GET)
+ @ResponseBody
+ public String selectDepartmentById(@RequestParam Integer departmentId) throws JsonProcessingException {
+ Department department = departmentService.searchDepartmentById(departmentId);
+ HashMap hs = new HashMap<>();
+ if (department != null) {
+ hs.put("data", department);
+ hs.put("meta", new Constance("查询科室成功", 200));
+ } else {
+ hs.put("meta", new Constance("查询科室失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/updateDepartment", method = RequestMethod.POST)
+ @ResponseBody
+ public String updateDepartmentById(@RequestBody Department department) throws JsonProcessingException {
+ int x = departmentService.updateDepartment(department);
+ HashMap hs = new HashMap<>();
+ if (x == 1) {
+ hs.put("meta", new Constance("修改科室成功", 200));
+ } else {
+ hs.put("meta", new Constance("修改科室失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/deleteDepartmentList", method = RequestMethod.POST)
+ @ResponseBody
+ public String deleteDepartmentList(@RequestBody() Object[] param) throws JsonProcessingException {
+ HashMap hs = new HashMap<>();
+ if (param != null) {
+ for (int i = 0; i < param.length; i++) {
+ departmentService.deleteDepartment((Integer) param[i]);
+ }
+ hs.put("meta", new Constance("批量删除成功", 200));
+ } else {
+ hs.put("meta", new Constance("批量删除失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/web/UserController.java b/src/main/java/com/foreknow/web/UserController.java
new file mode 100644
index 0000000000000000000000000000000000000000..e6da02b4ea7abddd1719a6b65356164d65faa6a9
--- /dev/null
+++ b/src/main/java/com/foreknow/web/UserController.java
@@ -0,0 +1,161 @@
+package com.foreknow.web;
+
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.foreknow.entity.User;
+import com.foreknow.service.UserService;
+import com.foreknow.utils.Constance;
+import com.foreknow.utils.TokenUtil;
+import com.github.pagehelper.PageHelper;
+import com.github.pagehelper.PageInfo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/user")
+public class UserController {
+ @Autowired
+ private UserService userService;
+
+ @RequestMapping(value = "/login", method = RequestMethod.POST)
+ @ResponseBody
+ public String login(@RequestBody User user) throws JsonProcessingException {
+ User userLogin = userService.LoginService(user.getUsername(), user.getPassword());
+ HashMap hs = new HashMap<>();
+ if (userLogin != null) {
+ String token = TokenUtil.sign(userLogin);
+ userLogin.setToken(token);
+ hs.put("token", token);
+ hs.put("data", userLogin);
+ hs.put("meta", new Constance("登陆成功", 200));
+ } else {
+ hs.put("meta", new Constance("登陆失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/findUserByPage", method = RequestMethod.POST)
+ @ResponseBody
+ public String findUserByPage(@RequestBody Map param) throws JsonProcessingException {
+ //设置分页信息
+ int pagenum = (int) param.get("pagenum");
+ int pagesize = (int) param.get("pagesize");
+ PageHelper.startPage(pagenum, pagesize);
+ User user = new User();
+ user.setUsername((String) param.get("username"));
+ user.setPassword((String) param.get("passwprd"));
+ user.setRealname((String) param.get("realname"));
+ if (!((String) param.get("usetype")).equals("")) {
+ user.setUsetype(Integer.parseInt((String) param.get("usetype")));
+ }
+ if (!((String) param.get("doctitleid")).equals("")) {
+ user.setDoctitleid(Integer.parseInt((String) param.get("doctitleid")));
+ }
+ user.setIsscheduling((String) param.get("isscheduling"));
+ if (!((String) param.get("deptid")).equals("")) {
+ user.setDeptid(Integer.parseInt((String) param.get("deptid")));
+ }
+ if (!((String) param.get("registleid")).equals("")) {
+ user.setRegistleid(Integer.parseInt((String) param.get("registleid")));
+ }
+ List userList = userService.getQueryAllUser(user);
+ PageInfo info = new PageInfo(userList);
+ HashMap hs = new HashMap<>();
+ hs.put("data", info);
+ if (userList.size() > 0) {
+ hs.put("meta", new Constance("获取用户列表成功", 200));
+ } else {
+ hs.put("meta", new Constance("获取用户列表失败", 401));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/insertUser", method = RequestMethod.POST)
+ @ResponseBody
+ public String insertUserInfo(@RequestBody User user) throws JsonProcessingException {
+ int x = userService.insertUser(user);
+ HashMap hs = new HashMap<>();
+ if (x == 1) {
+ hs.put("meta", new Constance("添加用户成功", 200));
+ } else {
+ hs.put("meta", new Constance("添加用户失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/deleteUser", method = RequestMethod.GET)
+ @ResponseBody
+ public String deleteUserById(@RequestParam Integer userId) throws JsonProcessingException {
+ int x = userService.deleteUser(userId);
+ HashMap hs = new HashMap<>();
+ if (x == 1) {
+ hs.put("meta", new Constance("删除用户成功", 200));
+ } else {
+ hs.put("meta", new Constance("删除用户失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/selectUser", method = RequestMethod.GET)
+ @ResponseBody
+ public String selectUserById(@RequestParam Integer userId) throws JsonProcessingException {
+ User user = userService.selectUser(userId);
+ HashMap hs = new HashMap<>();
+ if (user != null) {
+ hs.put("data", user);
+ hs.put("meta", new Constance("查询用户成功", 200));
+ } else {
+ hs.put("meta", new Constance("查询用户失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/updateUser", method = RequestMethod.POST)
+ @ResponseBody
+ public String updateUserById(@RequestBody User user) throws JsonProcessingException {
+ int x = userService.updateUser(user);
+ HashMap hs = new HashMap<>();
+ if (x == 1) {
+ hs.put("meta", new Constance("修改用户成功", 200));
+ } else {
+ hs.put("meta", new Constance("修改用户失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/deleteList", method = RequestMethod.POST)
+ @ResponseBody
+ public String deleteList(@RequestBody() Object[] param) throws JsonProcessingException {
+ HashMap hs = new HashMap<>();
+ if (param != null) {
+ for (int i = 0; i < param.length; i++) {
+ userService.deleteUser((Integer) param[i]);
+ }
+ hs.put("meta", new Constance("批量删除成功", 200));
+ } else {
+ hs.put("meta", new Constance("批量删除失败", 201));
+ }
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+
+ @RequestMapping(value = "/test", method = RequestMethod.POST)
+ @ResponseBody
+ public String test(@RequestBody Map para) throws JsonProcessingException {
+ HashMap hs = new HashMap<>();
+ hs.put("data", "data");
+ ObjectMapper objectMapper = new ObjectMapper();
+ return objectMapper.writeValueAsString(hs);
+ }
+}
\ No newline at end of file
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 86ebfb733266d2dfee6d9c5ba6db4df122035782..a528002a57356192137d37b8ec62c8d2664f63f5 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1,9 +1,9 @@
server.port=8085
server.servlet.context-path=/his_cms
jdbc.driver = com.mysql.cj.jdbc.Driver
-jdbc.url = jdbc:mysql://localhost:3306/springbootdemo?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
+jdbc.url = jdbc:mysql://localhost:3306/hiscms?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
jdbc.username = root
-jdbc.password = zjjlive82
+jdbc.password = 123456
#Mybatis
mybatis_config_file=mybatis-config.xml
diff --git a/src/main/resources/mapper/CheckapplyMapper.xml b/src/main/resources/mapper/CheckapplyMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..57b9503eaa542f3b9e1fd9f7f59afbdc78dac7b1
--- /dev/null
+++ b/src/main/resources/mapper/CheckapplyMapper.xml
@@ -0,0 +1,247 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, MedicalID, RegistID, ItemID, Name, Objective, Position, IsUrgent, Num, CreationTime,
+ DoctorID, CheckOperID, ResultOperID, CheckTime, Result, ResultTime, State, RecordType
+
+
+
+ delete from checkapply
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into checkapply (ID, MedicalID, RegistID,
+ ItemID, Name, Objective,
+ Position, IsUrgent, Num,
+ CreationTime, DoctorID, CheckOperID,
+ ResultOperID, CheckTime, Result,
+ ResultTime, State, RecordType
+ )
+ values (#{id,jdbcType=INTEGER}, #{medicalid,jdbcType=INTEGER}, #{registid,jdbcType=INTEGER},
+ #{itemid,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{objective,jdbcType=VARCHAR},
+ #{position,jdbcType=VARCHAR}, #{isurgent,jdbcType=INTEGER}, #{num,jdbcType=INTEGER},
+ #{creationtime,jdbcType=TIMESTAMP}, #{doctorid,jdbcType=INTEGER}, #{checkoperid,jdbcType=INTEGER},
+ #{resultoperid,jdbcType=INTEGER}, #{checktime,jdbcType=TIMESTAMP}, #{result,jdbcType=VARCHAR},
+ #{resulttime,jdbcType=TIMESTAMP}, #{state,jdbcType=INTEGER}, #{recordtype,jdbcType=INTEGER}
+ )
+
+
+ insert into checkapply
+
+
+ ID,
+
+
+ MedicalID,
+
+
+ RegistID,
+
+
+ ItemID,
+
+
+ Name,
+
+
+ Objective,
+
+
+ Position,
+
+
+ IsUrgent,
+
+
+ Num,
+
+
+ CreationTime,
+
+
+ DoctorID,
+
+
+ CheckOperID,
+
+
+ ResultOperID,
+
+
+ CheckTime,
+
+
+ Result,
+
+
+ ResultTime,
+
+
+ State,
+
+
+ RecordType,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{medicalid,jdbcType=INTEGER},
+
+
+ #{registid,jdbcType=INTEGER},
+
+
+ #{itemid,jdbcType=INTEGER},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{objective,jdbcType=VARCHAR},
+
+
+ #{position,jdbcType=VARCHAR},
+
+
+ #{isurgent,jdbcType=INTEGER},
+
+
+ #{num,jdbcType=INTEGER},
+
+
+ #{creationtime,jdbcType=TIMESTAMP},
+
+
+ #{doctorid,jdbcType=INTEGER},
+
+
+ #{checkoperid,jdbcType=INTEGER},
+
+
+ #{resultoperid,jdbcType=INTEGER},
+
+
+ #{checktime,jdbcType=TIMESTAMP},
+
+
+ #{result,jdbcType=VARCHAR},
+
+
+ #{resulttime,jdbcType=TIMESTAMP},
+
+
+ #{state,jdbcType=INTEGER},
+
+
+ #{recordtype,jdbcType=INTEGER},
+
+
+
+
+ update checkapply
+
+
+ MedicalID = #{medicalid,jdbcType=INTEGER},
+
+
+ RegistID = #{registid,jdbcType=INTEGER},
+
+
+ ItemID = #{itemid,jdbcType=INTEGER},
+
+
+ Name = #{name,jdbcType=VARCHAR},
+
+
+ Objective = #{objective,jdbcType=VARCHAR},
+
+
+ Position = #{position,jdbcType=VARCHAR},
+
+
+ IsUrgent = #{isurgent,jdbcType=INTEGER},
+
+
+ Num = #{num,jdbcType=INTEGER},
+
+
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+
+
+ DoctorID = #{doctorid,jdbcType=INTEGER},
+
+
+ CheckOperID = #{checkoperid,jdbcType=INTEGER},
+
+
+ ResultOperID = #{resultoperid,jdbcType=INTEGER},
+
+
+ CheckTime = #{checktime,jdbcType=TIMESTAMP},
+
+
+ Result = #{result,jdbcType=VARCHAR},
+
+
+ ResultTime = #{resulttime,jdbcType=TIMESTAMP},
+
+
+ State = #{state,jdbcType=INTEGER},
+
+
+ RecordType = #{recordtype,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update checkapply
+ set MedicalID = #{medicalid,jdbcType=INTEGER},
+ RegistID = #{registid,jdbcType=INTEGER},
+ ItemID = #{itemid,jdbcType=INTEGER},
+ Name = #{name,jdbcType=VARCHAR},
+ Objective = #{objective,jdbcType=VARCHAR},
+ Position = #{position,jdbcType=VARCHAR},
+ IsUrgent = #{isurgent,jdbcType=INTEGER},
+ Num = #{num,jdbcType=INTEGER},
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+ DoctorID = #{doctorid,jdbcType=INTEGER},
+ CheckOperID = #{checkoperid,jdbcType=INTEGER},
+ ResultOperID = #{resultoperid,jdbcType=INTEGER},
+ CheckTime = #{checktime,jdbcType=TIMESTAMP},
+ Result = #{result,jdbcType=VARCHAR},
+ ResultTime = #{resulttime,jdbcType=TIMESTAMP},
+ State = #{state,jdbcType=INTEGER},
+ RecordType = #{recordtype,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/CheckrelationMapper.xml b/src/main/resources/mapper/CheckrelationMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..12351fe43da5b4c76ce135a435b3603ff9e87074
--- /dev/null
+++ b/src/main/resources/mapper/CheckrelationMapper.xml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+ ID, CheckProjID, CheckTempID, Position
+
+
+
+ delete from checkrelation
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into checkrelation (ID, CheckProjID, CheckTempID,
+ Position)
+ values (#{id,jdbcType=INTEGER}, #{checkprojid,jdbcType=INTEGER}, #{checktempid,jdbcType=INTEGER},
+ #{position,jdbcType=VARCHAR})
+
+
+ insert into checkrelation
+
+
+ ID,
+
+
+ CheckProjID,
+
+
+ CheckTempID,
+
+
+ Position,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{checkprojid,jdbcType=INTEGER},
+
+
+ #{checktempid,jdbcType=INTEGER},
+
+
+ #{position,jdbcType=VARCHAR},
+
+
+
+
+ update checkrelation
+
+
+ CheckProjID = #{checkprojid,jdbcType=INTEGER},
+
+
+ CheckTempID = #{checktempid,jdbcType=INTEGER},
+
+
+ Position = #{position,jdbcType=VARCHAR},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update checkrelation
+ set CheckProjID = #{checkprojid,jdbcType=INTEGER},
+ CheckTempID = #{checktempid,jdbcType=INTEGER},
+ Position = #{position,jdbcType=VARCHAR}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/ChecktemplateMapper.xml b/src/main/resources/mapper/ChecktemplateMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3dcecbce43275eb6896b50dc7781bbb421faaf14
--- /dev/null
+++ b/src/main/resources/mapper/ChecktemplateMapper.xml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, Name, UserID, CreationTime, Scope, RecordType, DelMark
+
+
+
+ delete from checktemplate
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into checktemplate (ID, Name, UserID,
+ CreationTime, Scope, RecordType,
+ DelMark)
+ values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{userid,jdbcType=INTEGER},
+ #{creationtime,jdbcType=TIMESTAMP}, #{scope,jdbcType=CHAR}, #{recordtype,jdbcType=INTEGER},
+ #{delmark,jdbcType=INTEGER})
+
+
+ insert into checktemplate
+
+
+ ID,
+
+
+ Name,
+
+
+ UserID,
+
+
+ CreationTime,
+
+
+ Scope,
+
+
+ RecordType,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{userid,jdbcType=INTEGER},
+
+
+ #{creationtime,jdbcType=TIMESTAMP},
+
+
+ #{scope,jdbcType=CHAR},
+
+
+ #{recordtype,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update checktemplate
+
+
+ Name = #{name,jdbcType=VARCHAR},
+
+
+ UserID = #{userid,jdbcType=INTEGER},
+
+
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+
+
+ Scope = #{scope,jdbcType=CHAR},
+
+
+ RecordType = #{recordtype,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update checktemplate
+ set Name = #{name,jdbcType=VARCHAR},
+ UserID = #{userid,jdbcType=INTEGER},
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+ Scope = #{scope,jdbcType=CHAR},
+ RecordType = #{recordtype,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/ConstantitemMapper.xml b/src/main/resources/mapper/ConstantitemMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..51d74ccfab72759034d59761171c4ad2e6bee576
--- /dev/null
+++ b/src/main/resources/mapper/ConstantitemMapper.xml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+ ID, ConstantTypeID, ConstantCode, ConstantName, DelMark
+
+
+
+ delete from constantitem
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into constantitem (ID, ConstantTypeID, ConstantCode,
+ ConstantName, DelMark)
+ values (#{id,jdbcType=INTEGER}, #{constanttypeid,jdbcType=INTEGER}, #{constantcode,jdbcType=VARCHAR},
+ #{constantname,jdbcType=VARCHAR}, #{delmark,jdbcType=INTEGER})
+
+
+ insert into constantitem
+
+
+ ID,
+
+
+ ConstantTypeID,
+
+
+ ConstantCode,
+
+
+ ConstantName,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{constanttypeid,jdbcType=INTEGER},
+
+
+ #{constantcode,jdbcType=VARCHAR},
+
+
+ #{constantname,jdbcType=VARCHAR},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update constantitem
+
+
+ ConstantTypeID = #{constanttypeid,jdbcType=INTEGER},
+
+
+ ConstantCode = #{constantcode,jdbcType=VARCHAR},
+
+
+ ConstantName = #{constantname,jdbcType=VARCHAR},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update constantitem
+ set ConstantTypeID = #{constanttypeid,jdbcType=INTEGER},
+ ConstantCode = #{constantcode,jdbcType=VARCHAR},
+ ConstantName = #{constantname,jdbcType=VARCHAR},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/ConstanttypeMapper.xml b/src/main/resources/mapper/ConstanttypeMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e94c5bf7a9374e8c82a3d8efa5805cbcfff9ec3a
--- /dev/null
+++ b/src/main/resources/mapper/ConstanttypeMapper.xml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+ ID, ConstantTypeCode, ConstantTypeName, DelMark
+
+
+
+ delete from constanttype
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into constanttype (ID, ConstantTypeCode, ConstantTypeName,
+ DelMark)
+ values (#{id,jdbcType=INTEGER}, #{constanttypecode,jdbcType=VARCHAR}, #{constanttypename,jdbcType=VARCHAR},
+ #{delmark,jdbcType=INTEGER})
+
+
+ insert into constanttype
+
+
+ ID,
+
+
+ ConstantTypeCode,
+
+
+ ConstantTypeName,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{constanttypecode,jdbcType=VARCHAR},
+
+
+ #{constanttypename,jdbcType=VARCHAR},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update constanttype
+
+
+ ConstantTypeCode = #{constanttypecode,jdbcType=VARCHAR},
+
+
+ ConstantTypeName = #{constanttypename,jdbcType=VARCHAR},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update constanttype
+ set ConstantTypeCode = #{constanttypecode,jdbcType=VARCHAR},
+ ConstantTypeName = #{constanttypename,jdbcType=VARCHAR},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/DepartmentMapper.xml b/src/main/resources/mapper/DepartmentMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..fa62acae2c144cd7de4daed5010d79f6d6e6fab8
--- /dev/null
+++ b/src/main/resources/mapper/DepartmentMapper.xml
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, DeptCode, DeptName, DeptCategoryID, DeptType, DelMark
+
+
+
+
+
+
+
+
+
+
+
+ delete from department
+ where ID = #{id,jdbcType=INTEGER}
+
+
+
+
+ insert into department (ID, DeptCode, DeptName,
+ DeptCategoryID, DeptType, DelMark
+ )
+ values (#{id,jdbcType=INTEGER}, #{deptcode,jdbcType=VARCHAR}, #{deptname,jdbcType=VARCHAR},
+ #{deptcategoryid,jdbcType=INTEGER}, #{depttype,jdbcType=INTEGER}, #{delmark,jdbcType=INTEGER}
+ )
+
+
+ insert into department
+
+
+ ID,
+
+
+ DeptCode,
+
+
+ DeptName,
+
+
+ DeptCategoryID,
+
+
+ DeptType,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{deptcode,jdbcType=VARCHAR},
+
+
+ #{deptname,jdbcType=VARCHAR},
+
+
+ #{deptcategoryid,jdbcType=INTEGER},
+
+
+ #{depttype,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update department
+
+
+ DeptCode = #{deptcode,jdbcType=VARCHAR},
+
+
+ DeptName = #{deptname,jdbcType=VARCHAR},
+
+
+ DeptCategoryID = #{deptcategoryid,jdbcType=INTEGER},
+
+
+ DeptType = #{depttype,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+
+
+ update department
+ set DeptCode = #{deptcode,jdbcType=VARCHAR},
+ DeptName = #{deptname,jdbcType=VARCHAR},
+ DeptCategoryID = #{deptcategoryid,jdbcType=INTEGER},
+ DeptType = #{depttype,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/DiseaseMapper.xml b/src/main/resources/mapper/DiseaseMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3876e89ae661c9113ac9459ee7e5c7686dbab02e
--- /dev/null
+++ b/src/main/resources/mapper/DiseaseMapper.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, DiseaseCode, DiseaseName, DiseaseICD, DiseCategoryID, DelMark
+
+
+
+ delete from disease
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into disease (ID, DiseaseCode, DiseaseName,
+ DiseaseICD, DiseCategoryID, DelMark
+ )
+ values (#{id,jdbcType=INTEGER}, #{diseasecode,jdbcType=VARCHAR}, #{diseasename,jdbcType=VARCHAR},
+ #{diseaseicd,jdbcType=VARCHAR}, #{disecategoryid,jdbcType=INTEGER}, #{delmark,jdbcType=INTEGER}
+ )
+
+
+ insert into disease
+
+
+ ID,
+
+
+ DiseaseCode,
+
+
+ DiseaseName,
+
+
+ DiseaseICD,
+
+
+ DiseCategoryID,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{diseasecode,jdbcType=VARCHAR},
+
+
+ #{diseasename,jdbcType=VARCHAR},
+
+
+ #{diseaseicd,jdbcType=VARCHAR},
+
+
+ #{disecategoryid,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update disease
+
+
+ DiseaseCode = #{diseasecode,jdbcType=VARCHAR},
+
+
+ DiseaseName = #{diseasename,jdbcType=VARCHAR},
+
+
+ DiseaseICD = #{diseaseicd,jdbcType=VARCHAR},
+
+
+ DiseCategoryID = #{disecategoryid,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update disease
+ set DiseaseCode = #{diseasecode,jdbcType=VARCHAR},
+ DiseaseName = #{diseasename,jdbcType=VARCHAR},
+ DiseaseICD = #{diseaseicd,jdbcType=VARCHAR},
+ DiseCategoryID = #{disecategoryid,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/DisecategoryMapper.xml b/src/main/resources/mapper/DisecategoryMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d0149c6ef13b7aa9b26ea9a1490ead0b2978cb82
--- /dev/null
+++ b/src/main/resources/mapper/DisecategoryMapper.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, DicaCode, DicaName, SequenceNo, DicaType, DelMark
+
+
+
+ delete from disecategory
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into disecategory (ID, DicaCode, DicaName,
+ SequenceNo, DicaType, DelMark
+ )
+ values (#{id,jdbcType=INTEGER}, #{dicacode,jdbcType=VARCHAR}, #{dicaname,jdbcType=VARCHAR},
+ #{sequenceno,jdbcType=INTEGER}, #{dicatype,jdbcType=INTEGER}, #{delmark,jdbcType=INTEGER}
+ )
+
+
+ insert into disecategory
+
+
+ ID,
+
+
+ DicaCode,
+
+
+ DicaName,
+
+
+ SequenceNo,
+
+
+ DicaType,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{dicacode,jdbcType=VARCHAR},
+
+
+ #{dicaname,jdbcType=VARCHAR},
+
+
+ #{sequenceno,jdbcType=INTEGER},
+
+
+ #{dicatype,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update disecategory
+
+
+ DicaCode = #{dicacode,jdbcType=VARCHAR},
+
+
+ DicaName = #{dicaname,jdbcType=VARCHAR},
+
+
+ SequenceNo = #{sequenceno,jdbcType=INTEGER},
+
+
+ DicaType = #{dicatype,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update disecategory
+ set DicaCode = #{dicacode,jdbcType=VARCHAR},
+ DicaName = #{dicaname,jdbcType=VARCHAR},
+ SequenceNo = #{sequenceno,jdbcType=INTEGER},
+ DicaType = #{dicatype,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/DrugsMapper.xml b/src/main/resources/mapper/DrugsMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6a88986e309561b49ff5695063272c1eee9ad6a1
--- /dev/null
+++ b/src/main/resources/mapper/DrugsMapper.xml
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, DrugsCode, DrugsName, DrugsFormat, DrugsUnit, Manufacturer, DrugsDosageID, DrugsTypeID,
+ DrugsPrice, MnemonicCode, CreationDate, LastUpdateDate, DelMark
+
+
+
+ delete from drugs
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into drugs (ID, DrugsCode, DrugsName,
+ DrugsFormat, DrugsUnit, Manufacturer,
+ DrugsDosageID, DrugsTypeID, DrugsPrice,
+ MnemonicCode, CreationDate, LastUpdateDate,
+ DelMark)
+ values (#{id,jdbcType=INTEGER}, #{drugscode,jdbcType=CHAR}, #{drugsname,jdbcType=VARCHAR},
+ #{drugsformat,jdbcType=VARCHAR}, #{drugsunit,jdbcType=VARCHAR}, #{manufacturer,jdbcType=VARCHAR},
+ #{drugsdosageid,jdbcType=INTEGER}, #{drugstypeid,jdbcType=INTEGER}, #{drugsprice,jdbcType=DECIMAL},
+ #{mnemoniccode,jdbcType=VARCHAR}, #{creationdate,jdbcType=TIMESTAMP}, #{lastupdatedate,jdbcType=TIMESTAMP},
+ #{delmark,jdbcType=INTEGER})
+
+
+ insert into drugs
+
+
+ ID,
+
+
+ DrugsCode,
+
+
+ DrugsName,
+
+
+ DrugsFormat,
+
+
+ DrugsUnit,
+
+
+ Manufacturer,
+
+
+ DrugsDosageID,
+
+
+ DrugsTypeID,
+
+
+ DrugsPrice,
+
+
+ MnemonicCode,
+
+
+ CreationDate,
+
+
+ LastUpdateDate,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{drugscode,jdbcType=CHAR},
+
+
+ #{drugsname,jdbcType=VARCHAR},
+
+
+ #{drugsformat,jdbcType=VARCHAR},
+
+
+ #{drugsunit,jdbcType=VARCHAR},
+
+
+ #{manufacturer,jdbcType=VARCHAR},
+
+
+ #{drugsdosageid,jdbcType=INTEGER},
+
+
+ #{drugstypeid,jdbcType=INTEGER},
+
+
+ #{drugsprice,jdbcType=DECIMAL},
+
+
+ #{mnemoniccode,jdbcType=VARCHAR},
+
+
+ #{creationdate,jdbcType=TIMESTAMP},
+
+
+ #{lastupdatedate,jdbcType=TIMESTAMP},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update drugs
+
+
+ DrugsCode = #{drugscode,jdbcType=CHAR},
+
+
+ DrugsName = #{drugsname,jdbcType=VARCHAR},
+
+
+ DrugsFormat = #{drugsformat,jdbcType=VARCHAR},
+
+
+ DrugsUnit = #{drugsunit,jdbcType=VARCHAR},
+
+
+ Manufacturer = #{manufacturer,jdbcType=VARCHAR},
+
+
+ DrugsDosageID = #{drugsdosageid,jdbcType=INTEGER},
+
+
+ DrugsTypeID = #{drugstypeid,jdbcType=INTEGER},
+
+
+ DrugsPrice = #{drugsprice,jdbcType=DECIMAL},
+
+
+ MnemonicCode = #{mnemoniccode,jdbcType=VARCHAR},
+
+
+ CreationDate = #{creationdate,jdbcType=TIMESTAMP},
+
+
+ LastUpdateDate = #{lastupdatedate,jdbcType=TIMESTAMP},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update drugs
+ set DrugsCode = #{drugscode,jdbcType=CHAR},
+ DrugsName = #{drugsname,jdbcType=VARCHAR},
+ DrugsFormat = #{drugsformat,jdbcType=VARCHAR},
+ DrugsUnit = #{drugsunit,jdbcType=VARCHAR},
+ Manufacturer = #{manufacturer,jdbcType=VARCHAR},
+ DrugsDosageID = #{drugsdosageid,jdbcType=INTEGER},
+ DrugsTypeID = #{drugstypeid,jdbcType=INTEGER},
+ DrugsPrice = #{drugsprice,jdbcType=DECIMAL},
+ MnemonicCode = #{mnemoniccode,jdbcType=VARCHAR},
+ CreationDate = #{creationdate,jdbcType=TIMESTAMP},
+ LastUpdateDate = #{lastupdatedate,jdbcType=TIMESTAMP},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/DrugsdetailedMapper.xml b/src/main/resources/mapper/DrugsdetailedMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2239cf07ccdce22320d0453661ea64f260f7b8e7
--- /dev/null
+++ b/src/main/resources/mapper/DrugsdetailedMapper.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, DrugsTempID, DrugsID, DrugsUsage, Dosage, Frequency
+
+
+
+ delete from drugsdetailed
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into drugsdetailed (ID, DrugsTempID, DrugsID,
+ DrugsUsage, Dosage, Frequency
+ )
+ values (#{id,jdbcType=INTEGER}, #{drugstempid,jdbcType=INTEGER}, #{drugsid,jdbcType=INTEGER},
+ #{drugsusage,jdbcType=VARCHAR}, #{dosage,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR}
+ )
+
+
+ insert into drugsdetailed
+
+
+ ID,
+
+
+ DrugsTempID,
+
+
+ DrugsID,
+
+
+ DrugsUsage,
+
+
+ Dosage,
+
+
+ Frequency,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{drugstempid,jdbcType=INTEGER},
+
+
+ #{drugsid,jdbcType=INTEGER},
+
+
+ #{drugsusage,jdbcType=VARCHAR},
+
+
+ #{dosage,jdbcType=VARCHAR},
+
+
+ #{frequency,jdbcType=VARCHAR},
+
+
+
+
+ update drugsdetailed
+
+
+ DrugsTempID = #{drugstempid,jdbcType=INTEGER},
+
+
+ DrugsID = #{drugsid,jdbcType=INTEGER},
+
+
+ DrugsUsage = #{drugsusage,jdbcType=VARCHAR},
+
+
+ Dosage = #{dosage,jdbcType=VARCHAR},
+
+
+ Frequency = #{frequency,jdbcType=VARCHAR},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update drugsdetailed
+ set DrugsTempID = #{drugstempid,jdbcType=INTEGER},
+ DrugsID = #{drugsid,jdbcType=INTEGER},
+ DrugsUsage = #{drugsusage,jdbcType=VARCHAR},
+ Dosage = #{dosage,jdbcType=VARCHAR},
+ Frequency = #{frequency,jdbcType=VARCHAR}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/DrugstemplateMapper.xml b/src/main/resources/mapper/DrugstemplateMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d4fc507150490c13c4d0e2dd08aa998bc4a803a9
--- /dev/null
+++ b/src/main/resources/mapper/DrugstemplateMapper.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, Name, UserID, CreationTime, Scope, DelMark
+
+
+
+ delete from drugstemplate
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into drugstemplate (ID, Name, UserID,
+ CreationTime, Scope, DelMark
+ )
+ values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{userid,jdbcType=INTEGER},
+ #{creationtime,jdbcType=TIMESTAMP}, #{scope,jdbcType=CHAR}, #{delmark,jdbcType=INTEGER}
+ )
+
+
+ insert into drugstemplate
+
+
+ ID,
+
+
+ Name,
+
+
+ UserID,
+
+
+ CreationTime,
+
+
+ Scope,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{userid,jdbcType=INTEGER},
+
+
+ #{creationtime,jdbcType=TIMESTAMP},
+
+
+ #{scope,jdbcType=CHAR},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update drugstemplate
+
+
+ Name = #{name,jdbcType=VARCHAR},
+
+
+ UserID = #{userid,jdbcType=INTEGER},
+
+
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+
+
+ Scope = #{scope,jdbcType=CHAR},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update drugstemplate
+ set Name = #{name,jdbcType=VARCHAR},
+ UserID = #{userid,jdbcType=INTEGER},
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+ Scope = #{scope,jdbcType=CHAR},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/ExpenseclassMapper.xml b/src/main/resources/mapper/ExpenseclassMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..01ec53b17eb478743a29dd85cee309ec5141097d
--- /dev/null
+++ b/src/main/resources/mapper/ExpenseclassMapper.xml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+ ID, ExpCode, ExpName, DelMark
+
+
+
+ delete from expenseclass
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into expenseclass (ID, ExpCode, ExpName,
+ DelMark)
+ values (#{id,jdbcType=INTEGER}, #{expcode,jdbcType=VARCHAR}, #{expname,jdbcType=VARCHAR},
+ #{delmark,jdbcType=INTEGER})
+
+
+ insert into expenseclass
+
+
+ ID,
+
+
+ ExpCode,
+
+
+ ExpName,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{expcode,jdbcType=VARCHAR},
+
+
+ #{expname,jdbcType=VARCHAR},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update expenseclass
+
+
+ ExpCode = #{expcode,jdbcType=VARCHAR},
+
+
+ ExpName = #{expname,jdbcType=VARCHAR},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update expenseclass
+ set ExpCode = #{expcode,jdbcType=VARCHAR},
+ ExpName = #{expname,jdbcType=VARCHAR},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/FmeditemMapper.xml b/src/main/resources/mapper/FmeditemMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..afb116c661c96840b8978bdce4bba9725b9e180b
--- /dev/null
+++ b/src/main/resources/mapper/FmeditemMapper.xml
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, ItemCode, ItemName, Format, Price, ExpClassID, DeptID, MnemonicCode, CreationDate,
+ LastUpdateDate, RecordType, DelMark
+
+
+
+ delete from fmeditem
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into fmeditem (ID, ItemCode, ItemName,
+ Format, Price, ExpClassID,
+ DeptID, MnemonicCode, CreationDate,
+ LastUpdateDate, RecordType, DelMark
+ )
+ values (#{id,jdbcType=INTEGER}, #{itemcode,jdbcType=VARCHAR}, #{itemname,jdbcType=VARCHAR},
+ #{format,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{expclassid,jdbcType=INTEGER},
+ #{deptid,jdbcType=INTEGER}, #{mnemoniccode,jdbcType=VARCHAR}, #{creationdate,jdbcType=TIMESTAMP},
+ #{lastupdatedate,jdbcType=TIMESTAMP}, #{recordtype,jdbcType=INTEGER}, #{delmark,jdbcType=INTEGER}
+ )
+
+
+ insert into fmeditem
+
+
+ ID,
+
+
+ ItemCode,
+
+
+ ItemName,
+
+
+ Format,
+
+
+ Price,
+
+
+ ExpClassID,
+
+
+ DeptID,
+
+
+ MnemonicCode,
+
+
+ CreationDate,
+
+
+ LastUpdateDate,
+
+
+ RecordType,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{itemcode,jdbcType=VARCHAR},
+
+
+ #{itemname,jdbcType=VARCHAR},
+
+
+ #{format,jdbcType=VARCHAR},
+
+
+ #{price,jdbcType=DECIMAL},
+
+
+ #{expclassid,jdbcType=INTEGER},
+
+
+ #{deptid,jdbcType=INTEGER},
+
+
+ #{mnemoniccode,jdbcType=VARCHAR},
+
+
+ #{creationdate,jdbcType=TIMESTAMP},
+
+
+ #{lastupdatedate,jdbcType=TIMESTAMP},
+
+
+ #{recordtype,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update fmeditem
+
+
+ ItemCode = #{itemcode,jdbcType=VARCHAR},
+
+
+ ItemName = #{itemname,jdbcType=VARCHAR},
+
+
+ Format = #{format,jdbcType=VARCHAR},
+
+
+ Price = #{price,jdbcType=DECIMAL},
+
+
+ ExpClassID = #{expclassid,jdbcType=INTEGER},
+
+
+ DeptID = #{deptid,jdbcType=INTEGER},
+
+
+ MnemonicCode = #{mnemoniccode,jdbcType=VARCHAR},
+
+
+ CreationDate = #{creationdate,jdbcType=TIMESTAMP},
+
+
+ LastUpdateDate = #{lastupdatedate,jdbcType=TIMESTAMP},
+
+
+ RecordType = #{recordtype,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update fmeditem
+ set ItemCode = #{itemcode,jdbcType=VARCHAR},
+ ItemName = #{itemname,jdbcType=VARCHAR},
+ Format = #{format,jdbcType=VARCHAR},
+ Price = #{price,jdbcType=DECIMAL},
+ ExpClassID = #{expclassid,jdbcType=INTEGER},
+ DeptID = #{deptid,jdbcType=INTEGER},
+ MnemonicCode = #{mnemoniccode,jdbcType=VARCHAR},
+ CreationDate = #{creationdate,jdbcType=TIMESTAMP},
+ LastUpdateDate = #{lastupdatedate,jdbcType=TIMESTAMP},
+ RecordType = #{recordtype,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/HerbaldetailedMapper.xml b/src/main/resources/mapper/HerbaldetailedMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..d298d8e9e1fdfb95d5068f0828d94d7626ace4b4
--- /dev/null
+++ b/src/main/resources/mapper/HerbaldetailedMapper.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, HerbalPresID, HerbalID, Dosage, Price, Footnote
+
+
+
+ delete from herbaldetailed
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into herbaldetailed (ID, HerbalPresID, HerbalID,
+ Dosage, Price, Footnote
+ )
+ values (#{id,jdbcType=INTEGER}, #{herbalpresid,jdbcType=INTEGER}, #{herbalid,jdbcType=INTEGER},
+ #{dosage,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{footnote,jdbcType=VARCHAR}
+ )
+
+
+ insert into herbaldetailed
+
+
+ ID,
+
+
+ HerbalPresID,
+
+
+ HerbalID,
+
+
+ Dosage,
+
+
+ Price,
+
+
+ Footnote,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{herbalpresid,jdbcType=INTEGER},
+
+
+ #{herbalid,jdbcType=INTEGER},
+
+
+ #{dosage,jdbcType=VARCHAR},
+
+
+ #{price,jdbcType=DECIMAL},
+
+
+ #{footnote,jdbcType=VARCHAR},
+
+
+
+
+ update herbaldetailed
+
+
+ HerbalPresID = #{herbalpresid,jdbcType=INTEGER},
+
+
+ HerbalID = #{herbalid,jdbcType=INTEGER},
+
+
+ Dosage = #{dosage,jdbcType=VARCHAR},
+
+
+ Price = #{price,jdbcType=DECIMAL},
+
+
+ Footnote = #{footnote,jdbcType=VARCHAR},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update herbaldetailed
+ set HerbalPresID = #{herbalpresid,jdbcType=INTEGER},
+ HerbalID = #{herbalid,jdbcType=INTEGER},
+ Dosage = #{dosage,jdbcType=VARCHAR},
+ Price = #{price,jdbcType=DECIMAL},
+ Footnote = #{footnote,jdbcType=VARCHAR}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/HerbalprescriptionMapper.xml b/src/main/resources/mapper/HerbalprescriptionMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..2581286a9cc8034cd3d762222043d63b8e23bae2
--- /dev/null
+++ b/src/main/resources/mapper/HerbalprescriptionMapper.xml
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, MedicalID, RegistID, UserID, PrescriptionName, CreationTime, PrescriptioType,
+ PayNumber, Frequency, DrugsUsage, Therapy, Detailed, Advice, State
+
+
+
+ delete from herbalprescription
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into herbalprescription (ID, MedicalID, RegistID,
+ UserID, PrescriptionName, CreationTime,
+ PrescriptioType, PayNumber, Frequency,
+ DrugsUsage, Therapy, Detailed,
+ Advice, State)
+ values (#{id,jdbcType=INTEGER}, #{medicalid,jdbcType=INTEGER}, #{registid,jdbcType=INTEGER},
+ #{userid,jdbcType=INTEGER}, #{prescriptionname,jdbcType=VARCHAR}, #{creationtime,jdbcType=TIMESTAMP},
+ #{prescriptiotype,jdbcType=VARCHAR}, #{paynumber,jdbcType=INTEGER}, #{frequency,jdbcType=VARCHAR},
+ #{drugsusage,jdbcType=VARCHAR}, #{therapy,jdbcType=VARCHAR}, #{detailed,jdbcType=VARCHAR},
+ #{advice,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER})
+
+
+ insert into herbalprescription
+
+
+ ID,
+
+
+ MedicalID,
+
+
+ RegistID,
+
+
+ UserID,
+
+
+ PrescriptionName,
+
+
+ CreationTime,
+
+
+ PrescriptioType,
+
+
+ PayNumber,
+
+
+ Frequency,
+
+
+ DrugsUsage,
+
+
+ Therapy,
+
+
+ Detailed,
+
+
+ Advice,
+
+
+ State,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{medicalid,jdbcType=INTEGER},
+
+
+ #{registid,jdbcType=INTEGER},
+
+
+ #{userid,jdbcType=INTEGER},
+
+
+ #{prescriptionname,jdbcType=VARCHAR},
+
+
+ #{creationtime,jdbcType=TIMESTAMP},
+
+
+ #{prescriptiotype,jdbcType=VARCHAR},
+
+
+ #{paynumber,jdbcType=INTEGER},
+
+
+ #{frequency,jdbcType=VARCHAR},
+
+
+ #{drugsusage,jdbcType=VARCHAR},
+
+
+ #{therapy,jdbcType=VARCHAR},
+
+
+ #{detailed,jdbcType=VARCHAR},
+
+
+ #{advice,jdbcType=VARCHAR},
+
+
+ #{state,jdbcType=INTEGER},
+
+
+
+
+ update herbalprescription
+
+
+ MedicalID = #{medicalid,jdbcType=INTEGER},
+
+
+ RegistID = #{registid,jdbcType=INTEGER},
+
+
+ UserID = #{userid,jdbcType=INTEGER},
+
+
+ PrescriptionName = #{prescriptionname,jdbcType=VARCHAR},
+
+
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+
+
+ PrescriptioType = #{prescriptiotype,jdbcType=VARCHAR},
+
+
+ PayNumber = #{paynumber,jdbcType=INTEGER},
+
+
+ Frequency = #{frequency,jdbcType=VARCHAR},
+
+
+ DrugsUsage = #{drugsusage,jdbcType=VARCHAR},
+
+
+ Therapy = #{therapy,jdbcType=VARCHAR},
+
+
+ Detailed = #{detailed,jdbcType=VARCHAR},
+
+
+ Advice = #{advice,jdbcType=VARCHAR},
+
+
+ State = #{state,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update herbalprescription
+ set MedicalID = #{medicalid,jdbcType=INTEGER},
+ RegistID = #{registid,jdbcType=INTEGER},
+ UserID = #{userid,jdbcType=INTEGER},
+ PrescriptionName = #{prescriptionname,jdbcType=VARCHAR},
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+ PrescriptioType = #{prescriptiotype,jdbcType=VARCHAR},
+ PayNumber = #{paynumber,jdbcType=INTEGER},
+ Frequency = #{frequency,jdbcType=VARCHAR},
+ DrugsUsage = #{drugsusage,jdbcType=VARCHAR},
+ Therapy = #{therapy,jdbcType=VARCHAR},
+ Detailed = #{detailed,jdbcType=VARCHAR},
+ Advice = #{advice,jdbcType=VARCHAR},
+ State = #{state,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/HerbaltempdetailedMapper.xml b/src/main/resources/mapper/HerbaltempdetailedMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8a87b838e086c939c3bae5133d5e1a8698f8a20f
--- /dev/null
+++ b/src/main/resources/mapper/HerbaltempdetailedMapper.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, HerbalTempID, HerbalID, Dosage, Unit, Footnote
+
+
+
+ delete from herbaltempdetailed
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into herbaltempdetailed (ID, HerbalTempID, HerbalID,
+ Dosage, Unit, Footnote
+ )
+ values (#{id,jdbcType=INTEGER}, #{herbaltempid,jdbcType=INTEGER}, #{herbalid,jdbcType=INTEGER},
+ #{dosage,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{footnote,jdbcType=VARCHAR}
+ )
+
+
+ insert into herbaltempdetailed
+
+
+ ID,
+
+
+ HerbalTempID,
+
+
+ HerbalID,
+
+
+ Dosage,
+
+
+ Unit,
+
+
+ Footnote,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{herbaltempid,jdbcType=INTEGER},
+
+
+ #{herbalid,jdbcType=INTEGER},
+
+
+ #{dosage,jdbcType=VARCHAR},
+
+
+ #{unit,jdbcType=VARCHAR},
+
+
+ #{footnote,jdbcType=VARCHAR},
+
+
+
+
+ update herbaltempdetailed
+
+
+ HerbalTempID = #{herbaltempid,jdbcType=INTEGER},
+
+
+ HerbalID = #{herbalid,jdbcType=INTEGER},
+
+
+ Dosage = #{dosage,jdbcType=VARCHAR},
+
+
+ Unit = #{unit,jdbcType=VARCHAR},
+
+
+ Footnote = #{footnote,jdbcType=VARCHAR},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update herbaltempdetailed
+ set HerbalTempID = #{herbaltempid,jdbcType=INTEGER},
+ HerbalID = #{herbalid,jdbcType=INTEGER},
+ Dosage = #{dosage,jdbcType=VARCHAR},
+ Unit = #{unit,jdbcType=VARCHAR},
+ Footnote = #{footnote,jdbcType=VARCHAR}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/HerbaltemplateMapper.xml b/src/main/resources/mapper/HerbaltemplateMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..c2c021a937420f6eb7d3d79132df50f7c85ffed5
--- /dev/null
+++ b/src/main/resources/mapper/HerbaltemplateMapper.xml
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, Name, DoctorID, CreationTime, PrescriptioType, PayNumber, DrugsUsage, Therapy,
+ Detailed, Advice, Scope, DelMark
+
+
+
+ delete from herbaltemplate
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into herbaltemplate (ID, Name, DoctorID,
+ CreationTime, PrescriptioType, PayNumber,
+ DrugsUsage, Therapy, Detailed,
+ Advice, Scope, DelMark
+ )
+ values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{doctorid,jdbcType=INTEGER},
+ #{creationtime,jdbcType=TIMESTAMP}, #{prescriptiotype,jdbcType=VARCHAR}, #{paynumber,jdbcType=INTEGER},
+ #{drugsusage,jdbcType=VARCHAR}, #{therapy,jdbcType=VARCHAR}, #{detailed,jdbcType=VARCHAR},
+ #{advice,jdbcType=VARCHAR}, #{scope,jdbcType=VARCHAR}, #{delmark,jdbcType=INTEGER}
+ )
+
+
+ insert into herbaltemplate
+
+
+ ID,
+
+
+ Name,
+
+
+ DoctorID,
+
+
+ CreationTime,
+
+
+ PrescriptioType,
+
+
+ PayNumber,
+
+
+ DrugsUsage,
+
+
+ Therapy,
+
+
+ Detailed,
+
+
+ Advice,
+
+
+ Scope,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{doctorid,jdbcType=INTEGER},
+
+
+ #{creationtime,jdbcType=TIMESTAMP},
+
+
+ #{prescriptiotype,jdbcType=VARCHAR},
+
+
+ #{paynumber,jdbcType=INTEGER},
+
+
+ #{drugsusage,jdbcType=VARCHAR},
+
+
+ #{therapy,jdbcType=VARCHAR},
+
+
+ #{detailed,jdbcType=VARCHAR},
+
+
+ #{advice,jdbcType=VARCHAR},
+
+
+ #{scope,jdbcType=VARCHAR},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update herbaltemplate
+
+
+ Name = #{name,jdbcType=VARCHAR},
+
+
+ DoctorID = #{doctorid,jdbcType=INTEGER},
+
+
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+
+
+ PrescriptioType = #{prescriptiotype,jdbcType=VARCHAR},
+
+
+ PayNumber = #{paynumber,jdbcType=INTEGER},
+
+
+ DrugsUsage = #{drugsusage,jdbcType=VARCHAR},
+
+
+ Therapy = #{therapy,jdbcType=VARCHAR},
+
+
+ Detailed = #{detailed,jdbcType=VARCHAR},
+
+
+ Advice = #{advice,jdbcType=VARCHAR},
+
+
+ Scope = #{scope,jdbcType=VARCHAR},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update herbaltemplate
+ set Name = #{name,jdbcType=VARCHAR},
+ DoctorID = #{doctorid,jdbcType=INTEGER},
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+ PrescriptioType = #{prescriptiotype,jdbcType=VARCHAR},
+ PayNumber = #{paynumber,jdbcType=INTEGER},
+ DrugsUsage = #{drugsusage,jdbcType=VARCHAR},
+ Therapy = #{therapy,jdbcType=VARCHAR},
+ Detailed = #{detailed,jdbcType=VARCHAR},
+ Advice = #{advice,jdbcType=VARCHAR},
+ Scope = #{scope,jdbcType=VARCHAR},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/InvoiceMapper.xml b/src/main/resources/mapper/InvoiceMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8e1d5713d7b529f3ceca9603d934d952de5eafa1
--- /dev/null
+++ b/src/main/resources/mapper/InvoiceMapper.xml
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, InvoiceNum, Money, State, CreationTime, UserID, RegistID, FeeType, Back, DailyState
+
+
+
+ delete from invoice
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into invoice (ID, InvoiceNum, Money,
+ State, CreationTime, UserID,
+ RegistID, FeeType, Back,
+ DailyState)
+ values (#{id,jdbcType=INTEGER}, #{invoicenum,jdbcType=VARCHAR}, #{money,jdbcType=DECIMAL},
+ #{state,jdbcType=INTEGER}, #{creationtime,jdbcType=TIMESTAMP}, #{userid,jdbcType=INTEGER},
+ #{registid,jdbcType=INTEGER}, #{feetype,jdbcType=INTEGER}, #{back,jdbcType=VARCHAR},
+ #{dailystate,jdbcType=INTEGER})
+
+
+ insert into invoice
+
+
+ ID,
+
+
+ InvoiceNum,
+
+
+ Money,
+
+
+ State,
+
+
+ CreationTime,
+
+
+ UserID,
+
+
+ RegistID,
+
+
+ FeeType,
+
+
+ Back,
+
+
+ DailyState,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{invoicenum,jdbcType=VARCHAR},
+
+
+ #{money,jdbcType=DECIMAL},
+
+
+ #{state,jdbcType=INTEGER},
+
+
+ #{creationtime,jdbcType=TIMESTAMP},
+
+
+ #{userid,jdbcType=INTEGER},
+
+
+ #{registid,jdbcType=INTEGER},
+
+
+ #{feetype,jdbcType=INTEGER},
+
+
+ #{back,jdbcType=VARCHAR},
+
+
+ #{dailystate,jdbcType=INTEGER},
+
+
+
+
+ update invoice
+
+
+ InvoiceNum = #{invoicenum,jdbcType=VARCHAR},
+
+
+ Money = #{money,jdbcType=DECIMAL},
+
+
+ State = #{state,jdbcType=INTEGER},
+
+
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+
+
+ UserID = #{userid,jdbcType=INTEGER},
+
+
+ RegistID = #{registid,jdbcType=INTEGER},
+
+
+ FeeType = #{feetype,jdbcType=INTEGER},
+
+
+ Back = #{back,jdbcType=VARCHAR},
+
+
+ DailyState = #{dailystate,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update invoice
+ set InvoiceNum = #{invoicenum,jdbcType=VARCHAR},
+ Money = #{money,jdbcType=DECIMAL},
+ State = #{state,jdbcType=INTEGER},
+ CreationTime = #{creationtime,jdbcType=TIMESTAMP},
+ UserID = #{userid,jdbcType=INTEGER},
+ RegistID = #{registid,jdbcType=INTEGER},
+ FeeType = #{feetype,jdbcType=INTEGER},
+ Back = #{back,jdbcType=VARCHAR},
+ DailyState = #{dailystate,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/MedicaldiseaseMapper.xml b/src/main/resources/mapper/MedicaldiseaseMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..6b7a7df133c875271c9229e32fd93b3dae756419
--- /dev/null
+++ b/src/main/resources/mapper/MedicaldiseaseMapper.xml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, MedicalID, RegistID, DiseaseID, DiagnoseType, GetSiskDate, DiagnoseCate
+
+
+
+ delete from medicaldisease
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into medicaldisease (ID, MedicalID, RegistID,
+ DiseaseID, DiagnoseType, GetSiskDate,
+ DiagnoseCate)
+ values (#{id,jdbcType=INTEGER}, #{medicalid,jdbcType=INTEGER}, #{registid,jdbcType=INTEGER},
+ #{diseaseid,jdbcType=INTEGER}, #{diagnosetype,jdbcType=INTEGER}, #{getsiskdate,jdbcType=TIMESTAMP},
+ #{diagnosecate,jdbcType=INTEGER})
+
+
+ insert into medicaldisease
+
+
+ ID,
+
+
+ MedicalID,
+
+
+ RegistID,
+
+
+ DiseaseID,
+
+
+ DiagnoseType,
+
+
+ GetSiskDate,
+
+
+ DiagnoseCate,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{medicalid,jdbcType=INTEGER},
+
+
+ #{registid,jdbcType=INTEGER},
+
+
+ #{diseaseid,jdbcType=INTEGER},
+
+
+ #{diagnosetype,jdbcType=INTEGER},
+
+
+ #{getsiskdate,jdbcType=TIMESTAMP},
+
+
+ #{diagnosecate,jdbcType=INTEGER},
+
+
+
+
+ update medicaldisease
+
+
+ MedicalID = #{medicalid,jdbcType=INTEGER},
+
+
+ RegistID = #{registid,jdbcType=INTEGER},
+
+
+ DiseaseID = #{diseaseid,jdbcType=INTEGER},
+
+
+ DiagnoseType = #{diagnosetype,jdbcType=INTEGER},
+
+
+ GetSiskDate = #{getsiskdate,jdbcType=TIMESTAMP},
+
+
+ DiagnoseCate = #{diagnosecate,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update medicaldisease
+ set MedicalID = #{medicalid,jdbcType=INTEGER},
+ RegistID = #{registid,jdbcType=INTEGER},
+ DiseaseID = #{diseaseid,jdbcType=INTEGER},
+ DiagnoseType = #{diagnosetype,jdbcType=INTEGER},
+ GetSiskDate = #{getsiskdate,jdbcType=TIMESTAMP},
+ DiagnoseCate = #{diagnosecate,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/MedicalrecordMapper.xml b/src/main/resources/mapper/MedicalrecordMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..4127e3fd11dcdad4c53ebb39c1695d6731f89011
--- /dev/null
+++ b/src/main/resources/mapper/MedicalrecordMapper.xml
@@ -0,0 +1,212 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, CaseNumber, RegistID, Readme, Present, PresentTreat, History, Allergy, Physique,
+ Proposal, Careful, CheckResult, Diagnosis, Handling, CaseState
+
+
+
+ delete from medicalrecord
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into medicalrecord (ID, CaseNumber, RegistID,
+ Readme, Present, PresentTreat,
+ History, Allergy, Physique,
+ Proposal, Careful, CheckResult,
+ Diagnosis, Handling, CaseState
+ )
+ values (#{id,jdbcType=INTEGER}, #{casenumber,jdbcType=VARCHAR}, #{registid,jdbcType=INTEGER},
+ #{readme,jdbcType=VARCHAR}, #{present,jdbcType=VARCHAR}, #{presenttreat,jdbcType=VARCHAR},
+ #{history,jdbcType=VARCHAR}, #{allergy,jdbcType=VARCHAR}, #{physique,jdbcType=VARCHAR},
+ #{proposal,jdbcType=VARCHAR}, #{careful,jdbcType=VARCHAR}, #{checkresult,jdbcType=VARCHAR},
+ #{diagnosis,jdbcType=VARCHAR}, #{handling,jdbcType=VARCHAR}, #{casestate,jdbcType=INTEGER}
+ )
+
+
+ insert into medicalrecord
+
+
+ ID,
+
+
+ CaseNumber,
+
+
+ RegistID,
+
+
+ Readme,
+
+
+ Present,
+
+
+ PresentTreat,
+
+
+ History,
+
+
+ Allergy,
+
+
+ Physique,
+
+
+ Proposal,
+
+
+ Careful,
+
+
+ CheckResult,
+
+
+ Diagnosis,
+
+
+ Handling,
+
+
+ CaseState,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{casenumber,jdbcType=VARCHAR},
+
+
+ #{registid,jdbcType=INTEGER},
+
+
+ #{readme,jdbcType=VARCHAR},
+
+
+ #{present,jdbcType=VARCHAR},
+
+
+ #{presenttreat,jdbcType=VARCHAR},
+
+
+ #{history,jdbcType=VARCHAR},
+
+
+ #{allergy,jdbcType=VARCHAR},
+
+
+ #{physique,jdbcType=VARCHAR},
+
+
+ #{proposal,jdbcType=VARCHAR},
+
+
+ #{careful,jdbcType=VARCHAR},
+
+
+ #{checkresult,jdbcType=VARCHAR},
+
+
+ #{diagnosis,jdbcType=VARCHAR},
+
+
+ #{handling,jdbcType=VARCHAR},
+
+
+ #{casestate,jdbcType=INTEGER},
+
+
+
+
+ update medicalrecord
+
+
+ CaseNumber = #{casenumber,jdbcType=VARCHAR},
+
+
+ RegistID = #{registid,jdbcType=INTEGER},
+
+
+ Readme = #{readme,jdbcType=VARCHAR},
+
+
+ Present = #{present,jdbcType=VARCHAR},
+
+
+ PresentTreat = #{presenttreat,jdbcType=VARCHAR},
+
+
+ History = #{history,jdbcType=VARCHAR},
+
+
+ Allergy = #{allergy,jdbcType=VARCHAR},
+
+
+ Physique = #{physique,jdbcType=VARCHAR},
+
+
+ Proposal = #{proposal,jdbcType=VARCHAR},
+
+
+ Careful = #{careful,jdbcType=VARCHAR},
+
+
+ CheckResult = #{checkresult,jdbcType=VARCHAR},
+
+
+ Diagnosis = #{diagnosis,jdbcType=VARCHAR},
+
+
+ Handling = #{handling,jdbcType=VARCHAR},
+
+
+ CaseState = #{casestate,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update medicalrecord
+ set CaseNumber = #{casenumber,jdbcType=VARCHAR},
+ RegistID = #{registid,jdbcType=INTEGER},
+ Readme = #{readme,jdbcType=VARCHAR},
+ Present = #{present,jdbcType=VARCHAR},
+ PresentTreat = #{presenttreat,jdbcType=VARCHAR},
+ History = #{history,jdbcType=VARCHAR},
+ Allergy = #{allergy,jdbcType=VARCHAR},
+ Physique = #{physique,jdbcType=VARCHAR},
+ Proposal = #{proposal,jdbcType=VARCHAR},
+ Careful = #{careful,jdbcType=VARCHAR},
+ CheckResult = #{checkresult,jdbcType=VARCHAR},
+ Diagnosis = #{diagnosis,jdbcType=VARCHAR},
+ Handling = #{handling,jdbcType=VARCHAR},
+ CaseState = #{casestate,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/PatientcostsMapper.xml b/src/main/resources/mapper/PatientcostsMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..b8c96d158025a5a27cacb1b436de1529bef31444
--- /dev/null
+++ b/src/main/resources/mapper/PatientcostsMapper.xml
@@ -0,0 +1,212 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, RegistID, InvoiceID, ItemID, ItemType, Name, Price, Amount, DeptID, Createtime,
+ CreateOperID, PayTime, RegisterID, FeeType, BackID
+
+
+
+ delete from patientcosts
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into patientcosts (ID, RegistID, InvoiceID,
+ ItemID, ItemType, Name,
+ Price, Amount, DeptID,
+ Createtime, CreateOperID, PayTime,
+ RegisterID, FeeType, BackID
+ )
+ values (#{id,jdbcType=INTEGER}, #{registid,jdbcType=INTEGER}, #{invoiceid,jdbcType=INTEGER},
+ #{itemid,jdbcType=INTEGER}, #{itemtype,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
+ #{price,jdbcType=DECIMAL}, #{amount,jdbcType=DECIMAL}, #{deptid,jdbcType=INTEGER},
+ #{createtime,jdbcType=TIMESTAMP}, #{createoperid,jdbcType=INTEGER}, #{paytime,jdbcType=TIMESTAMP},
+ #{registerid,jdbcType=INTEGER}, #{feetype,jdbcType=INTEGER}, #{backid,jdbcType=INTEGER}
+ )
+
+
+ insert into patientcosts
+
+
+ ID,
+
+
+ RegistID,
+
+
+ InvoiceID,
+
+
+ ItemID,
+
+
+ ItemType,
+
+
+ Name,
+
+
+ Price,
+
+
+ Amount,
+
+
+ DeptID,
+
+
+ Createtime,
+
+
+ CreateOperID,
+
+
+ PayTime,
+
+
+ RegisterID,
+
+
+ FeeType,
+
+
+ BackID,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{registid,jdbcType=INTEGER},
+
+
+ #{invoiceid,jdbcType=INTEGER},
+
+
+ #{itemid,jdbcType=INTEGER},
+
+
+ #{itemtype,jdbcType=INTEGER},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{price,jdbcType=DECIMAL},
+
+
+ #{amount,jdbcType=DECIMAL},
+
+
+ #{deptid,jdbcType=INTEGER},
+
+
+ #{createtime,jdbcType=TIMESTAMP},
+
+
+ #{createoperid,jdbcType=INTEGER},
+
+
+ #{paytime,jdbcType=TIMESTAMP},
+
+
+ #{registerid,jdbcType=INTEGER},
+
+
+ #{feetype,jdbcType=INTEGER},
+
+
+ #{backid,jdbcType=INTEGER},
+
+
+
+
+ update patientcosts
+
+
+ RegistID = #{registid,jdbcType=INTEGER},
+
+
+ InvoiceID = #{invoiceid,jdbcType=INTEGER},
+
+
+ ItemID = #{itemid,jdbcType=INTEGER},
+
+
+ ItemType = #{itemtype,jdbcType=INTEGER},
+
+
+ Name = #{name,jdbcType=VARCHAR},
+
+
+ Price = #{price,jdbcType=DECIMAL},
+
+
+ Amount = #{amount,jdbcType=DECIMAL},
+
+
+ DeptID = #{deptid,jdbcType=INTEGER},
+
+
+ Createtime = #{createtime,jdbcType=TIMESTAMP},
+
+
+ CreateOperID = #{createoperid,jdbcType=INTEGER},
+
+
+ PayTime = #{paytime,jdbcType=TIMESTAMP},
+
+
+ RegisterID = #{registerid,jdbcType=INTEGER},
+
+
+ FeeType = #{feetype,jdbcType=INTEGER},
+
+
+ BackID = #{backid,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update patientcosts
+ set RegistID = #{registid,jdbcType=INTEGER},
+ InvoiceID = #{invoiceid,jdbcType=INTEGER},
+ ItemID = #{itemid,jdbcType=INTEGER},
+ ItemType = #{itemtype,jdbcType=INTEGER},
+ Name = #{name,jdbcType=VARCHAR},
+ Price = #{price,jdbcType=DECIMAL},
+ Amount = #{amount,jdbcType=DECIMAL},
+ DeptID = #{deptid,jdbcType=INTEGER},
+ Createtime = #{createtime,jdbcType=TIMESTAMP},
+ CreateOperID = #{createoperid,jdbcType=INTEGER},
+ PayTime = #{paytime,jdbcType=TIMESTAMP},
+ RegisterID = #{registerid,jdbcType=INTEGER},
+ FeeType = #{feetype,jdbcType=INTEGER},
+ BackID = #{backid,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/PrescriptionMapper.xml b/src/main/resources/mapper/PrescriptionMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..4242ab9cff48da026d3273334276dffe0196da3b
--- /dev/null
+++ b/src/main/resources/mapper/PrescriptionMapper.xml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, MedicalID, RegistID, UserID, PrescriptionName, PrescriptionTime, PrescriptionState
+
+
+
+ delete from prescription
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into prescription (ID, MedicalID, RegistID,
+ UserID, PrescriptionName, PrescriptionTime,
+ PrescriptionState)
+ values (#{id,jdbcType=INTEGER}, #{medicalid,jdbcType=INTEGER}, #{registid,jdbcType=INTEGER},
+ #{userid,jdbcType=INTEGER}, #{prescriptionname,jdbcType=VARCHAR}, #{prescriptiontime,jdbcType=TIMESTAMP},
+ #{prescriptionstate,jdbcType=INTEGER})
+
+
+ insert into prescription
+
+
+ ID,
+
+
+ MedicalID,
+
+
+ RegistID,
+
+
+ UserID,
+
+
+ PrescriptionName,
+
+
+ PrescriptionTime,
+
+
+ PrescriptionState,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{medicalid,jdbcType=INTEGER},
+
+
+ #{registid,jdbcType=INTEGER},
+
+
+ #{userid,jdbcType=INTEGER},
+
+
+ #{prescriptionname,jdbcType=VARCHAR},
+
+
+ #{prescriptiontime,jdbcType=TIMESTAMP},
+
+
+ #{prescriptionstate,jdbcType=INTEGER},
+
+
+
+
+ update prescription
+
+
+ MedicalID = #{medicalid,jdbcType=INTEGER},
+
+
+ RegistID = #{registid,jdbcType=INTEGER},
+
+
+ UserID = #{userid,jdbcType=INTEGER},
+
+
+ PrescriptionName = #{prescriptionname,jdbcType=VARCHAR},
+
+
+ PrescriptionTime = #{prescriptiontime,jdbcType=TIMESTAMP},
+
+
+ PrescriptionState = #{prescriptionstate,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update prescription
+ set MedicalID = #{medicalid,jdbcType=INTEGER},
+ RegistID = #{registid,jdbcType=INTEGER},
+ UserID = #{userid,jdbcType=INTEGER},
+ PrescriptionName = #{prescriptionname,jdbcType=VARCHAR},
+ PrescriptionTime = #{prescriptiontime,jdbcType=TIMESTAMP},
+ PrescriptionState = #{prescriptionstate,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/PrescriptiondetailedMapper.xml b/src/main/resources/mapper/PrescriptiondetailedMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..99bc71c111a476b697f0f2df034149eed1925fdd
--- /dev/null
+++ b/src/main/resources/mapper/PrescriptiondetailedMapper.xml
@@ -0,0 +1,128 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, PrescriptionID, DrugsID, DrugsUsage, Dosage, Frequency, Amount, State
+
+
+
+ delete from prescriptiondetailed
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into prescriptiondetailed (ID, PrescriptionID, DrugsID,
+ DrugsUsage, Dosage, Frequency,
+ Amount, State)
+ values (#{id,jdbcType=INTEGER}, #{prescriptionid,jdbcType=INTEGER}, #{drugsid,jdbcType=INTEGER},
+ #{drugsusage,jdbcType=VARCHAR}, #{dosage,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR},
+ #{amount,jdbcType=DECIMAL}, #{state,jdbcType=INTEGER})
+
+
+ insert into prescriptiondetailed
+
+
+ ID,
+
+
+ PrescriptionID,
+
+
+ DrugsID,
+
+
+ DrugsUsage,
+
+
+ Dosage,
+
+
+ Frequency,
+
+
+ Amount,
+
+
+ State,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{prescriptionid,jdbcType=INTEGER},
+
+
+ #{drugsid,jdbcType=INTEGER},
+
+
+ #{drugsusage,jdbcType=VARCHAR},
+
+
+ #{dosage,jdbcType=VARCHAR},
+
+
+ #{frequency,jdbcType=VARCHAR},
+
+
+ #{amount,jdbcType=DECIMAL},
+
+
+ #{state,jdbcType=INTEGER},
+
+
+
+
+ update prescriptiondetailed
+
+
+ PrescriptionID = #{prescriptionid,jdbcType=INTEGER},
+
+
+ DrugsID = #{drugsid,jdbcType=INTEGER},
+
+
+ DrugsUsage = #{drugsusage,jdbcType=VARCHAR},
+
+
+ Dosage = #{dosage,jdbcType=VARCHAR},
+
+
+ Frequency = #{frequency,jdbcType=VARCHAR},
+
+
+ Amount = #{amount,jdbcType=DECIMAL},
+
+
+ State = #{state,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update prescriptiondetailed
+ set PrescriptionID = #{prescriptionid,jdbcType=INTEGER},
+ DrugsID = #{drugsid,jdbcType=INTEGER},
+ DrugsUsage = #{drugsusage,jdbcType=VARCHAR},
+ Dosage = #{dosage,jdbcType=VARCHAR},
+ Frequency = #{frequency,jdbcType=VARCHAR},
+ Amount = #{amount,jdbcType=DECIMAL},
+ State = #{state,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/RegisterMapper.xml b/src/main/resources/mapper/RegisterMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..3e0c188203a1720219ee60c7d63513607b57eedc
--- /dev/null
+++ b/src/main/resources/mapper/RegisterMapper.xml
@@ -0,0 +1,259 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, CaseNumber, RealName, Gender, IDnumber, BirthDate, Age, AgeType, HomeAddress,
+ VisitDate, Noon, DeptID, UserID, RegistLeID, SettleID, IsBook, RegistTime, RegisterID,
+ VisitState
+
+
+
+ delete from register
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into register (ID, CaseNumber, RealName,
+ Gender, IDnumber, BirthDate,
+ Age, AgeType, HomeAddress,
+ VisitDate, Noon, DeptID,
+ UserID, RegistLeID, SettleID,
+ IsBook, RegistTime, RegisterID,
+ VisitState)
+ values (#{id,jdbcType=INTEGER}, #{casenumber,jdbcType=VARCHAR}, #{realname,jdbcType=VARCHAR},
+ #{gender,jdbcType=INTEGER}, #{idnumber,jdbcType=VARCHAR}, #{birthdate,jdbcType=DATE},
+ #{age,jdbcType=INTEGER}, #{agetype,jdbcType=CHAR}, #{homeaddress,jdbcType=VARCHAR},
+ #{visitdate,jdbcType=DATE}, #{noon,jdbcType=CHAR}, #{deptid,jdbcType=INTEGER},
+ #{userid,jdbcType=INTEGER}, #{registleid,jdbcType=INTEGER}, #{settleid,jdbcType=INTEGER},
+ #{isbook,jdbcType=CHAR}, #{registtime,jdbcType=TIMESTAMP}, #{registerid,jdbcType=INTEGER},
+ #{visitstate,jdbcType=INTEGER})
+
+
+ insert into register
+
+
+ ID,
+
+
+ CaseNumber,
+
+
+ RealName,
+
+
+ Gender,
+
+
+ IDnumber,
+
+
+ BirthDate,
+
+
+ Age,
+
+
+ AgeType,
+
+
+ HomeAddress,
+
+
+ VisitDate,
+
+
+ Noon,
+
+
+ DeptID,
+
+
+ UserID,
+
+
+ RegistLeID,
+
+
+ SettleID,
+
+
+ IsBook,
+
+
+ RegistTime,
+
+
+ RegisterID,
+
+
+ VisitState,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{casenumber,jdbcType=VARCHAR},
+
+
+ #{realname,jdbcType=VARCHAR},
+
+
+ #{gender,jdbcType=INTEGER},
+
+
+ #{idnumber,jdbcType=VARCHAR},
+
+
+ #{birthdate,jdbcType=DATE},
+
+
+ #{age,jdbcType=INTEGER},
+
+
+ #{agetype,jdbcType=CHAR},
+
+
+ #{homeaddress,jdbcType=VARCHAR},
+
+
+ #{visitdate,jdbcType=DATE},
+
+
+ #{noon,jdbcType=CHAR},
+
+
+ #{deptid,jdbcType=INTEGER},
+
+
+ #{userid,jdbcType=INTEGER},
+
+
+ #{registleid,jdbcType=INTEGER},
+
+
+ #{settleid,jdbcType=INTEGER},
+
+
+ #{isbook,jdbcType=CHAR},
+
+
+ #{registtime,jdbcType=TIMESTAMP},
+
+
+ #{registerid,jdbcType=INTEGER},
+
+
+ #{visitstate,jdbcType=INTEGER},
+
+
+
+
+ update register
+
+
+ CaseNumber = #{casenumber,jdbcType=VARCHAR},
+
+
+ RealName = #{realname,jdbcType=VARCHAR},
+
+
+ Gender = #{gender,jdbcType=INTEGER},
+
+
+ IDnumber = #{idnumber,jdbcType=VARCHAR},
+
+
+ BirthDate = #{birthdate,jdbcType=DATE},
+
+
+ Age = #{age,jdbcType=INTEGER},
+
+
+ AgeType = #{agetype,jdbcType=CHAR},
+
+
+ HomeAddress = #{homeaddress,jdbcType=VARCHAR},
+
+
+ VisitDate = #{visitdate,jdbcType=DATE},
+
+
+ Noon = #{noon,jdbcType=CHAR},
+
+
+ DeptID = #{deptid,jdbcType=INTEGER},
+
+
+ UserID = #{userid,jdbcType=INTEGER},
+
+
+ RegistLeID = #{registleid,jdbcType=INTEGER},
+
+
+ SettleID = #{settleid,jdbcType=INTEGER},
+
+
+ IsBook = #{isbook,jdbcType=CHAR},
+
+
+ RegistTime = #{registtime,jdbcType=TIMESTAMP},
+
+
+ RegisterID = #{registerid,jdbcType=INTEGER},
+
+
+ VisitState = #{visitstate,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update register
+ set CaseNumber = #{casenumber,jdbcType=VARCHAR},
+ RealName = #{realname,jdbcType=VARCHAR},
+ Gender = #{gender,jdbcType=INTEGER},
+ IDnumber = #{idnumber,jdbcType=VARCHAR},
+ BirthDate = #{birthdate,jdbcType=DATE},
+ Age = #{age,jdbcType=INTEGER},
+ AgeType = #{agetype,jdbcType=CHAR},
+ HomeAddress = #{homeaddress,jdbcType=VARCHAR},
+ VisitDate = #{visitdate,jdbcType=DATE},
+ Noon = #{noon,jdbcType=CHAR},
+ DeptID = #{deptid,jdbcType=INTEGER},
+ UserID = #{userid,jdbcType=INTEGER},
+ RegistLeID = #{registleid,jdbcType=INTEGER},
+ SettleID = #{settleid,jdbcType=INTEGER},
+ IsBook = #{isbook,jdbcType=CHAR},
+ RegistTime = #{registtime,jdbcType=TIMESTAMP},
+ RegisterID = #{registerid,jdbcType=INTEGER},
+ VisitState = #{visitstate,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/RegistlevelMapper.xml b/src/main/resources/mapper/RegistlevelMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..8d36e41c3bb56cd1f127239fb90e5a17f2c7c4b1
--- /dev/null
+++ b/src/main/resources/mapper/RegistlevelMapper.xml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, RegistCode, RegistName, SequenceNo, RegistFee, RegistQuota, DelMark
+
+
+
+ delete from registlevel
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into registlevel (ID, RegistCode, RegistName,
+ SequenceNo, RegistFee, RegistQuota,
+ DelMark)
+ values (#{id,jdbcType=INTEGER}, #{registcode,jdbcType=VARCHAR}, #{registname,jdbcType=VARCHAR},
+ #{sequenceno,jdbcType=INTEGER}, #{registfee,jdbcType=DECIMAL}, #{registquota,jdbcType=INTEGER},
+ #{delmark,jdbcType=INTEGER})
+
+
+ insert into registlevel
+
+
+ ID,
+
+
+ RegistCode,
+
+
+ RegistName,
+
+
+ SequenceNo,
+
+
+ RegistFee,
+
+
+ RegistQuota,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{registcode,jdbcType=VARCHAR},
+
+
+ #{registname,jdbcType=VARCHAR},
+
+
+ #{sequenceno,jdbcType=INTEGER},
+
+
+ #{registfee,jdbcType=DECIMAL},
+
+
+ #{registquota,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update registlevel
+
+
+ RegistCode = #{registcode,jdbcType=VARCHAR},
+
+
+ RegistName = #{registname,jdbcType=VARCHAR},
+
+
+ SequenceNo = #{sequenceno,jdbcType=INTEGER},
+
+
+ RegistFee = #{registfee,jdbcType=DECIMAL},
+
+
+ RegistQuota = #{registquota,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update registlevel
+ set RegistCode = #{registcode,jdbcType=VARCHAR},
+ RegistName = #{registname,jdbcType=VARCHAR},
+ SequenceNo = #{sequenceno,jdbcType=INTEGER},
+ RegistFee = #{registfee,jdbcType=DECIMAL},
+ RegistQuota = #{registquota,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/RegistworkMapper.xml b/src/main/resources/mapper/RegistworkMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e90fb1bb466592376b4467f8a04b72a5c453e720
--- /dev/null
+++ b/src/main/resources/mapper/RegistworkMapper.xml
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+
+
+
+
+ ID, RegisterID, StartTime, EndTime
+
+
+
+ delete from registwork
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into registwork (ID, RegisterID, StartTime,
+ EndTime)
+ values (#{id,jdbcType=INTEGER}, #{registerid,jdbcType=INTEGER}, #{starttime,jdbcType=TIMESTAMP},
+ #{endtime,jdbcType=TIMESTAMP})
+
+
+ insert into registwork
+
+
+ ID,
+
+
+ RegisterID,
+
+
+ StartTime,
+
+
+ EndTime,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{registerid,jdbcType=INTEGER},
+
+
+ #{starttime,jdbcType=TIMESTAMP},
+
+
+ #{endtime,jdbcType=TIMESTAMP},
+
+
+
+
+ update registwork
+
+
+ RegisterID = #{registerid,jdbcType=INTEGER},
+
+
+ StartTime = #{starttime,jdbcType=TIMESTAMP},
+
+
+ EndTime = #{endtime,jdbcType=TIMESTAMP},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update registwork
+ set RegisterID = #{registerid,jdbcType=INTEGER},
+ StartTime = #{starttime,jdbcType=TIMESTAMP},
+ EndTime = #{endtime,jdbcType=TIMESTAMP}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/RuleMapper.xml b/src/main/resources/mapper/RuleMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..c1760dffb993c3785b0746aed65d0c41343feb09
--- /dev/null
+++ b/src/main/resources/mapper/RuleMapper.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, RuleName, DeptID, UserID, Week, DelMark
+
+
+
+ delete from rule
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into rule (ID, RuleName, DeptID,
+ UserID, Week, DelMark
+ )
+ values (#{id,jdbcType=INTEGER}, #{rulename,jdbcType=VARCHAR}, #{deptid,jdbcType=INTEGER},
+ #{userid,jdbcType=INTEGER}, #{week,jdbcType=VARCHAR}, #{delmark,jdbcType=INTEGER}
+ )
+
+
+ insert into rule
+
+
+ ID,
+
+
+ RuleName,
+
+
+ DeptID,
+
+
+ UserID,
+
+
+ Week,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{rulename,jdbcType=VARCHAR},
+
+
+ #{deptid,jdbcType=INTEGER},
+
+
+ #{userid,jdbcType=INTEGER},
+
+
+ #{week,jdbcType=VARCHAR},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update rule
+
+
+ RuleName = #{rulename,jdbcType=VARCHAR},
+
+
+ DeptID = #{deptid,jdbcType=INTEGER},
+
+
+ UserID = #{userid,jdbcType=INTEGER},
+
+
+ Week = #{week,jdbcType=VARCHAR},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update rule
+ set RuleName = #{rulename,jdbcType=VARCHAR},
+ DeptID = #{deptid,jdbcType=INTEGER},
+ UserID = #{userid,jdbcType=INTEGER},
+ Week = #{week,jdbcType=VARCHAR},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/SchedulingMapper.xml b/src/main/resources/mapper/SchedulingMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1e8564fabf8318e1a60fcac76971d61f291822e2
--- /dev/null
+++ b/src/main/resources/mapper/SchedulingMapper.xml
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, SchedDate, DeptID, UserID, Noon, RuleID, DelMark
+
+
+
+ delete from scheduling
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into scheduling (ID, SchedDate, DeptID,
+ UserID, Noon, RuleID,
+ DelMark)
+ values (#{id,jdbcType=INTEGER}, #{scheddate,jdbcType=DATE}, #{deptid,jdbcType=INTEGER},
+ #{userid,jdbcType=INTEGER}, #{noon,jdbcType=CHAR}, #{ruleid,jdbcType=INTEGER},
+ #{delmark,jdbcType=INTEGER})
+
+
+ insert into scheduling
+
+
+ ID,
+
+
+ SchedDate,
+
+
+ DeptID,
+
+
+ UserID,
+
+
+ Noon,
+
+
+ RuleID,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{scheddate,jdbcType=DATE},
+
+
+ #{deptid,jdbcType=INTEGER},
+
+
+ #{userid,jdbcType=INTEGER},
+
+
+ #{noon,jdbcType=CHAR},
+
+
+ #{ruleid,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update scheduling
+
+
+ SchedDate = #{scheddate,jdbcType=DATE},
+
+
+ DeptID = #{deptid,jdbcType=INTEGER},
+
+
+ UserID = #{userid,jdbcType=INTEGER},
+
+
+ Noon = #{noon,jdbcType=CHAR},
+
+
+ RuleID = #{ruleid,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update scheduling
+ set SchedDate = #{scheddate,jdbcType=DATE},
+ DeptID = #{deptid,jdbcType=INTEGER},
+ UserID = #{userid,jdbcType=INTEGER},
+ Noon = #{noon,jdbcType=CHAR},
+ RuleID = #{ruleid,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/SettlecategoryMapper.xml b/src/main/resources/mapper/SettlecategoryMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..deb8659376d44753cd5bfc2bcdb3fcca2c1f14e3
--- /dev/null
+++ b/src/main/resources/mapper/SettlecategoryMapper.xml
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+ ID, SettleCode, SettleName, SequenceNo, DelMark
+
+
+
+ delete from settlecategory
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ insert into settlecategory (ID, SettleCode, SettleName,
+ SequenceNo, DelMark)
+ values (#{id,jdbcType=INTEGER}, #{settlecode,jdbcType=VARCHAR}, #{settlename,jdbcType=VARCHAR},
+ #{sequenceno,jdbcType=INTEGER}, #{delmark,jdbcType=INTEGER})
+
+
+ insert into settlecategory
+
+
+ ID,
+
+
+ SettleCode,
+
+
+ SettleName,
+
+
+ SequenceNo,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{settlecode,jdbcType=VARCHAR},
+
+
+ #{settlename,jdbcType=VARCHAR},
+
+
+ #{sequenceno,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update settlecategory
+
+
+ SettleCode = #{settlecode,jdbcType=VARCHAR},
+
+
+ SettleName = #{settlename,jdbcType=VARCHAR},
+
+
+ SequenceNo = #{sequenceno,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+ update settlecategory
+ set SettleCode = #{settlecode,jdbcType=VARCHAR},
+ SettleName = #{settlename,jdbcType=VARCHAR},
+ SequenceNo = #{sequenceno,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
new file mode 100644
index 0000000000000000000000000000000000000000..50fbc97d55f09ab13cd4e30ab0b5b0ea9bd0d168
--- /dev/null
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ID, UserName, Password, RealName, UseType, DocTitleID, IsScheduling, DeptID, RegistLeID,
+ DelMark
+
+
+
+
+
+
+
+
+
+
+
+
+ delete from user
+ where ID = #{id,jdbcType=INTEGER}
+
+
+
+
+ insert into user (ID, UserName, Password,
+ RealName, UseType, DocTitleID,
+ IsScheduling, DeptID, RegistLeID,
+ DelMark)
+ values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
+ #{realname,jdbcType=VARCHAR}, #{usetype,jdbcType=INTEGER}, #{doctitleid,jdbcType=INTEGER},
+ #{isscheduling,jdbcType=CHAR}, #{deptid,jdbcType=INTEGER}, #{registleid,jdbcType=INTEGER},
+ 1)
+
+
+ insert into user
+
+
+ ID,
+
+
+ UserName,
+
+
+ Password,
+
+
+ RealName,
+
+
+ UseType,
+
+
+ DocTitleID,
+
+
+ IsScheduling,
+
+
+ DeptID,
+
+
+ RegistLeID,
+
+
+ DelMark,
+
+
+
+
+ #{id,jdbcType=INTEGER},
+
+
+ #{username,jdbcType=VARCHAR},
+
+
+ #{password,jdbcType=VARCHAR},
+
+
+ #{realname,jdbcType=VARCHAR},
+
+
+ #{usetype,jdbcType=INTEGER},
+
+
+ #{doctitleid,jdbcType=INTEGER},
+
+
+ #{isscheduling,jdbcType=CHAR},
+
+
+ #{deptid,jdbcType=INTEGER},
+
+
+ #{registleid,jdbcType=INTEGER},
+
+
+ #{delmark,jdbcType=INTEGER},
+
+
+
+
+ update user
+
+
+ UserName = #{username,jdbcType=VARCHAR},
+
+
+ Password = #{password,jdbcType=VARCHAR},
+
+
+ RealName = #{realname,jdbcType=VARCHAR},
+
+
+ UseType = #{usetype,jdbcType=INTEGER},
+
+
+ DocTitleID = #{doctitleid,jdbcType=INTEGER},
+
+
+ IsScheduling = #{isscheduling,jdbcType=CHAR},
+
+
+ DeptID = #{deptid,jdbcType=INTEGER},
+
+
+ RegistLeID = #{registleid,jdbcType=INTEGER},
+
+
+ DelMark = #{delmark,jdbcType=INTEGER},
+
+
+ where ID = #{id,jdbcType=INTEGER}
+
+
+
+
+ update user
+ set UserName = #{username,jdbcType=VARCHAR},
+ Password = #{password,jdbcType=VARCHAR},
+ RealName = #{realname,jdbcType=VARCHAR},
+ UseType = #{usetype,jdbcType=INTEGER},
+ DocTitleID = #{doctitleid,jdbcType=INTEGER},
+ IsScheduling = #{isscheduling,jdbcType=CHAR},
+ DeptID = #{deptid,jdbcType=INTEGER},
+ RegistLeID = #{registleid,jdbcType=INTEGER},
+ DelMark = #{delmark,jdbcType=INTEGER}
+ where ID = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file