From e82d0d36384ad8446e2955b8204dc2015f4055c3 Mon Sep 17 00:00:00 2001
From: Rng_Zzitai1 <781608139@qq.com>
Date: Tue, 21 Apr 2020 15:14:33 +0800
Subject: [PATCH 1/9] 2
---
pom.xml | 18 ++++++
.../com/foreknow/config/WebConfiguration.java | 57 +++++++++++++++++++
src/main/java/com/foreknow/entity/User.java | 37 ++++++++++++
.../interceptor/TokenInterceptor.java | 50 ++++++++++++++++
.../java/com/foreknow/utils/Constance.java | 30 ++++++++++
.../java/com/foreknow/utils/TokenUtil.java | 55 ++++++++++++++++++
.../java/com/foreknow/web/UserController.java | 43 ++++++++++++++
src/main/resources/application.properties | 4 +-
8 files changed, 292 insertions(+), 2 deletions(-)
create mode 100644 src/main/java/com/foreknow/config/WebConfiguration.java
create mode 100644 src/main/java/com/foreknow/entity/User.java
create mode 100644 src/main/java/com/foreknow/interceptor/TokenInterceptor.java
create mode 100644 src/main/java/com/foreknow/utils/Constance.java
create mode 100644 src/main/java/com/foreknow/utils/TokenUtil.java
create mode 100644 src/main/java/com/foreknow/web/UserController.java
diff --git a/pom.xml b/pom.xml
index 38c9a0e..6c48859 100644
--- a/pom.xml
+++ b/pom.xml
@@ -47,6 +47,24 @@
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
+
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 0000000..bd4b89b
--- /dev/null
+++ b/src/main/java/com/foreknow/config/WebConfiguration.java
@@ -0,0 +1,57 @@
+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("/static/**"); //静态资源
+ excludePath.add("/assets/**"); //静态资源
+
+ registry.addInterceptor(tokenInterceptor)
+ .addPathPatterns("/**")
+ .excludePathPatterns(excludePath);
+ WebMvcConfigurer.super.addInterceptors(registry);
+ }
+}
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 0000000..737b62d
--- /dev/null
+++ b/src/main/java/com/foreknow/entity/User.java
@@ -0,0 +1,37 @@
+package com.foreknow.entity;
+
+public class User {
+
+ private String username;
+ private String password;
+ private String token;
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public String getToken() {
+ return token;
+ }
+
+ public void setToken(String token) {
+ this.token = token;
+ }
+
+ public User(String username, String password){
+ this.username = username;
+ this.password = password;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+}
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 0000000..0f2fe79
--- /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/utils/Constance.java b/src/main/java/com/foreknow/utils/Constance.java
new file mode 100644
index 0000000..9cb6b99
--- /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 0000000..b2c34c7
--- /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/UserController.java b/src/main/java/com/foreknow/web/UserController.java
new file mode 100644
index 0000000..1d8520f
--- /dev/null
+++ b/src/main/java/com/foreknow/web/UserController.java
@@ -0,0 +1,43 @@
+package com.foreknow.web;
+
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.foreknow.entity.User;
+import com.foreknow.utils.Constance;
+import com.foreknow.utils.TokenUtil;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@RestController
+@RequestMapping("/user")
+public class UserController{
+ @RequestMapping(value = "/login",method = RequestMethod.POST)
+ @ResponseBody
+ public String login(@RequestBody Map para) throws JsonProcessingException {
+ String username=(String)para.get("username");
+ String password=(String)para.get("password");
+ User user = new User(username,password);
+ String token= TokenUtil.sign(user);
+ user.setToken(token);
+ HashMap hs=new HashMap<>();
+// hs.put("token",token);
+ hs.put("data",user);
+ hs.put("meta",new Constance("msg",200));
+ 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 86ebfb7..a528002 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
--
Gitee
From 212123a35b6fd739e98bc6cac69278cf2d498497 Mon Sep 17 00:00:00 2001
From: Rng_Zzitai1 <781608139@qq.com>
Date: Wed, 22 Apr 2020 09:43:33 +0800
Subject: [PATCH 2/9] 3
---
.../com/foreknow/dao/CheckapplyMapper.java | 17 ++
.../com/foreknow/dao/CheckrelationMapper.java | 17 ++
.../com/foreknow/dao/ChecktemplateMapper.java | 17 ++
.../com/foreknow/dao/ConstantitemMapper.java | 17 ++
.../com/foreknow/dao/ConstanttypeMapper.java | 17 ++
.../com/foreknow/dao/DepartmentMapper.java | 17 ++
.../java/com/foreknow/dao/DiseaseMapper.java | 17 ++
.../com/foreknow/dao/DisecategoryMapper.java | 17 ++
.../java/com/foreknow/dao/DrugsMapper.java | 17 ++
.../com/foreknow/dao/DrugsdetailedMapper.java | 17 ++
.../com/foreknow/dao/DrugstemplateMapper.java | 17 ++
.../com/foreknow/dao/ExpenseclassMapper.java | 17 ++
.../java/com/foreknow/dao/FmeditemMapper.java | 17 ++
.../foreknow/dao/HerbaldetailedMapper.java | 17 ++
.../dao/HerbalprescriptionMapper.java | 17 ++
.../dao/HerbaltempdetailedMapper.java | 17 ++
.../foreknow/dao/HerbaltemplateMapper.java | 17 ++
.../java/com/foreknow/dao/InvoiceMapper.java | 17 ++
.../foreknow/dao/MedicaldiseaseMapper.java | 17 ++
.../com/foreknow/dao/MedicalrecordMapper.java | 17 ++
.../com/foreknow/dao/PatientcostsMapper.java | 17 ++
.../com/foreknow/dao/PrescriptionMapper.java | 17 ++
.../dao/PrescriptiondetailedMapper.java | 17 ++
.../java/com/foreknow/dao/RegisterMapper.java | 17 ++
.../com/foreknow/dao/RegistlevelMapper.java | 17 ++
.../com/foreknow/dao/RegistworkMapper.java | 17 ++
.../java/com/foreknow/dao/RuleMapper.java | 17 ++
.../com/foreknow/dao/SchedulingMapper.java | 17 ++
.../foreknow/dao/SettlecategoryMapper.java | 17 ++
.../java/com/foreknow/dao/UserMapper.java | 17 ++
.../java/com/foreknow/entity/Checkapply.java | 185 +++++++++++++
.../com/foreknow/entity/Checkrelation.java | 43 +++
.../com/foreknow/entity/Checktemplate.java | 75 +++++
.../com/foreknow/entity/Constantitem.java | 53 ++++
.../com/foreknow/entity/Constanttype.java | 43 +++
.../java/com/foreknow/entity/Department.java | 63 +++++
.../java/com/foreknow/entity/Disease.java | 63 +++++
.../com/foreknow/entity/Disecategory.java | 63 +++++
src/main/java/com/foreknow/entity/Drugs.java | 136 +++++++++
.../com/foreknow/entity/Drugsdetailed.java | 63 +++++
.../com/foreknow/entity/Drugstemplate.java | 65 +++++
.../com/foreknow/entity/Expenseclass.java | 43 +++
.../java/com/foreknow/entity/Fmeditem.java | 126 +++++++++
.../com/foreknow/entity/Herbaldetailed.java | 65 +++++
.../foreknow/entity/Herbalprescription.java | 145 ++++++++++
.../foreknow/entity/Herbaltempdetailed.java | 63 +++++
.../com/foreknow/entity/Herbaltemplate.java | 125 +++++++++
.../java/com/foreknow/entity/Invoice.java | 106 +++++++
.../com/foreknow/entity/Medicaldisease.java | 75 +++++
.../com/foreknow/entity/Medicalrecord.java | 153 +++++++++++
.../com/foreknow/entity/Patientcosts.java | 156 +++++++++++
.../com/foreknow/entity/Prescription.java | 75 +++++
.../foreknow/entity/Prescriptiondetailed.java | 85 ++++++
.../java/com/foreknow/entity/Register.java | 195 +++++++++++++
.../java/com/foreknow/entity/Registlevel.java | 75 +++++
.../java/com/foreknow/entity/Registwork.java | 45 +++
src/main/java/com/foreknow/entity/Rule.java | 63 +++++
.../java/com/foreknow/entity/Scheduling.java | 75 +++++
.../com/foreknow/entity/Settlecategory.java | 53 ++++
src/main/java/com/foreknow/entity/User.java | 94 ++++++-
.../java/com/foreknow/utils/TokenUtil.java | 1 -
.../java/com/foreknow/web/UserController.java | 5 +-
.../resources/mapper/CheckapplyMapper.xml | 247 +++++++++++++++++
.../resources/mapper/CheckrelationMapper.xml | 82 ++++++
.../resources/mapper/ChecktemplateMapper.xml | 117 ++++++++
.../resources/mapper/ConstantitemMapper.xml | 93 +++++++
.../resources/mapper/ConstanttypeMapper.xml | 82 ++++++
.../resources/mapper/DepartmentMapper.xml | 106 +++++++
src/main/resources/mapper/DiseaseMapper.xml | 106 +++++++
.../resources/mapper/DisecategoryMapper.xml | 106 +++++++
src/main/resources/mapper/DrugsMapper.xml | 188 +++++++++++++
.../resources/mapper/DrugsdetailedMapper.xml | 106 +++++++
.../resources/mapper/DrugstemplateMapper.xml | 106 +++++++
.../resources/mapper/ExpenseclassMapper.xml | 82 ++++++
src/main/resources/mapper/FmeditemMapper.xml | 177 ++++++++++++
.../resources/mapper/HerbaldetailedMapper.xml | 106 +++++++
.../mapper/HerbalprescriptionMapper.xml | 199 ++++++++++++++
.../mapper/HerbaltempdetailedMapper.xml | 106 +++++++
.../resources/mapper/HerbaltemplateMapper.xml | 177 ++++++++++++
src/main/resources/mapper/InvoiceMapper.xml | 152 ++++++++++
.../resources/mapper/MedicaldiseaseMapper.xml | 117 ++++++++
.../resources/mapper/MedicalrecordMapper.xml | 212 ++++++++++++++
.../resources/mapper/PatientcostsMapper.xml | 212 ++++++++++++++
.../resources/mapper/PrescriptionMapper.xml | 117 ++++++++
.../mapper/PrescriptiondetailedMapper.xml | 128 +++++++++
src/main/resources/mapper/RegisterMapper.xml | 259 ++++++++++++++++++
.../resources/mapper/RegistlevelMapper.xml | 117 ++++++++
.../resources/mapper/RegistworkMapper.xml | 82 ++++++
src/main/resources/mapper/RuleMapper.xml | 106 +++++++
.../resources/mapper/SchedulingMapper.xml | 117 ++++++++
.../resources/mapper/SettlecategoryMapper.xml | 93 +++++++
src/main/resources/mapper/UserMapper.xml | 153 +++++++++++
92 files changed, 7217 insertions(+), 19 deletions(-)
create mode 100644 src/main/java/com/foreknow/dao/CheckapplyMapper.java
create mode 100644 src/main/java/com/foreknow/dao/CheckrelationMapper.java
create mode 100644 src/main/java/com/foreknow/dao/ChecktemplateMapper.java
create mode 100644 src/main/java/com/foreknow/dao/ConstantitemMapper.java
create mode 100644 src/main/java/com/foreknow/dao/ConstanttypeMapper.java
create mode 100644 src/main/java/com/foreknow/dao/DepartmentMapper.java
create mode 100644 src/main/java/com/foreknow/dao/DiseaseMapper.java
create mode 100644 src/main/java/com/foreknow/dao/DisecategoryMapper.java
create mode 100644 src/main/java/com/foreknow/dao/DrugsMapper.java
create mode 100644 src/main/java/com/foreknow/dao/DrugsdetailedMapper.java
create mode 100644 src/main/java/com/foreknow/dao/DrugstemplateMapper.java
create mode 100644 src/main/java/com/foreknow/dao/ExpenseclassMapper.java
create mode 100644 src/main/java/com/foreknow/dao/FmeditemMapper.java
create mode 100644 src/main/java/com/foreknow/dao/HerbaldetailedMapper.java
create mode 100644 src/main/java/com/foreknow/dao/HerbalprescriptionMapper.java
create mode 100644 src/main/java/com/foreknow/dao/HerbaltempdetailedMapper.java
create mode 100644 src/main/java/com/foreknow/dao/HerbaltemplateMapper.java
create mode 100644 src/main/java/com/foreknow/dao/InvoiceMapper.java
create mode 100644 src/main/java/com/foreknow/dao/MedicaldiseaseMapper.java
create mode 100644 src/main/java/com/foreknow/dao/MedicalrecordMapper.java
create mode 100644 src/main/java/com/foreknow/dao/PatientcostsMapper.java
create mode 100644 src/main/java/com/foreknow/dao/PrescriptionMapper.java
create mode 100644 src/main/java/com/foreknow/dao/PrescriptiondetailedMapper.java
create mode 100644 src/main/java/com/foreknow/dao/RegisterMapper.java
create mode 100644 src/main/java/com/foreknow/dao/RegistlevelMapper.java
create mode 100644 src/main/java/com/foreknow/dao/RegistworkMapper.java
create mode 100644 src/main/java/com/foreknow/dao/RuleMapper.java
create mode 100644 src/main/java/com/foreknow/dao/SchedulingMapper.java
create mode 100644 src/main/java/com/foreknow/dao/SettlecategoryMapper.java
create mode 100644 src/main/java/com/foreknow/dao/UserMapper.java
create mode 100644 src/main/java/com/foreknow/entity/Checkapply.java
create mode 100644 src/main/java/com/foreknow/entity/Checkrelation.java
create mode 100644 src/main/java/com/foreknow/entity/Checktemplate.java
create mode 100644 src/main/java/com/foreknow/entity/Constantitem.java
create mode 100644 src/main/java/com/foreknow/entity/Constanttype.java
create mode 100644 src/main/java/com/foreknow/entity/Department.java
create mode 100644 src/main/java/com/foreknow/entity/Disease.java
create mode 100644 src/main/java/com/foreknow/entity/Disecategory.java
create mode 100644 src/main/java/com/foreknow/entity/Drugs.java
create mode 100644 src/main/java/com/foreknow/entity/Drugsdetailed.java
create mode 100644 src/main/java/com/foreknow/entity/Drugstemplate.java
create mode 100644 src/main/java/com/foreknow/entity/Expenseclass.java
create mode 100644 src/main/java/com/foreknow/entity/Fmeditem.java
create mode 100644 src/main/java/com/foreknow/entity/Herbaldetailed.java
create mode 100644 src/main/java/com/foreknow/entity/Herbalprescription.java
create mode 100644 src/main/java/com/foreknow/entity/Herbaltempdetailed.java
create mode 100644 src/main/java/com/foreknow/entity/Herbaltemplate.java
create mode 100644 src/main/java/com/foreknow/entity/Invoice.java
create mode 100644 src/main/java/com/foreknow/entity/Medicaldisease.java
create mode 100644 src/main/java/com/foreknow/entity/Medicalrecord.java
create mode 100644 src/main/java/com/foreknow/entity/Patientcosts.java
create mode 100644 src/main/java/com/foreknow/entity/Prescription.java
create mode 100644 src/main/java/com/foreknow/entity/Prescriptiondetailed.java
create mode 100644 src/main/java/com/foreknow/entity/Register.java
create mode 100644 src/main/java/com/foreknow/entity/Registlevel.java
create mode 100644 src/main/java/com/foreknow/entity/Registwork.java
create mode 100644 src/main/java/com/foreknow/entity/Rule.java
create mode 100644 src/main/java/com/foreknow/entity/Scheduling.java
create mode 100644 src/main/java/com/foreknow/entity/Settlecategory.java
create mode 100644 src/main/resources/mapper/CheckapplyMapper.xml
create mode 100644 src/main/resources/mapper/CheckrelationMapper.xml
create mode 100644 src/main/resources/mapper/ChecktemplateMapper.xml
create mode 100644 src/main/resources/mapper/ConstantitemMapper.xml
create mode 100644 src/main/resources/mapper/ConstanttypeMapper.xml
create mode 100644 src/main/resources/mapper/DepartmentMapper.xml
create mode 100644 src/main/resources/mapper/DiseaseMapper.xml
create mode 100644 src/main/resources/mapper/DisecategoryMapper.xml
create mode 100644 src/main/resources/mapper/DrugsMapper.xml
create mode 100644 src/main/resources/mapper/DrugsdetailedMapper.xml
create mode 100644 src/main/resources/mapper/DrugstemplateMapper.xml
create mode 100644 src/main/resources/mapper/ExpenseclassMapper.xml
create mode 100644 src/main/resources/mapper/FmeditemMapper.xml
create mode 100644 src/main/resources/mapper/HerbaldetailedMapper.xml
create mode 100644 src/main/resources/mapper/HerbalprescriptionMapper.xml
create mode 100644 src/main/resources/mapper/HerbaltempdetailedMapper.xml
create mode 100644 src/main/resources/mapper/HerbaltemplateMapper.xml
create mode 100644 src/main/resources/mapper/InvoiceMapper.xml
create mode 100644 src/main/resources/mapper/MedicaldiseaseMapper.xml
create mode 100644 src/main/resources/mapper/MedicalrecordMapper.xml
create mode 100644 src/main/resources/mapper/PatientcostsMapper.xml
create mode 100644 src/main/resources/mapper/PrescriptionMapper.xml
create mode 100644 src/main/resources/mapper/PrescriptiondetailedMapper.xml
create mode 100644 src/main/resources/mapper/RegisterMapper.xml
create mode 100644 src/main/resources/mapper/RegistlevelMapper.xml
create mode 100644 src/main/resources/mapper/RegistworkMapper.xml
create mode 100644 src/main/resources/mapper/RuleMapper.xml
create mode 100644 src/main/resources/mapper/SchedulingMapper.xml
create mode 100644 src/main/resources/mapper/SettlecategoryMapper.xml
create mode 100644 src/main/resources/mapper/UserMapper.xml
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 0000000..6106a5d
--- /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 0000000..5e79c79
--- /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 0000000..dcdf404
--- /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 0000000..e1d8fec
--- /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 0000000..16759e8
--- /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 0000000..732c3d2
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/DepartmentMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.Department;
+
+public interface DepartmentMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Department record);
+
+ int insertSelective(Department record);
+
+ Department selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Department record);
+
+ int updateByPrimaryKey(Department record);
+}
\ 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 0000000..fde766f
--- /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 0000000..2f16a2f
--- /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 0000000..f971fb0
--- /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 0000000..2b3fa91
--- /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 0000000..cbabb38
--- /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 0000000..2cbe0dc
--- /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 0000000..760ebbe
--- /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 0000000..2cdd34c
--- /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 0000000..4eec1c3
--- /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 0000000..bad6994
--- /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 0000000..77ebd21
--- /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 0000000..7be3564
--- /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 0000000..84271a2
--- /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 0000000..e84b768
--- /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 0000000..e8ac405
--- /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 0000000..96d9dca
--- /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 0000000..57c002d
--- /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 0000000..9ae17a3
--- /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 0000000..7480afe
--- /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 0000000..070eb41
--- /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 0000000..4d779ce
--- /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 0000000..ae1a9f8
--- /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 0000000..1885431
--- /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 0000000..9920db3
--- /dev/null
+++ b/src/main/java/com/foreknow/dao/UserMapper.java
@@ -0,0 +1,17 @@
+package com.foreknow.dao;
+
+import com.foreknow.entity.User;
+
+public interface UserMapper {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(User record);
+
+ int insertSelective(User record);
+
+ User selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(User record);
+
+ int updateByPrimaryKey(User record);
+}
\ 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 0000000..ceef12d
--- /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 0000000..fd90b3e
--- /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 0000000..a9ab024
--- /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 0000000..2cb4ac0
--- /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 0000000..522de02
--- /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 0000000..555a2d7
--- /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 0000000..a288edd
--- /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 0000000..d1d9c22
--- /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 0000000..174b62d
--- /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 0000000..6e0c6f2
--- /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 0000000..698e275
--- /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 0000000..07d3195
--- /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 0000000..1f27360
--- /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 0000000..4ef03f9
--- /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 0000000..3fb3c11
--- /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 0000000..f12173d
--- /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 0000000..e3dd7fa
--- /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 0000000..b71a2c1
--- /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 0000000..aa84a44
--- /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 0000000..97b6386
--- /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 0000000..850c636
--- /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 0000000..88f12e4
--- /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 0000000..411c7fd
--- /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 0000000..a6a5509
--- /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 0000000..45ef2c6
--- /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 0000000..e7fd30c
--- /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 0000000..975aa96
--- /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 0000000..30596d7
--- /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 0000000..8e3a87b
--- /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
index 737b62d..2e52722 100644
--- a/src/main/java/com/foreknow/entity/User.java
+++ b/src/main/java/com/foreknow/entity/User.java
@@ -1,37 +1,103 @@
package com.foreknow.entity;
public class User {
+ private Integer id;
private String username;
+
private String password;
- private String token;
+
+ private String realname;
+
+ private Integer usetype;
+
+ private Integer doctitleid;
+
+ private String isscheduling;
+
+ private Integer deptid;
+
+ private Integer registleid;
+
+ private Integer delmark;
+
+ 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;
+ this.password = password == null ? null : password.trim();
}
- public String getToken() {
- return token;
+ public String getRealname() {
+ return realname;
}
- public void setToken(String token) {
- this.token = token;
+ public void setRealname(String realname) {
+ this.realname = realname == null ? null : realname.trim();
}
- public User(String username, String password){
- this.username = username;
- this.password = password;
+ public Integer getUsetype() {
+ return usetype;
}
- public String getUsername() {
- return username;
+ public void setUsetype(Integer usetype) {
+ this.usetype = usetype;
}
- public void setUsername(String username) {
- this.username = username;
+ 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;
}
-}
+}
\ No newline at end of file
diff --git a/src/main/java/com/foreknow/utils/TokenUtil.java b/src/main/java/com/foreknow/utils/TokenUtil.java
index b2c34c7..89803f5 100644
--- a/src/main/java/com/foreknow/utils/TokenUtil.java
+++ b/src/main/java/com/foreknow/utils/TokenUtil.java
@@ -4,7 +4,6 @@ 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;
diff --git a/src/main/java/com/foreknow/web/UserController.java b/src/main/java/com/foreknow/web/UserController.java
index 1d8520f..4667588 100644
--- a/src/main/java/com/foreknow/web/UserController.java
+++ b/src/main/java/com/foreknow/web/UserController.java
@@ -3,14 +3,11 @@ package com.foreknow.web;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-import com.foreknow.entity.User;
import com.foreknow.utils.Constance;
import com.foreknow.utils.TokenUtil;
import org.springframework.web.bind.annotation.*;
-import java.util.ArrayList;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
@RestController
@@ -25,7 +22,7 @@ public class UserController{
String token= TokenUtil.sign(user);
user.setToken(token);
HashMap hs=new HashMap<>();
-// hs.put("token",token);
+ hs.put("token",token);
hs.put("data",user);
hs.put("meta",new Constance("msg",200));
ObjectMapper objectMapper=new ObjectMapper();
diff --git a/src/main/resources/mapper/CheckapplyMapper.xml b/src/main/resources/mapper/CheckapplyMapper.xml
new file mode 100644
index 0000000..57b9503
--- /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 0000000..12351fe
--- /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 0000000..3dcecbc
--- /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 0000000..51d74cc
--- /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 0000000..e94c5bf
--- /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 0000000..22002f4
--- /dev/null
+++ b/src/main/resources/mapper/DepartmentMapper.xml
@@ -0,0 +1,106 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 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 0000000..3876e89
--- /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 0000000..d0149c6
--- /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 0000000..6a88986
--- /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 0000000..2239cf0
--- /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 0000000..d4fc507
--- /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 0000000..01ec53b
--- /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 0000000..afb116c
--- /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 0000000..d298d8e
--- /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 0000000..2581286
--- /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 0000000..8a87b83
--- /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 0000000..c2c021a
--- /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 0000000..8e1d571
--- /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 0000000..6b7a7df
--- /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 0000000..4127e3f
--- /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 0000000..b8c96d1
--- /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 0000000..4242ab9
--- /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 0000000..99bc71c
--- /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 0000000..3e0c188
--- /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 0000000..8d36e41
--- /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 0000000..e90fb1b
--- /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 0000000..c1760df
--- /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 0000000..1e8564f
--- /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 0000000..deb8659
--- /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 0000000..c15375a
--- /dev/null
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -0,0 +1,153 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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},
+ #{delmark,jdbcType=INTEGER})
+
+
+ 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
--
Gitee
From 414daeb3c07c211baa0c35a5c3b14e3e8be66f05 Mon Sep 17 00:00:00 2001
From: Rng_Zzitai1 <781608139@qq.com>
Date: Wed, 22 Apr 2020 14:14:14 +0800
Subject: [PATCH 3/9] 4
---
.../java/com/foreknow/dao/UserMapper.java | 2 ++
src/main/java/com/foreknow/entity/User.java | 10 +++++++
.../com/foreknow/service/UserService.java | 7 +++++
.../service/impl/UserServiceImpl.java | 19 +++++++++++++
.../java/com/foreknow/utils/TokenUtil.java | 1 +
.../java/com/foreknow/web/UserController.java | 27 ++++++++++++-------
src/main/resources/mapper/UserMapper.xml | 5 ++++
7 files changed, 62 insertions(+), 9 deletions(-)
create mode 100644 src/main/java/com/foreknow/service/UserService.java
create mode 100644 src/main/java/com/foreknow/service/impl/UserServiceImpl.java
diff --git a/src/main/java/com/foreknow/dao/UserMapper.java b/src/main/java/com/foreknow/dao/UserMapper.java
index 9920db3..f8a0377 100644
--- a/src/main/java/com/foreknow/dao/UserMapper.java
+++ b/src/main/java/com/foreknow/dao/UserMapper.java
@@ -14,4 +14,6 @@ public interface UserMapper {
int updateByPrimaryKeySelective(User record);
int updateByPrimaryKey(User record);
+
+ User Login(String username,String password);
}
\ 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
index 2e52722..2cc9791 100644
--- a/src/main/java/com/foreknow/entity/User.java
+++ b/src/main/java/com/foreknow/entity/User.java
@@ -21,6 +21,8 @@ public class User {
private Integer delmark;
+ private String token;
+
public Integer getId() {
return id;
}
@@ -100,4 +102,12 @@ public class User {
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/service/UserService.java b/src/main/java/com/foreknow/service/UserService.java
new file mode 100644
index 0000000..8084c2c
--- /dev/null
+++ b/src/main/java/com/foreknow/service/UserService.java
@@ -0,0 +1,7 @@
+package com.foreknow.service;
+
+import com.foreknow.entity.User;
+
+public interface UserService {
+ User LoginService(String username,String password);
+}
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 0000000..c45fce4
--- /dev/null
+++ b/src/main/java/com/foreknow/service/impl/UserServiceImpl.java
@@ -0,0 +1,19 @@
+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;
+
+@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;
+ }
+}
diff --git a/src/main/java/com/foreknow/utils/TokenUtil.java b/src/main/java/com/foreknow/utils/TokenUtil.java
index 89803f5..b2c34c7 100644
--- a/src/main/java/com/foreknow/utils/TokenUtil.java
+++ b/src/main/java/com/foreknow/utils/TokenUtil.java
@@ -4,6 +4,7 @@ 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;
diff --git a/src/main/java/com/foreknow/web/UserController.java b/src/main/java/com/foreknow/web/UserController.java
index 4667588..602f2b5 100644
--- a/src/main/java/com/foreknow/web/UserController.java
+++ b/src/main/java/com/foreknow/web/UserController.java
@@ -3,8 +3,13 @@ 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.service.impl.UserServiceImpl;
import com.foreknow.utils.Constance;
import com.foreknow.utils.TokenUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
@@ -13,18 +18,22 @@ 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 Map para) throws JsonProcessingException {
- String username=(String)para.get("username");
- String password=(String)para.get("password");
- User user = new User(username,password);
- String token= TokenUtil.sign(user);
- user.setToken(token);
+ public String login(@RequestBody User user) throws JsonProcessingException {
+ User userLogin = userService.LoginService(user.getUsername(),user.getPassword());
+ String token= TokenUtil.sign(userLogin);
+ userLogin.setToken(token);
HashMap hs=new HashMap<>();
- hs.put("token",token);
- hs.put("data",user);
- hs.put("meta",new Constance("msg",200));
+ if(userLogin!=null){
+ 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);
}
diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml
index c15375a..3c8b118 100644
--- a/src/main/resources/mapper/UserMapper.xml
+++ b/src/main/resources/mapper/UserMapper.xml
@@ -17,6 +17,11 @@
ID, UserName, Password, RealName, UseType, DocTitleID, IsScheduling, DeptID, RegistLeID,
DelMark
+
+
+