ljx 3 yıl önce
ebeveyn
işleme
de1e2bcaed
100 değiştirilmiş dosya ile 6768 ekleme ve 0 silme
  1. 165 0
      ToproPublic/pom.xml
  2. 62 0
      ToproPublic/topro-base/pom.xml
  3. 15 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/config/FirstDataProperties.java
  4. 76 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/config/FirstDataSourceConfig.java
  5. 15 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/config/SecondDataProperties.java
  6. 71 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/config/SecondDataSourceConfig.java
  7. 53 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/enums/ErrorCodeEnum.java
  8. 51 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/DicDepartmentMapper.java
  9. 38 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/ExecRecordDetailMapper.java
  10. 142 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/ExecRecordMapper.java
  11. 23 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/HospitalInfoMapper.java
  12. 82 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/PdaBreastMilkMapper.java
  13. 66 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/PdaInspectionMapper.java
  14. 88 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/PdaSpecimenMapper.java
  15. 49 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SkinPopMapper.java
  16. 57 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SkinPopPartMapper.java
  17. 41 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SkinPopSetMapper.java
  18. 53 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysDictionaryDetailMapper.java
  19. 41 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysDictionaryMapper.java
  20. 37 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysFunctionFunctionMapper.java
  21. 71 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysFunctionMapper.java
  22. 87 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysMenuMapper.java
  23. 62 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysOperationMapper.java
  24. 162 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysParameterMapper.java
  25. 35 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysRoleMapper.java
  26. 41 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysRoleMenuMapper.java
  27. 50 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysRoleOperationMapper.java
  28. 48 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysRoleUserMapper.java
  29. 43 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SystemMapper.java
  30. 58 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/UserInfoMapper.java
  31. 43 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/DicDepartment.java
  32. 70 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/ExecRecord.java
  33. 16 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/ExecRecordDetail.java
  34. 30 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/HospitalInfo.java
  35. 59 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/PdaBreastMilk.java
  36. 44 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/PdaInspection.java
  37. 37 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/PdaSpecimen.java
  38. 51 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SkinPop.java
  39. 35 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SkinPopPart.java
  40. 47 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SkinPopSet.java
  41. 11 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SpecimentCondition.java
  42. 34 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysDictionary.java
  43. 33 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysDictionaryDetail.java
  44. 42 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysFunction.java
  45. 14 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysFunctionFunction.java
  46. 40 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysMenu.java
  47. 34 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysOperation.java
  48. 36 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysParameter.java
  49. 28 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysRole.java
  50. 14 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysRoleMenu.java
  51. 14 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysRoleOperation.java
  52. 14 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysRoleUser.java
  53. 38 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysSystem.java
  54. 59 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/AppParamRespose.java
  55. 16 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/HospitaOtherInfoResponse.java
  56. 22 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/HospitalInfoResponse.java
  57. 213 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/InpPatientAuthorizeListResponse.java
  58. 77 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/LoginResponse.java
  59. 123 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/OrderInfoResponse.java
  60. 11 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PairOrderInfo.java
  61. 79 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientCondition.java
  62. 195 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientInfoResponse.java
  63. 17 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientInfosResponse.java
  64. 81 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientOrderInfoResponse.java
  65. 116 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientStatistics.java
  66. 24 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysDictionaryDetailResponse.java
  67. 13 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysDictionaryResponse.java
  68. 15 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysFrameworkOperationResponse.java
  69. 72 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysFunctionResponse.java
  70. 22 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysRoleUserInfoResponse.java
  71. 16 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysSystemListResponse.java
  72. 35 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/EmployeeMapper.java
  73. 28 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/OperDivMapper.java
  74. 126 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/OrderInfoMapper.java
  75. 35 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/OriginalOrderInfoMapper.java
  76. 45 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/PatientInfoMapper.java
  77. 21 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/WardMapper.java
  78. 315 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/Employee.java
  79. 14 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OperDiv.java
  80. 10 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OperDivKey.java
  81. 127 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OrderInfo.java
  82. 27 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OrderUpdate.java
  83. 95 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OriginalOrderInfo.java
  84. 162 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/PatientInfo.java
  85. 19 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/SpecimenCollection.java
  86. 15 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/SpecimenReceive.java
  87. 13 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/SpecimenSend.java
  88. 165 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/Ward.java
  89. 12 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/vo/DictionaryPubVo.java
  90. 13 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/vo/StatisticsVO.java
  91. 15 0
      ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/vo/SysParamClassifyVo.java
  92. 14 0
      ToproPublic/topro-base/src/main/resources/config/mybatis-config.xml
  93. 41 0
      ToproPublic/topro-base/src/main/resources/generator/SqlserverGeneratorConfig.xml
  94. 51 0
      ToproPublic/topro-base/src/main/resources/generator/generatorConfig.xml
  95. 248 0
      ToproPublic/topro-base/src/main/resources/mapper/DicDepartmentMapper.xml
  96. 486 0
      ToproPublic/topro-base/src/main/resources/mapper/EmployeeMapper.xml
  97. 82 0
      ToproPublic/topro-base/src/main/resources/mapper/ExecRecordDetailMapper.xml
  98. 232 0
      ToproPublic/topro-base/src/main/resources/mapper/ExecRecordMapper.xml
  99. 155 0
      ToproPublic/topro-base/src/main/resources/mapper/HospitalInfoMapper.xml
  100. 330 0
      ToproPublic/topro-base/src/main/resources/mapper/OrderInfoMapper.xml

+ 165 - 0
ToproPublic/pom.xml

@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.xinxin.topro</groupId>
+    <artifactId>topro-public</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <modules>
+        <module>topro-common</module>
+        <module>topro-base</module>
+        <module>topro-pubservice</module>
+        <module>topro-pubweb</module>
+        <module>topro-sysservice</module>
+        <module>topro-sysweb</module>
+    </modules>
+    <packaging>pom</packaging>
+
+    <name>topro-public</name>
+
+    <parent>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>2.0.5.RELEASE</version>
+        <relativePath/> <!-- lookup parent from repository -->
+    </parent>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+        <java.version>1.8</java.version>
+    </properties>
+
+    <dependencies>
+        <!--lombok开发神器需要idea安装lombok教程http://blog.didispace.com/java-lombok-how-to-use/-->
+        <dependency>
+            <groupId>org.projectlombok</groupId>
+            <artifactId>lombok</artifactId>
+            <version>1.16.8</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.mybatis.spring.boot</groupId>
+            <artifactId>mybatis-spring-boot-starter</artifactId>
+            <version>1.2.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.1.46</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.16</version>
+            <scope>compile</scope>
+        </dependency>
+
+        <!-- alibaba的druid数据库连接池 -->
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>druid</artifactId>
+            <version>1.1.3</version>
+        </dependency>
+
+        <!-- mysql数据库依赖 -->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>5.1.46</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.microsoft.sqlserver</groupId>
+            <artifactId>mssql-jdbc</artifactId>
+            <version>6.2.0.jre8</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <!--mybatis 自动生成插件-->
+        <dependency>
+            <groupId>org.mybatis.generator</groupId>
+            <artifactId>mybatis-generator-core</artifactId>
+            <version>1.3.5</version>
+        </dependency>
+
+        <!--实现热部署-->
+        <!--<dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-devtools</artifactId>
+            <optional>true</optional>
+        </dependency>-->
+
+        <!-- swagger2: Spring Boot中使用Swagger2构建强大的RESTful API文档-->
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger2</artifactId>
+            <version>2.2.2</version>
+        </dependency>
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+            <version>2.2.2</version>
+        </dependency>
+
+        <!-- redis缓存 -->
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-redis</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>net.coobird</groupId>
+            <artifactId>thumbnailator</artifactId>
+            <version>0.4.8</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>fastjson</artifactId>
+            <version>1.2.7</version>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>3.1</version>
+                <configuration>
+                    <source>1.8</source>
+                    <target>1.8</target>
+                    <encoding>utf-8</encoding>
+                </configuration>
+            </plugin>
+            <!-- mybatis generator 自动生成代码插件 -->
+            <plugin>
+                <groupId>org.mybatis.generator</groupId>
+                <artifactId>mybatis-generator-maven-plugin</artifactId>
+                <version>1.3.2</version>
+                <configuration>
+                    <configurationFile>src/main/resources/generator/generatorConfig.xml</configurationFile>
+                    <overwrite>true</overwrite>
+                    <verbose>true</verbose>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

+ 62 - 0
ToproPublic/topro-base/pom.xml

@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>topro-public</artifactId>
+        <groupId>com.xinxin.topro</groupId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>topro-base</artifactId>
+    <packaging>jar</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>com.xinxin.topro</groupId>
+            <artifactId>topro-common</artifactId>
+            <version>1.0-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+            </plugin>
+            <!-- mybatis generator 自动生成代码插件 -->
+            <plugin>
+                <groupId>org.mybatis.generator</groupId>
+                <artifactId>mybatis-generator-maven-plugin</artifactId>
+                <version>1.3.2</version>
+                <configuration>
+                    <configurationFile>src/main/resources/generator/generatorConfig.xml</configurationFile>
+                    <overwrite>true</overwrite>
+                    <verbose>true</verbose>
+                </configuration>
+            </plugin>
+        </plugins>
+
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+            </resource>
+            <resource>
+                <directory>src/main/java</directory>
+                <filtering>false</filtering>
+                <includes>
+                    <include>**/mapper/*.xml</include>
+                </includes>
+            </resource>
+        </resources>
+    </build>
+</project>

+ 15 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/config/FirstDataProperties.java

@@ -0,0 +1,15 @@
+package com.xinxin.topro.base.config;
+
+import lombok.Data;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+@Data
+@Component
+@ConfigurationProperties(prefix = "spring.datasource.master")
+public class FirstDataProperties {
+    String driverClassName;
+    String url;
+    String username;
+    String password;
+}

+ 76 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/config/FirstDataSourceConfig.java

@@ -0,0 +1,76 @@
+package com.xinxin.topro.base.config;
+
+import org.apache.ibatis.session.SqlSessionFactory;
+import org.mybatis.spring.SqlSessionFactoryBean;
+import org.mybatis.spring.SqlSessionTemplate;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.jdbc.DataSourceBuilder;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Primary;
+import org.springframework.jdbc.datasource.DataSourceTransactionManager;
+
+import javax.sql.DataSource;
+
+/**
+ * @program:hope
+ * @author:aodeng
+ * @create:2018-08-02 20:16
+ **/
+
+@Configuration
+@MapperScan(basePackages = "com.xinxin.topro.base.mysqlmapper",sqlSessionTemplateRef = "firstSqlSessionTemplate")
+public class FirstDataSourceConfig {
+
+    @Autowired
+    private FirstDataProperties firstprop;
+
+    //创建数据源
+    @Bean(name="firstDataSource")
+    @ConfigurationProperties(prefix = "spring.datasource.master")
+    @Primary
+    public DataSource getFirstDataSource(){
+        DataSource build = DataSourceBuilder.create()
+                .driverClassName(firstprop.driverClassName)
+                .url(firstprop.url)
+                .username(firstprop.username)
+                .password(firstprop.password).build();
+        return build;
+    }
+
+    //创建SqlSessionFactory
+    @Bean(name = "firstSqlSessionFactory")
+    @Primary
+    public SqlSessionFactory firstSqlSessionFactory(@Qualifier("firstDataSource") DataSource dataSource) throws Exception{
+        SqlSessionFactoryBean bean=new SqlSessionFactoryBean();
+        bean.setDataSource(dataSource);
+        return bean.getObject();
+    }
+
+    //创建事务管理器
+    @Bean(name = "firstTransactionManager")
+    @Primary
+    public DataSourceTransactionManager firstTransactionManager(@Qualifier("firstDataSource") DataSource dataSource){
+        return new DataSourceTransactionManager(dataSource);
+    }
+
+    //创建SqlSessionTemplate
+    @Bean(name = "firstSqlSessionTemplate")
+    @Primary
+    public SqlSessionTemplate firstSqlSessionTemplate(@Qualifier("firstSqlSessionFactory") SqlSessionFactory sqlSessionFactory) throws  Exception{
+        return new SqlSessionTemplate(sqlSessionFactory);
+    }
+
+    private Class getType(String type){
+        try {
+            return Class.forName(type);
+        }catch (ClassNotFoundException e){
+            e.printStackTrace();
+        }
+        return null;
+    }
+
+}

+ 15 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/config/SecondDataProperties.java

@@ -0,0 +1,15 @@
+package com.xinxin.topro.base.config;
+
+import lombok.Data;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+@Data
+@Component
+@ConfigurationProperties(prefix = "spring.datasource.other")
+public class SecondDataProperties {
+    String driverClassName;
+    String url;
+    String username;
+    String password;
+}

+ 71 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/config/SecondDataSourceConfig.java

@@ -0,0 +1,71 @@
+package com.xinxin.topro.base.config;
+
+import org.apache.ibatis.session.SqlSessionFactory;
+import org.mybatis.spring.SqlSessionFactoryBean;
+import org.mybatis.spring.SqlSessionTemplate;
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.boot.jdbc.DataSourceBuilder;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.jdbc.datasource.DataSourceTransactionManager;
+
+import javax.sql.DataSource;
+
+/**
+ * @program:hope
+ * @author:aodeng
+ * @create:2018-08-02 20:16
+ **/
+
+@Configuration
+@MapperScan(basePackages = "com.xinxin.topro.base.sqlservermapper",sqlSessionTemplateRef = "secondSqlSessionTemplate")
+public class SecondDataSourceConfig {
+
+    @Autowired
+    private SecondDataProperties secondprop;
+
+    //创建数据源
+    @Bean(name="secondDataSource")
+    @ConfigurationProperties(prefix = "spring.datasource.other")
+    public DataSource getSecondDataSource(){
+        DataSource build = DataSourceBuilder.create()
+                .driverClassName(secondprop.driverClassName)
+                .url(secondprop.url)
+                .username(secondprop.username)
+                .password(secondprop.password).build();
+        return build;
+    }
+
+    //创建SqlSessionFactory
+    @Bean(name = "secondSqlSessionFactory")
+    public SqlSessionFactory secondSqlSessionFactory(@Qualifier("secondDataSource") DataSource dataSource) throws Exception{
+        SqlSessionFactoryBean bean=new SqlSessionFactoryBean();
+        bean.setDataSource(dataSource);
+        return bean.getObject();
+    }
+
+    //创建事务管理器
+    @Bean(name = "secondTransactionManager")
+    public DataSourceTransactionManager secondTransactionManager(@Qualifier("secondDataSource") DataSource dataSource){
+        return new DataSourceTransactionManager(dataSource);
+    }
+
+    //创建SqlSessionTemplate
+    @Bean(name = "secondSqlSessionTemplate")
+    public SqlSessionTemplate secondSqlSessionTemplate(@Qualifier("secondSqlSessionFactory") SqlSessionFactory sqlSessionFactory) throws  Exception{
+        return new SqlSessionTemplate(sqlSessionFactory);
+    }
+
+    private Class getType(String type){
+        try {
+            return Class.forName(type);
+        }catch (ClassNotFoundException e){
+            e.printStackTrace();
+        }
+        return null;
+    }
+
+}

+ 53 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/enums/ErrorCodeEnum.java

@@ -0,0 +1,53 @@
+package com.xinxin.topro.base.enums;
+
+public enum ErrorCodeEnum {
+    USER_NOT_FOUND("1","用户不存在"),
+    USERPASSWORD_NOT_BLANK("2","用户名密码不正确"),
+
+    HOSPITAL_NOT_FOUND("3","医院不存在"),
+
+    FUNCTION_NOT_FOUND("4","系统功能不存在"),
+    MENU_NOT_EXIST("5","该菜单下有子菜单,不能删除"),
+    FUNCTION_NOT_EXIST("6","该功能下关联着菜单和系统,不能删除"),
+    DATA_NOT_EXIST("7","数据不存在"),
+    API_CODE_EXIST("8","API代码已经存在"),
+
+    CUSTOM_MENU_NOT_FOUND("9","自定义菜单不存在"),
+    USERMENU_IS_EXIST("10","该用户下此菜单已存在"),
+
+    DICTIONARY_NOT_FOUND("11","公共类别不存在"),
+    DICTIONARYDETAIL_NOT_FOUND("12","公共类别明细不存在"),
+
+    USER_NOT_SYS("13","用户没有系统权限"),
+    OPERATE_FAILED("OPERATE_FAILED","操作失败"),
+    SYSTEM_ERROR("500","系统异常,请重试或联系管理员"),
+    UPLOAD_FAILED("14", "上传失败"),
+    PARENT_NOT_EXIST("15", "父节点不存在"),
+    CODE_EXIST("16", "代码已存在"),
+    CHILDREN_EXIST("17", "有子节点存在,请先删除子节点"),
+    DIRECTORY_NOT_EXIST("18","目录不存在"),
+    PARAM_EXCEPTION("19","参数异常"),
+    PWD_FAULT("20", "原密码错误"),
+    MODEL_EXISTS("21", "型号已存在"),
+    LOGIN_CODE_NOT_EXIST("CODE_NOT_EXIST", "授权码无效"),
+
+    ;
+
+    private String code;
+
+    private String description;
+
+    ErrorCodeEnum(String code, String description) {
+        this.code = code;
+        this.description = description;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+}

+ 51 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/DicDepartmentMapper.java

@@ -0,0 +1,51 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.DicDepartment;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+@Repository
+public interface DicDepartmentMapper {
+    int deleteByPrimaryKey(Integer ddId);
+
+    int insert(DicDepartment record);
+
+    int insertSelective(DicDepartment record);
+
+    DicDepartment selectByPrimaryKey(Integer ddId);
+
+    int updateByPrimaryKeySelective(DicDepartment record);
+
+    int updateByPrimaryKey(DicDepartment record);
+
+    /**
+     * 获取科室代码信息
+     *
+     * @param hiId 院区id
+     * @param ddDepdm 科室代码
+     * @return 科室名称
+     */
+    @Select("select DD_DepName from dic_department where  HI_ID = #{hiId} and DD_DepDm = #{ddDepdm} and DD_IsDel=0")
+    List<String> selectBySelective(@Param("hiId") Integer hiId, @Param("ddDepdm") String ddDepdm);
+
+    @Select("select DD_ID ddId,\n" +
+            "  DD_DepDm ddDepdm,\n" +
+            "  HI_ID hiId,\n" +
+            "  DD_DepName ddDepname,\n" +
+            "  DD_AliasName ddAliasname,\n" +
+            "  DD_EngName ddEngname,\n" +
+            "  DD_AccountDep ddAccountdep,\n" +
+            "  DD_CostDep ddCostdep,\n" +
+            "  DD_Address ddAddress,\n" +
+            "  DD_PinyinCode ddPinyincode,\n" +
+            "  DD_WubiCode ddWubicode,\n" +
+            "  DD_OtherCode ddOthercode,\n" +
+            "  DD_OpdFlag ddOpdflag,\n" +
+            "  DD_InpFlag ddInpflag,\n" +
+            "  DD_DepNature ddDepnature,\n" +
+            "  DD_SupDepDm ddSupdepdm,\n" +
+            "  DD_IsDel ddIsdel  from dic_department where  HI_ID = #{hiId} and DD_IsDel=0 ")
+    List<DicDepartment> selectAllDeptInfo(@Param("hiId") Integer hiId);
+}

+ 38 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/ExecRecordDetailMapper.java

@@ -0,0 +1,38 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.ExecRecordDetail;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Options;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface ExecRecordDetailMapper {
+    int deleteByPrimaryKey(Integer podId);
+
+    @Insert("    insert into pda_order_detail ( PO_ID, POD_Code, \n" +
+            "      POD_Value)\n" +
+            "    values ( #{PO_ID,jdbcType=INTEGER}, #{POD_Code,jdbcType=VARCHAR}, \n" +
+            "      #{POD_Value,jdbcType=VARCHAR})")
+    @Options(useGeneratedKeys = true, keyProperty = "POD_ID",keyColumn = "POD_ID")
+    int insert(ExecRecordDetail record);
+
+    @Insert("    <script> insert into pda_order_detail (PO_ID, POD_Code, POD_Value)\n" +
+            "    values <foreach collection='list' item='item' index='index' separator=','> ( #{item.PO_ID,jdbcType=INTEGER}, #{item.POD_Code,jdbcType=VARCHAR}, \n" +
+            "      #{item.POD_Value,jdbcType=VARCHAR})</foreach></script>")
+    @Options(useGeneratedKeys = true, keyProperty = "POD_ID",keyColumn = "POD_ID")
+    // 批量插入
+    int insertCollectList(@Param(value = "list") List<ExecRecordDetail> areaLists);
+
+    int insertSelective(ExecRecordDetail record);
+
+    ExecRecordDetail selectByPrimaryKey(Integer podId);
+
+    int updateByPrimaryKeySelective(ExecRecordDetail record);
+
+    int updateByPrimaryKey(ExecRecordDetail record);
+
+    @Select("<script> select * from pda_order_detail where PO_ID in <foreach item='item' index='index' collection='poids' open='(' separator=',' close=')'> #{item} </foreach> </script>")
+    List<ExecRecordDetail> selectByPoIds(@Param("poids")List<Integer> poids);
+}

+ 142 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/ExecRecordMapper.java

@@ -0,0 +1,142 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.ExecRecord;
+import org.apache.ibatis.annotations.*;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+@Repository
+public interface ExecRecordMapper {
+    int deleteByPrimaryKey(Integer poId);
+
+    int insertSelective(ExecRecord record);
+
+    ExecRecord selectByPrimaryKey(Integer poId);
+
+    int updateByPrimaryKeySelective(ExecRecord record);
+
+    int updateByPrimaryKey(ExecRecord record);
+    @Insert("    insert into pda_order (PO_PatientNo, HI_ID, \n" +
+            "      DD_DepDm, DW_WardDm, DB_BedNo, \n" +
+            "      PO_AdviceGroupCode, PO_AdviceType, PO_Operator,PO_AdviceNo, \n" +
+            "      PO_OperatTime, PO_CheckMan, PO_OperatType, \n" +
+            "      PO_OperatMode, PO_IsDel, PO_AdviceCode,PO_PreExecTime, \n" +
+            "      PO_BarCode,PO_FormerID,PO_Version,PO_Exception_Code,PO_Exception)\n" +
+            "    values (#{PO_PatientNo,jdbcType=INTEGER}, #{HI_ID,jdbcType=INTEGER}, \n" +
+            "      #{DD_DepDm,jdbcType=VARCHAR}, #{DW_WardDm,jdbcType=VARCHAR}, #{DB_BedNo,jdbcType=VARCHAR}, \n" +
+            "      #{PO_AdviceGroupCode,jdbcType=VARCHAR}, #{PO_AdviceType,jdbcType=VARCHAR}, #{PO_Operator,jdbcType=VARCHAR},#{PO_AdviceNo,jdbcType=VARCHAR}, \n" +
+            "      #{PO_OperatTime,jdbcType=TIMESTAMP}, #{PO_CheckMan,jdbcType=VARCHAR}, #{PO_OperatType,jdbcType=INTEGER}, \n" +
+            "      #{PO_OperatMode,jdbcType=INTEGER}, #{PO_IsDel,jdbcType=INTEGER}, #{PO_AdviceCode,jdbcType=VARCHAR}, #{PO_PreExecTime,jdbcType=TIMESTAMP},\n" +
+            "      #{PO_BarCode,jdbcType=VARCHAR},#{PO_FormerID,jdbcType=INTEGER},#{PO_Version,jdbcType=INTEGER}, #{PO_Exception_Code,jdbcType=VARCHAR}, #{PO_Exception,jdbcType=VARCHAR})")
+    @Options(useGeneratedKeys = true, keyProperty = "PO_ID", keyColumn="PO_ID")
+    int insert(ExecRecord record);
+
+    @Update("<script> <foreach item='item' index='index' collection='records' open='' separator=';' close=''>" +
+            " Update pda_order SET   PO_OperatTime = #{item.PO_OperatTime}" +
+            " where PO_AdviceCode  =  #{item.PO_AdviceCode} and PO_Version = 1 and PO_IsDel = 0</foreach> </script>")
+    int updateExecRecord(@Param("records") List<ExecRecord> records);
+
+    @Insert("    <script> insert into pda_order (PO_PatientNo, HI_ID,PO_Remark,PO_IsBatch, \n" +
+            "      DD_DepDm, DW_WardDm, DB_BedNo, \n" +
+            "      PO_AdviceGroupCode, PO_AdviceType, PO_Operator,PO_AdviceNo, \n" +
+            "      PO_OperatTime, PO_CheckMan, PO_OperatType, \n" +
+            "      PO_OperatMode, PO_IsDel, PO_AdviceCode,PO_PreExecTime, \n" +
+            "      PO_BarCode,PO_FormerID,PO_Version,PO_Exception_Code,PO_Exception)\n" +
+            "    values <foreach collection='list' item='item' index='index' separator=','> (#{item.PO_PatientNo,jdbcType=INTEGER}, #{item.HI_ID,jdbcType=INTEGER}, \n" +
+            "       #{item.PO_Remark,jdbcType=VARCHAR},#{item.PO_IsBatch,jdbcType=INTEGER}, #{item.DD_DepDm,jdbcType=VARCHAR}, #{item.DW_WardDm,jdbcType=VARCHAR}, #{item.DB_BedNo,jdbcType=VARCHAR}, \n" +
+            "      #{item.PO_AdviceGroupCode,jdbcType=VARCHAR}, #{item.PO_AdviceType,jdbcType=VARCHAR}, #{item.PO_Operator,jdbcType=VARCHAR},#{item.PO_AdviceNo,jdbcType=VARCHAR}, \n" +
+            "      #{item.PO_OperatTime,jdbcType=TIMESTAMP}, #{item.PO_CheckMan,jdbcType=VARCHAR}, #{item.PO_OperatType,jdbcType=INTEGER}, \n" +
+            "      #{item.PO_OperatMode,jdbcType=INTEGER}, #{item.PO_IsDel,jdbcType=INTEGER}, #{item.PO_AdviceCode,jdbcType=VARCHAR}, #{item.PO_PreExecTime,jdbcType=TIMESTAMP},\n" +
+            "      #{item.PO_BarCode,jdbcType=VARCHAR},#{item.PO_FormerID,jdbcType=INTEGER},#{item.PO_Version,jdbcType=INTEGER}, #{item.PO_Exception_Code,jdbcType=VARCHAR}, #{item.PO_Exception,jdbcType=VARCHAR}) </foreach></script> ")
+    @Options(useGeneratedKeys = true, keyProperty = "PO_ID", keyColumn="PO_ID")
+    // 批量插入
+    int insertCollectList(@Param(value = "list") List<ExecRecord> list);
+
+    @Update("UPDATE pda_order SET PO_Version = 0 WHERE PO_BarCode = #{barCode} and PO_OperatType <> #{PO_OperatType}")
+    int updateByBarCode(@Param("barCode")String barCode,@Param("PO_OperatType")String PO_OperatType);
+
+    @Update("<script> UPDATE pda_order SET PO_Version = 0 where PO_AdviceCode in <foreach item='item' index='index' collection='ids' open='(' separator=',' close=')'> #{item} </foreach></script>")
+    int updateByIds(@Param(value = "ids") List<String> ids);
+
+    @Update("<script> UPDATE pda_order SET PO_Version = 0 where PO_BarCode in <foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach></script>")
+    int updateByBarCodes(@Param(value = "list") List<String> list);
+
+    @Select("select * from pda_order where PO_BarCode = #{barCode} and PO_OperatType=#{operateType} and PO_Version=1")
+    List<ExecRecord> selectByBarCode(@Param("barCode") String barCode,@Param("operateType") String operateType);
+
+    @Select("select * from pda_order where PO_PatientNo = #{patientNo} and PO_OperatType=#{operateType} and PO_Version=1 " +
+            " and PO_AdviceType = #{adviceType} and PO_IsDel = 0")
+    List<ExecRecord> selectByAdviceType(@Param("patientNo") String patientNo,@Param("operateType") String operateType,
+                                        @Param("adviceType") String adviceType);
+
+    // 获取有效状态的执行<接收>记录
+    @Select("<script>select * from pda_order where PO_BarCode in <foreach item='item' index='index' collection='barCodes' open='(' separator=',' close=')'> #{item} </foreach> and PO_OperatType=#{operateType} </script>")
+    List<ExecRecord> selectByBarCodes(@Param("barCodes") List<String> barCodes,@Param("operateType") String operateType);
+
+    @Select("<script>select * from pda_order where PO_Remark in <foreach item='item' index='index' collection='barCodes' open='(' separator=',' close=')'> #{item} </foreach> and PO_OperatType=1 </script>")
+    List<ExecRecord> selectByRemark(@Param("barCodes") List<String> barCodes);
+
+    @Select("select * from pda_order where PO_BarCode = #{barCode} and PO_Version=1")
+    List<ExecRecord> getLastExecRecord(@Param("barCode") String barCode);
+
+    @Select("select a.*,b.UI_Name operatorName from pda_order a LEFT JOIN sys_userinfo b on a.po_operator = b.UI_Code where a.PO_BarCode = #{barCode} and a.PO_OperatType > 0 order by a.PO_ID DESC")
+    List<ExecRecord> getExecRecordWithoutReceive(@Param("barCode") String barCode);
+
+    @Select("select c.UI_Name operatorName,a.IEO_Dose POD_Value,a.PatientNo PO_PatientNo,a.HI_ID,a.DD_DepDm,a.DW_WardDm,a.DB_BedNo" +
+            " ,b.PO_Operator,b.PO_OperatTime from inp_expand_order  a  \n" +
+            "            LEFT JOIN pda_order b on b.PO_BarCode = a.IEO_Bar_Code  and b.PO_Version = 1 and b.PO_IsDel = 0\n" +
+            " LEFT JOIN sys_userinfo c on b.PO_Operator = c.UI_Code \n" +
+            "            where a.DW_WardDm = #{departNo} and date_format(a.IEO_Pre_ExecTime,'%Y-%m-%d') = #{operatTime}\n" +
+            "             and  a.IEO_Bar_Code like 'MRWY-%'")
+    List<ExecRecord> getExecRecordWithBreastMilk(@Param("departNo") String departNo,
+                                                 @Param("operatTime") String operatTime);
+
+    @Select("select * from pda_order where PO_AdviceCode = #{adviceCode} and PO_OperatType > 0 ORDER BY PO_ID DESC")
+    List<ExecRecord> getExecRecordByAdviceCode(@Param("adviceCode") String adviceCode);
+
+    @Select("select a.*,b.UI_Name operatorName from pda_order a LEFT JOIN sys_userinfo b on a.PO_Operator = b.UI_Code" +
+            " where date_format(a.PO_PreExecTime,'%Y-%m-%d') = #{preExceTime} and a.DW_WardDm = #{DepartNo} and a.PO_OperatType=#{operatType} and a.PO_IsDel = 0")
+    List<ExecRecord> selectReceived(@Param("DepartNo") String DepartNo,@Param("preExceTime") String preExceTime,@Param("operatType") int operatType);
+
+    @Select(" <script> select a.*,b.UI_Name operatorName from pda_order a LEFT JOIN sys_userinfo b on a.PO_Operator = b.UI_Code" +
+            " where a.PO_AdviceCode in <foreach item='item' index='index' collection='recordIds' open='(' separator=',' close=')'> #{item} </foreach>" +
+            " and a.PO_OperatType=#{operatType} and a.PO_IsDel = 0 </script>")
+    List<ExecRecord> selectReceived2(@Param("recordIds") List<Integer> recordIds,@Param("operatType") int operatType);
+
+    // 获取医嘱有效状态
+    @Select("select a.*,b.UI_Name operatorName from pda_order a LEFT JOIN sys_userinfo b on a.po_operator = b.UI_Code" +
+            " where date_format(a.PO_PreExecTime,'%Y-%m-%d') = #{preExceTime} and a.DW_WardDm = #{DepartNo} and  (a.PO_OperatType = -2 || a.PO_OperatType = -1)")
+    List<ExecRecord> getArrangeAndDosage(@Param("DepartNo") String DepartNo,@Param("preExceTime") String preExceTime);
+
+    @Select("select a.*,b.UI_Name operatorName from pda_order a LEFT JOIN sys_userinfo b on a.PO_Operator = b.UI_Code" +
+            " where date_format(a.PO_PreExecTime,'%Y-%m-%d') = #{preExceTime} and a.DW_WardDm = #{DepartNo} and a.po_patientno = #{VisitNo} order by a.PO_ID DESC")
+    List<ExecRecord> selectExecRecordByVisitNo(@Param("DepartNo") String DepartNo,@Param("preExceTime") String preExceTime,@Param("VisitNo") String VisitNo);
+
+    @Select("SELECT * from pda_order where po_version = 1 " +
+            "and PO_OperatType = 1  AND date_format(PO_PreExecTime,'%Y-%m-%d') = #{preExceTime} " +
+            "and DW_WardDm = #{DepartNo} AND PO_AdviceType = 2 " +
+            "and po_patientno = #{VisitNo} GROUP BY PO_BarCode ")
+    List<ExecRecord> selectExecRecordWithInfusion(@Param("DepartNo") String DepartNo,@Param("preExceTime") String preExceTime,@Param("VisitNo") String VisitNo);
+
+    @Select("SELECT * from pda_order where PO_AdviceNo = #{wayNo} and PO_Version = 1 and PO_PatientNo = #{VisitNo} AND PO_OperatType = 1")
+    List<ExecRecord> selectExecRecordWithInjection(@Param("VisitNo") String VisitNo,@Param("wayNo") String wayNo);
+
+    @Select("<script> SELECT b.pst_result,b.pst_option, d.ui_name operatorName,c.* from (" +
+            " select PO_AdviceCode,MAX(PO_ID) PO_ID from pda_order where PO_OperatType = 1 GROUP BY PO_AdviceCode" +
+            ") a LEFT JOIN pda_skin_test b on a.PO_AdviceCode = b.PST_AdviceCode LEFT JOIN pda_order c on a.PO_ID = c.PO_ID" +
+            " INNER JOIN sys_userinfo d on c.po_operator = d.ui_code "+
+            " where c.PO_AdviceCode in <foreach item='item' index='index' collection='adviceCodes' open='(' separator=',' close=')'> #{item} </foreach></script>")
+    List<ExecRecord> getExecRecordByAdviceCodes(@Param("adviceCodes") List<Integer> adviceCodes);
+
+    @Select("SELECT * from pda_order where po_version = 1 AND date_format(PO_PreExecTime,'%Y-%m-%d') = #{preExceTime} and DW_WardDm = #{DepartNo} and po_patientno = #{VisitNo} GROUP BY PO_BarCode ")
+    List<ExecRecord> selectVlidRecord(@Param("DepartNo") String DepartNo,@Param("preExceTime") String preExceTime,@Param("VisitNo") String VisitNo);
+
+    @Select("SELECT * from pda_order " +
+            "where DW_WardDm = #{departNo} " +
+            "and PO_OperatTime >  #{execSTime} " +
+            "AND PO_OperatTime <  #{execETime} " +
+            "AND PO_BarCode LIKE 'MRWY%' " +
+            "AND PO_IsDel = 0 AND PO_OperatType = 1 ")
+    List<ExecRecord> selectBreastMilk(@Param("departNo") String departNo,@Param("execSTime")String execSTime,
+                                      @Param("execETime")String execETime);
+}

+ 23 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/HospitalInfoMapper.java

@@ -0,0 +1,23 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.HospitalInfo;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface HospitalInfoMapper {
+    int deleteByPrimaryKey(Integer hiId);
+
+    int insertSelective(HospitalInfo record);
+
+    @Select("select * from sys_hospitalinfo where HI_ID = #{HI_ID} and HI_ISDel = 0")
+    HospitalInfo selectByPrimaryKey(Integer HI_ID);
+
+    @Select("select * from sys_hospitalinfo where HI_SupID = #{HI_SupID} and HI_ISDel = 0")
+    List<HospitalInfo> selectParentId(Integer HI_SupID);
+
+    @Select("select * from sys_hospitalinfo where HI_ISDel = 0")
+    List<HospitalInfo> selectAll();
+
+    int updateByPrimaryKeySelective(HospitalInfo record);
+}

+ 82 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/PdaBreastMilkMapper.java

@@ -0,0 +1,82 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.PdaBreastMilk;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+import org.springframework.stereotype.Repository;
+
+import java.util.Date;
+import java.util.List;
+@Repository
+public interface PdaBreastMilkMapper {
+
+    @Select("select * from pda_breast_milk where PBM_Car_BarCode= #{PBM_Car_BarCode} and PBM_IsDel=0")
+    PdaBreastMilk getPdaBreastMilkByPBMCar(@Param("PBM_Car_BarCode") String PBM_Car_BarCode);
+
+    @Select("select * from pda_breast_milk where PBM_Lable_BarCode= #{PBM_Lable_BarCode}  and PBM_IsDel=0")
+    PdaBreastMilk getPdaBreastMilkByPBMLable(@Param("PBM_Lable_BarCode") String PBM_Lable_BarCode);
+
+    @Select("select * from pda_breast_milk where PBM_Lable_BarCode= #{PBM_Lable_BarCode} and PBM_Status = #{Status} and PBM_IsDel=0")
+    PdaBreastMilk getDisinfectedBreast(@Param("PBM_Lable_BarCode") String PBM_Lable_BarCode,@Param("Status") String Status);
+
+    @Select("select * from pda_breast_milk where PBM_Car_BarCode= #{PatientNo} and PBM_IsDel=0")
+    List<PdaBreastMilk> getPdaBreastMilkByPatientID(@Param("PatientNo") Integer PatientNo);
+
+    @Select("select * from pda_breast_milk where PBM_Car_BarCode= #{PatientNo} and PBM_IsDel=0")
+    List<PdaBreastMilk> getPdaBreastMilkByUser(@Param("PatientNo") Integer PatientNo);
+
+    @Select("select * from pda_breast_milk where PBM_ID= #{PBM_ID} and PBM_Status=#{PBM_Status} and PBM_IsDel=0")
+    List<PdaBreastMilk> getPdaBreastMilkByID(@Param("PBM_ID") Integer PBM_ID,@Param("PBM_Status") Integer PBM_Status);
+
+    @Select("select * from pda_breast_milk where DW_WardDm= #{DW_WardDm} and (PBM_Status=#{PBM_Status1} or PBM_Status=#{PBM_Status2}) and PBM_IsDel=0 order by PBM_Acquisition_Time desc")
+    List<PdaBreastMilk> getPdaBreastMilkByDWWardDm(@Param("DW_WardDm") String DW_WardDm,@Param("PBM_Status1")Integer PBM_Status1,@Param("PBM_Status2")Integer PBM_Status2);
+
+    @Insert("INSERT INTO pda_breast_milk(PatientNo,HI_ID,DD_DepDm,DW_WardDm,DB_BedNo,PBM_Car_BarCode,PBM_Lable_BarCode,PBM_Acquisition_Time,PBM_Acquisitor,PBM_Valid_Time,PBM_Receipt_Time,PBM_Amount,PBM_Status,PBM_IsDel) \n" +
+            "    VALUES(#{PatientNo},#{HI_ID},#{DD_DepDm},#{DW_WardDm},#{DB_BedNo},#{PBM_Car_BarCode},#{PBM_Lable_BarCode},#{PBM_Acquisition_Time},#{PBM_Acquisitor},#{PBM_Valid_Time},#{PBM_Receipt_Time},#{PBM_Amount},#{PBM_Status},#{PBM_IsDel}) ")
+    int insertPdaBreastMilk(PdaBreastMilk pdaBreastMilk);
+
+    @Select("<script> SELECT * FROM pda_breast_milk WHERE 1 = 1  " +
+            "<when test='acquisitionSTime != null' > and PBM_Acquisition_Time &gt;= #{acquisitionSTime} </when>" +
+            "<when test='acquisitionETime != null' > AND PBM_Acquisition_Time &lt; #{acquisitionETime} </when>" +
+            "<when test='departNo != null' > AND DW_WardDm = #{departNo} </when>" +
+            "and patientNo in  <foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach></script>")
+    List<PdaBreastMilk> getPdaBreastMilk(@Param("acquisitionSTime") Date acquisitionSTime,@Param("acquisitionETime") Date acquisitionETime,@Param("departNo") String departNo,@Param("list") List<String> list);
+
+    @Update("update pda_breast_milk \n" +
+            "    set PBM_Acquisition_Time = #{PBM_Acquisition_Time},\n" +
+            "      PBM_Acquisitor = #{PBM_Acquisitor},\n" +
+            "      PBM_Valid_Time = #{PBM_Valid_Time},\n" +
+            "      PBM_Amount = #{PBM_Amount},\n" +
+            "      PBM_Receipt_Time = #{PBM_Receipt_Time}, \n" +
+            "      PBM_Status=#{PBM_Status}"+
+            "    where PBM_ID = #{PBM_ID} ")
+    int updatePdaBreastMilk(PdaBreastMilk pdaBreastMilk);
+
+    @Update("update pda_breast_milk \n" +
+            "    set PBM_Entry_Time = #{PBM_Entry_Time},\n" +
+            //"      PBM_Acquisitor = #{PBM_Acquisitor},\n" +
+            "      PBM_Entry = #{PBM_Entry},\n" +
+            "      PBM_Status=#{PBM_Status}"+
+            "    where PBM_ID = #{PBM_ID} ")
+    int updatePdaBreastMilk2(PdaBreastMilk pdaBreastMilk);
+
+    @Update("update pda_breast_milk \n" +
+            "    set PBM_Disinfection_Time = #{PBM_Disinfection_Time},\n" +
+            //"      PBM_Acquisitor = #{PBM_Acquisitor},\n" +
+            "      PBM_Disinfector = #{PBM_Disinfector},\n" +
+            "      PBM_Status=#{PBM_Status}"+
+            "    where PBM_ID = #{PBM_ID} ")
+    int updatePdaBreastMilk3(PdaBreastMilk pdaBreastMilk);
+
+    @Update("<script> Update pda_breast_milk SET PBM_IsPrint = 1,PBM_Print_Count=IFNULL(PBM_Print_Count,0) + 1,PBM_LastPrint_Time=sysdate(),PBM_Printer=#{PBM_Printer} where PBM_Lable_BarCode in  <foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach></script>")
+    int updatePdaBreastMilkByLabelCodes(@Param("list") List<String> list,@Param("PBM_Printer") String PBM_Printer);
+
+
+    @Select("SELECT sum(PBM_Amount) PBM_Amount from pda_breast_milk where PatientNo = #{PatientNo} AND PBM_Status > 1 GROUP BY PatientNo")
+    Double getAmount(@Param("PatientNo") String PatientNo);
+
+    @Select("select sum(POD_Value) POD_Value from pda_order_detail where POD_Code = 'milk' AND PO_ID IN (select PO_ID from pda_order where PO_PatientNo = #{PatientNo}) GROUP BY POD_Code")
+    Double getUsedAmount(@Param("PatientNo") String PatientNo);
+}

+ 66 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/PdaInspectionMapper.java

@@ -0,0 +1,66 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+
+import com.xinxin.topro.base.mysqlmodel.PdaInspection;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Options;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+public interface PdaInspectionMapper {
+    int deleteByPrimaryKey(Integer piId);
+    @Insert("insert  into pda_inspection (PI_ID, PI_PatientNo, HI_ID, \n" +
+            "      DD_DepDm, DW_WardDm, DB_BedNo, \n" +
+            "      PI_AdviceGroupCode, PI_AdviceType, PI_Inspector, \n" +
+            "      PI_InspectTime, PI_AdviceCode, PI_BarCode, \n" +
+            "      PI_Type, PI_ExceptionFlag, PI_Exception_Cause, \n" +
+            "      PI_Measure, PI_IsDel)\n" +
+            "    values (#{PI_ID,jdbcType=INTEGER}, #{PI_PatientNo,jdbcType=INTEGER}, #{HI_ID,jdbcType=INTEGER}, \n" +
+            "      #{DD_DepDm,jdbcType=VARCHAR}, #{DW_WardDm,jdbcType=VARCHAR}, #{DB_BedNo,jdbcType=VARCHAR}, \n" +
+            "      #{PI_AdviceGroupCode,jdbcType=VARCHAR}, #{PI_AdviceType,jdbcType=VARCHAR}, #{PI_Inspector,jdbcType=VARCHAR}, \n" +
+            "      #{PI_InspectTime,jdbcType=TIMESTAMP}, #{PI_AdviceCode,jdbcType=VARCHAR}, #{PI_BarCode,jdbcType=VARCHAR}, \n" +
+            "      #{PI_Type,jdbcType=INTEGER}, #{PI_ExceptionFlag,jdbcType=INTEGER}, #{PI_Exception_Cause,jdbcType=VARCHAR}, \n" +
+            "      #{PI_Measure,jdbcType=VARCHAR}, #{PI_IsDel,jdbcType=INTEGER})")
+    int insert(PdaInspection record);
+
+    @Insert("<script> insert  into pda_inspection (PI_PatientNo, HI_ID, \n" +
+            "      DD_DepDm, DW_WardDm, DB_BedNo, \n" +
+            "      PI_AdviceGroupCode, PI_AdviceType, PI_Inspector, \n" +
+            "      PI_InspectTime, PI_AdviceCode, PI_BarCode, \n" +
+            "      PI_Type, PI_ExceptionFlag, PI_Exception_Cause, \n" +
+            "      PI_Measure, PI_IsDel)\n" +
+            "      values " +
+            "<foreach collection='list' item='item' index='index' separator=','>" +
+            "      (#{item.PI_PatientNo,jdbcType=INTEGER}, #{item.HI_ID,jdbcType=INTEGER}, \n" +
+            "      #{item.DD_DepDm,jdbcType=VARCHAR}, #{item.DW_WardDm,jdbcType=VARCHAR}, #{item.DB_BedNo,jdbcType=VARCHAR}, \n" +
+            "      #{item.PI_AdviceGroupCode,jdbcType=VARCHAR}, #{item.PI_AdviceType,jdbcType=VARCHAR}, #{item.PI_Inspector,jdbcType=VARCHAR}, \n" +
+            "      #{item.PI_InspectTime,jdbcType=TIMESTAMP}, #{item.PI_AdviceCode,jdbcType=VARCHAR}, #{item.PI_BarCode,jdbcType=VARCHAR}, \n" +
+            "      #{item.PI_Type,jdbcType=INTEGER}, #{item.PI_ExceptionFlag,jdbcType=INTEGER}, #{item.PI_Exception_Cause,jdbcType=VARCHAR}, \n" +
+            "      #{item.PI_Measure,jdbcType=VARCHAR}, #{item.PI_IsDel,jdbcType=INTEGER}) </foreach></script>")
+    @Options(useGeneratedKeys = true, keyProperty = "PI_ID", keyColumn="PI_ID")
+    int insertCollectList(@Param(value = "list") List<PdaInspection> list);
+
+    int insertSelective(PdaInspection record);
+
+    PdaInspection selectByPrimaryKey(Integer piId);
+
+    int updateByPrimaryKeySelective(PdaInspection record);
+
+    int updateByPrimaryKey(PdaInspection record);
+    @Select("SELECT  a.*,b.UI_Name from Pda_Inspection a LEFT JOIN sys_userinfo b on a.PI_Inspector = b.UI_Code" +
+            " where a.PI_PatientNo = #{PI_PatientNo}" +
+            " and a.PI_Type= #{PI_Type}  and a.PI_IsDel=0 order by a.PI_InspectTime desc")
+    List<PdaInspection> getPdaInspectionList(@Param("PI_PatientNo") String PI_PatientNo, @Param("PI_Type") Integer PI_Type);
+
+    @Select(" <script> SELECT * from pda_inspection where  PI_IsDel = 0 and PI_Type = #{type} and PI_BarCode in " +
+            "<foreach collection='barCodes' separator=',' open='(' close=')' item='item'> " +
+            " #{item,jdbcType=INTEGER} " +
+            " </foreach></script>")
+    List<PdaInspection> selectByBarCodes(@Param("barCodes") List<String> barCodes, @Param("type") Integer type);
+
+    @Select("SELECT  a.*,b.UI_Name from Pda_Inspection a LEFT JOIN sys_userinfo b on a.PI_Inspector = b.UI_Code" +
+            " where a.PI_PatientNo = #{PI_PatientNo}" +
+            " and a.PI_Type= #{PI_Type}  and a.PI_IsDel=0 GROUP BY a.PI_AdviceGroupCode order by a.PI_InspectTime desc")
+    List<PdaInspection> getPdaInspectionListGroupBy(@Param("PI_PatientNo") String PI_PatientNo, @Param("PI_Type") Integer PI_Type);
+}

+ 88 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/PdaSpecimenMapper.java

@@ -0,0 +1,88 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.PdaSpecimen;
+import com.xinxin.topro.base.mysqlmodel.SpecimentCondition;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface PdaSpecimenMapper {
+
+    @Select("select * from pda_specimen where DW_WardDm= #{DW_WardDm} and PSM_Operat_Type=#{PSM_Operat_Type}")
+    List<PdaSpecimen> getPdaSpecimenList(@Param("DW_WardDm")String DW_WardDm,@Param("PSM_Operat_Type")Integer PSM_Operat_Type);
+
+    @Select("<script>" +
+            " select a.*,b.UI_Name collector,c.UI_Name receiver,d.UI_Name inspector from pda_specimen a LEFT JOIN sys_userinfo b on a.PSM_Collector = b.UI_Code" +
+            " LEFT JOIN sys_userinfo c on a.PSM_Receiver = c.UI_Code" +
+            " LEFT JOIN sys_userinfo d on a.PSM_Inspector = d.UI_Code" +
+            " where a.PSM_Operat_Type > 0 and a.PatientNo "+
+            " in <foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach> " +
+            "  </script>")
+    List<PdaSpecimen> getPdaSpecimenListByPatient(@Param("list")List<String> list);
+
+    @Select("select * from pda_specimen where DW_WardDm= #{DW_WardDm} and PSM_Collect_Time>dateTime")
+    List<PdaSpecimen> getPdaSpecimenListByTime(@Param("DW_WardDm")String DW_WardDm,@Param("dateTime")String dateTime);
+
+    @Insert("<script> insert into pda_specimen (PatientNo,HI_ID,DD_DepDm,DW_WardDm,DB_BedNo,PSM_AdviceGroupCode," +
+            "PSM_Advice_Type,PSM_Operat_Type,PSM_IsDel,PSM_AdviceCode,PSM_BarCode,PSM_IsBatch,PSM_Collect_Time,PSM_Collector,PSM_Specimen,PSM_Remark)" +
+            " values <foreach collection='areaLists' item='item' index='index' separator=','>(#{item.PatientNo,jdbcType=INTEGER}, #{item.HI_ID,jdbcType=INTEGER}, #{item.DD_DepDm,jdbcType=VARCHAR}, " +
+            "#{item.DW_WardDm,jdbcType=VARCHAR}, #{item.DB_BedNo,jdbcType=VARCHAR}, #{item.PSM_AdviceGroupCode,jdbcType=VARCHAR}, " +
+            "#{item.PSM_Advice_Type,jdbcType=VARCHAR}, #{item.PSM_Operat_Type,jdbcType=INTEGER}, #{item.PSM_IsDel,jdbcType=INTEGER}, " +
+            "#{item.PSM_AdviceCode,jdbcType=VARCHAR}, #{item.PSM_BarCode,jdbcType=VARCHAR}, #{item.PSM_IsBatch,jdbcType=INTEGER}, " +
+            "#{item.PSM_Collect_Time,jdbcType=TIMESTAMP}, #{item.PSM_Collector,jdbcType=VARCHAR}," +
+            "#{item.PSM_Specimen,jdbcType=VARCHAR},#{item.PSM_Remark,jdbcType=VARCHAR})</foreach></script>")
+    int addPdaSpecimen(@Param(value = "areaLists") List<PdaSpecimen> areaLists  );
+
+    @Update("<script> <foreach item='item' index='index' collection='list' open='' separator=';' close=''>"+
+            "update pda_specimen set  PSM_Receive_Time=#{item.PSM_Receive_Time,jdbcType=TIMESTAMP}," +
+            " PSM_Receiver= #{item.PSM_Receiver,jdbcType=VARCHAR},PSM_Operat_Type=#{item.PSM_Operat_Type,jdbcType=INTEGER} " +
+            " where PSM_ID=#{item.PSM_ID,jdbcType=INTEGER} " +
+            "</foreach> </script>")
+    int updatePdaSpecimenWithReceiver(@Param("list")List<PdaSpecimen> pdaSpecimen);
+
+    // 通过条码更新数据
+    @Update("<script> <foreach item='item' index='index' collection='list' separator=';' >" +
+            " update pda_specimen set PSM_Inspect_Time=#{item.PSM_Inspect_Time,jdbcType=TIMESTAMP}," +
+            " PSM_Inspector= #{item.PSM_Inspector,jdbcType=VARCHAR},PSM_Operat_Type=#{item.PSM_Operat_Type,jdbcType=INTEGER} " +
+            " where PSM_BarCode=#{item.PSM_BarCode,jdbcType=VARCHAR}" +
+            "</foreach> </script>")
+    int updatePdaSpecimen(@Param("list")List<PdaSpecimen> pdaSpecimen);
+
+    @Update("<script> <foreach item='item' index='index' collection='list' separator=';' >" +
+            " update pda_specimen set PSM_Inspect_Time=#{item.PSM_Inspect_Time,jdbcType=TIMESTAMP}," +
+            " PSM_Inspector= #{item.PSM_Inspector,jdbcType=VARCHAR},PSM_Operat_Type=#{item.PSM_Operat_Type,jdbcType=INTEGER} " +
+            " where PSM_ID=#{item.PSM_ID,jdbcType=INTEGER}" +
+            "</foreach> </script>")
+    int updatePdaSpecimenWithInspector(@Param("list")List<PdaSpecimen> pdaSpecimen);
+
+
+    @Select("select * from pda_specimen where PSM_BarCode= #{PSM_BarCode}")
+    List<PdaSpecimen> getPdaSpecimenByBarCode(String PSM_BarCode);
+
+    @Select("<script> select b.gender,b.age,b.ptName PatientName, a.* from pda_specimen a LEFT JOIN v_patientinfo b on a.PatientNo = b.visitNo where a.PSM_BarCode in " +
+            "<foreach item='item' index='index' collection='records' open='(' separator=',' close=')'> #{item} </foreach> </script>")
+    List<PdaSpecimen> getPdaSpecimenByBarCodes(@Param("records")List<String> records);
+
+    @Select("<script> " +
+            "select PSM_BarCode from pda_specimen where PSM_ID" +
+            " in <foreach item='item' index='index' collection='records' open='(' separator=',' close=')'> #{item} </foreach> " +
+            "</script>")
+    List<String> barcodeList(@Param("records")List<String> listCode);
+
+    // 样本送检人不为空,用于判断是否已送检
+    @Select("<script> select * from pda_specimen where PSM_IsDel = 0 and PSM_Inspector is not null and PSM_BarCode in" +
+            " <foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach> </script>")
+    List<PdaSpecimen> selectByBarCodes(List<String> list);
+
+    // 获取当前操作人当天的已送检数据
+    @Select(" SELECT d.UI_Name PSM_Inspector,a.*,b.IP_Sex gender,b.IP_Name PatientName,f_getAge(b.IP_Birth,b.IP_Admit_Time) age" +
+            " from pda_specimen a LEFT JOIN sys_userinfo d on a.PSM_Inspector = d.UI_Code" +
+            " LEFT JOIN inp_patient b on a.patientno = b.ip_patientno" +
+            " where psm_inspect_time >= #{startTime} and psm_inspect_time < #{endTime} and psm_inspector = #{uiCode}")
+    List<PdaSpecimen> getInspectInfo(@Param("uiCode")String uiCode,
+                                     @Param("startTime")String startTime,
+                                     @Param("endTime")String endTime);
+}

+ 49 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SkinPopMapper.java

@@ -0,0 +1,49 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SkinPop;
+import com.xinxin.topro.base.mysqlmodel.SkinPopSet;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface SkinPopMapper {
+    int deleteByPrimaryKey(Integer psId);
+
+    @Insert("insert into pda_skinpop ( PSS_ID, PO_ID, \n" +
+            "      PatientNo, HI_ID, DD_DepDm, \n" +
+            "      DW_WardDm, DB_BedNo, PS_AdviceCode, \n" +
+            "      PS_BarCode, PS_Recorder, PS_Record_Time, \n" +
+            "      PS_IsDel, PS_Operator, PS_OperatTime, \n" +
+            "      PS_Inject_Time, PS_Inject_Part, PS_Amount, \n" +
+            "      PS_Unit, PS_DrugCode, PS_IsInsulin\n" +
+            "      )\n" +
+            "    values ( #{PSS_ID,jdbcType=INTEGER}, #{PO_ID,jdbcType=INTEGER}, \n" +
+            "      #{PatientNo,jdbcType=INTEGER}, #{HI_ID,jdbcType=INTEGER}, #{DD_DepDm,jdbcType=VARCHAR}, \n" +
+            "      #{DW_WardDm,jdbcType=VARCHAR}, #{DB_BedNo,jdbcType=VARCHAR}, #{PS_AdviceCode,jdbcType=VARCHAR}, \n" +
+            "      #{PS_BarCode,jdbcType=VARCHAR}, #{PS_Recorder,jdbcType=VARCHAR}, #{PS_Record_Time,jdbcType=TIMESTAMP}, \n" +
+            "      #{PS_IsDel,jdbcType=INTEGER}, #{PS_Operator,jdbcType=VARCHAR}, #{PS_OperatTime,jdbcType=TIMESTAMP}, \n" +
+            "      #{PS_Inject_Time,jdbcType=TIMESTAMP}, #{PS_Inject_Part,jdbcType=VARCHAR}, #{PS_Amount,jdbcType=DOUBLE}, \n" +
+            "      #{PS_Unit,jdbcType=VARCHAR}, #{PS_DrugCode,jdbcType=VARCHAR}, #{PS_IsInsulin,jdbcType=INTEGER}\n" +
+            "      )")
+    int insert(SkinPop record);
+
+    int insertSelective(SkinPop record);
+
+    SkinPop selectByPrimaryKey(Integer psId);
+
+    int updateByPrimaryKeySelective(SkinPop record);
+
+    int updateByPrimaryKey(SkinPop record);
+
+    // 通过PSS_ID获取执行记录
+    @Select("<script> " +
+            "select * from PDA_SKINPOP where PSS_ID " +
+            "in <foreach item='item' index='index' collection='records' open='(' separator=',' close=')'> #{item.PSS_ID} </foreach> " +
+            "</script>")
+    List<SkinPop> selectBySelective(@Param("records") List<SkinPopSet> records);
+
+    @Select("SELECT * FROM PDA_SKINPOP WHERE PatientNo = #{patientNo} AND PS_DrugCode = #{itemCode} AND PS_IsDel = 0 and PS_IsInsulin=1 ")
+    List<SkinPop> selectByPatientAndCode(@Param("patientNo") String patientNo, @Param("itemCode")String itemCode);
+}

+ 57 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SkinPopPartMapper.java

@@ -0,0 +1,57 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SkinPopPart;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface SkinPopPartMapper {
+    int deleteByPrimaryKey(Integer pspId);
+
+    @Insert("    insert into pda_skinpop_part (PSP_ID, PatientNo, HI_ID, \n" +
+            "      DD_DepDm, DW_WardDm, DB_BedNo, \n" +
+            "      PSP_Inject_Part, PSP_Model, PSP_Recorder, \n" +
+            "      PSP_Record_Time, PSP_IsDel, PSP_Operator, \n" +
+            "      PSP_OperatTime)\n" +
+            "    values (#{PSP_ID,jdbcType=INTEGER}, #{PatientNo,jdbcType=INTEGER}, #{HI_ID,jdbcType=INTEGER}, \n" +
+            "      #{DD_DepDm,jdbcType=VARCHAR}, #{DW_WardDm,jdbcType=VARCHAR}, #{DB_BedNo,jdbcType=VARCHAR}, \n" +
+            "      #{PSP_Inject_Part,jdbcType=VARCHAR}, #{PSP_Model,jdbcType=INTEGER}, #{PSP_Recorder,jdbcType=VARCHAR}, \n" +
+            "      #{PSP_Record_Time,jdbcType=TIMESTAMP}, #{PSP_IsDel,jdbcType=INTEGER}, #{PSP_Operator,jdbcType=VARCHAR}, \n" +
+            "      #{PSP_OperatTime,jdbcType=TIMESTAMP})")
+    int insert(SkinPopPart record);
+
+    @Insert({
+            "<script>",
+            "insert into pda_skinpop_part (PSP_ID, PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PSP_Inject_Part, PSP_Model, PSP_Recorder, PSP_Record_Time, PSP_IsDel, PSP_Operator, PSP_OperatTime) values ",
+            "<foreach collection='list' item='item' index='index' separator=','>",
+            "(#{item.PSP_ID}, #{item.PatientNo}, #{item.HI_ID}, #{item.DD_DepDm},#{item.DW_WardDm}, #{item.DB_BedNo}, #{item.PSP_Inject_Part}, #{item.PSP_Model},#{item.PSP_Recorder}, #{item.PSP_Record_Time}, #{item.PSP_IsDel}, #{item.PSP_Operator}, #{item.PSP_OperatTime} )",
+            "</foreach>",
+            "</script>"
+    })
+    int insertCollectList(@Param(value = "list") List<SkinPopPart> list);
+
+    @Select("SELECT * FROM pda_skinpop_part WHERE PatientNo = #{PatientNo} and PSP_IsDel=0")
+    List<SkinPopPart> selectByPatientNo(@Param("PatientNo") String PatientNo);
+
+    @Update("Update pda_skinpop_part SET PSP_IsDel=1 WHERE PatientNo = #{PatientNo} and PSP_Model NOT IN (1,2)")
+    int updateDelByPatientNo(@Param("PatientNo") String PatientNo);
+
+    @Select("<script> " +
+            "Update pda_skinpop_part set PSP_IsDel=1  where PatientNo = #{PatientNo} and PSP_Inject_Part " +
+            "in <foreach item='item' index='index' collection='records' open='(' separator=',' close=')'> #{item.PSP_Inject_Part} </foreach> " +
+            "</script>")
+    Integer updateByPart(@Param("records") List<SkinPopPart> records,@Param("PatientNo") String PatientNo);
+
+    int insertSelective(SkinPopPart record);
+
+    SkinPopPart selectByPrimaryKey(Integer pspId);
+
+    int updateByPrimaryKeySelective(SkinPopPart record);
+
+    int updateByPrimaryKey(SkinPopPart record);
+
+
+}

+ 41 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SkinPopSetMapper.java

@@ -0,0 +1,41 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SkinPopSet;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Options;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface SkinPopSetMapper {
+    int deleteByPrimaryKey(Integer pssId);
+
+    @Insert("    insert into pda_skinpop_set (PSS_ID, PatientNo, HI_ID, \n" +
+            "      DD_DepDm, DW_WardDm, DB_BedNo, \n" +
+            "      PSS_AdviceCode, PSS_BarCode, PSS_DrugCode, \n" +
+            "      PSS_DrugName, PSS_StartTime, PSS_EndTime, \n" +
+            "      PSS_Amount, PSS_Unit, PSS_Recorder, \n" +
+            "      PSS_Record_Time, PSS_IsDel, PSS_Operator, \n" +
+            "      PSS_OperatTime)\n" +
+            "    values (#{PSS_ID,jdbcType=INTEGER}, #{PatientNo,jdbcType=INTEGER}, #{HI_ID,jdbcType=INTEGER}, \n" +
+            "      #{DD_DepDm,jdbcType=VARCHAR}, #{DW_WardDm,jdbcType=VARCHAR}, #{DB_BedNo,jdbcType=VARCHAR}, \n" +
+            "      #{PSS_AdviceCode,jdbcType=VARCHAR}, #{PSS_BarCode,jdbcType=VARCHAR}, #{PSS_DrugCode,jdbcType=VARCHAR}, \n" +
+            "      #{PSS_DrugName,jdbcType=VARCHAR}, #{PSS_StartTime,jdbcType=TIMESTAMP}, #{PSS_EndTime,jdbcType=TIMESTAMP}, \n" +
+            "      #{PSS_Amount,jdbcType=DOUBLE}, #{PSS_Unit,jdbcType=VARCHAR}, #{PSS_Recorder,jdbcType=VARCHAR}, \n" +
+            "      #{PSS_Record_Time,jdbcType=TIMESTAMP}, #{PSS_IsDel,jdbcType=INTEGER}, #{PSS_Operator,jdbcType=VARCHAR}, \n" +
+            "      #{PSS_OperatTime,jdbcType=TIMESTAMP})")
+    @Options(useGeneratedKeys = true, keyProperty = "PSS_ID")
+    int insert(SkinPopSet record);
+
+    int insertSelective(SkinPopSet record);
+
+    SkinPopSet selectByPrimaryKey(Integer pssId);
+
+    int updateByPrimaryKeySelective(SkinPopSet record);
+
+    int updateByPrimaryKey(SkinPopSet record);
+
+    @Select("SELECT * FROM PDA_SKINPOP_SET WHERE PatientNo = #{patientNo} AND PSS_DrugCode = #{itemCode} AND PSS_ISDEL = '0'")
+    List<SkinPopSet> selectByPatientAndCode(@Param("patientNo") String patientNo, @Param("itemCode")String itemCode);
+}

+ 53 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysDictionaryDetailMapper.java

@@ -0,0 +1,53 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+
+import com.xinxin.topro.base.mysqlmodel.SysDictionaryDetail;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface SysDictionaryDetailMapper {
+
+
+//    int deleteByPrimaryKey(Integer sddId);
+//
+//    int insert(SysDictionaryDetail record);
+
+    @Insert("insert into sys_dictionary_detail(SD_ID,SDD_Detail_Code,SDD_Detail_Name,UI_ID,SDD_Update_Time,SDD_IsDel,SDD_PinyinCode)" +
+            "values(#{SD_ID},#{SDD_Detail_Code},#{SDD_Detail_Name},#{UI_ID},#{SDD_Update_Time},#{SDD_IsDel},#{SDD_PinyinCode})")
+    int insertSelective(SysDictionaryDetail record);
+
+
+
+    @Select("select SDD_Detail_Name from sys_dictionary_detail where SDD_ID=#{sddId} ")
+    SysDictionaryDetail selectByPrimaryKey(Integer sddId);
+
+
+//    int updateByPrimaryKeySelective(SysDictionaryDetail record);
+//
+//    int updateByPrimaryKey(SysDictionaryDetail record);
+//
+//
+//    List<SysDictionaryDetail> selectAll();
+
+    @Select("select SDD_Detail_Code,SDD_Detail_Name from sys_dictionary_detail where SD_ID = #{sdid}")
+    List<SysDictionaryDetail> selectDetailBySdId(Integer sdid);
+
+    @Select("select * from sys_dictionary_detail where SD_ID = #{sdid} ")
+    List<SysDictionaryDetail> selectAllBySdId(Integer sdid);
+
+
+
+    @Select("select * from sys_dictionary_detail where SD_ID = #{sdid} and SDD_Detail_Name=#{sddname} and SDD_IsDel = 0" +
+            " ORDER BY SDD_Update_Time desc LIMIT 1")
+    List<SysDictionaryDetail> selectDictionaryDetailID(@Param("sdid") Integer sdid, @Param("sddname") String sddname);
+
+
+    @Select("SELECT b.* from sys_dictionary a INNER JOIN sys_dictionary_detail b on a.SD_ID = b.SD_ID and a.SD_DicDM = #{SD_DicDM} AND SDD_Detail_Code = #{SDD_Detail_Code}")
+    SysDictionaryDetail selectBySddDDetailCode(@Param("SD_DicDM") String SD_DicDM,@Param("SDD_Detail_Code") String SDD_Detail_Code);
+
+
+}
+

+ 41 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysDictionaryMapper.java

@@ -0,0 +1,41 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+
+import com.xinxin.topro.base.mysqlmodel.SysDictionaryDetail;
+import com.xinxin.topro.base.vo.DictionaryPubVo;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface SysDictionaryMapper {
+//    int deleteByPrimaryKey(Integer sdId);
+//
+//    int insert(SysDictionary record);
+//
+//    int insertSelective(SysDictionary record);
+//
+//    SysDictionary selectByPrimaryKey(Integer sdId);
+//
+//    int updateByPrimaryKeySelective(SysDictionary record);
+//
+//    int updateByPrimaryKey(SysDictionary record);
+
+    @Select("select T2.* from sys_dictionary T INNER JOIN  sys_dictionary_detail T2 on T2.SD_ID = T.SD_ID where T.SD_IsDel = 0 and T2.SDD_IsDel = 0 and T.SD_DicDM = #{SD_DicDM}")
+    List<SysDictionaryDetail> selectBySDDicCode(@Param("SD_DicDM") String SD_DicDM);
+
+    @Select("select SD_ID from sys_dictionary where SD_DicDM=#{sdCode}")
+    int selectSdidbyCode(@Param("sdCode") String sdCode);
+
+    @Select("SELECT\n" +
+            "\tsd.SD_DicDM sdCode,\n" +
+            "\tsdd.SDD_Detail_Code sddCode,\n" +
+            "\tsdd.SDD_Detail_Name sddName\n" +
+            "    FROM\n" +
+            "\tsys_dictionary sd\n" +
+            "\tINNER JOIN sys_dictionary_detail sdd ON sd.SD_ID = sdd.SD_ID\n" +
+            "    WHERE sd.SD_IsDel = 0\n" +
+            "\tAND sdd.SDD_IsDel =0\n" +
+            "\tand (sd.HI_ID=0 or sd.HI_ID = #{hiId,jdbcType=INTEGER})")
+    List<DictionaryPubVo> selectAllByHiId(@Param("hiId") Integer hiId);
+}

+ 37 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysFunctionFunctionMapper.java

@@ -0,0 +1,37 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysFunction;
+import com.xinxin.topro.base.mysqlmodel.SysFunctionFunction;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface SysFunctionFunctionMapper {
+    int deleteByPrimaryKey(Integer sffId);
+
+    @Insert(" insert into sys_function_function (SF_PriID, SF_ConID)\n" +
+            "    values (#{SF_PriID}, #{SF_ConID})")
+    int insertSelective(SysFunctionFunction record);
+
+    @Select("select * from sys_function_function where SFF_IsDel = 0 and SF_PriID = #{proId} and SF_ConID = #{conId}")
+    SysFunctionFunction selectByPriConId(Integer proId,Integer conId);
+
+    SysFunctionFunction selectByPrimaryKey(Integer sffId);
+
+    @Select("select * from sys_function where \n" +
+            "SF_IsDel = 0 and \n" +
+            "SF_ID in (SELECT SF_ConID from sys_function_function \n" +
+            "where SFF_IsDel = 0 and SF_PriID = #{SF_ID})")
+    List<SysFunction> selectFunctionId(Integer SF_ID);
+
+    @Select("select sf.* from sys_function sf where sf.SF_IsDel = 0 and sf.SF_ID != #{SF_ID} " +
+            "and sf.SF_ID not in (select sff.SF_ConID from sys_function_function sff where sff.SFF_IsDel = 0 and SF_PriID = #{SF_ID})")
+    List<SysFunction> selectNotFunctionId(Integer SF_ID);
+
+    int updateByPrimaryKeySelective(SysFunctionFunction record);
+
+    @Update("update sys_function_function set SF_IsDel = -1 where SFF_ID = #{sffId}")
+    int updateStatus(Integer sffId);
+}

+ 71 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysFunctionMapper.java

@@ -0,0 +1,71 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysFunction;
+import org.apache.ibatis.annotations.*;
+
+import java.util.List;
+
+public interface SysFunctionMapper {
+    int deleteByPrimaryKey(Integer sfId);
+
+    @Insert("insert into sys_function (SF_Name, SF_Intro, \n" +
+            "      SF_Icon, UI_ID_Add, \n" +
+            "      SF_AddDate, UI_ID_Update, SF_UpdateDate, \n" +
+            "      SF_URL, SF_MenuType, \n" +
+            "      SF_ShowType, SF_ISFixed, SF_IsExternal_Link, SF_Component, SF_Link)\n" +
+            "    values (#{SF_Name}, #{SF_Intro}, #{SF_Icon}, #{UI_ID_Add}, #{SF_AddDate}, #{UI_ID_Update}, #{SF_UpdateDate}, \n" +
+            "      #{SF_URL}, #{SF_MenuType}, \n" +
+            "      #{SF_ShowType}, #{SF_ISFixed}, #{SF_IsExternal_Link}, #{SF_Component}, #{SF_Link})")
+    int insertSelective(SysFunction record);
+
+    @Select("select SF_ID from sys_function where SF_IsDel = 0 Order By SF_ID desc limit 1")
+    int selectLate();
+
+    @Select("select * from sys_function where SF_IsDel = 0 and SF_ID = #{sfId}")
+    SysFunction selectByPrimaryKey(Integer sfId);
+
+    @Select("select * from sys_function where SF_IsDel = 0 Order by SF_ID desc")
+    List<SysFunction> selectAll();
+
+    @Select("<script> select * from sys_function where SF_IsDel = 0 and SF_ID in " +
+            "<foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach> </script>")
+    List<SysFunction> selectIdsList(@Param("list") List<Integer> list);
+
+    @Select("select * from sys_function where SF_IsDel = 0 and SF_Name like concat('%',#{name},'%') Order by SF_ID desc")
+    List<SysFunction> selectAllName(String name);
+
+    @Update("update sys_function\n" +
+            "    set SF_Name = #{SF_Name},\n" +
+            "      SF_Intro = #{SF_Intro},\n" +
+            "      SF_Icon = #{SF_Icon},\n" +
+            "      UI_ID_Update = #{UI_ID_Update},\n" +
+            "      SF_UpdateDate = #{SF_UpdateDate},\n" +
+            "      SF_URL = #{SF_URL},\n" +
+            "      SF_MenuType = #{SF_MenuType},\n" +
+            "      SF_ShowType = #{SF_ShowType},\n" +
+            "      SF_ISFixed = #{SF_ISFixed}," +
+            "      SF_IsExternal_Link = #{SF_IsExternal_Link}," +
+            "      SF_Component = #{SF_Component}," +
+            "      SF_Link = #{SF_Link}\n" +
+            "    where SF_ID = #{SF_ID}")
+    int updateByPrimaryKeySelective(SysFunction record);
+
+    @Update("update sys_function set SF_IsDel = -1 where SF_ID = #{sfId}")
+    int updateStatus(Integer sfId);
+
+    @Select("select * from sys_function where SF_IsDel = 0 ")
+    List<SysFunction> selectByFindCondition();
+
+    @Select("select SF_Link from sys_function where SF_IsDel = 0 and SF_Component = #{component}")
+    String selectByComponent(@Param("component") String component);
+
+
+    @Select("select SF_Name from sys_function where SF_IsDel = 0 and SF_ID = #{sfId}")
+    SysFunction selectBySFID(Integer sfId);
+
+    @Select("<script> select sfn.SF_Component from sys_menu smu \n" +
+            "LEFT JOIN sys_function sfn on smu.SF_ID = sfn.SF_ID\n" +
+            "where smu.SM_IsDel = 0 and sfn.SF_IsDel = 0 and smu.SM_ID in " +
+            "<foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach> </script>")
+    List<String> selectBySMID(@Param("list") List<Integer> list);
+}

+ 87 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysMenuMapper.java

@@ -0,0 +1,87 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysMenu;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface SysMenuMapper {
+    int deleteByPrimaryKey(Integer smId);
+
+    @Insert("insert into sys_menu (SS_ID, SM_SupID, SM_MenuCode, SM_Parameter, SM_Icon, SM_Name, UI_ID_Add, SM_AddDate, UI_ID_Update, SM_UpdateDate, SF_ID, SM_Sort)\n" +
+            " values (#{SS_ID}, #{SM_SupID}, #{SM_MenuCode}, #{SM_Parameter}, #{SM_Icon}, #{SM_Name}, #{UI_ID_Add}, #{SM_AddDate}, #{UI_ID_Update}, #{SM_UpdateDate}, #{SF_ID}, #{SM_Sort})")
+    int insertSelective(SysMenu record);
+
+    @Select("select * from sys_menu where SM_IsDel = 0 and SM_ID = #{smId}")
+    SysMenu selectByPrimaryKey(Integer smId);
+
+    @Select("select * from sys_menu where SM_IsDel = 0 Order by SS_ID ASC, SM_SupID ASC ,SM_sort ASC")
+    List<SysMenu> selectAll();
+
+    @Select("<script> select * from sys_menu where SM_IsDel = 0 " +
+            "and SM_ID in <foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach> </script>")
+    List<SysMenu> selectIdsList(@Param("list") List<Integer> list);
+
+    @Select("select * from sys_menu where SM_IsDel = 0 and SM_Name like concat('%',#{name},'%') " +
+            "or SM_PinyinCode like concat('%',#{name},'%') or SM_WubiCode like concat('%',#{name},'%') " +
+            "or SM_OtherCode like concat('%',#{name},'%') Order by SS_ID ASC, SM_SupID ASC ,SM_sort ASC")
+    List<SysMenu> selectAllName(String name);
+
+    @Select("select * from sys_menu where SM_IsDel = 0 and SM_Supid = 0 and SS_ID = #{SS_ID}")
+    List<SysMenu> selectBySSID(Integer SS_ID);
+
+    @Select("select * from sys_menu where SM_IsDel = 0 and SM_Supid = #{SM_Supid} order by SM_Sort asc")
+    List<SysMenu> selectBySUPID(Integer SM_Supid);
+
+    @Select("select * from sys_menu where SM_IsDel = 0 and SF_ID = #{SF_ID}")
+    List<SysMenu> selectBySFID(Integer SF_ID);
+
+    @Select("SELECT sm.* FROM sys_menu sm \n" +
+            "LEFT JOIN sys_role_menu srm\n" +
+            "on sm.SM_ID = srm.SM_ID\n" +
+            "where sm.SM_IsDel = 0 and srm.RM_IsDel = 0 and srm.SR_ID = #{SR_ID}")
+    List<SysMenu> selectRoleMenuId(Integer SR_ID);
+
+    @Select("SELECT DISTINCT sm.* from sys_menu sm \n" +
+            "LEFT JOIN sys_role_menu srm \n" +
+            "on srm.SM_ID = sm.SM_ID\n" +
+            "LEFT JOIN sys_role_user sru\n" +
+            "on srm.SR_ID = sru.SR_ID\n" +
+            "where srm.RM_IsDel = 0 and sru.RU_IsDel = 0 \n" +
+            "and sm.SM_IsDel = 0 and sru.UI_ID = #{uuId}")
+    List<SysMenu> selectMenuUserId(Integer uuId);
+
+    @Update("update sys_menu\n" +
+            "    set SS_ID = #{SS_ID},\n" +
+            "      SM_SupID = #{SM_SupID},  SM_MenuCode = #{SM_MenuCode},\n" +
+            "      SM_Parameter = #{SM_Parameter},\n" +
+            "      SM_Icon = #{SM_Icon},\n" +
+            "      SM_Name = #{SM_Name},\n" +
+            "      UI_ID_Update = #{UI_ID_Update},\n" +
+            "      SM_UpdateDate = #{SM_UpdateDate},\n" +
+            "      SF_ID = #{SF_ID}\n" +
+            "    where SM_ID = #{SM_ID}")
+    int updateByPrimaryKeySelective(SysMenu record);
+
+    @Update("update sys_menu set SM_IsDel = -1 where SM_ID = #{SM_ID}")
+    int updateByStatus(Integer SM_ID);
+
+
+    @Update("update sys_menu set SM_IsDel = -1  where SS_ID = #{SS_ID}")
+    int updateStatusBySSID(Integer SS_ID);
+
+    @Update("update sys_menu set SM_Sort = #{sort} where SM_ID = #{SM_ID}")
+    int updateBySort(@Param("sort") Integer sort, @Param("SM_ID") Integer SM_ID);
+
+    @Select("select * from sys_menu where SM_IsDel = 0 and SM_MenuCode = #{SM_MenuCode}")
+    SysMenu getMenuCode(String SM_MenuCode);
+
+    @Select("select max(SM_Sort) from sys_menu where SM_IsDel = 0 and SM_SupID = #{supId}")
+    Integer getMenuSort(Integer supId);
+
+    @Select("select * from sys_menu where SM_IsDel = 0 and SF_ID = #{SF_ID} and SS_ID = #{SS_ID}")
+    List<SysMenu> getMenuSSId(@Param("SS_ID") Integer SS_ID,@Param("SF_ID") Integer SF_ID);
+}

+ 62 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysOperationMapper.java

@@ -0,0 +1,62 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysOperation;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface SysOperationMapper {
+    int deleteByPrimaryKey(Integer soId);
+
+    @Insert("insert into sys_operation (SO_Name, SO_Code,SO_Intro, \n" +
+            "      SO_Icon, SO_Type,\n" +
+            "      UI_ID_Add, SO_AddDate, UI_ID_Update, \n" +
+            "      SO_UpdateDate, SF_ID\n" +
+            "      )\n" +
+            "    values (#{SO_Name}, #{SO_Code}, #{SO_Intro},\n" +
+            "      #{SO_Icon}, #{SO_Type}, \n" +
+            "      #{UI_ID_Add}, #{SO_AddDate}, #{UI_ID_Update}, \n" +
+            "      #{SO_UpdateDate}, #{SF_ID}\n" +
+            "      )")
+    int insertSelective(SysOperation record);
+
+    @Insert("<script> insert into sys_operation (SO_Name, SO_Code,SO_Intro, \n" +
+            "      SO_Icon, SO_Type,SO_Sort,\n" +
+            "      UI_ID_Add, SO_AddDate, UI_ID_Update, \n" +
+            "      SO_UpdateDate, SF_ID\n" +
+            "      )\n" +
+            "    values <foreach collection='list' item='item' index='index' separator=','> (#{item.SO_Name}, #{item.SO_Code}, #{item.SO_Intro}," +
+            "#{item.SO_Icon}, #{item.SO_Type}, #{item.SO_Sort},#{item.UI_ID_Add}, #{item.SO_AddDate}, " +
+            "#{item.UI_ID_Update},#{item.SO_UpdateDate}, #{item.SF_ID})</foreach> </script>")
+    int batchInsert(@Param("list") List<SysOperation> list);
+
+    SysOperation selectByPrimaryKey(Integer soId);
+
+    @Select("select * from sys_operation where SO_IsDel = 0 and SF_ID = #{SF_ID}")
+    List<SysOperation> selectBySFID(Integer SF_ID);
+
+    @Select("select * from sys_operation where SO_IsDel = 0")
+    List<SysOperation> selectAll();
+
+    @Update("update sys_operation\n" +
+            "    set SO_Name = #{SO_Name,jdbcType=VARCHAR}," +
+            "       SO_Code = #{SO_Code,jdbcType=VARCHAR},\n" +
+            "      SO_Intro = #{SO_Intro,jdbcType=VARCHAR},\n" +
+            "      SO_Icon = #{SO_Icon,jdbcType=VARCHAR},\n" +
+            "      UI_ID_Update = #{UI_ID_Update,jdbcType=VARCHAR},\n" +
+            "      SO_UpdateDate = #{SO_UpdateDate,jdbcType=TIMESTAMP},\n" +
+            "      SF_ID = #{SF_ID,jdbcType=INTEGER}\n" +
+            "    where SO_ID = #{SO_ID,jdbcType=INTEGER}")
+    int updateByPrimaryKeySelective(SysOperation record);
+
+    @Update("update sys_operation set SO_IsDel = -1 where SO_ID = #{soId}")
+    int updateStatus(Integer soId);
+
+    @Update("<script> <foreach item='item' index='index' collection='list' open='' separator=';' close=''>" +
+            "update sys_operation set SO_IsDel = -1 where SO_ID = #{item}"+
+            "</foreach> </script>")
+    int updateBatchStatus(List<Integer> list);
+}

+ 162 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysParameterMapper.java

@@ -0,0 +1,162 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysParameter;
+import com.xinxin.topro.base.vo.SysParamClassifyVo;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+
+public interface SysParameterMapper {
+    int deleteByPrimaryKey(Integer spId);
+
+
+    int insertSelective(SysParameter record);
+
+    @Insert("insert into sys_parameter(SP_ID, HI_ID,SP_Classify, SP_ParmDm,\n" +
+            "            SP_Des, SP_Type, SP_Value,\n" +
+            "            UI_ID, SP_Date, SP_IsDel,SP_PinyinCode,SP_WubiCode,SP_OtherCode\n" +
+            "    )\n" +
+            "    values (#{spId,jdbcType=INTEGER},#{hiId,jdbcType=INTEGER}, #{spClassify,jdbcType=INTEGER}, #{spParmdm,jdbcType=VARCHAR},\n" +
+            "            #{spDes,jdbcType=VARCHAR}, #{spType,jdbcType=VARCHAR}, #{spValue,jdbcType=VARCHAR},\n" +
+            "            #{uiId,jdbcType=VARCHAR}, #{spDate,jdbcType=TIMESTAMP}, #{spIsdel,jdbcType=INTEGER},\n" +
+            "            #{spPincode,jdbcType=VARCHAR},#{spWubicode,jdbcType=VARCHAR},#{spOthercode,jdbcType=VARCHAR}\n" +
+            "      )")
+    int insert(SysParameter record);
+
+    SysParameter selectByPrimaryKey(Integer spId);
+
+    @Select("SELECT  SP_ID spId,\n" +
+            "    SP_Classify spClassify,\n" +
+            "    SP_ParmDm spParmdm,\n" +
+            "    SP_Des spDes,\n" +
+            "    SP_Type spType,\n" +
+            "    SP_Value spValue,\n" +
+            "    UI_ID uiId,\n" +
+            "    SP_Date spDate,\n" +
+            "    SP_IsDel spIsdel,\n" +
+            "    SP_PinyinCode spPincode,\n" +
+            "    SP_WubiCode spWubicode,\n" +
+            "    SP_OtherCode spOthercode FROM sys_parameter WHERE SP_IsDel = 0 ")
+    List<SysParameter> selectAll();
+
+
+    @Select("select SP_ID spId,HI_ID hiId,SP_Classify spClassify,SP_ParmDm spParmdm,SP_Des spDes,\n" +
+            "             SP_Type spType, SP_Value spValue, UI_ID uiId, SP_Date spDate,SP_IsDel spIsdel,SP_PinyinCode spPincode,\n" +
+            "            SP_WubiCode spWubicode,SP_OtherCode spOthercode from sys_parameter where SP_IsDel = 0 \n" +
+            "            and (SP_Des like concat('%',#{name},'%') or SP_PinyinCode like  concat('%',#{name},'%') \n" +
+            "            or  SP_OtherCode  like  concat('%',#{name},'%') \n" +
+            "            or  SP_WubiCode like  concat('%',#{name},'%'))")
+    List<SysParameter> selectAllName(String name);
+
+    @Select("select   SP_ID spId,\n" +
+            "    SP_Classify spClassify,\n" +
+            "    SP_ParmDm spParmdm,\n" +
+            "    SP_Des spDes,\n" +
+            "    SP_Type spType,\n" +
+            "    SP_Value spValue,\n" +
+            "    UI_ID uiId,\n" +
+            "    SP_Date spDate,\n" +
+            "    SP_IsDel spIsdel,\n" +
+            "    SP_PinyinCode spPincode,\n" +
+            "    SP_WubiCode spWubicode,\n" +
+            "    SP_OtherCode spOthercode from sys_parameter where SP_IsDel = 0 and SP_ParmDm=#{spParmDm}")
+    SysParameter selectByParamDm(@Param("spParmDm") String spParmDm);
+
+    @Select("<script> select   SP_ID spId,\n" +
+            "    SP_Classify spClassify,\n" +
+            "    SP_ParmDm spParmdm,\n" +
+            "    SP_Des spDes,\n" +
+            "    SP_Type spType,\n" +
+            "    SP_Value spValue,\n" +
+            "    UI_ID uiId,\n" +
+            "    SP_Date spDate,\n" +
+            "    SP_IsDel spIsdel,\n" +
+            "    SP_PinyinCode spPincode,\n" +
+            "    SP_WubiCode spWubicode,\n" +
+            "    SP_OtherCode spOthercode from sys_parameter where SP_IsDel = 0 " +
+            " and SP_ParmDm in <foreach item='item' index='index' collection='spParmDms' open='(' separator=',' close=')'> #{item} </foreach></script>")
+    List<SysParameter> selectByParamDms(@Param("spParmDms") List<String> spParmDms);
+
+    @Update("update sys_parameter set SP_ParmDm=#{spParmdm}, SP_Classify=#{spClassify},SP_Des=#{spDes}," +
+            "SP_Type=#{spType},UI_ID=#{uiId},SP_Date=#{spDate},SP_Value=#{spValue} where SP_ID = #{spId}")
+    int updateByPrimaryKeySelective(SysParameter record);
+
+    @Update("update sys_parameter set SP_IsDel= #{spIsdel},UI_ID=#{uiId},SP_Date=#{spDate} where SP_ID = #{spId}")
+    int updateByPrimaryKey(SysParameter record);
+
+
+    @Select("select   SP_ID spId,\n" +
+            "    SP_Classify spClassify,\n" +
+            "    SP_ParmDm spParmdm,\n" +
+            "    SP_Des spDes,\n" +
+            "    SP_Type spType,\n" +
+            "    SP_Value spValue,\n" +
+            "    UI_ID uiId,\n" +
+            "    SP_Date spDate,\n" +
+            "    SP_IsDel spIsdel,\n" +
+            "    SP_PinyinCode spPincode,\n" +
+            "    SP_WubiCode spWubicode,\n" +
+            "    SP_OtherCode spOthercode from sys_parameter where SP_IsDel = 0 and SP_Classify =#{classify} and " +
+            "(SP_Des like concat('%',#{name},'%') or SP_PinyinCode like concat('%',#{name},'%') or  SP_OtherCode  like concat('%',#{name},'%') or" +
+            " SP_WubiCode like concat('%',#{name},'%'))")
+    List<SysParameter> selectByClassifyName(SysParamClassifyVo vo);
+
+    @Select("  select\n" +
+            "    SP_ID spId,\n" +
+            "    SP_Classify spClassify,\n" +
+            "    SP_ParmDm spParmdm,\n" +
+            "    SP_Des spDes,\n" +
+            "    SP_Type spType,\n" +
+            "    SP_Value spValue,\n" +
+            "    UI_ID uiId,\n" +
+            "    SP_Date spDate,\n" +
+            "    SP_IsDel spIsdel,\n" +
+            "    SP_PinyinCode spPincode,\n" +
+            "    SP_WubiCode spWubicode,\n" +
+            "    SP_OtherCode spOthercode\n" +
+            "    from sys_parameter\n" +
+            "    where SP_IsDel = 0\n" +
+            "    and SP_Classify= #{classify,jdbcType=VARCHAR}")
+    List<SysParameter> selectAllClassify(Integer classify);
+
+    @Select(" select SP_VALUE  FROM sys_parameter WHERE SP_Classify = 1 and SP_ParmDm=#{pramDM} and SP_IsDel = 0")
+    String selectValueByPramDM(String pramDM);
+
+    @Select(" select SP_VALUE  FROM sys_parameter WHERE SP_Classify = 1 and SP_ParmDm = #{pramDM} and HI_ID = #{hiId} and SP_IsDel = 0")
+    String selectValueByHiIdPramDM(@Param("pramDM") String pramDM,@Param("hiId") Integer hiId);
+
+    @Select("<script>select SP_ID spId,\n" +
+            "             SP_Classify spClassify,\n" +
+            "             SP_ParmDm spParmdm,\n" +
+            "             SP_Des spDes,\n" +
+            "             SP_Type spType,\n" +
+            "             SP_Value spValue,\n" +
+            "             UI_ID uiId,\n" +
+            "             SP_Date spDate,\n" +
+            "             SP_IsDel spIsdel,\n" +
+            "             SP_PinyinCode spPincode,\n" +
+            "             SP_WubiCode spWubicode,\n" +
+            "             SP_OtherCode spOthercode\n" +
+            "             from sys_parameter\n" +
+            "              <if test=\"pramDM != null\" > where SP_IsDel = 0 and (HI_ID = 0 OR HI_ID = #{hiId}) and SP_ParmDm in " +
+            "<foreach item=\"pramDM\" index=\"index\" collection=\"pramDM\" open=\"(\" separator=\",\" close=\")\"> #{pramDM}</foreach>" +
+            "</if> </script>")
+    List<SysParameter> selectMultipleCondition(@Param("pramDM") List pramDM,@Param("hiId") Integer hiId);
+    @Select("SELECT  SP_ID spId,\n" +
+            "    SP_Classify spClassify,\n" +
+            "    SP_ParmDm spParmdm,\n" +
+            "    SP_Des spDes,\n" +
+            "    SP_Type spType,\n" +
+            "    SP_Value spValue,\n" +
+            "    UI_ID uiId,\n" +
+            "    SP_Date spDate,\n" +
+            "    SP_IsDel spIsdel,\n" +
+            "    SP_PinyinCode spPincode,\n" +
+            "    SP_WubiCode spWubicode,\n" +
+            "    SP_OtherCode spOthercode FROM sys_parameter WHERE SP_IsDel = 0 and (HI_ID = 0 OR HI_ID = #{hiId}) ")
+    List<SysParameter> selectAllByHiId(@Param("hiId")Integer hiId);
+}

+ 35 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysRoleMapper.java

@@ -0,0 +1,35 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysRole;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Options;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface SysRoleMapper {
+    int deleteByPrimaryKey(Integer srId);
+
+    @Update("update sys_role set SR_IsDel = -1 where SR_ID = #{id}")
+    int updateStatus(Integer id);
+
+    @Insert("insert into sys_role (SR_Name, SR_Describe, \n" +
+            "      UI_ID_Add, SR_AddDate, \n" +
+            "      UI_ID_Update, SR_UpdateDate, SR_IsDel)" +
+            " values (#{SR_Name}, #{SR_Describe}, \n" +
+            "       #{UI_ID_Add}, #{SR_AddDate}, \n" +
+            "      #{UI_ID_Update}, #{SR_UpdateDate}, #{SR_IsDel})" )
+    @Options(useGeneratedKeys = true, keyProperty = "SR_ID")
+    int insertSelective(SysRole record);
+
+    SysRole selectByPrimaryKey(Integer srId);
+
+    @Select("select * from sys_role where SR_IsDel = 0 order by SR_Sort asc")
+    List<SysRole> selectAll();
+
+    @Select("select * from sys_role where SR_IsDel = 0 and SR_Name like concat('%',#{name},'%') order by SR_Sort asc")
+    List<SysRole> selectAllName(String name);
+
+    int updateByPrimaryKeySelective(SysRole record);
+}

+ 41 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysRoleMenuMapper.java

@@ -0,0 +1,41 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysRoleMenu;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface SysRoleMenuMapper {
+    int deleteByPrimaryKey(Integer rmId);
+
+    @Insert("insert into sys_role_menu (SM_ID, SR_ID) values ( #{SM_ID}, #{SR_ID})")
+    int insertSelective(SysRoleMenu record);
+
+    SysRoleMenu selectByPrimaryKey(Integer rmId);
+
+    @Select("select * from sys_role_menu where RM_IsDel = 0 and SR_ID = #{SR_ID}")
+    List<SysRoleMenu> selectSRID(Integer SR_ID);
+
+    @Select("select * from sys_role_menu where RM_IsDel = 0 and SR_ID = #{SR_ID} and SM_ID = #{SM_ID}")
+    SysRoleMenu selectRoleMenu(@Param("SR_ID") Integer SR_ID, @Param("SM_ID") Integer SM_ID);
+
+    int updateByPrimaryKeySelective(SysRoleMenu record);
+
+    @Update("update sys_role_menu set RM_IsDel = -1 where SR_ID = #{SR_ID}")
+    int updateStatus(Integer SR_ID);
+
+    @Update("update sys_role_menu set RM_IsDel = -1 where SM_ID = #{SM_ID}")
+    int updateStatusMenu(Integer SM_ID);
+
+    @Update("update sys_role_menu set RM_IsDel = -1 where SR_ID = #{SR_ID} and SM_ID = #{SM_ID}")
+    int modifty(@Param("SR_ID") Integer SR_ID, @Param("SM_ID") Integer SM_ID);
+
+    @Update("<script> " +
+            "update sys_role_menu set RM_IsDel = -1 where SR_ID = #{SR_ID} " +
+            "and SM_ID in <foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach> " +
+            "</script>")
+    int modiftyList(@Param("SR_ID") Integer SR_ID, @Param("list") List<Integer> list);
+}

+ 50 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysRoleOperationMapper.java

@@ -0,0 +1,50 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysOperation;
+import com.xinxin.topro.base.mysqlmodel.SysRoleOperation;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface SysRoleOperationMapper {
+    int deleteByPrimaryKey(Integer roId);
+
+    @Insert("insert into sys_role_operation (SO_ID, SR_ID) values (#{SO_ID}, #{SR_ID})")
+    int insertSelective(SysRoleOperation record);
+
+    SysRoleOperation selectByPrimaryKey(Integer roId);
+
+    @Select("select * from sys_role_operation where RO_IsDel = 0 and SR_ID = #{SR_ID}")
+    List<SysRoleOperation> selectSRId(Integer SR_ID);
+
+    @Select("SELECT\n" +
+            "\tso.SO_ID,\n" +
+            "\tso.SF_ID,\n" +
+            "\tso.SO_Name,\n" +
+            "\tso.SO_Code,\n" +
+            "\tso.SO_Intro\n" +
+            "FROM\n" +
+            "\tsys_operation so\n" +
+            "LEFT JOIN sys_role_operation sro ON so.SO_ID = sro.SO_ID\n" +
+            "LEFT JOIN sys_role_user sru ON sro.SR_ID = sru.SR_ID\n" +
+            "WHERE\n" +
+            "\tso.SO_IsDel = 0\n" +
+            "AND sro.RO_IsDel = 0\n" +
+            "AND sru.RU_IsDel = 0\n" +
+            "AND sru.UI_ID = #{uid}")
+    List<SysOperation> selectOperationByUid(Integer uid);
+
+    @Select("select * from sys_role_operation where RO_IsDel = 0 and SR_ID = #{SR_ID} and SO_ID = #{SO_ID}")
+    SysRoleOperation selectRoleOperationID(@Param("SR_ID") Integer SR_ID, @Param("SO_ID") Integer SO_ID);
+
+    int updateByPrimaryKeySelective(SysRoleOperation record);
+
+    @Update("update sys_role_operation set RO_IsDel = -1 where SR_ID = #{sr_id}")
+    int updateStatus(Integer sr_id);
+
+    @Update("update sys_role_operation set RO_IsDel = -1 where SR_ID = #{SR_ID} and SO_ID = #{SO_ID}")
+    int update(@Param("SR_ID") Integer SR_ID, @Param("SO_ID") Integer SO_ID);
+}

+ 48 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SysRoleUserMapper.java

@@ -0,0 +1,48 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysRole;
+import com.xinxin.topro.base.mysqlmodel.SysRoleUser;
+import com.xinxin.topro.base.response.SysRoleUserInfoResponse;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface SysRoleUserMapper {
+    int deleteByPrimaryKey(Integer ruId);
+
+    @Insert("INSERT INTO sys_role_user (UI_ID, SR_ID) VALUES (#{UI_ID},#{SR_ID})")
+    int insertSelective(SysRoleUser record);
+
+    SysRoleUser selectByPrimaryKey(Integer ruId);
+
+    @Select("SELECT su.*,sd.DD_DepName FROM `sys_userinfo` su\n" +
+            "LEFT JOIN sys_role_user sr\n" +
+            "on sr.UI_ID = su.UI_ID\n" +
+            "LEFT JOIN dic_department sd\n" +
+            "on su.SS_DepartmentID = sd.DD_ID\n" +
+            "where sr.RU_IsDel = 0 and su.SS_ISDel = 0 \n" +
+            "and sr.SR_ID = #{SrId} and su.HI_ID = #{HIId}")
+    List<SysRoleUserInfoResponse> selectRoleUser(@Param("SrId") Integer SrId, @Param("HIId") Integer HIId);
+
+    @Select("SELECT su.*,sd.DD_DepName from sys_userinfo su \n" +
+            "LEFT JOIN dic_department sd \n" +
+            "on su.SS_DepartmentID = sd.DD_ID \n" +
+            "where su.SS_ISDel = 0 and su.HI_ID = #{HIId} and su.UI_ID not in (SELECT sru.UI_ID FROM `sys_role_user` sru where sru.RU_IsDel = 0 and sru.SR_ID = #{SrId})")
+    List<SysRoleUserInfoResponse> selectRoleNotUser(@Param("SrId") Integer SrId, @Param("HIId") Integer HIId);
+
+    @Select("SELECT sr.* from sys_role sr \n" +
+            "LEFT JOIN sys_role_user sru\n" +
+            "on sr.SR_ID = sru.SR_ID\n" +
+            "where sru.RU_IsDel = 0 and sr.SR_IsDel = 0 and sru.UI_ID = #{uu_id}")
+    List<SysRole> selectUserRole(Integer uu_id);
+
+
+    @Update("update sys_role_user set RU_IsDel = -1  where UI_ID = #{UI_ID,jdbcType=INTEGER} and SR_ID = #{SR_ID,jdbcType=INTEGER}")
+    int updateByPrimaryKeySelective(SysRoleUser record);
+
+    @Update("update sys_role_user set RU_IsDel = -1  where SR_ID = #{SR_ID,jdbcType=INTEGER}")
+    int updateStatus(Integer SR_ID);
+}

+ 43 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/SystemMapper.java

@@ -0,0 +1,43 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.base.mysqlmodel.SysSystem;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.Date;
+import java.util.List;
+
+public interface SystemMapper {
+    int deleteByPrimaryKey(Integer ssId);
+
+    @Insert("insert into sys_system(SS_Name,SS_Parameter,SS_Sort," +
+            "UI_ID_Add,SS_AddDate,UI_ID_Update," +
+            "SS_UpdateDate,SS_IsDel,SF_ID)" +
+            "values(#{SS_Name},#{SS_Parameter},#{SS_Sort}," +
+            "#{UI_Id_Add},#{SS_Adddate},#{UI_Id_Update}," +
+            "#{SS_Updatedate},#{SS_Isdel},#{SF_ID})")
+    int insertSelective(SysSystem record);
+
+    @Select("select * from sys_system where SS_IsDel = 0 and SS_ID = #{SS_Id}")
+    SysSystem selectByPrimaryKey(Integer ssId);
+
+    @Select("select * from sys_system where SS_IsDel = 0")
+    List<SysSystem> selectAll();
+
+    @Select("select * from sys_system where SS_IsDel = 0 and SF_ID = #{SF_ID}")
+    List<SysSystem> selectSFID(Integer SF_ID);
+
+    @Update("update sys_system set SS_Name= #{SS_Name},SS_Parameter = #{SS_Parameter},SS_Sort = #{SS_Sort}," +
+            "UI_ID_Update = #{UI_Id_Update},SS_UpdateDate = #{SS_Updatedate},SF_ID = #{SF_ID} " +
+            "where SS_ID = #{SS_Id} ")
+    int updateByPrimaryKeySelective(SysSystem record);
+
+    @Update("Update sys_system set SS_IsDel=-1 where SS_ID = #{SS_Id}")
+    int updateByPrimaryKey(Integer ssID);
+
+
+    @Select("select now()")
+    Date selectDateFromDB();
+
+}

+ 58 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmapper/UserInfoMapper.java

@@ -0,0 +1,58 @@
+package com.xinxin.topro.base.mysqlmapper;
+
+import com.xinxin.topro.common.Context.UserInfo;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.List;
+
+public interface UserInfoMapper {
+    int deleteByPrimaryKey(Integer uiId);
+
+    int insertSelective(UserInfo record);
+
+    @Select("select * from sys_userinfo where SS_IsDel = 0")
+    List<UserInfo> selectAll();
+
+    @Select("select * from sys_userinfo where SS_IsDel = 0 and SS_Type = #{type}")
+    List<UserInfo> selectTypeAll(@Param("type") Integer type);
+
+    @Select("select * from sys_userinfo where SS_IsDel = 0 and SS_Type = #{type} and UI_Code like concat('%',#{name},'%') or UI_Name like concat('%',#{name},'%')")
+    List<UserInfo> selectNameTypeAll(@Param("name") String name, @Param("type") Integer type);
+
+    @Select("select * from sys_userinfo where SS_IsDel = 0 and HI_ID = #{hiId} ")
+    List<UserInfo> selectUserByKeyWord(@Param("hiId") Integer hiId);
+
+    @Select("select * from sys_userinfo where SS_ISDel = 0 and UI_ID = #{uiId}")
+    UserInfo selectByPrimaryKey(Integer uiId);
+
+    @Select("select * from sys_userinfo where SS_ISDel = 0 and UI_Code = #{UI_Code} limit 1")
+    UserInfo selectByUICode(String UI_Code);
+
+    @Select("SELECT * from sys_ward_permission a INNER JOIN sys_userinfo b on a.UI_Code = b.UI_Code and a.HI_ID = b.HI_ID where a.DW_WardDm = #{wardId} and b.SS_Type = #{type} and b.SS_ISDel = 0 and a.SWP_IsDel = 0")
+    List<UserInfo> selectByWardID(@Param("wardId")  String wardId,@Param("type") int type);
+
+
+    @Select("SELECT a.DW_WardDm AS dwWardDm, b.UI_Code AS UI_Code, b.UI_Name AS UI_Name  from sys_ward_permission a INNER JOIN sys_userinfo b on a.UI_Code = b.UI_Code where b.SS_Type = #{type} and b.SS_ISDel = 0 and a.SWP_IsDel = 0")
+    List<UserInfo> selectByType(@Param("type") int type);
+
+    @Select("select * from sys_userinfo where SS_DepartmentID =#{deptId} and SS_Type = #{type} and SS_IsDel = 0")
+    List<UserInfo> selectByDeptID(@Param("deptId")  String wardId,@Param("type") int type);
+
+    int updateByPrimaryKeySelective(UserInfo record);
+
+    @Select("<script>select * from sys_userinfo where SS_ISDel = 0 and UI_Code = #{uiCode}"
+            +"<if test=\"hiId != null\">"
+            +"and HI_ID = #{hiId,jdbcType=INTEGER}"
+            +"</if>"
+            +"limit 1</script>" )
+    UserInfo selectByCodeHiId(@Param("uiCode")String uiCode, @Param("hiId")Integer hiId);
+
+    @Update("<script> update sys_userinfo\n" +
+            "      set SU_Sign_Img = #{signImg,jdbcType=VARCHAR}\n" +
+            "    where UI_Code = #{uiCode,jdbcType=VARCHAR}\n" +
+            "    and   HI_ID = #{hiId,jdbcType=INTEGER}</script>")
+    int updateSignImg(@Param("signImg")String signImg,@Param("uiCode")String uiCode,@Param("hiId")Integer hiId);
+
+}

+ 43 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/DicDepartment.java

@@ -0,0 +1,43 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+@Data
+public class DicDepartment implements Serializable {
+    private static final long serialVersionUID = -7312011869318729494L;
+    private Integer ddId;
+
+    private String ddDepdm;
+
+    private Integer hiId;
+
+    private String ddDepname;
+
+    private String ddAliasname;
+
+    private String ddEngname;
+
+    private String ddAccountdep;
+
+    private String ddCostdep;
+
+    private String ddAddress;
+
+    private String ddPinyincode;
+
+    private String ddWubicode;
+
+    private String ddOthercode;
+
+    private Integer ddOpdflag;
+
+    private Integer ddInpflag;
+
+    private Integer ddDepnature;
+
+    private Integer ddSupdepdm;
+
+    private Integer ddIsdel;
+}

+ 70 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/ExecRecord.java

@@ -0,0 +1,70 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class ExecRecord {
+    private Integer PO_ID;
+
+    private String PO_PatientNo;
+
+    private Integer HI_ID;
+
+    private String DD_DepDm;
+
+    private String DW_WardDm;
+
+    private String DB_BedNo;
+
+    private String PO_AdviceGroupCode;
+
+    private String PO_AdviceType;
+
+    private String PO_Operator;
+
+    private Date PO_OperatTime;
+
+    private Date PO_CheckTime;
+
+    private String PO_CheckMan;
+
+    private String PO_OperatType;
+
+    private Integer PO_OperatMode;
+
+    private Integer PO_IsDel;
+
+    private String PO_AdviceCode;
+
+    private String PO_BarCode;
+
+    private Date PO_PreExecTime;
+
+    private  Integer PO_FormerID;
+
+    private Integer PO_Version;
+
+    private Integer PO_IsBatch;
+//
+//    // 是否已执行
+//    private  Integer execState;
+
+    // 操作人姓名
+    private String operatorName;
+
+    private String PO_Exception;
+
+    private String PO_Exception_Code;
+
+    private String PO_AdviceNo;
+
+    private String POD_Value;
+
+    private String pst_result;
+
+    private String pst_option;
+
+    private String PO_Remark;
+}

+ 16 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/ExecRecordDetail.java

@@ -0,0 +1,16 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+@Data
+public class ExecRecordDetail {
+    private Integer POD_ID;
+
+    private Integer PO_ID;
+
+    private String POD_Code;
+
+    private String POD_Value;
+
+
+}

+ 30 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/HospitalInfo.java

@@ -0,0 +1,30 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+@Data
+public class HospitalInfo {
+    private Integer HI_Id;
+
+    private String HI_Name;
+
+    private String HI_Shortname;
+
+    private String HI_Fullname;
+
+    private String HI_Address;
+
+    private String HI_Tel;
+
+    private String HI_Intro;
+
+    private String HI_Pinyincode;
+
+    private String HI_Wubicode;
+
+    private String HI_Othercode;
+
+    private Integer HI_Isdel;
+
+    private Integer HI_Supid;
+}

+ 59 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/PdaBreastMilk.java

@@ -0,0 +1,59 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import java.util.Date;
+
+import lombok.Data;
+
+@Data
+public class PdaBreastMilk {
+
+    private Integer PBM_ID;
+
+    private String PatientNo;
+
+    private Integer HI_ID;
+
+    private String DD_DepDm;
+
+    private String DW_WardDm;
+
+    private String DB_BedNo;
+
+    private String PBM_Car_BarCode;
+
+    private String PBM_Lable_BarCode;
+
+    private Date PBM_Acquisition_Time;
+
+    private String PBM_Acquisitor;
+
+    private Date PBM_Valid_Time;
+
+    private Date PBM_Receipt_Time;
+
+    private double PBM_Amount;
+
+    private Date PBM_Operation_Time;
+
+    private String PBM_Operator;
+
+    private Integer PBM_IsDel;
+
+    private Date PBM_Entry_Time;
+
+    private String PBM_Entry;
+
+    private Date PBM_Disinfection_Time;
+
+    private String PBM_Disinfector;
+
+    private Integer PBM_Status;
+
+    private Integer PBM_IsPrint;
+
+    private Integer PBM_Print_Count;
+
+    private Date PBM_LastPrint_Time;
+
+    private String PBM_Printer;
+}

+ 44 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/PdaInspection.java

@@ -0,0 +1,44 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+@Data
+public class PdaInspection {
+    private Integer PI_ID;
+
+    private String PI_PatientNo;
+
+    private Integer HI_ID;
+
+    private String DD_DepDm;
+
+    private String DW_WardDm;
+
+    private String DB_BedNo;
+
+    private String PI_AdviceGroupCode;
+
+    private String PI_AdviceType;
+
+    private String PI_Inspector;
+
+    private Date PI_InspectTime;
+
+    private String PI_AdviceCode;
+
+    private String PI_BarCode;
+
+    private Integer PI_Type;
+
+    private Integer PI_ExceptionFlag;
+
+    private String PI_Exception_Cause;
+
+    private String PI_Measure;
+
+    private Integer PI_IsDel;
+
+    private String UI_Name;
+
+}

+ 37 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/PdaSpecimen.java

@@ -0,0 +1,37 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class PdaSpecimen {
+    private Integer PSM_ID;
+    private String PatientNo;
+    private Integer HI_ID;
+    private String DD_DepDm;
+    private String DW_WardDm;
+    private String DB_BedNo;
+    private String PSM_AdviceGroupCode;
+    private String PSM_Advice_Type;
+    private Integer PSM_Operat_Type;
+    private Integer PSM_IsDel;
+    private String PSM_AdviceCode;
+    private String PSM_BarCode;
+    private Integer PSM_IsBatch;
+    private Date PSM_Collect_Time;
+    private String PSM_Collector;
+    private Date PSM_Receive_Time;
+    private String PSM_Receiver;
+    private Date PSM_Inspect_Time;
+    private String PSM_Inspector;
+    private String PSM_Specimen;
+    private String PSM_Remark;
+    private String PatientName;
+    private String gender;
+    private String age;
+
+    private String collector;
+    private String receiver;
+    private String inspector;
+}

+ 51 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SkinPop.java

@@ -0,0 +1,51 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+@Data
+public class SkinPop {
+    private Integer PS_ID;
+
+    private Integer PSS_ID;
+
+    private Integer PO_ID;
+
+    private String PatientNo;
+
+    private Integer HI_ID;
+
+    private String DD_DepDm;
+
+    private String DW_WardDm;
+
+    private String DB_BedNo;
+
+    private String PS_AdviceCode;
+
+    private String PS_BarCode;
+
+    private String PS_Recorder;
+
+    private Date PS_Record_Time;
+
+    private Integer PS_IsDel;
+
+    private String PS_Operator;
+
+    private Date PS_OperatTime;
+
+    private Date PS_Inject_Time;
+
+    private String PS_Inject_Part;
+
+    private Double PS_Amount;
+
+    private String PS_Unit;
+
+    private String PS_DrugCode;
+
+    private Integer PS_IsInsulin;
+
+
+}

+ 35 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SkinPopPart.java

@@ -0,0 +1,35 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+@Data
+public class SkinPopPart {
+    private Integer PSP_ID; //皮下注射部位设置ID
+
+    private String PatientNo;
+
+    private Integer HI_ID;
+
+    private String DD_DepDm;
+
+    private String DW_WardDm;
+
+    private String DB_BedNo;
+
+    private Integer PSP_Inject_Part;
+
+    private Integer PSP_Model;
+
+    private String PSP_Recorder;
+
+    private Date PSP_Record_Time;
+
+    private Integer PSP_IsDel;
+
+    private String PSP_Operator;
+
+    private Date PSP_OperatTime;
+
+
+}

+ 47 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SkinPopSet.java

@@ -0,0 +1,47 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+@Data
+public class SkinPopSet {
+    private Integer PSS_ID;
+
+    private String PatientNo;
+
+    private Integer HI_ID;
+
+    private String DD_DepDm;
+
+    private String DW_WardDm;
+
+    private String DB_BedNo;
+
+    private String PSS_AdviceCode;
+
+    private String PSS_BarCode;
+
+    private String PSS_DrugCode;
+
+    private String PSS_DrugName;
+
+    private Date PSS_StartTime;
+
+    private Date PSS_EndTime;
+
+    private Double PSS_Amount;
+
+    private String PSS_Unit;
+
+    private String PSS_Recorder;
+
+    private Date PSS_Record_Time;
+
+    private Integer PSS_IsDel;
+
+    private String PSS_Operator;
+
+    private Date PSS_OperatTime;
+
+
+}

+ 11 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SpecimentCondition.java

@@ -0,0 +1,11 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class SpecimentCondition {
+    private List<String> patientNoList;
+    private Integer psmOperatType;
+}

+ 34 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysDictionary.java

@@ -0,0 +1,34 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+@Data
+public class SysDictionary {
+
+    private Integer SD_Id;//字典代码
+
+    private Integer HI_Id;//医院代码
+
+    private String SD_Dicdm;//类别代码
+
+    private String  SD_Dicname;//类别名称
+
+    private Integer  SD_Supid;//父类代码id
+
+    private Integer  SD_Isdel;//作废标志
+
+    private String SD_Pinyincode;//拼音输入码
+
+    private String SD_Wubicode;//五笔输入码
+
+    private String SD_Othercode;//其他输入码
+
+    private Integer SD_Sort;//排序
+
+    private String UI_Id;//更新人
+
+    private Date SD_UpdateTime;//更新时间
+
+
+}

+ 33 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysDictionaryDetail.java

@@ -0,0 +1,33 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import com.xinxin.topro.common.responsevo.BaseVO;
+import lombok.Data;
+
+import java.util.Date;
+@Data
+public class SysDictionaryDetail extends BaseVO {
+
+    private Integer SDD_ID;//代码类别明细ID
+
+    private Integer SD_ID;//字典代码ID
+
+    private String SDD_Detail_Code;//明细代码
+
+    private String SDD_Detail_Name;//明细类别名称
+
+    private String SDD_PinyinCode;//拼音输入码
+
+    private String SDD_WubiCode;//五笔输入码
+
+    private String SDD_OtherCode;//其他输入码
+
+    private Integer SDD_Sort;//排序
+
+    private String UI_ID;//更新人
+
+    private Date SDD_Update_Time;//更新时间
+
+    private Integer SDD_IsDel;//作废标志
+
+    private String sdd_remark;
+}

+ 42 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysFunction.java

@@ -0,0 +1,42 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SysFunction {
+    private Integer SF_ID;
+
+    private String SF_Name;
+
+    private String SF_Intro;
+
+    private String SF_Icon;
+
+    private Integer SF_Sort;
+
+    private String UI_ID_Add;
+
+    private Date SF_AddDate;
+
+    private String UI_ID_Update;
+
+    private Date SF_UpdateDate;
+
+    private Integer SF_IsDel;
+
+    private String SF_URL;
+
+    private Integer SF_MenuType;
+
+    private Integer SF_ShowType;
+
+    private Integer SF_ISFixed;
+
+    private Integer SF_IsExternal_Link;
+
+    private String SF_Component;
+
+    private String SF_Link;
+}

+ 14 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysFunctionFunction.java

@@ -0,0 +1,14 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+@Data
+public class SysFunctionFunction {
+    private Integer SFF_ID;
+
+    private Integer SF_PriID;
+
+    private Integer SF_ConID;
+
+    private Integer SFF_IsDel;
+}

+ 40 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysMenu.java

@@ -0,0 +1,40 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SysMenu {
+    private Integer SM_ID;
+
+    private Integer SS_ID;
+
+    private Integer SM_SupID;
+
+    private String SM_MenuCode;
+
+    private String SM_Parameter;
+
+    private String SM_Icon;
+
+    private Integer SM_Sort;
+
+    private String SM_Name;
+
+    private String SM_Short_Name;
+
+    private String UI_ID_Add;
+
+    private Date SM_AddDate;
+
+    private String UI_ID_Update;
+
+    private Date SM_UpdateDate;
+
+    private Integer SM_IsDel;
+
+    private Integer SF_ID;
+
+
+}

+ 34 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysOperation.java

@@ -0,0 +1,34 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SysOperation {
+    private Integer SO_ID;
+
+    private String SO_Name;
+
+    private String SO_Intro;
+
+    private String SO_Code;
+
+    private String SO_Icon;
+
+    private Integer SO_Type;
+
+    private Integer SO_Sort;
+
+    private String UI_ID_Add;
+
+    private Date SO_AddDate;
+
+    private String UI_ID_Update;
+
+    private Date SO_UpdateDate;
+
+    private Integer SO_IsDel;
+
+    private Integer SF_ID;
+}

+ 36 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysParameter.java

@@ -0,0 +1,36 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+
+import lombok.Data;
+
+import java.util.Date;
+@Data
+public class SysParameter {
+    private Integer spId;//参数值id
+
+    private Integer hiId;//医院代码
+
+    private Integer spClassify;//参数分类
+
+    private String spParmdm;//参数代码
+
+    private String spDes;//参数描述
+
+    private String spType;//参数值类型
+
+    private String spValue;//参数值
+
+    private String uiId;//更新人
+
+    private Date spDate;//更新时间
+
+    private Integer spIsdel;//作废标志
+
+    private String spPincode;//拼音码
+
+    private String spOthercode;//其他输入码
+
+    private String spWubicode;//五笔码
+
+
+}

+ 28 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysRole.java

@@ -0,0 +1,28 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SysRole {
+    private Integer SR_ID;
+
+    private String SR_Name;
+
+    private String SR_Describe;
+
+    private Integer SR_Sort;
+
+    private String UI_ID_Add;
+
+    private Date SR_AddDate;
+
+    private String UI_ID_Update;
+
+    private Date SR_UpdateDate;
+
+    private Integer SR_IsDel;
+
+    private Integer HI_ID;
+}

+ 14 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysRoleMenu.java

@@ -0,0 +1,14 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+@Data
+public class SysRoleMenu {
+    private Integer RM_ID;
+
+    private Integer SM_ID;
+
+    private Integer RM_IsDel;
+
+    private Integer SR_ID;
+}

+ 14 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysRoleOperation.java

@@ -0,0 +1,14 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+@Data
+public class SysRoleOperation {
+    private Integer RO_ID;
+
+    private Integer RO_IsDel;
+
+    private Integer SO_ID;
+
+    private Integer SR_ID;
+}

+ 14 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysRoleUser.java

@@ -0,0 +1,14 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+@Data
+public class SysRoleUser {
+    private Integer SR_ID;
+
+    private Integer RU_ID;
+
+    private Integer UI_ID;
+
+    private Integer RU_IsDel;
+}

+ 38 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/mysqlmodel/SysSystem.java

@@ -0,0 +1,38 @@
+package com.xinxin.topro.base.mysqlmodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SysSystem {
+    private Integer SS_Id;//系统ID
+
+    private String SS_Name;//系统名称
+
+    private String SS_Url;//系统路径
+
+    private Integer SS_Type;//系统类型
+
+    private String SS_Parameter;//自定义参数
+
+    private Integer SS_Sort;//排序
+
+    private String UI_Id_Add;//新增人
+
+    private Date SS_Adddate;//新增时间
+
+    private String UI_Id_Update;//更新人
+
+    private Date SS_Updatedate;//更新时间
+
+    private Integer SS_Isdel;//作废标志 0正常 -1作废
+
+    private Date SS_Effectivetime;//系统生效时间
+
+    private Date SS_Failuretime;//系统失效时间
+
+    private Integer HI_Id;//医院代码
+
+    private Integer SF_ID;//默认功能id
+}

+ 59 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/AppParamRespose.java

@@ -0,0 +1,59 @@
+package com.xinxin.topro.base.response;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class AppParamRespose {
+
+    @ApiModelProperty("条码")
+    private String barCode;
+
+    @ApiModelProperty("操作类型(1:接收;2:执行; 其他待补充)")
+    private String operateType;
+
+    @ApiModelProperty("预执行时间(主要针对不同天条码相同的)")
+    private String preExecTime;
+
+    @ApiModelProperty("总量<胰岛素类用>")
+    private Double amount;
+
+    @ApiModelProperty("余量<胰岛素类用>")
+    private Double surplus;
+
+    @ApiModelProperty("剩余有效天数<胰岛素类用>")
+    private int days;
+
+    @ApiModelProperty("体重<推注泵类用>")
+    private String weight;
+
+    @ApiModelProperty("推注泵速度<推注泵类用>")
+    private String speed;
+
+    @ApiModelProperty("推注泵单位<推注泵类用>")
+    private String unit;
+
+    @ApiModelProperty("皮下注射部位方式<1禁打 2拒打>(设置注射部位不填)")
+    private Integer model;
+
+    @ApiModelProperty("注射部位")
+    private Integer part;
+
+    @ApiModelProperty("是否胰岛素<1是  0否>")
+    private int isInsulin;
+
+    @ApiModelProperty("母乳单次喂养量")
+    private Double milkDose;
+
+    // 医嘱唯一主键
+    private List<String> recordIds;
+
+    // 核对人
+    private String checkMan;
+
+    // 标签码
+    private String labelBarCode;
+}

+ 16 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/HospitaOtherInfoResponse.java

@@ -0,0 +1,16 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.common.responsevo.BaseVO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+@ApiModel("分院信息返回的参数")
+public class HospitaOtherInfoResponse extends BaseVO {
+    @ApiModelProperty("分院id")
+    private Integer HI_Id;
+
+    @ApiModelProperty("分院名称")
+    private String HI_Name;
+}

+ 22 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/HospitalInfoResponse.java

@@ -0,0 +1,22 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.common.responsevo.BaseVO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+@ApiModel("总医院返回信息")
+public class HospitalInfoResponse extends BaseVO {
+
+    @ApiModelProperty("总医院id")
+    private Integer HI_Id;
+
+    @ApiModelProperty("总医院名称")
+    private String HI_Name;
+
+    @ApiModelProperty("分院信息列表")
+    private List<HospitaOtherInfoResponse> otherLists;
+}

+ 213 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/InpPatientAuthorizeListResponse.java

@@ -0,0 +1,213 @@
+package com.xinxin.topro.base.response;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class InpPatientAuthorizeListResponse implements Serializable {
+
+    private static final long serialVersionUID = 3140867045561259427L;
+
+    @ApiModelProperty("院区代码")
+    private String visitzone;
+
+    @ApiModelProperty("病区代码")
+    private String departno;
+
+    @ApiModelProperty("病人ID")
+    private String visitno;
+
+    @ApiModelProperty("病历号")
+    private String chartno;
+
+    @ApiModelProperty("病人姓名")
+    private String ptname;
+
+    @ApiModelProperty("性别")
+    private String gender;
+
+    @ApiModelProperty("护理级别")
+    private String nursinglevel;
+
+    @ApiModelProperty("危重病人")
+    private String criticalpatient;
+
+    @ApiModelProperty("饮食类别")
+    private String foodcategory;
+
+    @ApiModelProperty("年龄")
+    private String age;
+
+    @ApiModelProperty("出生日期")
+    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date birthday;
+
+    @ApiModelProperty("科室代码")
+    private String divno;
+
+    @ApiModelProperty("床位")
+    private String bedno;
+
+    @ApiModelProperty("入院日期")
+    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date admittime;
+
+    @ApiModelProperty("预出院日期")
+    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date predischargetime;
+
+    @ApiModelProperty("出院日期")
+    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date dischargetime;
+
+    @ApiModelProperty("主治医师")
+    private String phydoctor;
+
+    @ApiModelProperty("身份证号")
+    private String idno;
+
+    @ApiModelProperty("联系方式<电话>")
+    private String tel;
+
+    @ApiModelProperty("入院诊断")
+    private String diagname;
+
+    @ApiModelProperty("家庭地址<现住址>")
+    private String homeaddress;
+
+    @ApiModelProperty("在院状态")
+    private String inhospitalstatus;
+
+    @ApiModelProperty("住院医师")
+    private String residentdoctor;
+
+    @ApiModelProperty("主任医师")
+    private String chiefdoctor;
+
+    @ApiModelProperty("责任护士")
+    private String responsiblenurse;
+
+    @ApiModelProperty("归档标志")
+    private Integer fileflag;
+
+    @ApiModelProperty("婴儿标志")
+    private Integer infantflag;
+
+    @ApiModelProperty("母亲就诊ID")
+    private String mothervisitno;
+
+    @ApiModelProperty("职业")
+    private String jobtype;
+
+    @ApiModelProperty("婚姻")
+    private String marriage;
+
+    @ApiModelProperty("籍贯")
+    private String nativename;
+
+    @ApiModelProperty("科室名称")
+    private String divname;
+
+    @ApiModelProperty("病区名称")
+    private String departname;
+
+    @ApiModelProperty("入院科室名称")
+    private String admissdivname;
+
+    @ApiModelProperty("过敏史")
+    private String medallergy;
+
+    @ApiModelProperty("入院天数")
+    private Integer admissdays;
+
+    @ApiModelProperty("余额")
+    private String balance;
+
+    @ApiModelProperty("患者状态信息")
+    private PatientCondition conditions;
+
+    @ApiModelProperty("健康卡号")
+    private String cardNo;
+
+    @ApiModelProperty("单位地址")
+    private String unitAdrDesc;
+
+    @ApiModelProperty("工作单位电话")
+    private String workplaceTel;
+
+    @ApiModelProperty("工作单位邮编")
+    private String workplaceZipCode;
+
+    @ApiModelProperty("民族")
+    private String nationName;
+
+    @ApiModelProperty("联系人地址")
+    private String conArea;
+
+    @ApiModelProperty("联系人姓名")
+    private String conName;
+
+    @ApiModelProperty("联系人电话")
+    private String conTel;
+
+    @ApiModelProperty("Email")
+    private String email;
+
+    @ApiModelProperty("邮编")
+    private String homeZipCode;
+
+    @ApiModelProperty("联系人关系")
+    private String conRelationshipName;
+
+    @ApiModelProperty("付费方式")
+    private String payMode;
+
+    @ApiModelProperty("出生地")
+    private String birthAreaName;
+
+    @ApiModelProperty("QQ")
+    private String QQ;
+
+    @ApiModelProperty("户口地址")
+    private String householdRegister;
+
+    @ApiModelProperty("是否空床")
+    private Boolean isNull;
+
+    private Integer sort;
+
+    private  Integer myPatient; // 我的病人
+
+    //防外逃标志
+    @ApiModelProperty("防外逃标志")
+    private Integer preventEscape;
+
+    //防冲动标志
+    @ApiModelProperty("防冲动标志")
+    private Integer antiImpulse;
+
+    //防消极标志
+    @ApiModelProperty("防消极标志")
+    private Integer antiNegative;
+
+    private Integer ipaId;
+
+    private Integer ipaType;
+
+    private Integer ipaStatus;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
+    private Date ipaEndtime;
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
+    private Date ipaStartime;
+
+    private String ipaWarddm;
+
+    private List<String> patientFunctionList;
+}

+ 77 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/LoginResponse.java

@@ -0,0 +1,77 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.base.sqlservermodel.Ward;
+import com.xinxin.topro.common.responsevo.BaseVO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.List;
+import java.util.Set;
+
+@Data
+@ApiModel("登陆信息返回数据")
+public class LoginResponse extends BaseVO {
+    @ApiModelProperty("用户id")
+    private Integer UI_Id;
+
+    @ApiModelProperty("员工工号")
+    private String UI_Code;
+
+    @ApiModelProperty("员工姓名")
+    private String UI_Name;
+
+    @ApiModelProperty("联系电话")
+    private String UI_Phone;
+
+    @ApiModelProperty("身份证号")
+    private String UI_Idnumber;
+
+    @ApiModelProperty("性别 1男 2女")
+    private Integer UI_Sex;
+
+    @ApiModelProperty("所属科室ID")
+    private Integer SS_Departmentid;
+
+    @ApiModelProperty("病区ID")
+    private Integer SS_Wardid;
+
+    @ApiModelProperty("用户类型 1 医生 2护士 3 财务人员 4 药剂人员 5技师(检验) 6技师(影像) 7管理人员 8其他技术人员 9其他人员")
+    private Integer SS_Type;
+
+    @ApiModelProperty("职工性质 1合同工 2劳务工 3其他")
+    private Integer SS_Nature;
+
+    @ApiModelProperty("医院代码")
+    private Integer HI_Id;
+
+    @ApiModelProperty("医院名称")
+    private String hi_Name;
+
+    @ApiModelProperty("等级")
+    private String SS_Level;
+
+    @ApiModelProperty("用户标识")
+    private String token;
+
+    @ApiModelProperty("token保存时间")
+    private Integer time;
+
+    @ApiModelProperty("是否开始是否签名")
+    private String isCA;
+
+    @ApiModelProperty("病区")
+    private List<Ward> wards;
+
+    @ApiModelProperty("用户的系统列表")
+    private List<SysSystemListResponse> sysLists;
+
+    private Integer roleStatus;//0 = 普通职工 1 = 护士长 2 = 伤口小组组员 3=护士长并且为伤口小组组员
+
+    // PDA是否开启血糖护理措施
+    private Integer gluPara;
+
+    private Set<String> dwWardDmList;
+
+    private String caId;
+}

+ 123 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/OrderInfoResponse.java

@@ -0,0 +1,123 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.base.mysqlmodel.ExecRecord;
+import com.xinxin.topro.base.mysqlmodel.PdaInspection;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import java.util.List;
+
+@Data
+@ApiModel("医嘱信息")
+public class OrderInfoResponse {
+
+    @ApiModelProperty("记录ID")
+    private Integer recordid;
+
+    @ApiModelProperty("医嘱类型<给前端用>")
+    private Integer type;
+
+    @ApiModelProperty("医嘱ID")
+    private String orderno;
+
+    @ApiModelProperty("开立医生")
+    private String orderuser;
+
+    @ApiModelProperty("开立时间")
+    private Date ordertime;
+
+    @ApiModelProperty("预执行时间")
+    private Date preexectime;
+
+    @ApiModelProperty("预执行地点")
+    private String preexeclocname;
+
+    @ApiModelProperty("预执行床位")
+    private String preexecbed;
+
+    @ApiModelProperty("执行时间")
+    private Date exectime;
+
+    @ApiModelProperty("执行地点")
+    private String execlocname;
+
+    @ApiModelProperty("医嘱CODE")
+    private String itemno;
+
+    @ApiModelProperty("每次剂量")
+    private BigDecimal dose;
+
+    @ApiModelProperty("剂量单位")
+    private String doseunit;
+
+    @ApiModelProperty("给药方式编码<用于判断皮下注射等细项>")
+    private String wayno;
+
+    @ApiModelProperty("给药方式类型")
+    private String waytype;
+
+    @ApiModelProperty("给药方式名称")
+    private String wayname;
+
+    @ApiModelProperty("医嘱项目代码")
+    private String itemcode;
+
+    @ApiModelProperty("医嘱名称")
+    private String itemname;
+
+    @ApiModelProperty("医嘱类型 (1诊疗 2 药品   3检验 4检查 5 输血 6会诊 7文本 8手术)")
+    private Integer ordertype;
+
+    @ApiModelProperty("医嘱分类")
+    private String bigtype;
+
+    @ApiModelProperty("成组医嘱")
+    private String pairitemno;
+
+    @ApiModelProperty("滴速")
+    private String rate;
+
+    @ApiModelProperty("滴速单位")
+    private String rateunit;
+
+    @ApiModelProperty("领药方式")
+    private String takemedway;
+
+    @ApiModelProperty("频率")
+    private String usage;
+
+    @ApiModelProperty("长期临时 (1:长期;2:临时)")
+    private Integer longortempflag;
+
+    @ApiModelProperty("医嘱状态 ")
+    private Integer execstatus;
+
+    @ApiModelProperty("血液状态 2申请中 3 带取消 4血庫合血中 5 已出库 6 已输血")
+    private Integer bloodstatus;
+
+    @ApiModelProperty("条码号")
+    private String drugbarcode;
+
+    @ApiModelProperty("医嘱说明")
+    private String advise;
+
+    // 展开ID
+    private String expandid;
+
+    // 是否双签名
+    private Integer isDoubleCheck;
+
+    @ApiModelProperty("执行记录")
+    private List<ExecRecord> execRecord;
+
+    @ApiModelProperty("配药记录")
+    private List<ExecRecord> dosageRecord;
+
+    // 特殊处理类型(后端转换不同给药方式类型用)
+    private String dealType;
+
+    private List<PdaInspection> pdaInspections;
+}

+ 11 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PairOrderInfo.java

@@ -0,0 +1,11 @@
+package com.xinxin.topro.base.response;
+
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class PairOrderInfo {
+
+    private List<OrderInfoResponse> pairOrder;
+}

+ 79 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientCondition.java

@@ -0,0 +1,79 @@
+package com.xinxin.topro.base.response;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class PatientCondition {
+
+    // 是否新入院
+    @ApiModelProperty("是否新入院")
+    private  boolean isNew;
+
+    // 是否今日出院
+    @ApiModelProperty("是否今日出院")
+    private  boolean isDischarge;
+
+    // 是否压疮
+    @ApiModelProperty("是否压疮")
+    private  boolean isPressure;
+
+    //是否欠费
+    @ApiModelProperty("是否欠费")
+    private boolean isArrears;
+
+    // 是否约束
+    @ApiModelProperty("是否约束")
+    private  boolean isConstraint;
+
+    // 是否抑郁
+    @ApiModelProperty("是否抑郁")
+    private  boolean isDepressed;
+
+    // 是否弱
+    @ApiModelProperty("是否弱")
+    private  boolean isWeek;
+
+    // 是否跌倒
+    @ApiModelProperty("是否跌倒")
+    private  boolean isFall;
+
+    // 是否过敏
+    @ApiModelProperty("是否过敏")
+    private boolean isAllergy;
+
+    // 是否手术
+    @ApiModelProperty("是否手术")
+    private boolean isOperation;
+
+    // 是否隔离
+    @ApiModelProperty("是否隔离")
+    private boolean isIsolate;
+
+    // 是否老龄
+    private boolean isOld;
+
+    // 是否危重
+    private boolean isCritical;
+
+    //防外逃标志
+    private boolean isPreventEscape;
+
+    //防冲动标志
+    private boolean isAntiImpulse;
+
+    //防消极标志
+    private boolean isAntiNegative;
+
+    //血源性传播
+    private  boolean bloodInfection;
+
+    //呼吸道传播
+    private boolean respiratoryInfection;
+
+    //多重耐药菌
+    private boolean drugResistantBacteria;
+
+    //其他传播
+    private boolean otherWayInfection;
+}

+ 195 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientInfoResponse.java

@@ -0,0 +1,195 @@
+package com.xinxin.topro.base.response;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+@ApiModel("病人信息返回数据")
+public class PatientInfoResponse {
+
+    @ApiModelProperty("院区代码")
+    private String visitzone;
+
+    @ApiModelProperty("病区代码")
+    private String departno;
+
+    @ApiModelProperty("病人ID")
+    private String visitno;
+
+    @ApiModelProperty("病历号")
+    private String chartno;
+
+    private String visitid;
+
+    @ApiModelProperty("病人姓名")
+    private String ptname;
+
+    @ApiModelProperty("性别")
+    private String gender;
+
+    @ApiModelProperty("护理级别")
+    private String nursinglevel;
+
+    @ApiModelProperty("危重病人")
+    private String criticalpatient;
+
+    @ApiModelProperty("饮食类别")
+    private String foodcategory;
+
+    @ApiModelProperty("年龄")
+    private String age;
+
+    @ApiModelProperty("出生日期")
+//    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    @JsonFormat(timezone = "Asia/Shanghai", pattern="yyyy-MM-dd HH:mm:ss")
+    private Date birthday;
+
+    @ApiModelProperty("科室代码")
+    private String divno;
+
+    @ApiModelProperty("床位")
+    private String bedno;
+
+    @ApiModelProperty("入院日期")
+    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date admittime;
+
+    @ApiModelProperty("预出院日期")
+    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date predischargetime;
+
+    @ApiModelProperty("出院日期")
+    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date dischargetime;
+
+    @ApiModelProperty("主治医师")
+    private String phydoctor;
+
+    @ApiModelProperty("身份证号")
+    private String idno;
+
+    @ApiModelProperty("联系方式<电话>")
+    private String tel;
+
+    @ApiModelProperty("入院诊断")
+    private String diagname;
+
+    @ApiModelProperty("家庭地址<现住址>")
+    private String homeaddress;
+
+    @ApiModelProperty("在院状态")
+    private String inhospitalstatus;
+
+    @ApiModelProperty("住院医师")
+    private String residentdoctor;
+
+    @ApiModelProperty("主任医师")
+    private String chiefdoctor;
+
+    @ApiModelProperty("责任护士")
+    private String responsiblenurse;
+
+    @ApiModelProperty("归档标志")
+    private Integer fileflag;
+
+    @ApiModelProperty("婴儿标志")
+    private Integer infantflag;
+
+    @ApiModelProperty("母亲就诊ID")
+    private String mothervisitno;
+
+    @ApiModelProperty("职业")
+    private String jobtype;
+
+    @ApiModelProperty("婚姻")
+    private String marriage;
+
+    @ApiModelProperty("籍贯")
+    private String nativename;
+
+    @ApiModelProperty("科室名称")
+    private String divname;
+
+    @ApiModelProperty("病区名称")
+    private String departname;
+
+    @ApiModelProperty("入院科室名称")
+    private String admissdivname;
+
+    @ApiModelProperty("过敏史")
+    private String medallergy;
+
+    @ApiModelProperty("入院天数")
+    private Integer admissdays;
+
+    @ApiModelProperty("余额")
+    private String balance;
+
+    @ApiModelProperty("患者状态信息")
+    private PatientCondition conditions;
+
+    @ApiModelProperty("健康卡号")
+    private String cardNo;
+
+    @ApiModelProperty("单位地址")
+    private String unitAdrDesc;
+
+    @ApiModelProperty("工作单位电话")
+    private String workplaceTel;
+
+    @ApiModelProperty("工作单位邮编")
+    private String workplaceZipCode;
+
+    @ApiModelProperty("民族")
+    private String nationName;
+
+    @ApiModelProperty("联系人地址")
+    private String conArea;
+
+    @ApiModelProperty("联系人姓名")
+    private String conName;
+
+    @ApiModelProperty("联系人电话")
+    private String conTel;
+
+    @ApiModelProperty("Email")
+    private String email;
+
+    @ApiModelProperty("邮编")
+    private String homeZipCode;
+
+    @ApiModelProperty("联系人关系")
+    private String conRelationshipName;
+
+    @ApiModelProperty("付费方式")
+    private String payMode;
+
+    @ApiModelProperty("出生地")
+    private String birthAreaName;
+
+    @ApiModelProperty("QQ")
+    private String QQ;
+
+    @ApiModelProperty("户口地址")
+    private String householdRegister;
+
+    @ApiModelProperty("是否空床")
+    private Boolean isNull;
+
+    private Integer sort;
+
+    private  Integer myPatient; // 我的病人
+
+    private Integer isDiabetes; // 是否糖尿病
+
+    @JsonFormat (pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date departTime;
+
+    private List<String> patientFunctionList;
+
+}

+ 17 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientInfosResponse.java

@@ -0,0 +1,17 @@
+package com.xinxin.topro.base.response;
+
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+@ApiModel("病人信息返回数据")
+public class PatientInfosResponse {
+
+    List<PatientInfoResponse> patients;
+
+    private PatientStatistics patientStatistics;
+
+    private List<InpPatientAuthorizeListResponse> authorizeList;
+}

+ 81 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientOrderInfoResponse.java

@@ -0,0 +1,81 @@
+package com.xinxin.topro.base.response;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+@ApiModel("病人医嘱信息")
+public class PatientOrderInfoResponse {
+
+    @ApiModelProperty("病人姓名")
+    private String ptName;
+
+    @ApiModelProperty("病人ID")
+    private String visitno;
+
+    @ApiModelProperty("婴儿ID")
+    private String infantid;
+
+    @ApiModelProperty("病历号")
+    private String chartno;
+
+    @ApiModelProperty("病区代码")
+    private String departno;
+
+    @ApiModelProperty("病区名称")
+    private String departname;
+
+    @ApiModelProperty("性别")
+    private String gender;
+
+    @ApiModelProperty("年龄")
+    private String age;
+
+    @ApiModelProperty("体重")
+    private String ptweight;
+
+    @ApiModelProperty("出生日期")
+    private Date birthday;
+
+    @ApiModelProperty("科室代码")
+    private String divno;
+
+    @ApiModelProperty("科室名称")
+    private String divname;
+
+    @ApiModelProperty("床位")
+    private String bedno;
+
+    @ApiModelProperty("入院日期")
+    private Date admittime;
+
+    @ApiModelProperty("记录ID")
+    private String idno;
+
+    @ApiModelProperty("主治医生")
+    private String phydoctor;
+
+    @ApiModelProperty("检验项目")
+    private String ItemName;
+
+    @ApiModelProperty("医嘱信息")
+    private List<OrderInfoResponse> orderInfo;
+
+    @ApiModelProperty("成组医嘱信息")
+    private List<List<OrderInfoResponse>> pairOrderInfos;
+
+    @ApiModelProperty("接瓶医嘱信息")
+    private List<List<OrderInfoResponse>> mulBottlesOrderInfos;
+
+    // 1: 新建通路<多路>; 2: 接瓶
+    private Integer bottleType;
+
+    @ApiModelProperty("返回参数设置共用对象")
+    private AppParamRespose appParamRespose;
+
+
+}

+ 116 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/PatientStatistics.java

@@ -0,0 +1,116 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.base.vo.StatisticsVO;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+public class PatientStatistics {
+
+
+    // 总计
+    private StatisticsVO total;
+    // 一级护理
+    private StatisticsVO Ilevel;
+    // 二级护理
+    private StatisticsVO IIlevel;
+    // 三级护理
+    private StatisticsVO IIIlevel;
+    // 特级护理
+    private StatisticsVO superlevel;
+    // 新入院
+    private StatisticsVO adimit;
+    // 今日出院
+    private StatisticsVO discharge;
+    // 压疮
+    private StatisticsVO pressure;
+    // 欠费
+    private StatisticsVO arrears;
+    // 约束
+    private StatisticsVO constraint;
+    // 抑郁
+    private StatisticsVO depressed;
+    // 弱
+    private StatisticsVO week;
+    // 跌倒
+    private StatisticsVO fall;
+    // 过敏
+    private StatisticsVO allergy;
+    // 手术
+    private StatisticsVO operation;
+    // 隔离
+    private StatisticsVO isolate;
+    // 危重
+    private StatisticsVO critical;
+    // 老
+    private StatisticsVO old;
+
+    //防外逃标志
+    @ApiModelProperty("防外逃标志")
+    private StatisticsVO preventEscape;
+
+    //防冲动标志
+    @ApiModelProperty("防冲动标志")
+    private StatisticsVO antiImpulse;
+
+    //防消极标志
+    @ApiModelProperty("防消极标志")
+    private StatisticsVO antiNegative;
+
+    @ApiModelProperty("血源性传播")//血源性传播
+    private  StatisticsVO bloodInfection;
+
+    @ApiModelProperty("呼吸道传播")
+    private StatisticsVO respiratoryInfection;
+
+    @ApiModelProperty("多重耐药菌")
+    private StatisticsVO drugResistantBacteria;
+
+    //防消极标志
+    @ApiModelProperty("其他")
+    private StatisticsVO otherWayInfection;
+
+
+//
+//    @ApiModelProperty("新入院")
+//    private  int newCount;
+//
+//    @ApiModelProperty("今日出院")
+//    private  int dischargeCount;
+//
+//    @ApiModelProperty("压疮")
+//    private  int pressureCount;
+//
+//    @ApiModelProperty("欠费")
+//    private int arrearsCount;
+//
+//    @ApiModelProperty("约束")
+//    private  int constraintCount;
+//
+//    @ApiModelProperty("抑郁")
+//    private  int depressedCount;
+//
+//    @ApiModelProperty("弱")
+//    private  int weekCount;
+//
+//    @ApiModelProperty("跌倒")
+//    private  int fallCount;
+//
+//    @ApiModelProperty("过敏")
+//    private int allergyCount;
+//
+//    @ApiModelProperty("手术")
+//    private int operationCount;
+//
+//    @ApiModelProperty("是否隔离")
+//    private int isolateCount;
+//
+//    @ApiModelProperty("危重数")
+//    private int criticalCount;
+//
+//    private  int totalCount;
+//    private int ICount;
+//    private int IICount;
+//    private int IIICount;
+//    private int superCount;
+}

+ 24 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysDictionaryDetailResponse.java

@@ -0,0 +1,24 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.common.responsevo.BaseVO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+//@instruction
+//@author wangyongsheng
+//@create 2019/5/23
+@Data
+@ApiModel("公用代码明细返回列表")
+public class SysDictionaryDetailResponse {
+
+    @ApiModelProperty("明细ID")
+    private Integer SDD_ID;
+
+    @ApiModelProperty("明细代码")
+    private String SDD_Detail_Code;
+
+    @ApiModelProperty("明细名称")
+    private String SDD_Detail_Name;
+
+}

+ 13 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysDictionaryResponse.java

@@ -0,0 +1,13 @@
+package com.xinxin.topro.base.response;
+//@instruction
+//@author wangyongsheng
+//@create 2019/5/23
+
+import io.swagger.annotations.ApiModel;
+import lombok.Data;
+
+@Data
+@ApiModel("公用代码返回列表")
+public class SysDictionaryResponse {
+
+}

+ 15 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysFrameworkOperationResponse.java

@@ -0,0 +1,15 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.common.responsevo.BaseVO;
+import lombok.Data;
+
+@Data
+public class SysFrameworkOperationResponse extends BaseVO {
+
+    private String SO_Name;
+
+    private String SO_Intro;
+
+    private String SO_Code;
+
+}

+ 72 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysFunctionResponse.java

@@ -0,0 +1,72 @@
+package com.xinxin.topro.base.response;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.xinxin.topro.common.responsevo.BaseVO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+
+//@instruction
+//@author wangyongsheng
+//@create 2019/5/23
+@Data
+@ApiModel("功能返回参数")
+public class SysFunctionResponse extends BaseVO {
+    @ApiModelProperty("功能ID")
+    private Integer SF_Id;
+
+    @ApiModelProperty("功能名称")
+    private String SF_Name;
+
+    @ApiModelProperty("功能说明")
+    private String SF_Intro;
+
+    @ApiModelProperty("功能图标")
+    private String SF_Icon;
+
+    @ApiModelProperty("排序")
+    private Integer SF_Sort;
+
+    @ApiModelProperty("新增人")
+    private String UI_Id_Add;
+
+    @ApiModelProperty("新增时间")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date SF_Adddate;
+
+    @ApiModelProperty("更新人")
+    private String UI_IdUpdate;
+
+    @ApiModelProperty("更新时间")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date SF_Updatedate;
+
+    @ApiModelProperty("作废标志")
+    private Integer SF_Isdel;
+
+    @ApiModelProperty("功能请求地址")
+    private String SF_Url;
+
+    @ApiModelProperty("菜单类型")
+    private Integer SF_Menutype;
+
+    @ApiModelProperty("显示类型")
+    private Integer SF_Showtype;
+
+    @ApiModelProperty("是否固定到导航栏")
+    private Integer SF_ISF_ixed;
+
+    @ApiModelProperty("拼音码")
+    private String SF_PinyinCode;
+
+    @ApiModelProperty("五笔码")
+    private String SF_WubiCode;
+
+    @ApiModelProperty("其他输入码")
+    private String SF_OtherCode;
+
+
+}
+

+ 22 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysRoleUserInfoResponse.java

@@ -0,0 +1,22 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.common.responsevo.BaseVO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+@ApiModel("系统权限与用户返回值")
+public class SysRoleUserInfoResponse extends BaseVO {
+    @ApiModelProperty("用户id")
+    private Integer UI_Id;
+
+    @ApiModelProperty("员工工号")
+    private String UI_Code;
+
+    @ApiModelProperty("用户名称")
+    private String UI_Name;
+
+    @ApiModelProperty("部门名称")
+    private String DD_DepName;
+}

+ 16 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/response/SysSystemListResponse.java

@@ -0,0 +1,16 @@
+package com.xinxin.topro.base.response;
+
+import com.xinxin.topro.common.responsevo.BaseVO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+@Data
+@ApiModel("登陆后返回的用户系统list列表")
+public class SysSystemListResponse extends BaseVO {
+    @ApiModelProperty("系统id")
+    private Integer ssId;
+
+    @ApiModelProperty("系统名称")
+    private String sysName;
+}

+ 35 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/EmployeeMapper.java

@@ -0,0 +1,35 @@
+package com.xinxin.topro.base.sqlservermapper;
+
+import com.xinxin.topro.base.mysqlmodel.ExecRecord;
+import com.xinxin.topro.base.sqlservermodel.Employee;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface EmployeeMapper {
+    int deleteByPrimaryKey(String empno);
+
+    int updateByPrimaryKey(Employee record);
+
+    @Select("select *,case ZONE when 'A' THEN 1 ELSE 0 END hiId from Employee where EmpCode = #{EmpCode}")
+    Employee selectByCode(@Param("EmpCode") String EmpCode);
+
+    @Select("<script> " +
+            "select * from Employee where EmpCode " +
+            "in <foreach item='item' index='index' collection='records' open='(' separator=',' close=')'> #{item.PO_Operator} </foreach> " +
+            "</script>")
+    List<Employee> selectByEmpCodes(@Param("records") List<ExecRecord> records);
+
+    @Select("select * from EmpDivision ed, Employee e where ed.EmpNo = e.EmpNo and DivNo = #{DwWardDm} and EndDate > getdate() and e.EmpType = 2 and ed.DivDepartFlag = '病区'")
+    List<Employee> selectByEmpDwWardDm(@Param("DwWardDm") String DwWardDm);
+
+    @Select("select * from EmpDivision ed, Employee e where ed.EmpNo = e.EmpNo and DivNo = #{divNo} and EndDate > getdate() and e.EmpType = 2 ")
+    List<Employee> selectByEmpAll(@Param("divNo") String divNo);
+
+    @Select("<script> " +
+            "select * from Employee where EmpCode " +
+            " in <foreach item='item' index='index' collection='records' open='(' separator=',' close=')'> #{item} </foreach> " +
+            "</script>")
+    List<Employee> selectByCode1(@Param("records") List<String> records);
+}

+ 28 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/OperDivMapper.java

@@ -0,0 +1,28 @@
+package com.xinxin.topro.base.sqlservermapper;
+
+import com.xinxin.topro.base.sqlservermodel.OperDiv;
+import com.xinxin.topro.base.sqlservermodel.OperDivKey;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+import java.util.Map;
+
+public interface OperDivMapper {
+    int deleteByPrimaryKey(OperDivKey key);
+
+    int insert(OperDiv record);
+
+    int insertSelective(OperDiv record);
+
+    OperDiv selectByPrimaryKey(OperDivKey key);
+
+ /*   @Select("select * from OperDiv")
+    Map<String,Object> selectAll();*/
+
+    @Select("select * from OperDiv")
+    List<OperDiv> selectAll();
+
+    int updateByPrimaryKeySelective(OperDiv record);
+
+    int updateByPrimaryKey(OperDiv record);
+}

+ 126 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/OrderInfoMapper.java

@@ -0,0 +1,126 @@
+package com.xinxin.topro.base.sqlservermapper;
+
+import com.xinxin.topro.base.mysqlmodel.ExecRecord;
+import com.xinxin.topro.base.sqlservermodel.*;
+import org.apache.ibatis.annotations.Insert;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
+
+import java.util.Date;
+import java.util.List;
+
+public interface OrderInfoMapper {
+    int insert(OrderInfo record);
+
+    int insertSelective(OrderInfo record);
+
+    @Select("SELECT  * from V_OrderInfo where CONVERT(varchar(100), PreExecTime, 23) = #{PreExecTime} and  DepartNo = #{DepartNo} and InHospitalStatus = 0" +
+            " and (execStatus = 0 OR execStatus = 1) and VisitZone = #{visitZone} and orderType = 2")
+    List<OrderInfo> getOrderInfoList(@Param("DepartNo") String DepartNo, @Param("PreExecTime") String PreExecTime,@Param("visitZone") Integer visitZone);
+
+    @Select("SELECT  * from V_OrderInfo where CONVERT(varchar(100), PreExecTime, 23) = #{PreExecTime} and VisitNo = #{VisitNo} and  DepartNo = #{DepartNo} " +
+            " and InHospitalStatus = 0 and (execStatus = 0 OR execStatus = 1) and VisitZone = #{visitZone} and orderType = 2")
+    List<OrderInfo> getVisitNoOrderInfoList(@Param("DepartNo") String DepartNo,@Param("VisitNo") String VisitNo, @Param("PreExecTime") String PreExecTime,@Param("visitZone") Integer visitZone);
+
+    @Select("SELECT  * from V_OrderInfo where DrugBarCode = #{barCode} and InHospitalStatus = 0 and VisitZone = #{visitZone} ")
+    List<OrderInfo> getOrderInfo(@Param("barCode") String barCode,@Param("visitZone") Integer visitZone);
+
+    // 获取医嘱签名数据
+    @Select("<script> " +
+            "select * from V_OrderInfo where orderType = 2 and VisitZone = #{visitZone} " +
+            "AND DepartNo = #{departNo} and PreExecTime &gt;= #{execSTime} and PreExecTime &lt;= #{execETime} <when test='inHospitalStatus!=null'>and inHospitalStatus = #{inHospitalStatus} </when> <when test='longOrTemp!=null'>and LongOrTempFlag = #{longOrTemp} </when><when test='beds!=null'>  and BedNo in <foreach item='item' index='index' collection='beds' open='(' separator=',' close=')'> #{item} </foreach></when> " +
+            "</script>")
+    List<OrderInfo> getOrderSign(@Param("departNo")String departNo,@Param("inHospitalStatus")String inHospitalStatus, @Param("longOrTemp")String longOrTemp, @Param("execSTime")Date execSTime,
+                                 @Param("execETime") Date execETime,
+                                 @Param("beds")List<String> beds,@Param("visitZone") Integer visitZone);
+
+    // 获取满足条件的医嘱
+    @Select("<script> " +
+            "SELECT * from inp_expand_order where " +
+            "IEO_Pre_ExecTime &gt;= #{execSTime} and IEO_Pre_ExecTime &lt;= #{execETime} " +
+            "and IEO_IsLong  = #{longOrTemp}<when test='beds!=null'>  and DB_BedNo in <foreach item='item' index='index' collection='beds' open='(' separator=',' close=')'> #{item} </foreach></when> " +
+            "</script>")
+    List<OrderInfo> getOrderInfo2(@Param("departNo")String departNo,@Param("inHospitalStatus")String inHospitalStatus, @Param("longOrTemp")String longOrTemp, @Param("execSTime")Date execSTime,
+                                 @Param("execETime") Date execETime,
+                                 @Param("beds")List<String> beds,@Param("visitZone") Integer visitZone);
+
+    @Select("<script> " +
+            "select * from V_OrderInfo where VisitZone = #{visitZone} AND DrugBarCode " +
+            "in <foreach item='item' index='index' collection='records' open='(' separator=',' close=')'> #{item.PO_BarCode} </foreach> " +
+            "</script>")
+    List<OrderInfo> getOrderInfoWithBarCodes(@Param("records") List<ExecRecord> records,@Param("visitZone") Integer visitZone);
+
+//    @Select("SELECT  * from V_OrderInfo where RecordId in (#{recordId})")
+
+    @Select("<script> " +
+            "select * from V_OrderInfo where VisitZone = #{visitZone} AND RecordId " +
+            "in <foreach item='item' index='index' collection='records' open='(' separator=',' close=')'> #{item.PO_AdviceCode} </foreach> " +
+            "</script>")
+    List<OrderInfo> getOrderInfoByIds(@Param("records") List<ExecRecord> records,@Param("visitZone") Integer visitZone);
+
+    @Select("<script> " +
+            "select * from V_OrderInfo where VisitZone = #{visitZone} AND RecordId " +
+            "in <foreach item='item' index='index' collection='ids' open='(' separator=',' close=')'> #{item} </foreach> " +
+            "</script>")
+    List<OrderInfo> getOrderInfoByIds2(@Param("ids") List<String> ids,@Param("visitZone") Integer visitZone);
+
+    @Update("<script> <foreach item='item' index='index' collection='list' open='' separator=';' close=''>" +
+            "Update MedExpanItem SET StatusChangeUser = #{item.uiCode} , StatusChangeTime = GETDATE() , " +
+            "ExecStatus = 1,UpdateUser = #{item.uiCode} ,UpdateTime = GETDATE() ,ExecuteUserId1 = #{item.uiCode} ," +
+            " ExecuteUserName1 = #{item.uiName} , ExecuteTime = GETDATE() " +
+            "where RecordId  =  #{item.recordId} " +
+            "</foreach> </script>")
+    int updateMedExpanItem(@Param("list") List<OrderUpdate> list);
+
+    @Update("<script> <foreach item='item' index='index' collection='records' open='' separator=';' close=''>" +
+            " Update MedExpanOrder SET   UpdateUser = #{item.uiCode},UpdateTime = GETDATE()," +
+            " ExecLoc = #{item.execLoc} , ExecLocName= #{item.execLocName} , " +
+            "ExecTime = GETDATE() where RecordId  =  #{item.recordId} </foreach> </script>")
+    int updateMedExpanOrder(@Param("records") List<OrderUpdate> records);
+
+    @Update("<script> <foreach item='item' index='index' collection='records' open='' separator=';' close=''>" +
+            "Update MedOrder SET   UpdateUser = #{item.uiCode},UpdateTime = GETDATE()," +
+            " ExecLoc = #{item.execLoc} , ExecUser= #{item.uiCode} , ExecTime = GETDATE()  " +
+            "where (ExecUser IS NULL OR ExecTime = '2999-12-31')  " +
+            "and OrderNo =  #{item.orderNo} </foreach> </script>")
+    int updateMedOrder(@Param("records") List<OrderUpdate> records);
+
+    @Update("<script> <foreach item='item' index='index' collection='records' open='' separator=';' close=''> " +
+            "Update MedItem SET UpdateUser = #{item.uiCode},UpdateTime = GETDATE()," +
+            " OrderStatus = '13', TreatStatus='Y', StatusChangeUser= #{item.uiCode}, StatusChangeTime = GETDATE()  " +
+            "where  TreatStatus &lt;&gt; 'C' and ItemNo = #{item.itemNo} </foreach> </script>")
+    int updateMedItemLong(@Param("records") List<OrderUpdate> records);
+
+    @Update("<script> <foreach item='item' index='index' collection='records' open='' separator=';' close=''>" +
+            "Update MedItem SET UpdateUser = #{item.uiCode},UpdateTime = GETDATE(), " +
+            "OrderStatus = '15',TreatStatus='D', TreatUser=#{item.uiCode},TreatTime = GETDATE(), " +
+            "StopCheckUser=#{item.uiCode},StopCheckTime = GETDATE(),StatusChangeUser= #{item.uiCode} , StatusChangeTime = GETDATE()  " +
+            "where TreatStatus &lt;&gt; 'C' and OrderStatus &lt;&gt; '14' and TreatStatus &lt;&gt; 'D' " +
+            "and ItemNo = #{item.itemNo} </foreach> </script>")
+    int updateMedItemTemp(@Param("records") List<OrderUpdate> records);
+
+    @Insert("<script> INSERT INTO HL7_Platform.dbo.HL7_Scan( ID ,ChartNo ,VisitNo ,OtherNo1 ,OtherNo2 ,OtherNo3 ,OtherName ," +
+            "TaskType ,TaskStatus ,UpdateUser ,UpdateTime ,Reserve1) " +
+            "VALUES <foreach collection='list' item='item' index='index' separator=','> " +
+            "( NEWID() ,#{item.chartNo} ,#{item.visitNo} ,#{item.recordId} ,'' ,'' ,'医嘱实际执行' ,'RAS^O17' ,1 ,'PDA' ,GETDATE() ,'' )</foreach></script>")
+    int insertScan(@Param("list") List<OrderUpdate> list);
+
+    @Update("<script> <foreach item='item' index='index' collection='records' open='' separator=';' close=''>" +
+            "Update LabApply SET CollectionUserId  = #{item.CollectionUserId},CollectionTime  =  #{item.CollectionTime} ," +
+            "CollectionDivName = #{item.CollectionDivName},CollectionDivNo =#{item.DivNo}, CollectionFlag =1 " +
+            "where BarCode  = #{item.BarCode} </foreach> </script>")
+    int updateLabApplyForCollection(@Param("records") List<SpecimenCollection> records);
+
+    @Update("<script> <foreach item='item' index='index' collection='records' open='' separator=';' close=''>" +
+            "Update LabApply SET SendUserId = #{item.sendUserId},SendTime = #{item.sendTime}," +
+            "SendUserName = #{item.sendUserName}, SendFlag = 1 " +
+            "where BarCode = #{item.barCode} </foreach> </script>")
+    int updateLabApplyForSend(@Param("records") List<SpecimenSend> records);
+
+    @Update("<script> <foreach item='item' index='index' collection='records' open='' separator=';' close=''>" +
+            "Update LabApply SET ReceiveUserId  = #{item.ReceiveUserId},ReceiveTime  =  #{item.ReceiveTime} ," +
+            "ReceiveUserName  = #{item.ReceiveUserName},ReceiveDepartName =#{item.DivNo}, ReceiveFlag =1 ,ReceiveDepartNo =#{item.ReceiveDepartNo} " +
+            "where BarCode  = #{item.barCode} </foreach> </script>")
+    int updateLabApplyForReceive(@Param("records") List<SpecimenReceive> records);
+}

+ 35 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/OriginalOrderInfoMapper.java

@@ -0,0 +1,35 @@
+package com.xinxin.topro.base.sqlservermapper;
+
+import com.xinxin.topro.base.sqlservermodel.OriginalOrderInfo;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.Date;
+import java.util.List;
+
+public interface OriginalOrderInfoMapper {
+    @Select("SELECT  * from V_OriginalOrderInfo where  VisitZone = #{visitZone} AND DepartNo = #{DepartNo} and OrderType=#{OrderType} and ExamStatus= 53 " +
+            "AND CollectionFlag is null and InHospitalStatus = 0 and BarCode is not null")//and (ExecStatus is null or ExecStatus=0)
+    List<OriginalOrderInfo> getOrderInfoList(@Param("DepartNo") String DepartNo,@Param("OrderType")Integer OrderType,@Param("visitZone") Integer visitZone);
+
+    @Select("SELECT  * from V_OriginalOrderInfo where  VisitZone = #{visitZone} AND BarCode = #{BarCode}")
+    List<OriginalOrderInfo> getOrderInfoByBarCode(@Param("BarCode") String BarCode,@Param("visitZone") Integer visitZone);
+
+    @Select("<script> SELECT  * from V_OriginalOrderInfo where  VisitZone = #{visitZone} AND BarCode in <foreach item='item' index='index' collection='BarCodes' open='(' separator=',' close=')'> #{item} </foreach></script>")
+    List<OriginalOrderInfo> getOrderInfoByBarCodes(@Param("BarCodes") List<String> BarCodes,@Param("visitZone") Integer visitZone);
+
+    //获取该病人在时间范围内的医嘱信息
+    @Select("SELECT  * from V_OriginalOrderInfo where  VisitZone = #{visitZone} AND VisitNo = #{patientNo} and ExecTime >= #{beginTime} and ExecTime <= #{endTime}")
+    List<OriginalOrderInfo> getOrderDrugs(@Param("patientNo") String patientNo, @Param("beginTime") Date beginTime,
+                                          @Param("endTime") Date endTime,@Param("visitZone") Integer visitZone);
+
+    @Select("SELECT  * from V_OriginalOrderInfo where VisitZone = #{visitZone} AND OrderType = #{OrderType}")
+    OriginalOrderInfo getOrderInfoByOrderType(@Param("OrderType") String OrderType,@Param("visitZone") Integer visitZone);
+
+    @Select("SELECT  * from V_OriginalOrderInfo where VisitZone = #{visitZone} AND OrderTime < #{OrderTime}")
+    OriginalOrderInfo getOrderInfoByOrderTime(@Param("OrderTime") String OrderTime,@Param("visitZone") Integer visitZone);
+
+    @Select("SELECT  * from V_OriginalOrderInfo where VisitZone = #{visitZone} AND OrderTime < #{orderTime} and TreatTime>#{orderTime} and VisitNo=#{patientNo} and OrderType=#{orderType} ")
+    List<OriginalOrderInfo> getOrderInfoForAccess(@Param("orderTime") String orderTime,
+                                                  @Param("patientNo") String patientNo,@Param("orderType") String orderType,@Param("visitZone") Integer visitZone);
+}

+ 45 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/PatientInfoMapper.java

@@ -0,0 +1,45 @@
+package com.xinxin.topro.base.sqlservermapper;
+
+import com.xinxin.topro.base.sqlservermodel.PatientInfo;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+import org.springframework.stereotype.Repository;
+
+import java.util.Date;
+import java.util.List;
+@Repository
+public interface PatientInfoMapper {
+
+    @Select(" <script> SELECT  * from V_PatientInfo where DepartNo = #{DepartNo} and InHospitalStatus = #{InHospitalStatus}" +
+            "<when test='keyWord!=null'> and (bedno LIKE #{keyWord} or chartNo like #{keyWord} or ptName like #{keyWord}) </when>" +
+            "<when test='sTime!=null'> and  DischargeTime &gt;= #{sTime} and DischargeTime &lt; #{eTime} </when></script>")
+    List<PatientInfo> getPatientInfoList(@Param("DepartNo") String DepartNo, @Param("InHospitalStatus") String InHospitalStatus,
+                                         @Param("keyWord") String keyWord,@Param("sTime") Date sTime,@Param("eTime") Date eTime);
+
+    @Select("SELECT  * from V_PatientInfo where DepartNo = #{DepartNo} and InHospitalStatus <> 2")
+    List<PatientInfo> getPatientInfoListInHospital(@Param("DepartNo") String DepartNo);
+
+    @Select(" <script> SELECT  * from V_PatientInfo where DepartNo = #{DepartNo} and InHospitalStatus = #{InHospitalStatus} and DivNo=#{DivNo}" +
+            "<when test='keyWord!=null'> and (bedno LIKE #{keyWord} or chartNo like #{keyWord} or ptName like #{keyWord}) </when>" +
+            "<when test='sTime!=null'> and  DischargeTime &gt;= #{sTime} and DischargeTime &lt; #{eTime} </when></script> ")
+    List<PatientInfo> getPatientInfoList2(@Param("DepartNo") String DepartNo, @Param("InHospitalStatus") String InHospitalStatus,@Param("DivNo") String DivNo,
+                                          @Param("keyWord") String keyWord,@Param("sTime") Date sTime,@Param("eTime") Date eTime);
+
+    // 交班当天住院患者信息
+    @Select("SELECT  * from V_PatientInfo where  AdmitTime <= #{etime} and DischargeTime > #{stime} and DepartNo = #{DepartNo}")
+    List<PatientInfo> getPatientInfoList3(@Param("DepartNo") String DepartNo, @Param("stime") Date stime, @Param("etime") Date etime);
+
+    @Select("SELECT top 1 * from V_PatientInfo where chartNo = #{chartNo} and InHospitalStatus = #{InHospitalStatus}")
+    PatientInfo getPatientInfoByChartNo(@Param("chartNo") String chartNo, @Param("InHospitalStatus") String InHospitalStatus);
+
+    @Select("SELECT top 1 * from V_PatientInfo where VisitNo = #{visitno} ")
+    PatientInfo getPatientInfoByVisitNo(@Param("visitno") String visitno);
+
+    @Select(" <script> SELECT * from V_PatientInfo where VisitNo in " +
+            "<foreach item='item' index='index' collection='list' open='(' separator=',' close=')'> #{item} </foreach></script> ")
+    List<PatientInfo> getPatientInfoByVisitNos(@Param("list") List<String> list);
+
+    // 选择日期内床位占用情况
+    @Select("SELECT DISTINCT bedNo from V_PatientInfo where  AdmitTime <= #{etime,jdbcType=TIMESTAMP} and DischargeTime >= #{stime,jdbcType=TIMESTAMP} and DepartNo = #{DepartNo}")
+    List<PatientInfo> getBedRatio(@Param("DepartNo") String DepartNo, @Param("stime") Date stime, @Param("etime") Date etime);
+}

+ 21 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermapper/WardMapper.java

@@ -0,0 +1,21 @@
+package com.xinxin.topro.base.sqlservermapper;
+
+import com.xinxin.topro.base.sqlservermodel.Ward;
+import org.apache.ibatis.annotations.Param;
+import org.apache.ibatis.annotations.Select;
+
+import java.util.List;
+
+public interface WardMapper {
+    int insert(Ward record);
+
+    int insertSelective(Ward record);
+
+    @Select("SELECT * from V_Ward")
+    List<Ward> getAllWardList();
+    @Select("SELECT * from V_Ward where DepartNo=#{departNo}")
+    Ward getWard(@Param("departNo")String departNo);
+
+    @Select("select DivNo DepartNo,DivDepartName DepartName,IsPrimary from EmpDivision a INNER JOIN Employee b  on a.empno = b.empno where a.DivDepartFlag = '病区' and b.empcode=#{loginName}")
+    List<Ward> getAuthorityWardList(@Param("loginName")String loginName);
+}

+ 315 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/Employee.java

@@ -0,0 +1,315 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import java.util.Date;
+
+public class Employee {
+    private String empno;
+
+    private String empcode;
+
+    private String empname;
+
+    private String phoneticname;
+
+    private String engname;
+
+    private String idno;
+
+    private String sex;
+
+    private Date birthday;
+
+    private String mobilephone;
+
+    private String email;
+
+    private Date hiredate;
+
+    private String zone;
+
+    private String departno;
+
+    private String workdepartno;
+
+    private String emptype;
+
+    private Short title;
+
+    private Short chiefno;
+
+    private String subtel;
+
+    private String simpletel;
+
+    private String password;
+
+    private Date passwordtime;
+
+    private Integer presscard;
+
+    private Date resigndate;
+
+    private String updateuser;
+
+    private Date updatetime;
+
+    private String keyword1;
+
+    private String keyword2;
+
+    private String keyword3;
+
+    private String userlevelid;
+
+    private String inputcode;
+
+    private  Integer hiId;
+
+    public Integer getHiId() {
+        return hiId;
+    }
+
+    public void setHiId(Integer hiId) {
+        this.hiId = hiId;
+    }
+
+    public String getEmpno() {
+        return empno;
+    }
+
+    public void setEmpno(String empno) {
+        this.empno = empno == null ? null : empno.trim();
+    }
+
+    public String getEmpcode() {
+        return empcode;
+    }
+
+    public void setEmpcode(String empcode) {
+        this.empcode = empcode == null ? null : empcode.trim();
+    }
+
+    public String getEmpname() {
+        return empname;
+    }
+
+    public void setEmpname(String empname) {
+        this.empname = empname == null ? null : empname.trim();
+    }
+
+    public String getPhoneticname() {
+        return phoneticname;
+    }
+
+    public void setPhoneticname(String phoneticname) {
+        this.phoneticname = phoneticname == null ? null : phoneticname.trim();
+    }
+
+    public String getEngname() {
+        return engname;
+    }
+
+    public void setEngname(String engname) {
+        this.engname = engname == null ? null : engname.trim();
+    }
+
+    public String getIdno() {
+        return idno;
+    }
+
+    public void setIdno(String idno) {
+        this.idno = idno == null ? null : idno.trim();
+    }
+
+    public String getSex() {
+        return sex;
+    }
+
+    public void setSex(String sex) {
+        this.sex = sex == null ? null : sex.trim();
+    }
+
+    public Date getBirthday() {
+        return birthday;
+    }
+
+    public void setBirthday(Date birthday) {
+        this.birthday = birthday;
+    }
+
+    public String getMobilephone() {
+        return mobilephone;
+    }
+
+    public void setMobilephone(String mobilephone) {
+        this.mobilephone = mobilephone == null ? null : mobilephone.trim();
+    }
+
+    public String getEmail() {
+        return email;
+    }
+
+    public void setEmail(String email) {
+        this.email = email == null ? null : email.trim();
+    }
+
+    public Date getHiredate() {
+        return hiredate;
+    }
+
+    public void setHiredate(Date hiredate) {
+        this.hiredate = hiredate;
+    }
+
+    public String getZone() {
+        return zone;
+    }
+
+    public void setZone(String zone) {
+        this.zone = zone == null ? null : zone.trim();
+    }
+
+    public String getDepartno() {
+        return departno;
+    }
+
+    public void setDepartno(String departno) {
+        this.departno = departno == null ? null : departno.trim();
+    }
+
+    public String getWorkdepartno() {
+        return workdepartno;
+    }
+
+    public void setWorkdepartno(String workdepartno) {
+        this.workdepartno = workdepartno == null ? null : workdepartno.trim();
+    }
+
+    public String getEmptype() {
+        return emptype;
+    }
+
+    public void setEmptype(String emptype) {
+        this.emptype = emptype == null ? null : emptype.trim();
+    }
+
+    public Short getTitle() {
+        return title;
+    }
+
+    public void setTitle(Short title) {
+        this.title = title;
+    }
+
+    public Short getChiefno() {
+        return chiefno;
+    }
+
+    public void setChiefno(Short chiefno) {
+        this.chiefno = chiefno;
+    }
+
+    public String getSubtel() {
+        return subtel;
+    }
+
+    public void setSubtel(String subtel) {
+        this.subtel = subtel == null ? null : subtel.trim();
+    }
+
+    public String getSimpletel() {
+        return simpletel;
+    }
+
+    public void setSimpletel(String simpletel) {
+        this.simpletel = simpletel == null ? null : simpletel.trim();
+    }
+
+    public String getPassword() {
+        return password;
+    }
+
+    public void setPassword(String password) {
+        this.password = password == null ? null : password.trim();
+    }
+
+    public Date getPasswordtime() {
+        return passwordtime;
+    }
+
+    public void setPasswordtime(Date passwordtime) {
+        this.passwordtime = passwordtime;
+    }
+
+    public Integer getPresscard() {
+        return presscard;
+    }
+
+    public void setPresscard(Integer presscard) {
+        this.presscard = presscard;
+    }
+
+    public Date getResigndate() {
+        return resigndate;
+    }
+
+    public void setResigndate(Date resigndate) {
+        this.resigndate = resigndate;
+    }
+
+    public String getUpdateuser() {
+        return updateuser;
+    }
+
+    public void setUpdateuser(String updateuser) {
+        this.updateuser = updateuser == null ? null : updateuser.trim();
+    }
+
+    public Date getUpdatetime() {
+        return updatetime;
+    }
+
+    public void setUpdatetime(Date updatetime) {
+        this.updatetime = updatetime;
+    }
+
+    public String getKeyword1() {
+        return keyword1;
+    }
+
+    public void setKeyword1(String keyword1) {
+        this.keyword1 = keyword1 == null ? null : keyword1.trim();
+    }
+
+    public String getKeyword2() {
+        return keyword2;
+    }
+
+    public void setKeyword2(String keyword2) {
+        this.keyword2 = keyword2 == null ? null : keyword2.trim();
+    }
+
+    public String getKeyword3() {
+        return keyword3;
+    }
+
+    public void setKeyword3(String keyword3) {
+        this.keyword3 = keyword3 == null ? null : keyword3.trim();
+    }
+
+    public String getUserlevelid() {
+        return userlevelid;
+    }
+
+    public void setUserlevelid(String userlevelid) {
+        this.userlevelid = userlevelid == null ? null : userlevelid.trim();
+    }
+
+    public String getInputcode() {
+        return inputcode;
+    }
+
+    public void setInputcode(String inputcode) {
+        this.inputcode = inputcode == null ? null : inputcode.trim();
+    }
+}

+ 14 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OperDiv.java

@@ -0,0 +1,14 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class OperDiv extends OperDivKey {
+    private String itemcode;
+
+    private String updateuser;
+
+    private Date updatetime;
+}

+ 10 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OperDivKey.java

@@ -0,0 +1,10 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import lombok.Data;
+
+@Data
+public class OperDivKey {
+    private String divno;
+
+    private Integer type;
+}

+ 127 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OrderInfo.java

@@ -0,0 +1,127 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.Date;
+@Data
+public class OrderInfo {
+
+    private String ptName;
+
+    private Integer recordid;
+
+    private String visitno;
+
+    private String infantid;
+
+    private String chartno;
+
+    private String departno;
+
+    private String departname;
+
+    private String gender;
+
+    private String age;
+
+    private String ptweight;
+
+    private Integer visitZone;
+
+    private Date birthday;
+
+    private String divno;
+
+    private String divname;
+
+    private String bedno;
+
+    private Date admittime;
+
+    private String idno;
+
+    private String phydoctor;
+
+    private String orderno;
+
+    private String orderuser;
+
+    private String orderusername;
+
+    private Date ordertime;
+
+    private Date preexectime;
+
+    private String preexeclocname;
+
+    private String preexecbed;
+
+    private Date exectime;
+
+    private String execlocname;
+
+    private String itemno;
+
+    private BigDecimal dose;
+
+    private String doseunit;
+
+    private String wayno;
+
+    private String waytype;
+
+    private String wayname;
+
+    private String itemcode;
+
+    private String itemname;
+
+    private Integer ordertype;
+
+    private String bigtype;
+
+    private String pairitemno;
+
+    private String rate;
+
+    private String rateunit;
+
+    private String takemedway;
+
+    private String usage;
+
+    private Integer longortempflag;
+
+    private Integer execstatus;
+
+    private String execstatusName;
+
+    private Integer bloodstatus;
+
+    private String drugbarcode;
+
+    private  String advise;
+
+    private String skintest;
+
+    // 展开id
+    private String expandid;
+
+    // 打包号
+    private String pageid;
+
+    // 消息同步用<病历号> ,床位牌上的那个号叫住院号(chartno)
+    private String visitcardnum;
+
+    // 是否双签名
+    private Integer isDoubleCheck;
+
+    private Integer bottleType;
+
+    // 发药时间
+    private Date dispensedTime;
+
+    // 是否血液样本
+    private Integer isBloodSample;
+}

+ 27 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OrderUpdate.java

@@ -0,0 +1,27 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import lombok.Data;
+
+@Data
+public class OrderUpdate {
+
+    private String recordId;
+
+    private String uiCode;
+
+    private String uiName;
+
+    private String execLoc;
+
+    private String execLocName;
+
+    private String orderNo;
+
+    private String itemNo;
+
+    private String visitNo;
+
+    private String chartNo;
+
+    private Integer longOrTemp;
+}

+ 95 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/OriginalOrderInfo.java

@@ -0,0 +1,95 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.Date;
+@Data
+public class OriginalOrderInfo {
+    private String itemNo;  //医嘱CODE
+
+    private String  visitNo; //病人ID
+
+    private String ptName;  //病人姓名
+
+    private String  infantID; //婴儿ID
+
+    private String chartNo;   //病案号
+
+    private String departNo;  //病区代码
+
+    private String departName; //病区名称
+
+    private String gender;  //性别
+
+    private String age;    //年龄
+
+    private String ptWeight;   //体重
+
+    private Integer visitZone;  //院区
+
+    private Date birthday; //出生日期
+
+    private String divNo;   //科室代码
+
+    private String divName; //科室名称
+
+    private String bedNo;   //床位
+
+    private Date admitTime;//入院日期
+
+    private String phyDoctor;//主治医生
+
+    private String orderNo; //医嘱ID
+
+    private String orderUser; //开立医生
+
+    private Date orderTime; //开立时间
+
+    private Date preExecTime; //预执行时间
+
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date execTime;//执行时间
+
+    private BigDecimal dose;//每次剂量
+
+    private String doseUnit;//剂量单位
+
+    private String wayType;//给药方式类型
+
+    private String wayName;//给药方式名称
+
+    private String itemCode;//医嘱项目代码
+
+    private String itemName;//医嘱名称
+
+    private String orderType;//医嘱类型
+
+    private String bigType;//医嘱分类
+
+    private String pairItemNo;//成组医嘱
+
+    private String rate;  //滴速
+
+    private String rateUnit;  //滴速单位
+
+    private String takeMedWay; //领药方式
+
+    private String usage;  //频率
+
+    private Integer longOrTempFlag;  //长期临时
+
+    private String advise;  //医嘱说明
+
+    private String barCode;  //检验条码号
+
+    private String DrugBarCode;
+
+    private Date treatTime;//停嘱时间
+
+    private String treatUser;//停嘱人
+
+    private String treatStatus;//停嘱状态
+
+}

+ 162 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/PatientInfo.java

@@ -0,0 +1,162 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import lombok.Data;
+
+import java.util.Date;
+@Data
+public class PatientInfo {
+    private String visitzone;
+
+    private String departno;
+
+    private String visitno;
+
+    private String visitid;
+
+    private String chartno;
+
+    private String ptname;
+
+    // 母亲姓名
+    private String motherName;
+
+    private String gender;
+
+    private String sex;
+
+    private String nursinglevel;
+
+    private String criticalpatient;
+
+    private String foodcategory;
+
+    private String age;
+
+    private Date birthday;
+
+    private String divno;
+
+    private String bedno;
+
+    private Date admittime;
+
+    private Date predischargetime;
+
+    private Date dischargetime;
+
+    private String visitcardnum;
+
+    private String idno;
+
+    private String phydoctor;
+
+    private String nationalityname;
+
+    private String nationname;
+
+    private String homeaddress;
+
+    private String tel;
+
+    private String conrelationshipname;
+
+    private String conname;
+
+    private String contel;
+
+    private String cardno;
+
+    private String hisid;
+
+    private String infantid;
+
+    private String admissdivno;
+
+    private String dischargedivno;
+
+    private String diagname;
+
+    private String inhospitalstatus;
+
+    private String residentdoctor;
+
+    private String chiefdoctor;
+
+    private String responsiblenurse;
+
+    private Integer fileflag;
+
+    private String jobtype;
+
+    private String marriage;
+
+    private String nativename;
+
+    private String divname;
+
+    private String departname;
+
+    private String admissdivname;
+
+    private Integer infantflag;
+
+    private String mothervisitno;
+
+    private String medallergy;
+
+    private double ptweight;
+
+    private boolean isArrears;  // 是否欠费
+
+    private boolean isPressure; // 是否压疮
+
+    private boolean isFall; // 是否跌倒
+
+    private boolean isConstraint;// 是否约束
+
+    private boolean isInhibition; // 是否抑郁
+
+    private boolean isFragile; // 是否脆弱
+
+    private boolean isAllergy; // 是否过敏
+
+    private boolean isPostoperative;// 是否术后
+
+    private  Integer myPatient; // 我的病人
+
+    private  boolean isolate; // 是否隔离
+
+    private Integer admissdays; //入院天数
+
+    private String payMode; // 付费方式
+
+    //防外逃标志
+    private boolean isPreventEscape;
+
+    //防冲动标志
+    private boolean isAntiImpulse;
+
+    //防消极标志
+    private boolean isAntiNegative;
+
+    // 危重
+    private boolean isCritical;
+
+    // 额外字段
+    private String otherFlag;
+
+    //血源性传播
+    private  boolean bloodInfection;
+
+    //呼吸道传播
+    private boolean respiratoryInfection;
+
+    //多重耐药菌
+    private boolean drugResistantBacteria;
+
+    //其他传播
+    private boolean otherWayInfection;
+
+    // 首次入科时间
+    private Date departTime;
+}

+ 19 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/SpecimenCollection.java

@@ -0,0 +1,19 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SpecimenCollection {
+    private String CollectionUserId;
+
+    private Date CollectionTime;
+
+    private String CollectionDivName;
+
+    private String DivNo;
+
+    private String BarCode;
+}
+

+ 15 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/SpecimenReceive.java

@@ -0,0 +1,15 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SpecimenReceive {
+    private String ReceiveUserId;
+    private String ReceiveUserName;
+    private Date ReceiveTime;
+    private String ReceiveDepartName;
+    private String ReceiveDepartNo;
+    private String barCode;
+}

+ 13 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/SpecimenSend.java

@@ -0,0 +1,13 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import lombok.Data;
+
+import java.util.Date;
+
+@Data
+public class SpecimenSend {
+    private String barCode;
+    private String sendUserId;
+    private Date sendTime;
+    private String sendUserName;
+}

+ 165 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/sqlservermodel/Ward.java

@@ -0,0 +1,165 @@
+package com.xinxin.topro.base.sqlservermodel;
+
+import java.util.Date;
+
+public class Ward {
+    private String departno;
+
+    private String departcode;
+
+    private String departname;
+
+    private Short subtel;
+
+    private String zone;
+
+    private String location;
+
+    private String stocktype;
+
+    private Boolean isduty;
+
+    private String costcenter;
+
+    private Date startdate;
+
+    private Date enddate;
+
+    private String updateuser;
+
+    private String departtype;
+
+    private Date updatetime;
+
+    private Integer emergencyflag;
+
+    private boolean IsPrimary;
+
+    public boolean isPrimary() {
+        return IsPrimary;
+    }
+
+    public void setPrimary(boolean primary) {
+        IsPrimary = primary;
+    }
+
+    public String getDepartno() {
+        return departno;
+    }
+
+    public void setDepartno(String departno) {
+        this.departno = departno == null ? null : departno.trim();
+    }
+
+    public String getDepartcode() {
+        return departcode;
+    }
+
+    public void setDepartcode(String departcode) {
+        this.departcode = departcode == null ? null : departcode.trim();
+    }
+
+    public String getDepartname() {
+        return departname;
+    }
+
+    public void setDepartname(String departname) {
+        this.departname = departname == null ? null : departname.trim();
+    }
+
+    public Short getSubtel() {
+        return subtel;
+    }
+
+    public void setSubtel(Short subtel) {
+        this.subtel = subtel;
+    }
+
+    public String getZone() {
+        return zone;
+    }
+
+    public void setZone(String zone) {
+        this.zone = zone == null ? null : zone.trim();
+    }
+
+    public String getLocation() {
+        return location;
+    }
+
+    public void setLocation(String location) {
+        this.location = location == null ? null : location.trim();
+    }
+
+    public String getStocktype() {
+        return stocktype;
+    }
+
+    public void setStocktype(String stocktype) {
+        this.stocktype = stocktype == null ? null : stocktype.trim();
+    }
+
+    public Boolean getIsduty() {
+        return isduty;
+    }
+
+    public void setIsduty(Boolean isduty) {
+        this.isduty = isduty;
+    }
+
+    public String getCostcenter() {
+        return costcenter;
+    }
+
+    public void setCostcenter(String costcenter) {
+        this.costcenter = costcenter == null ? null : costcenter.trim();
+    }
+
+    public Date getStartdate() {
+        return startdate;
+    }
+
+    public void setStartdate(Date startdate) {
+        this.startdate = startdate;
+    }
+
+    public Date getEnddate() {
+        return enddate;
+    }
+
+    public void setEnddate(Date enddate) {
+        this.enddate = enddate;
+    }
+
+    public String getUpdateuser() {
+        return updateuser;
+    }
+
+    public void setUpdateuser(String updateuser) {
+        this.updateuser = updateuser == null ? null : updateuser.trim();
+    }
+
+    public String getDeparttype() {
+        return departtype;
+    }
+
+    public void setDeparttype(String departtype) {
+        this.departtype = departtype == null ? null : departtype.trim();
+    }
+
+    public Date getUpdatetime() {
+        return updatetime;
+    }
+
+    public void setUpdatetime(Date updatetime) {
+        this.updatetime = updatetime;
+    }
+
+    public Integer getEmergencyflag() {
+        return emergencyflag;
+    }
+
+    public void setEmergencyflag(Integer emergencyflag) {
+        this.emergencyflag = emergencyflag;
+    }
+}

+ 12 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/vo/DictionaryPubVo.java

@@ -0,0 +1,12 @@
+package com.xinxin.topro.base.vo;
+
+import lombok.Data;
+
+@Data
+public class DictionaryPubVo {
+    private String sdCode;
+
+    private String sddCode;
+
+    private String sddName;
+}

+ 13 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/vo/StatisticsVO.java

@@ -0,0 +1,13 @@
+package com.xinxin.topro.base.vo;
+
+import lombok.Data;
+
+@Data
+public class StatisticsVO {
+
+    private int count=0;
+
+//    private int show;
+
+    private int sort;
+}

+ 15 - 0
ToproPublic/topro-base/src/main/java/com/xinxin/topro/base/vo/SysParamClassifyVo.java

@@ -0,0 +1,15 @@
+package com.xinxin.topro.base.vo;
+
+import lombok.Data;
+
+/**
+ * @author wangyongsheng
+ * @instruction
+ * @create 2019/7/9
+ */
+@Data
+public class SysParamClassifyVo {
+    private String name;
+
+    private Integer classify;
+}

+ 14 - 0
ToproPublic/topro-base/src/main/resources/config/mybatis-config.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE configuration
+PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-config.dtd">
+<configuration>
+	<settings>
+		<!--解决插入null的时候报错问题-->
+		<setting name="jdbcTypeForNull" value="NULL"/>
+
+        <!--解决mysql返回结果Map集合子段为null不显示问题-->
+        <setting name="callSettersOnNulls" value="true"/>
+	</settings>
+
+</configuration>

+ 41 - 0
ToproPublic/topro-base/src/main/resources/generator/SqlserverGeneratorConfig.xml

@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+        <!DOCTYPE generatorConfiguration
+                PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
+                "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
+<generatorConfiguration>
+    <!-- 数据库驱动:选择你的本地硬盘上面的数据库驱动包-->
+    <classPathEntry location="D:\tool\sqljdbc_6.0\chs\jre7\sqljdbc41.jar" />
+    <context id="DB2Tables"  targetRuntime="MyBatis3">
+        <commentGenerator>
+            <property name="suppressDate" value="true"/>
+            <!-- 是否去除自动生成的注释 true:是 : false:否 -->
+            <property name="suppressAllComments" value="true"/>
+        </commentGenerator>
+        <!--数据库链接URL,用户名、密码 -->
+        <jdbcConnection driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver"
+                        connectionURL="jdbc:sqlserver://120.27.0.230:1433;DatabaseName=HealthCare"
+                        userId="sa"
+                        password="Zjhis87357900" />
+        <javaTypeResolver>
+            <property name="forceBigDecimals" value="false"/>
+        </javaTypeResolver>
+        <!-- 生成模型的包名和位置-->
+        <!-- -->
+        <javaModelGenerator targetPackage="com.xinxin.topro.base.sqlservermodel" targetProject="src/main/java">
+            <property name="enableSubPackages" value="true"/>
+            <property name="trimStrings" value="true"/>
+        </javaModelGenerator>
+        <!-- 生成映射文件的包名和位置-->
+        <sqlMapGenerator targetPackage="resources/mapper" targetProject="src/main">
+            <property name="enableSubPackages" value="true"/>
+        </sqlMapGenerator>
+        <!-- 生成DAO的包名和位置-->
+        <javaClientGenerator type="XMLMAPPER" targetPackage="com.xinxin.topro.base.sqlservermapper" targetProject="src/main/java">
+            <property name="enableSubPackages" value="true"/>
+        </javaClientGenerator>
+        <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名-->
+        <table tableName="V_Ward" domainObjectName="Ward"
+               enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
+        </table>
+    </context>
+</generatorConfiguration> 

+ 51 - 0
ToproPublic/topro-base/src/main/resources/generator/generatorConfig.xml

@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE generatorConfiguration
+        PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
+        "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
+<generatorConfiguration>
+    <!-- 数据库驱动:选择你的本地硬盘上面的数据库驱动包-->
+    <classPathEntry  location="E:\Java\repository\mysql\mysql-connector-java\5.1.46\mysql-connector-java-5.1.46.jar"/>
+    <!--<classPathEntry location="D:\Users\sqljdbc_6.0.8112.200_chs\sqljdbc_6.0\chs\jre7\sqljdbc41.jar" />-->
+    <context id="DB2Tables"  targetRuntime="MyBatis3">
+        <commentGenerator>
+            <property name="suppressDate" value="true"/>
+            <!-- 是否去除自动生成的注释 true:是 : false:否 -->
+            <property name="suppressAllComments" value="true"/>
+        </commentGenerator>
+        <!--数据库链接URL,用户名、密码 -->
+        <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://120.27.0.230:3306/topproemr?characterEncoding=utf8" userId="root" password="123456">
+        </jdbcConnection>
+        <!--        <jdbcConnection driverClass="com.microsoft.sqlserver.jdbc.SQLServerDriver"
+                                connectionURL="jdbc:sqlserver://120.27.0.230:1433;DatabaseName=HealthCare"
+                                userId="sa"
+                                password="Zjhis87357900" />-->
+        <javaTypeResolver>
+            <property name="forceBigDecimals" value="false"/>
+        </javaTypeResolver>
+        <!-- 生成模型的包名和位置-->
+        <!-- -->
+        <javaModelGenerator targetPackage="com.xinxin.topro.base.mysqlmodel" targetProject="src/main/java">
+            <property name="enableSubPackages" value="true"/>
+            <property name="trimStrings" value="true"/>
+        </javaModelGenerator>
+        <!--        <javaModelGenerator targetPackage="com.xinxin.topro.base.sqlservermodel" targetProject="src/main/java">
+                    <property name="enableSubPackages" value="true"/>
+                    <property name="trimStrings" value="true"/>
+                </javaModelGenerator>-->
+        <!-- 生成映射文件的包名和位置-->
+        <sqlMapGenerator targetPackage="resources.mapper" targetProject="src/main">
+            <property name="enableSubPackages" value="true"/>
+        </sqlMapGenerator>
+        <!-- 生成DAO的包名和位置-->
+        <javaClientGenerator type="XMLMAPPER" targetPackage="com.xinxin.topro.base.mysqlmapper" targetProject="src/main/java">
+            <property name="enableSubPackages" value="true"/>
+        </javaClientGenerator>
+        <!--        <javaClientGenerator type="XMLMAPPER" targetPackage="com.xinxin.topro.base.sqlservermapper" targetProject="src/main/java">
+                    <property name="enableSubPackages" value="true"/>
+                </javaClientGenerator>-->
+        <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名-->
+        <table tableName="pda_skinpop_part" domainObjectName="SkinPopPart"
+               enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false">
+        </table>
+    </context>
+</generatorConfiguration>

+ 248 - 0
ToproPublic/topro-base/src/main/resources/mapper/DicDepartmentMapper.xml

@@ -0,0 +1,248 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.xinxin.topro.base.mysqlmapper.DicDepartmentMapper">
+  <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.DicDepartment">
+    <id column="DD_ID" jdbcType="INTEGER" property="ddId" />
+    <result column="DD_DepDm" jdbcType="VARCHAR" property="ddDepdm" />
+    <result column="HI_ID" jdbcType="INTEGER" property="hiId" />
+    <result column="DD_DepName" jdbcType="VARCHAR" property="ddDepname" />
+    <result column="DD_AliasName" jdbcType="VARCHAR" property="ddAliasname" />
+    <result column="DD_EngName" jdbcType="VARCHAR" property="ddEngname" />
+    <result column="DD_AccountDep" jdbcType="VARCHAR" property="ddAccountdep" />
+    <result column="DD_CostDep" jdbcType="VARCHAR" property="ddCostdep" />
+    <result column="DD_Address" jdbcType="VARCHAR" property="ddAddress" />
+    <result column="DD_PinyinCode" jdbcType="VARCHAR" property="ddPinyincode" />
+    <result column="DD_WubiCode" jdbcType="VARCHAR" property="ddWubicode" />
+    <result column="DD_OtherCode" jdbcType="VARCHAR" property="ddOthercode" />
+    <result column="DD_OpdFlag" jdbcType="INTEGER" property="ddOpdflag" />
+    <result column="DD_InpFlag" jdbcType="INTEGER" property="ddInpflag" />
+    <result column="DD_DepNature" jdbcType="INTEGER" property="ddDepnature" />
+    <result column="DD_SupDepDm" jdbcType="INTEGER" property="ddSupdepdm" />
+    <result column="DD_IsDel" jdbcType="INTEGER" property="ddIsdel" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    DD_ID, DD_DepDm, HI_ID, DD_DepName, DD_AliasName, DD_EngName, DD_AccountDep, DD_CostDep, 
+    DD_Address, DD_PinyinCode, DD_WubiCode, DD_OtherCode, DD_OpdFlag, DD_InpFlag, DD_DepNature, 
+    DD_SupDepDm, DD_IsDel
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    select 
+    <include refid="Base_Column_List" />
+    from dic_department
+    where DD_ID = #{ddId,jdbcType=INTEGER}
+  </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    delete from dic_department
+    where DD_ID = #{ddId,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.DicDepartment">
+    insert into dic_department (DD_ID, DD_DepDm, HI_ID, 
+      DD_DepName, DD_AliasName, DD_EngName, 
+      DD_AccountDep, DD_CostDep, DD_Address, 
+      DD_PinyinCode, DD_WubiCode, DD_OtherCode, 
+      DD_OpdFlag, DD_InpFlag, DD_DepNature, 
+      DD_SupDepDm, DD_IsDel)
+    values (#{ddId,jdbcType=INTEGER}, #{ddDepdm,jdbcType=VARCHAR}, #{hiId,jdbcType=INTEGER}, 
+      #{ddDepname,jdbcType=VARCHAR}, #{ddAliasname,jdbcType=VARCHAR}, #{ddEngname,jdbcType=VARCHAR}, 
+      #{ddAccountdep,jdbcType=VARCHAR}, #{ddCostdep,jdbcType=VARCHAR}, #{ddAddress,jdbcType=VARCHAR}, 
+      #{ddPinyincode,jdbcType=VARCHAR}, #{ddWubicode,jdbcType=VARCHAR}, #{ddOthercode,jdbcType=VARCHAR}, 
+      #{ddOpdflag,jdbcType=INTEGER}, #{ddInpflag,jdbcType=INTEGER}, #{ddDepnature,jdbcType=INTEGER}, 
+      #{ddSupdepdm,jdbcType=INTEGER}, #{ddIsdel,jdbcType=INTEGER})
+  </insert>
+  <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.DicDepartment">
+    insert into dic_department
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="ddId != null">
+        DD_ID,
+      </if>
+      <if test="ddDepdm != null">
+        DD_DepDm,
+      </if>
+      <if test="hiId != null">
+        HI_ID,
+      </if>
+      <if test="ddDepname != null">
+        DD_DepName,
+      </if>
+      <if test="ddAliasname != null">
+        DD_AliasName,
+      </if>
+      <if test="ddEngname != null">
+        DD_EngName,
+      </if>
+      <if test="ddAccountdep != null">
+        DD_AccountDep,
+      </if>
+      <if test="ddCostdep != null">
+        DD_CostDep,
+      </if>
+      <if test="ddAddress != null">
+        DD_Address,
+      </if>
+      <if test="ddPinyincode != null">
+        DD_PinyinCode,
+      </if>
+      <if test="ddWubicode != null">
+        DD_WubiCode,
+      </if>
+      <if test="ddOthercode != null">
+        DD_OtherCode,
+      </if>
+      <if test="ddOpdflag != null">
+        DD_OpdFlag,
+      </if>
+      <if test="ddInpflag != null">
+        DD_InpFlag,
+      </if>
+      <if test="ddDepnature != null">
+        DD_DepNature,
+      </if>
+      <if test="ddSupdepdm != null">
+        DD_SupDepDm,
+      </if>
+      <if test="ddIsdel != null">
+        DD_IsDel,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="ddId != null">
+        #{ddId,jdbcType=INTEGER},
+      </if>
+      <if test="ddDepdm != null">
+        #{ddDepdm,jdbcType=VARCHAR},
+      </if>
+      <if test="hiId != null">
+        #{hiId,jdbcType=INTEGER},
+      </if>
+      <if test="ddDepname != null">
+        #{ddDepname,jdbcType=VARCHAR},
+      </if>
+      <if test="ddAliasname != null">
+        #{ddAliasname,jdbcType=VARCHAR},
+      </if>
+      <if test="ddEngname != null">
+        #{ddEngname,jdbcType=VARCHAR},
+      </if>
+      <if test="ddAccountdep != null">
+        #{ddAccountdep,jdbcType=VARCHAR},
+      </if>
+      <if test="ddCostdep != null">
+        #{ddCostdep,jdbcType=VARCHAR},
+      </if>
+      <if test="ddAddress != null">
+        #{ddAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="ddPinyincode != null">
+        #{ddPinyincode,jdbcType=VARCHAR},
+      </if>
+      <if test="ddWubicode != null">
+        #{ddWubicode,jdbcType=VARCHAR},
+      </if>
+      <if test="ddOthercode != null">
+        #{ddOthercode,jdbcType=VARCHAR},
+      </if>
+      <if test="ddOpdflag != null">
+        #{ddOpdflag,jdbcType=INTEGER},
+      </if>
+      <if test="ddInpflag != null">
+        #{ddInpflag,jdbcType=INTEGER},
+      </if>
+      <if test="ddDepnature != null">
+        #{ddDepnature,jdbcType=INTEGER},
+      </if>
+      <if test="ddSupdepdm != null">
+        #{ddSupdepdm,jdbcType=INTEGER},
+      </if>
+      <if test="ddIsdel != null">
+        #{ddIsdel,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.DicDepartment">
+    update dic_department
+    <set>
+      <if test="ddDepdm != null">
+        DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
+      </if>
+      <if test="hiId != null">
+        HI_ID = #{hiId,jdbcType=INTEGER},
+      </if>
+      <if test="ddDepname != null">
+        DD_DepName = #{ddDepname,jdbcType=VARCHAR},
+      </if>
+      <if test="ddAliasname != null">
+        DD_AliasName = #{ddAliasname,jdbcType=VARCHAR},
+      </if>
+      <if test="ddEngname != null">
+        DD_EngName = #{ddEngname,jdbcType=VARCHAR},
+      </if>
+      <if test="ddAccountdep != null">
+        DD_AccountDep = #{ddAccountdep,jdbcType=VARCHAR},
+      </if>
+      <if test="ddCostdep != null">
+        DD_CostDep = #{ddCostdep,jdbcType=VARCHAR},
+      </if>
+      <if test="ddAddress != null">
+        DD_Address = #{ddAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="ddPinyincode != null">
+        DD_PinyinCode = #{ddPinyincode,jdbcType=VARCHAR},
+      </if>
+      <if test="ddWubicode != null">
+        DD_WubiCode = #{ddWubicode,jdbcType=VARCHAR},
+      </if>
+      <if test="ddOthercode != null">
+        DD_OtherCode = #{ddOthercode,jdbcType=VARCHAR},
+      </if>
+      <if test="ddOpdflag != null">
+        DD_OpdFlag = #{ddOpdflag,jdbcType=INTEGER},
+      </if>
+      <if test="ddInpflag != null">
+        DD_InpFlag = #{ddInpflag,jdbcType=INTEGER},
+      </if>
+      <if test="ddDepnature != null">
+        DD_DepNature = #{ddDepnature,jdbcType=INTEGER},
+      </if>
+      <if test="ddSupdepdm != null">
+        DD_SupDepDm = #{ddSupdepdm,jdbcType=INTEGER},
+      </if>
+      <if test="ddIsdel != null">
+        DD_IsDel = #{ddIsdel,jdbcType=INTEGER},
+      </if>
+    </set>
+    where DD_ID = #{ddId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.DicDepartment">
+    update dic_department
+    set DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
+      HI_ID = #{hiId,jdbcType=INTEGER},
+      DD_DepName = #{ddDepname,jdbcType=VARCHAR},
+      DD_AliasName = #{ddAliasname,jdbcType=VARCHAR},
+      DD_EngName = #{ddEngname,jdbcType=VARCHAR},
+      DD_AccountDep = #{ddAccountdep,jdbcType=VARCHAR},
+      DD_CostDep = #{ddCostdep,jdbcType=VARCHAR},
+      DD_Address = #{ddAddress,jdbcType=VARCHAR},
+      DD_PinyinCode = #{ddPinyincode,jdbcType=VARCHAR},
+      DD_WubiCode = #{ddWubicode,jdbcType=VARCHAR},
+      DD_OtherCode = #{ddOthercode,jdbcType=VARCHAR},
+      DD_OpdFlag = #{ddOpdflag,jdbcType=INTEGER},
+      DD_InpFlag = #{ddInpflag,jdbcType=INTEGER},
+      DD_DepNature = #{ddDepnature,jdbcType=INTEGER},
+      DD_SupDepDm = #{ddSupdepdm,jdbcType=INTEGER},
+      DD_IsDel = #{ddIsdel,jdbcType=INTEGER}
+    where DD_ID = #{ddId,jdbcType=INTEGER}
+  </update>
+    <select id="selectBySelective" resultMap="BaseResultMap">
+        SELECT
+        <include refid="Base_Column_List" />
+        FROM dic_department
+        WHERE DD_IsDel = 0
+        <if test="hiId != null">
+          AND  HI_ID = #{hiId,jdbcType=INTEGER}
+        </if>
+        <if test="ddDepdm != null">
+          AND  DD_DepDm = #{ddDepdm,jdbcType=VARCHAR}
+        </if>
+    </select>
+
+</mapper>

+ 486 - 0
ToproPublic/topro-base/src/main/resources/mapper/EmployeeMapper.xml

@@ -0,0 +1,486 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.xinxin.topro.base.sqlservermapper.EmployeeMapper" >
+  <resultMap id="BaseResultMap" type="com.xinxin.topro.base.sqlservermodel.Employee" >
+    <id column="EmpNo" property="empno" jdbcType="VARCHAR" />
+    <result column="EmpCode" property="empcode" jdbcType="VARCHAR" />
+    <result column="EmpName" property="empname" jdbcType="VARCHAR" />
+    <result column="PhoneticName" property="phoneticname" jdbcType="VARCHAR" />
+    <result column="EngName" property="engname" jdbcType="VARCHAR" />
+    <result column="IdNo" property="idno" jdbcType="VARCHAR" />
+    <result column="Sex" property="sex" jdbcType="VARCHAR" />
+    <result column="Birthday" property="birthday" jdbcType="TIMESTAMP" />
+    <result column="MobilePhone" property="mobilephone" jdbcType="VARCHAR" />
+    <result column="Email" property="email" jdbcType="VARCHAR" />
+    <result column="HireDate" property="hiredate" jdbcType="TIMESTAMP" />
+    <result column="Zone" property="zone" jdbcType="VARCHAR" />
+    <result column="DepartNo" property="departno" jdbcType="VARCHAR" />
+    <result column="WorkDepartNo" property="workdepartno" jdbcType="VARCHAR" />
+    <result column="EmpType" property="emptype" jdbcType="VARCHAR" />
+    <result column="Title" property="title" jdbcType="SMALLINT" />
+    <result column="ChiefNo" property="chiefno" jdbcType="SMALLINT" />
+    <result column="SubTel" property="subtel" jdbcType="VARCHAR" />
+    <result column="SimpleTel" property="simpletel" jdbcType="VARCHAR" />
+    <result column="Password" property="password" jdbcType="VARCHAR" />
+    <result column="PasswordTime" property="passwordtime" jdbcType="TIMESTAMP" />
+    <result column="PressCard" property="presscard" jdbcType="INTEGER" />
+    <result column="ResignDate" property="resigndate" jdbcType="TIMESTAMP" />
+    <result column="UpdateUser" property="updateuser" jdbcType="VARCHAR" />
+    <result column="UpdateTime" property="updatetime" jdbcType="TIMESTAMP" />
+    <result column="Keyword1" property="keyword1" jdbcType="VARCHAR" />
+    <result column="Keyword2" property="keyword2" jdbcType="VARCHAR" />
+    <result column="Keyword3" property="keyword3" jdbcType="VARCHAR" />
+    <result column="UserLevelId" property="userlevelid" jdbcType="VARCHAR" />
+    <result column="InputCode" property="inputcode" jdbcType="VARCHAR" />
+  </resultMap>
+  <resultMap id="ResultMapWithBLOBs" type="com.xinxin.topro.base.sqlservermodel.EmployeeWithBLOBs" extends="BaseResultMap" >
+    <result column="Remark" property="remark" jdbcType="LONGVARCHAR" />
+    <result column="FingerTz1" property="fingertz1" jdbcType="LONGVARBINARY" />
+    <result column="FingerTz2" property="fingertz2" jdbcType="LONGVARBINARY" />
+    <result column="FingerTz3" property="fingertz3" jdbcType="LONGVARBINARY" />
+    <result column="Signature" property="signature" jdbcType="LONGVARBINARY" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    EmpNo, EmpCode, EmpName, PhoneticName, EngName, IdNo, Sex, Birthday, MobilePhone, 
+    Email, HireDate, Zone, DepartNo, WorkDepartNo, EmpType, Title, ChiefNo, SubTel, SimpleTel, 
+    Password, PasswordTime, PressCard, ResignDate, UpdateUser, UpdateTime, Keyword1, 
+    Keyword2, Keyword3, UserLevelId, InputCode
+  </sql>
+  <sql id="Blob_Column_List" >
+    Remark, FingerTz1, FingerTz2, FingerTz3, Signature
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.String" >
+    select 
+    <include refid="Base_Column_List" />
+    ,
+    <include refid="Blob_Column_List" />
+    from Employee
+    where EmpNo = #{empno,jdbcType=VARCHAR}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
+    delete from Employee
+    where EmpNo = #{empno,jdbcType=VARCHAR}
+  </delete>
+  <insert id="insert" parameterType="com.xinxin.topro.base.sqlservermodel.EmployeeWithBLOBs" >
+    insert into Employee (EmpNo, EmpCode, EmpName, 
+      PhoneticName, EngName, IdNo, 
+      Sex, Birthday, MobilePhone, 
+      Email, HireDate, Zone, 
+      DepartNo, WorkDepartNo, EmpType, 
+      Title, ChiefNo, SubTel, 
+      SimpleTel, Password, PasswordTime, 
+      PressCard, ResignDate, UpdateUser, 
+      UpdateTime, Keyword1, Keyword2, 
+      Keyword3, UserLevelId, InputCode, 
+      Remark, FingerTz1, FingerTz2, 
+      FingerTz3, Signature)
+    values (#{empno,jdbcType=VARCHAR}, #{empcode,jdbcType=VARCHAR}, #{empname,jdbcType=VARCHAR}, 
+      #{phoneticname,jdbcType=VARCHAR}, #{engname,jdbcType=VARCHAR}, #{idno,jdbcType=VARCHAR}, 
+      #{sex,jdbcType=VARCHAR}, #{birthday,jdbcType=TIMESTAMP}, #{mobilephone,jdbcType=VARCHAR}, 
+      #{email,jdbcType=VARCHAR}, #{hiredate,jdbcType=TIMESTAMP}, #{zone,jdbcType=VARCHAR}, 
+      #{departno,jdbcType=VARCHAR}, #{workdepartno,jdbcType=VARCHAR}, #{emptype,jdbcType=VARCHAR}, 
+      #{title,jdbcType=SMALLINT}, #{chiefno,jdbcType=SMALLINT}, #{subtel,jdbcType=VARCHAR}, 
+      #{simpletel,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{passwordtime,jdbcType=TIMESTAMP}, 
+      #{presscard,jdbcType=INTEGER}, #{resigndate,jdbcType=TIMESTAMP}, #{updateuser,jdbcType=VARCHAR}, 
+      #{updatetime,jdbcType=TIMESTAMP}, #{keyword1,jdbcType=VARCHAR}, #{keyword2,jdbcType=VARCHAR}, 
+      #{keyword3,jdbcType=VARCHAR}, #{userlevelid,jdbcType=VARCHAR}, #{inputcode,jdbcType=VARCHAR}, 
+      #{remark,jdbcType=LONGVARCHAR}, #{fingertz1,jdbcType=LONGVARBINARY}, #{fingertz2,jdbcType=LONGVARBINARY}, 
+      #{fingertz3,jdbcType=LONGVARBINARY}, #{signature,jdbcType=LONGVARBINARY})
+  </insert>
+  <insert id="insertSelective" parameterType="com.xinxin.topro.base.sqlservermodel.EmployeeWithBLOBs" >
+    insert into Employee
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="empno != null" >
+        EmpNo,
+      </if>
+      <if test="empcode != null" >
+        EmpCode,
+      </if>
+      <if test="empname != null" >
+        EmpName,
+      </if>
+      <if test="phoneticname != null" >
+        PhoneticName,
+      </if>
+      <if test="engname != null" >
+        EngName,
+      </if>
+      <if test="idno != null" >
+        IdNo,
+      </if>
+      <if test="sex != null" >
+        Sex,
+      </if>
+      <if test="birthday != null" >
+        Birthday,
+      </if>
+      <if test="mobilephone != null" >
+        MobilePhone,
+      </if>
+      <if test="email != null" >
+        Email,
+      </if>
+      <if test="hiredate != null" >
+        HireDate,
+      </if>
+      <if test="zone != null" >
+        Zone,
+      </if>
+      <if test="departno != null" >
+        DepartNo,
+      </if>
+      <if test="workdepartno != null" >
+        WorkDepartNo,
+      </if>
+      <if test="emptype != null" >
+        EmpType,
+      </if>
+      <if test="title != null" >
+        Title,
+      </if>
+      <if test="chiefno != null" >
+        ChiefNo,
+      </if>
+      <if test="subtel != null" >
+        SubTel,
+      </if>
+      <if test="simpletel != null" >
+        SimpleTel,
+      </if>
+      <if test="password != null" >
+        Password,
+      </if>
+      <if test="passwordtime != null" >
+        PasswordTime,
+      </if>
+      <if test="presscard != null" >
+        PressCard,
+      </if>
+      <if test="resigndate != null" >
+        ResignDate,
+      </if>
+      <if test="updateuser != null" >
+        UpdateUser,
+      </if>
+      <if test="updatetime != null" >
+        UpdateTime,
+      </if>
+      <if test="keyword1 != null" >
+        Keyword1,
+      </if>
+      <if test="keyword2 != null" >
+        Keyword2,
+      </if>
+      <if test="keyword3 != null" >
+        Keyword3,
+      </if>
+      <if test="userlevelid != null" >
+        UserLevelId,
+      </if>
+      <if test="inputcode != null" >
+        InputCode,
+      </if>
+      <if test="remark != null" >
+        Remark,
+      </if>
+      <if test="fingertz1 != null" >
+        FingerTz1,
+      </if>
+      <if test="fingertz2 != null" >
+        FingerTz2,
+      </if>
+      <if test="fingertz3 != null" >
+        FingerTz3,
+      </if>
+      <if test="signature != null" >
+        Signature,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="empno != null" >
+        #{empno,jdbcType=VARCHAR},
+      </if>
+      <if test="empcode != null" >
+        #{empcode,jdbcType=VARCHAR},
+      </if>
+      <if test="empname != null" >
+        #{empname,jdbcType=VARCHAR},
+      </if>
+      <if test="phoneticname != null" >
+        #{phoneticname,jdbcType=VARCHAR},
+      </if>
+      <if test="engname != null" >
+        #{engname,jdbcType=VARCHAR},
+      </if>
+      <if test="idno != null" >
+        #{idno,jdbcType=VARCHAR},
+      </if>
+      <if test="sex != null" >
+        #{sex,jdbcType=VARCHAR},
+      </if>
+      <if test="birthday != null" >
+        #{birthday,jdbcType=TIMESTAMP},
+      </if>
+      <if test="mobilephone != null" >
+        #{mobilephone,jdbcType=VARCHAR},
+      </if>
+      <if test="email != null" >
+        #{email,jdbcType=VARCHAR},
+      </if>
+      <if test="hiredate != null" >
+        #{hiredate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="zone != null" >
+        #{zone,jdbcType=VARCHAR},
+      </if>
+      <if test="departno != null" >
+        #{departno,jdbcType=VARCHAR},
+      </if>
+      <if test="workdepartno != null" >
+        #{workdepartno,jdbcType=VARCHAR},
+      </if>
+      <if test="emptype != null" >
+        #{emptype,jdbcType=VARCHAR},
+      </if>
+      <if test="title != null" >
+        #{title,jdbcType=SMALLINT},
+      </if>
+      <if test="chiefno != null" >
+        #{chiefno,jdbcType=SMALLINT},
+      </if>
+      <if test="subtel != null" >
+        #{subtel,jdbcType=VARCHAR},
+      </if>
+      <if test="simpletel != null" >
+        #{simpletel,jdbcType=VARCHAR},
+      </if>
+      <if test="password != null" >
+        #{password,jdbcType=VARCHAR},
+      </if>
+      <if test="passwordtime != null" >
+        #{passwordtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="presscard != null" >
+        #{presscard,jdbcType=INTEGER},
+      </if>
+      <if test="resigndate != null" >
+        #{resigndate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateuser != null" >
+        #{updateuser,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null" >
+        #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="keyword1 != null" >
+        #{keyword1,jdbcType=VARCHAR},
+      </if>
+      <if test="keyword2 != null" >
+        #{keyword2,jdbcType=VARCHAR},
+      </if>
+      <if test="keyword3 != null" >
+        #{keyword3,jdbcType=VARCHAR},
+      </if>
+      <if test="userlevelid != null" >
+        #{userlevelid,jdbcType=VARCHAR},
+      </if>
+      <if test="inputcode != null" >
+        #{inputcode,jdbcType=VARCHAR},
+      </if>
+      <if test="remark != null" >
+        #{remark,jdbcType=LONGVARCHAR},
+      </if>
+      <if test="fingertz1 != null" >
+        #{fingertz1,jdbcType=LONGVARBINARY},
+      </if>
+      <if test="fingertz2 != null" >
+        #{fingertz2,jdbcType=LONGVARBINARY},
+      </if>
+      <if test="fingertz3 != null" >
+        #{fingertz3,jdbcType=LONGVARBINARY},
+      </if>
+      <if test="signature != null" >
+        #{signature,jdbcType=LONGVARBINARY},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.sqlservermodel.EmployeeWithBLOBs" >
+    update Employee
+    <set >
+      <if test="empcode != null" >
+        EmpCode = #{empcode,jdbcType=VARCHAR},
+      </if>
+      <if test="empname != null" >
+        EmpName = #{empname,jdbcType=VARCHAR},
+      </if>
+      <if test="phoneticname != null" >
+        PhoneticName = #{phoneticname,jdbcType=VARCHAR},
+      </if>
+      <if test="engname != null" >
+        EngName = #{engname,jdbcType=VARCHAR},
+      </if>
+      <if test="idno != null" >
+        IdNo = #{idno,jdbcType=VARCHAR},
+      </if>
+      <if test="sex != null" >
+        Sex = #{sex,jdbcType=VARCHAR},
+      </if>
+      <if test="birthday != null" >
+        Birthday = #{birthday,jdbcType=TIMESTAMP},
+      </if>
+      <if test="mobilephone != null" >
+        MobilePhone = #{mobilephone,jdbcType=VARCHAR},
+      </if>
+      <if test="email != null" >
+        Email = #{email,jdbcType=VARCHAR},
+      </if>
+      <if test="hiredate != null" >
+        HireDate = #{hiredate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="zone != null" >
+        Zone = #{zone,jdbcType=VARCHAR},
+      </if>
+      <if test="departno != null" >
+        DepartNo = #{departno,jdbcType=VARCHAR},
+      </if>
+      <if test="workdepartno != null" >
+        WorkDepartNo = #{workdepartno,jdbcType=VARCHAR},
+      </if>
+      <if test="emptype != null" >
+        EmpType = #{emptype,jdbcType=VARCHAR},
+      </if>
+      <if test="title != null" >
+        Title = #{title,jdbcType=SMALLINT},
+      </if>
+      <if test="chiefno != null" >
+        ChiefNo = #{chiefno,jdbcType=SMALLINT},
+      </if>
+      <if test="subtel != null" >
+        SubTel = #{subtel,jdbcType=VARCHAR},
+      </if>
+      <if test="simpletel != null" >
+        SimpleTel = #{simpletel,jdbcType=VARCHAR},
+      </if>
+      <if test="password != null" >
+        Password = #{password,jdbcType=VARCHAR},
+      </if>
+      <if test="passwordtime != null" >
+        PasswordTime = #{passwordtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="presscard != null" >
+        PressCard = #{presscard,jdbcType=INTEGER},
+      </if>
+      <if test="resigndate != null" >
+        ResignDate = #{resigndate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateuser != null" >
+        UpdateUser = #{updateuser,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null" >
+        UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="keyword1 != null" >
+        Keyword1 = #{keyword1,jdbcType=VARCHAR},
+      </if>
+      <if test="keyword2 != null" >
+        Keyword2 = #{keyword2,jdbcType=VARCHAR},
+      </if>
+      <if test="keyword3 != null" >
+        Keyword3 = #{keyword3,jdbcType=VARCHAR},
+      </if>
+      <if test="userlevelid != null" >
+        UserLevelId = #{userlevelid,jdbcType=VARCHAR},
+      </if>
+      <if test="inputcode != null" >
+        InputCode = #{inputcode,jdbcType=VARCHAR},
+      </if>
+      <if test="remark != null" >
+        Remark = #{remark,jdbcType=LONGVARCHAR},
+      </if>
+      <if test="fingertz1 != null" >
+        FingerTz1 = #{fingertz1,jdbcType=LONGVARBINARY},
+      </if>
+      <if test="fingertz2 != null" >
+        FingerTz2 = #{fingertz2,jdbcType=LONGVARBINARY},
+      </if>
+      <if test="fingertz3 != null" >
+        FingerTz3 = #{fingertz3,jdbcType=LONGVARBINARY},
+      </if>
+      <if test="signature != null" >
+        Signature = #{signature,jdbcType=LONGVARBINARY},
+      </if>
+    </set>
+    where EmpNo = #{empno,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.xinxin.topro.base.sqlservermodel.EmployeeWithBLOBs" >
+    update Employee
+    set EmpCode = #{empcode,jdbcType=VARCHAR},
+      EmpName = #{empname,jdbcType=VARCHAR},
+      PhoneticName = #{phoneticname,jdbcType=VARCHAR},
+      EngName = #{engname,jdbcType=VARCHAR},
+      IdNo = #{idno,jdbcType=VARCHAR},
+      Sex = #{sex,jdbcType=VARCHAR},
+      Birthday = #{birthday,jdbcType=TIMESTAMP},
+      MobilePhone = #{mobilephone,jdbcType=VARCHAR},
+      Email = #{email,jdbcType=VARCHAR},
+      HireDate = #{hiredate,jdbcType=TIMESTAMP},
+      Zone = #{zone,jdbcType=VARCHAR},
+      DepartNo = #{departno,jdbcType=VARCHAR},
+      WorkDepartNo = #{workdepartno,jdbcType=VARCHAR},
+      EmpType = #{emptype,jdbcType=VARCHAR},
+      Title = #{title,jdbcType=SMALLINT},
+      ChiefNo = #{chiefno,jdbcType=SMALLINT},
+      SubTel = #{subtel,jdbcType=VARCHAR},
+      SimpleTel = #{simpletel,jdbcType=VARCHAR},
+      Password = #{password,jdbcType=VARCHAR},
+      PasswordTime = #{passwordtime,jdbcType=TIMESTAMP},
+      PressCard = #{presscard,jdbcType=INTEGER},
+      ResignDate = #{resigndate,jdbcType=TIMESTAMP},
+      UpdateUser = #{updateuser,jdbcType=VARCHAR},
+      UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
+      Keyword1 = #{keyword1,jdbcType=VARCHAR},
+      Keyword2 = #{keyword2,jdbcType=VARCHAR},
+      Keyword3 = #{keyword3,jdbcType=VARCHAR},
+      UserLevelId = #{userlevelid,jdbcType=VARCHAR},
+      InputCode = #{inputcode,jdbcType=VARCHAR},
+      Remark = #{remark,jdbcType=LONGVARCHAR},
+      FingerTz1 = #{fingertz1,jdbcType=LONGVARBINARY},
+      FingerTz2 = #{fingertz2,jdbcType=LONGVARBINARY},
+      FingerTz3 = #{fingertz3,jdbcType=LONGVARBINARY},
+      Signature = #{signature,jdbcType=LONGVARBINARY}
+    where EmpNo = #{empno,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.sqlservermodel.Employee" >
+    update Employee
+    set EmpCode = #{empcode,jdbcType=VARCHAR},
+      EmpName = #{empname,jdbcType=VARCHAR},
+      PhoneticName = #{phoneticname,jdbcType=VARCHAR},
+      EngName = #{engname,jdbcType=VARCHAR},
+      IdNo = #{idno,jdbcType=VARCHAR},
+      Sex = #{sex,jdbcType=VARCHAR},
+      Birthday = #{birthday,jdbcType=TIMESTAMP},
+      MobilePhone = #{mobilephone,jdbcType=VARCHAR},
+      Email = #{email,jdbcType=VARCHAR},
+      HireDate = #{hiredate,jdbcType=TIMESTAMP},
+      Zone = #{zone,jdbcType=VARCHAR},
+      DepartNo = #{departno,jdbcType=VARCHAR},
+      WorkDepartNo = #{workdepartno,jdbcType=VARCHAR},
+      EmpType = #{emptype,jdbcType=VARCHAR},
+      Title = #{title,jdbcType=SMALLINT},
+      ChiefNo = #{chiefno,jdbcType=SMALLINT},
+      SubTel = #{subtel,jdbcType=VARCHAR},
+      SimpleTel = #{simpletel,jdbcType=VARCHAR},
+      Password = #{password,jdbcType=VARCHAR},
+      PasswordTime = #{passwordtime,jdbcType=TIMESTAMP},
+      PressCard = #{presscard,jdbcType=INTEGER},
+      ResignDate = #{resigndate,jdbcType=TIMESTAMP},
+      UpdateUser = #{updateuser,jdbcType=VARCHAR},
+      UpdateTime = #{updatetime,jdbcType=TIMESTAMP},
+      Keyword1 = #{keyword1,jdbcType=VARCHAR},
+      Keyword2 = #{keyword2,jdbcType=VARCHAR},
+      Keyword3 = #{keyword3,jdbcType=VARCHAR},
+      UserLevelId = #{userlevelid,jdbcType=VARCHAR},
+      InputCode = #{inputcode,jdbcType=VARCHAR}
+    where EmpNo = #{empno,jdbcType=VARCHAR}
+  </update>
+</mapper>

+ 82 - 0
ToproPublic/topro-base/src/main/resources/mapper/ExecRecordDetailMapper.xml

@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.xinxin.topro.base.mysqlmapper.ExecRecordDetailMapper" >
+  <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
+    <id column="POD_ID" property="POD_ID" jdbcType="INTEGER" />
+    <result column="PO_ID" property="PO_ID" jdbcType="INTEGER" />
+    <result column="POD_Code" property="POD_Code" jdbcType="VARCHAR" />
+    <result column="POD_Value" property="POD_Value" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    POD_ID, PO_ID, POD_Code, POD_Value
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pda_order_detail
+    where POD_ID = #{podId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pda_order_detail
+    where POD_ID = #{podId,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
+    insert into pda_order_detail (POD_ID, PO_ID, POD_Code, 
+      POD_Value)
+    values (#{podId,jdbcType=INTEGER}, #{poId,jdbcType=INTEGER}, #{podCode,jdbcType=VARCHAR}, 
+      #{podValue,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
+    insert into pda_order_detail
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="podId != null" >
+        POD_ID,
+      </if>
+      <if test="poId != null" >
+        PO_ID,
+      </if>
+      <if test="podCode != null" >
+        POD_Code,
+      </if>
+      <if test="podValue != null" >
+        POD_Value,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="podId != null" >
+        #{podId,jdbcType=INTEGER},
+      </if>
+      <if test="poId != null" >
+        #{poId,jdbcType=INTEGER},
+      </if>
+      <if test="podCode != null" >
+        #{podCode,jdbcType=VARCHAR},
+      </if>
+      <if test="podValue != null" >
+        #{podValue,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
+    update pda_order_detail
+    <set >
+      <if test="poId != null" >
+        PO_ID = #{poId,jdbcType=INTEGER},
+      </if>
+      <if test="podCode != null" >
+        POD_Code = #{podCode,jdbcType=VARCHAR},
+      </if>
+      <if test="podValue != null" >
+        POD_Value = #{podValue,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where POD_ID = #{podId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
+    update pda_order_detail
+    set PO_ID = #{poId,jdbcType=INTEGER},
+      POD_Code = #{podCode,jdbcType=VARCHAR},
+      POD_Value = #{podValue,jdbcType=VARCHAR}
+    where POD_ID = #{podId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 232 - 0
ToproPublic/topro-base/src/main/resources/mapper/ExecRecordMapper.xml

@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.xinxin.topro.base.mysqlmapper.ExecRecordMapper" >
+  <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
+    <id column="PO_ID" property="poId" jdbcType="INTEGER" />
+    <result column="PO_PatientNo" property="poPatientno" jdbcType="INTEGER" />
+    <result column="HI_ID" property="hiId" jdbcType="INTEGER" />
+    <result column="DD_DepDm" property="ddDepdm" jdbcType="VARCHAR" />
+    <result column="DW_WardDm" property="dwWarddm" jdbcType="VARCHAR" />
+    <result column="DB_BedNo" property="dbBedno" jdbcType="VARCHAR" />
+    <result column="PO_AdviceGroupCode" property="poAdvicegroupcode" jdbcType="VARCHAR" />
+    <result column="PO_AdviceType" property="poAdvicetype" jdbcType="VARCHAR" />
+    <result column="PO_Operator" property="poOperator" jdbcType="VARCHAR" />
+    <result column="PO_OperatTime" property="poOperattime" jdbcType="TIMESTAMP" />
+    <result column="PO_CheckMan" property="poCheckman" jdbcType="VARCHAR" />
+    <result column="PO_OperatType" property="poOperattype" jdbcType="INTEGER" />
+    <result column="PO_OperatMode" property="poOperatmode" jdbcType="INTEGER" />
+    <result column="PO_IsDel" property="poIsdel" jdbcType="INTEGER" />
+    <result column="PO_AdviceCode" property="poAdvicecode" jdbcType="VARCHAR" />
+    <result column="PO_BarCode" property="poBarcode" jdbcType="VARCHAR" />
+  </resultMap>
+  <sql id="Base_Column_List" >
+    PO_ID, PO_PatientNo, HI_ID, DD_DepDm, DW_WardDm, DB_BedNo, PO_AdviceGroupCode, PO_AdviceType, 
+    PO_Operator, PO_OperatTime, PO_CheckMan, PO_OperatType, PO_OperatMode, PO_IsDel, 
+    PO_AdviceCode, PO_BarCode
+  </sql>
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from pda_order
+    where PO_ID = #{poId,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from pda_order
+    where PO_ID = #{poId,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
+    insert into pda_order (PO_ID, PO_PatientNo, HI_ID, 
+      DD_DepDm, DW_WardDm, DB_BedNo, 
+      PO_AdviceGroupCode, PO_AdviceType, PO_Operator, 
+      PO_OperatTime, PO_CheckMan, PO_OperatType, 
+      PO_OperatMode, PO_IsDel, PO_AdviceCode, 
+      PO_BarCode)
+    values (#{poId,jdbcType=INTEGER}, #{poPatientno,jdbcType=INTEGER}, #{hiId,jdbcType=INTEGER}, 
+      #{ddDepdm,jdbcType=VARCHAR}, #{dwWarddm,jdbcType=VARCHAR}, #{dbBedno,jdbcType=VARCHAR}, 
+      #{poAdvicegroupcode,jdbcType=VARCHAR}, #{poAdvicetype,jdbcType=VARCHAR}, #{poOperator,jdbcType=VARCHAR}, 
+      #{poOperattime,jdbcType=TIMESTAMP}, #{poCheckman,jdbcType=VARCHAR}, #{poOperattype,jdbcType=INTEGER}, 
+      #{poOperatmode,jdbcType=INTEGER}, #{poIsdel,jdbcType=INTEGER}, #{poAdvicecode,jdbcType=VARCHAR}, 
+      #{poBarcode,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
+    insert into pda_order
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="poId != null" >
+        PO_ID,
+      </if>
+      <if test="poPatientno != null" >
+        PO_PatientNo,
+      </if>
+      <if test="hiId != null" >
+        HI_ID,
+      </if>
+      <if test="ddDepdm != null" >
+        DD_DepDm,
+      </if>
+      <if test="dwWarddm != null" >
+        DW_WardDm,
+      </if>
+      <if test="dbBedno != null" >
+        DB_BedNo,
+      </if>
+      <if test="poAdvicegroupcode != null" >
+        PO_AdviceGroupCode,
+      </if>
+      <if test="poAdvicetype != null" >
+        PO_AdviceType,
+      </if>
+      <if test="poOperator != null" >
+        PO_Operator,
+      </if>
+      <if test="poOperattime != null" >
+        PO_OperatTime,
+      </if>
+      <if test="poCheckman != null" >
+        PO_CheckMan,
+      </if>
+      <if test="poOperattype != null" >
+        PO_OperatType,
+      </if>
+      <if test="poOperatmode != null" >
+        PO_OperatMode,
+      </if>
+      <if test="poIsdel != null" >
+        PO_IsDel,
+      </if>
+      <if test="poAdvicecode != null" >
+        PO_AdviceCode,
+      </if>
+      <if test="poBarcode != null" >
+        PO_BarCode,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="poId != null" >
+        #{poId,jdbcType=INTEGER},
+      </if>
+      <if test="poPatientno != null" >
+        #{poPatientno,jdbcType=INTEGER},
+      </if>
+      <if test="hiId != null" >
+        #{hiId,jdbcType=INTEGER},
+      </if>
+      <if test="ddDepdm != null" >
+        #{ddDepdm,jdbcType=VARCHAR},
+      </if>
+      <if test="dwWarddm != null" >
+        #{dwWarddm,jdbcType=VARCHAR},
+      </if>
+      <if test="dbBedno != null" >
+        #{dbBedno,jdbcType=VARCHAR},
+      </if>
+      <if test="poAdvicegroupcode != null" >
+        #{poAdvicegroupcode,jdbcType=VARCHAR},
+      </if>
+      <if test="poAdvicetype != null" >
+        #{poAdvicetype,jdbcType=VARCHAR},
+      </if>
+      <if test="poOperator != null" >
+        #{poOperator,jdbcType=VARCHAR},
+      </if>
+      <if test="poOperattime != null" >
+        #{poOperattime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="poCheckman != null" >
+        #{poCheckman,jdbcType=VARCHAR},
+      </if>
+      <if test="poOperattype != null" >
+        #{poOperattype,jdbcType=INTEGER},
+      </if>
+      <if test="poOperatmode != null" >
+        #{poOperatmode,jdbcType=INTEGER},
+      </if>
+      <if test="poIsdel != null" >
+        #{poIsdel,jdbcType=INTEGER},
+      </if>
+      <if test="poAdvicecode != null" >
+        #{poAdvicecode,jdbcType=VARCHAR},
+      </if>
+      <if test="poBarcode != null" >
+        #{poBarcode,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
+    update pda_order
+    <set >
+      <if test="poPatientno != null" >
+        PO_PatientNo = #{poPatientno,jdbcType=INTEGER},
+      </if>
+      <if test="hiId != null" >
+        HI_ID = #{hiId,jdbcType=INTEGER},
+      </if>
+      <if test="ddDepdm != null" >
+        DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
+      </if>
+      <if test="dwWarddm != null" >
+        DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
+      </if>
+      <if test="dbBedno != null" >
+        DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
+      </if>
+      <if test="poAdvicegroupcode != null" >
+        PO_AdviceGroupCode = #{poAdvicegroupcode,jdbcType=VARCHAR},
+      </if>
+      <if test="poAdvicetype != null" >
+        PO_AdviceType = #{poAdvicetype,jdbcType=VARCHAR},
+      </if>
+      <if test="poOperator != null" >
+        PO_Operator = #{poOperator,jdbcType=VARCHAR},
+      </if>
+      <if test="poOperattime != null" >
+        PO_OperatTime = #{poOperattime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="poCheckman != null" >
+        PO_CheckMan = #{poCheckman,jdbcType=VARCHAR},
+      </if>
+      <if test="poOperattype != null" >
+        PO_OperatType = #{poOperattype,jdbcType=INTEGER},
+      </if>
+      <if test="poOperatmode != null" >
+        PO_OperatMode = #{poOperatmode,jdbcType=INTEGER},
+      </if>
+      <if test="poIsdel != null" >
+        PO_IsDel = #{poIsdel,jdbcType=INTEGER},
+      </if>
+      <if test="poAdvicecode != null" >
+        PO_AdviceCode = #{poAdvicecode,jdbcType=VARCHAR},
+      </if>
+      <if test="poBarcode != null" >
+        PO_BarCode = #{poBarcode,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where PO_ID = #{poId,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecord" >
+    update pda_order
+    set PO_PatientNo = #{poPatientno,jdbcType=INTEGER},
+      HI_ID = #{hiId,jdbcType=INTEGER},
+      DD_DepDm = #{ddDepdm,jdbcType=VARCHAR},
+      DW_WardDm = #{dwWarddm,jdbcType=VARCHAR},
+      DB_BedNo = #{dbBedno,jdbcType=VARCHAR},
+      PO_AdviceGroupCode = #{poAdvicegroupcode,jdbcType=VARCHAR},
+      PO_AdviceType = #{poAdvicetype,jdbcType=VARCHAR},
+      PO_Operator = #{poOperator,jdbcType=VARCHAR},
+      PO_OperatTime = #{poOperattime,jdbcType=TIMESTAMP},
+      PO_CheckMan = #{poCheckman,jdbcType=VARCHAR},
+      PO_OperatType = #{poOperattype,jdbcType=INTEGER},
+      PO_OperatMode = #{poOperatmode,jdbcType=INTEGER},
+      PO_IsDel = #{poIsdel,jdbcType=INTEGER},
+      PO_AdviceCode = #{poAdvicecode,jdbcType=VARCHAR},
+      PO_BarCode = #{poBarcode,jdbcType=VARCHAR}
+    where PO_ID = #{poId,jdbcType=INTEGER}
+  </update>
+
+  <select id="selectByBarCodes" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select
+    <include refid="Base_Column_List" />
+    from pda_order
+    where PO_BarCode in <foreach item='item' index='index' collection='barCodes' open='(' separator=',' close=')'> #{item} </foreach>
+    and PO_OperatType=#{operateType,jdbcType=VARCHAR}
+  </select>
+</mapper>

+ 155 - 0
ToproPublic/topro-base/src/main/resources/mapper/HospitalInfoMapper.xml

@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.xinxin.topro.base.mysqlmapper.HospitalInfoMapper" >
+  <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.HospitalInfo" >
+    <id column="HI_ID" property="hiId" jdbcType="INTEGER" />
+    <result column="HI_Name" property="hiName" jdbcType="VARCHAR" />
+    <result column="HI_ShortName" property="hiShortname" jdbcType="VARCHAR" />
+    <result column="HI_FullName" property="hiFullname" jdbcType="VARCHAR" />
+    <result column="HI_Address" property="hiAddress" jdbcType="VARCHAR" />
+    <result column="HI_Tel" property="hiTel" jdbcType="VARCHAR" />
+    <result column="HI_Intro" property="hiIntro" jdbcType="VARCHAR" />
+    <result column="HI_PinyinCode" property="hiPinyincode" jdbcType="VARCHAR" />
+    <result column="HI_WubiCode" property="hiWubicode" jdbcType="VARCHAR" />
+    <result column="HI_OtherCode" property="hiOthercode" jdbcType="VARCHAR" />
+    <result column="HI_ISDel" property="hiIsdel" jdbcType="INTEGER" />
+    <result column="HI_SupID" property="hiSupid" jdbcType="INTEGER" />
+  </resultMap>
+
+  <sql id="Base_Column_List" >
+    HI_ID, HI_Name, HI_ShortName, HI_FullName, HI_Address, HI_Tel, HI_Intro, HI_PinyinCode, 
+    HI_WubiCode, HI_OtherCode, HI_ISDel, HI_SupID
+  </sql>
+
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+    select 
+    <include refid="Base_Column_List" />
+    from sys_hospitalinfo
+    where HI_ID = #{hiId,jdbcType=INTEGER}
+  </select>
+
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+    delete from sys_hospitalinfo
+    where HI_ID = #{hiId,jdbcType=INTEGER}
+  </delete>
+
+  <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.HospitalInfo" >
+    insert into sys_hospitalinfo
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="hiId != null" >
+        HI_ID,
+      </if>
+      <if test="hiName != null" >
+        HI_Name,
+      </if>
+      <if test="hiShortname != null" >
+        HI_ShortName,
+      </if>
+      <if test="hiFullname != null" >
+        HI_FullName,
+      </if>
+      <if test="hiAddress != null" >
+        HI_Address,
+      </if>
+      <if test="hiTel != null" >
+        HI_Tel,
+      </if>
+      <if test="hiIntro != null" >
+        HI_Intro,
+      </if>
+      <if test="hiPinyincode != null" >
+        HI_PinyinCode,
+      </if>
+      <if test="hiWubicode != null" >
+        HI_WubiCode,
+      </if>
+      <if test="hiOthercode != null" >
+        HI_OtherCode,
+      </if>
+      <if test="hiIsdel != null" >
+        HI_ISDel,
+      </if>
+      <if test="hiSupid != null" >
+        HI_SupID,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="hiId != null" >
+        #{hiId,jdbcType=INTEGER},
+      </if>
+      <if test="hiName != null" >
+        #{hiName,jdbcType=VARCHAR},
+      </if>
+      <if test="hiShortname != null" >
+        #{hiShortname,jdbcType=VARCHAR},
+      </if>
+      <if test="hiFullname != null" >
+        #{hiFullname,jdbcType=VARCHAR},
+      </if>
+      <if test="hiAddress != null" >
+        #{hiAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="hiTel != null" >
+        #{hiTel,jdbcType=VARCHAR},
+      </if>
+      <if test="hiIntro != null" >
+        #{hiIntro,jdbcType=VARCHAR},
+      </if>
+      <if test="hiPinyincode != null" >
+        #{hiPinyincode,jdbcType=VARCHAR},
+      </if>
+      <if test="hiWubicode != null" >
+        #{hiWubicode,jdbcType=VARCHAR},
+      </if>
+      <if test="hiOthercode != null" >
+        #{hiOthercode,jdbcType=VARCHAR},
+      </if>
+      <if test="hiIsdel != null" >
+        #{hiIsdel,jdbcType=INTEGER},
+      </if>
+      <if test="hiSupid != null" >
+        #{hiSupid,jdbcType=INTEGER},
+      </if>
+    </trim>
+  </insert>
+
+  <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.HospitalInfo" >
+    update sys_hospitalinfo
+    <set >
+      <if test="hiName != null" >
+        HI_Name = #{hiName,jdbcType=VARCHAR},
+      </if>
+      <if test="hiShortname != null" >
+        HI_ShortName = #{hiShortname,jdbcType=VARCHAR},
+      </if>
+      <if test="hiFullname != null" >
+        HI_FullName = #{hiFullname,jdbcType=VARCHAR},
+      </if>
+      <if test="hiAddress != null" >
+        HI_Address = #{hiAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="hiTel != null" >
+        HI_Tel = #{hiTel,jdbcType=VARCHAR},
+      </if>
+      <if test="hiIntro != null" >
+        HI_Intro = #{hiIntro,jdbcType=VARCHAR},
+      </if>
+      <if test="hiPinyincode != null" >
+        HI_PinyinCode = #{hiPinyincode,jdbcType=VARCHAR},
+      </if>
+      <if test="hiWubicode != null" >
+        HI_WubiCode = #{hiWubicode,jdbcType=VARCHAR},
+      </if>
+      <if test="hiOthercode != null" >
+        HI_OtherCode = #{hiOthercode,jdbcType=VARCHAR},
+      </if>
+      <if test="hiIsdel != null" >
+        HI_ISDel = #{hiIsdel,jdbcType=INTEGER},
+      </if>
+      <if test="hiSupid != null" >
+        HI_SupID = #{hiSupid,jdbcType=INTEGER},
+      </if>
+    </set>
+    where HI_ID = #{hiId,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 330 - 0
ToproPublic/topro-base/src/main/resources/mapper/OrderInfoMapper.xml

@@ -0,0 +1,330 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.xinxin.topro.base.sqlservermapper.OrderInfoMapper" >
+  <resultMap id="BaseResultMap" type="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
+    <result column="RecordId" property="recordid" jdbcType="INTEGER" />
+    <result column="VisitNo" property="visitno" jdbcType="VARCHAR" />
+    <result column="InfantID" property="infantid" jdbcType="VARCHAR" />
+    <result column="ChartNo" property="chartno" jdbcType="VARCHAR" />
+    <result column="DepartNo" property="departno" jdbcType="VARCHAR" />
+    <result column="DepartName" property="departname" jdbcType="VARCHAR" />
+    <result column="Gender" property="gender" jdbcType="VARCHAR" />
+    <result column="Age" property="age" jdbcType="INTEGER" />
+    <result column="BirthDay" property="birthday" jdbcType="TIMESTAMP" />
+    <result column="DivNo" property="divno" jdbcType="VARCHAR" />
+    <result column="DivName" property="divname" jdbcType="NVARCHAR" />
+    <result column="BedNo" property="bedno" jdbcType="VARCHAR" />
+    <result column="AdmitTime" property="admittime" jdbcType="TIMESTAMP" />
+    <result column="IdNo" property="idno" jdbcType="VARCHAR" />
+    <result column="PhyDoctor" property="phydoctor" jdbcType="VARCHAR" />
+    <result column="OrderNo" property="orderno" jdbcType="VARCHAR" />
+    <result column="OrderUser" property="orderuser" jdbcType="VARCHAR" />
+    <result column="OrderTime" property="ordertime" jdbcType="TIMESTAMP" />
+    <result column="PreExecTime" property="preexectime" jdbcType="TIMESTAMP" />
+    <result column="PreExecLocName" property="preexeclocname" jdbcType="VARCHAR" />
+    <result column="PreExecBed" property="preexecbed" jdbcType="VARCHAR" />
+    <result column="ExecTime" property="exectime" jdbcType="TIMESTAMP" />
+    <result column="ExecLocName" property="execlocname" jdbcType="VARCHAR" />
+    <result column="ItemNo" property="itemno" jdbcType="VARCHAR" />
+    <result column="Dose" property="dose" jdbcType="DECIMAL" />
+    <result column="DoseUnit" property="doseunit" jdbcType="VARCHAR" />
+    <result column="WayType" property="waytype" jdbcType="VARCHAR" />
+    <result column="WayName" property="wayname" jdbcType="VARCHAR" />
+    <result column="ItemCode" property="itemcode" jdbcType="VARCHAR" />
+    <result column="ItemName" property="itemname" jdbcType="VARCHAR" />
+    <result column="OrderType" property="ordertype" jdbcType="INTEGER" />
+    <result column="BigType" property="bigtype" jdbcType="VARCHAR" />
+    <result column="PairItemNo" property="pairitemno" jdbcType="VARCHAR" />
+    <result column="Rate" property="rate" jdbcType="VARCHAR" />
+    <result column="RateUnit" property="rateunit" jdbcType="VARCHAR" />
+    <result column="TakeMedWay" property="takemedway" jdbcType="VARCHAR" />
+    <result column="Usage" property="usage" jdbcType="VARCHAR" />
+    <result column="LongOrTempFlag" property="longortempflag" jdbcType="INTEGER" />
+    <result column="ExecStatus" property="execstatus" jdbcType="INTEGER" />
+    <result column="BloodStatus" property="bloodstatus" jdbcType="INTEGER" />
+    <result column="DrugBarCode" property="drugbarcode" jdbcType="VARCHAR" />
+  </resultMap>
+  <insert id="insert" parameterType="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
+    insert into V_OrderInfo (RecordId, VisitNo, InfantID, 
+      ChartNo, DepartNo, DepartName, 
+      Gender, Age, BirthDay, 
+      DivNo, DivName, BedNo, 
+      AdmitTime, IdNo, PhyDoctor, 
+      OrderNo, OrderUser, OrderTime, 
+      PreExecTime, PreExecLocName, PreExecBed, 
+      ExecTime, ExecLocName, ItemNo, 
+      Dose, DoseUnit, WayType, 
+      WayName, ItemCode, ItemName, 
+      OrderType, BigType, PairItemNo, 
+      Rate, RateUnit, TakeMedWay, 
+      Usage, LongOrTempFlag, ExecStatus, 
+      BloodStatus, DrugBarCode)
+    values (#{recordid,jdbcType=INTEGER}, #{visitno,jdbcType=VARCHAR}, #{infantid,jdbcType=VARCHAR}, 
+      #{chartno,jdbcType=VARCHAR}, #{departno,jdbcType=VARCHAR}, #{departname,jdbcType=VARCHAR}, 
+      #{gender,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, #{birthday,jdbcType=TIMESTAMP}, 
+      #{divno,jdbcType=VARCHAR}, #{divname,jdbcType=NVARCHAR}, #{bedno,jdbcType=VARCHAR}, 
+      #{admittime,jdbcType=TIMESTAMP}, #{idno,jdbcType=VARCHAR}, #{phydoctor,jdbcType=VARCHAR}, 
+      #{orderno,jdbcType=VARCHAR}, #{orderuser,jdbcType=VARCHAR}, #{ordertime,jdbcType=TIMESTAMP}, 
+      #{preexectime,jdbcType=TIMESTAMP}, #{preexeclocname,jdbcType=VARCHAR}, #{preexecbed,jdbcType=VARCHAR}, 
+      #{exectime,jdbcType=TIMESTAMP}, #{execlocname,jdbcType=VARCHAR}, #{itemno,jdbcType=VARCHAR}, 
+      #{dose,jdbcType=DECIMAL}, #{doseunit,jdbcType=VARCHAR}, #{waytype,jdbcType=VARCHAR}, 
+      #{wayname,jdbcType=VARCHAR}, #{itemcode,jdbcType=VARCHAR}, #{itemname,jdbcType=VARCHAR}, 
+      #{ordertype,jdbcType=INTEGER}, #{bigtype,jdbcType=VARCHAR}, #{pairitemno,jdbcType=VARCHAR}, 
+      #{rate,jdbcType=VARCHAR}, #{rateunit,jdbcType=VARCHAR}, #{takemedway,jdbcType=VARCHAR}, 
+      #{usage,jdbcType=VARCHAR}, #{longortempflag,jdbcType=INTEGER}, #{execstatus,jdbcType=INTEGER}, 
+      #{bloodstatus,jdbcType=INTEGER}, #{drugbarcode,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.xinxin.topro.base.sqlservermodel.OrderInfo" >
+    insert into V_OrderInfo
+    <trim prefix="(" suffix=")" suffixOverrides="," >
+      <if test="recordid != null" >
+        RecordId,
+      </if>
+      <if test="visitno != null" >
+        VisitNo,
+      </if>
+      <if test="infantid != null" >
+        InfantID,
+      </if>
+      <if test="chartno != null" >
+        ChartNo,
+      </if>
+      <if test="departno != null" >
+        DepartNo,
+      </if>
+      <if test="departname != null" >
+        DepartName,
+      </if>
+      <if test="gender != null" >
+        Gender,
+      </if>
+      <if test="age != null" >
+        Age,
+      </if>
+      <if test="birthday != null" >
+        BirthDay,
+      </if>
+      <if test="divno != null" >
+        DivNo,
+      </if>
+      <if test="divname != null" >
+        DivName,
+      </if>
+      <if test="bedno != null" >
+        BedNo,
+      </if>
+      <if test="admittime != null" >
+        AdmitTime,
+      </if>
+      <if test="idno != null" >
+        IdNo,
+      </if>
+      <if test="phydoctor != null" >
+        PhyDoctor,
+      </if>
+      <if test="orderno != null" >
+        OrderNo,
+      </if>
+      <if test="orderuser != null" >
+        OrderUser,
+      </if>
+      <if test="ordertime != null" >
+        OrderTime,
+      </if>
+      <if test="preexectime != null" >
+        PreExecTime,
+      </if>
+      <if test="preexeclocname != null" >
+        PreExecLocName,
+      </if>
+      <if test="preexecbed != null" >
+        PreExecBed,
+      </if>
+      <if test="exectime != null" >
+        ExecTime,
+      </if>
+      <if test="execlocname != null" >
+        ExecLocName,
+      </if>
+      <if test="itemno != null" >
+        ItemNo,
+      </if>
+      <if test="dose != null" >
+        Dose,
+      </if>
+      <if test="doseunit != null" >
+        DoseUnit,
+      </if>
+      <if test="waytype != null" >
+        WayType,
+      </if>
+      <if test="wayname != null" >
+        WayName,
+      </if>
+      <if test="itemcode != null" >
+        ItemCode,
+      </if>
+      <if test="itemname != null" >
+        ItemName,
+      </if>
+      <if test="ordertype != null" >
+        OrderType,
+      </if>
+      <if test="bigtype != null" >
+        BigType,
+      </if>
+      <if test="pairitemno != null" >
+        PairItemNo,
+      </if>
+      <if test="rate != null" >
+        Rate,
+      </if>
+      <if test="rateunit != null" >
+        RateUnit,
+      </if>
+      <if test="takemedway != null" >
+        TakeMedWay,
+      </if>
+      <if test="usage != null" >
+        Usage,
+      </if>
+      <if test="longortempflag != null" >
+        LongOrTempFlag,
+      </if>
+      <if test="execstatus != null" >
+        ExecStatus,
+      </if>
+      <if test="bloodstatus != null" >
+        BloodStatus,
+      </if>
+      <if test="drugbarcode != null" >
+        DrugBarCode,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
+      <if test="recordid != null" >
+        #{recordid,jdbcType=INTEGER},
+      </if>
+      <if test="visitno != null" >
+        #{visitno,jdbcType=VARCHAR},
+      </if>
+      <if test="infantid != null" >
+        #{infantid,jdbcType=VARCHAR},
+      </if>
+      <if test="chartno != null" >
+        #{chartno,jdbcType=VARCHAR},
+      </if>
+      <if test="departno != null" >
+        #{departno,jdbcType=VARCHAR},
+      </if>
+      <if test="departname != null" >
+        #{departname,jdbcType=VARCHAR},
+      </if>
+      <if test="gender != null" >
+        #{gender,jdbcType=VARCHAR},
+      </if>
+      <if test="age != null" >
+        #{age,jdbcType=INTEGER},
+      </if>
+      <if test="birthday != null" >
+        #{birthday,jdbcType=TIMESTAMP},
+      </if>
+      <if test="divno != null" >
+        #{divno,jdbcType=VARCHAR},
+      </if>
+      <if test="divname != null" >
+        #{divname,jdbcType=NVARCHAR},
+      </if>
+      <if test="bedno != null" >
+        #{bedno,jdbcType=VARCHAR},
+      </if>
+      <if test="admittime != null" >
+        #{admittime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="idno != null" >
+        #{idno,jdbcType=VARCHAR},
+      </if>
+      <if test="phydoctor != null" >
+        #{phydoctor,jdbcType=VARCHAR},
+      </if>
+      <if test="orderno != null" >
+        #{orderno,jdbcType=VARCHAR},
+      </if>
+      <if test="orderuser != null" >
+        #{orderuser,jdbcType=VARCHAR},
+      </if>
+      <if test="ordertime != null" >
+        #{ordertime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="preexectime != null" >
+        #{preexectime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="preexeclocname != null" >
+        #{preexeclocname,jdbcType=VARCHAR},
+      </if>
+      <if test="preexecbed != null" >
+        #{preexecbed,jdbcType=VARCHAR},
+      </if>
+      <if test="exectime != null" >
+        #{exectime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="execlocname != null" >
+        #{execlocname,jdbcType=VARCHAR},
+      </if>
+      <if test="itemno != null" >
+        #{itemno,jdbcType=VARCHAR},
+      </if>
+      <if test="dose != null" >
+        #{dose,jdbcType=DECIMAL},
+      </if>
+      <if test="doseunit != null" >
+        #{doseunit,jdbcType=VARCHAR},
+      </if>
+      <if test="waytype != null" >
+        #{waytype,jdbcType=VARCHAR},
+      </if>
+      <if test="wayname != null" >
+        #{wayname,jdbcType=VARCHAR},
+      </if>
+      <if test="itemcode != null" >
+        #{itemcode,jdbcType=VARCHAR},
+      </if>
+      <if test="itemname != null" >
+        #{itemname,jdbcType=VARCHAR},
+      </if>
+      <if test="ordertype != null" >
+        #{ordertype,jdbcType=INTEGER},
+      </if>
+      <if test="bigtype != null" >
+        #{bigtype,jdbcType=VARCHAR},
+      </if>
+      <if test="pairitemno != null" >
+        #{pairitemno,jdbcType=VARCHAR},
+      </if>
+      <if test="rate != null" >
+        #{rate,jdbcType=VARCHAR},
+      </if>
+      <if test="rateunit != null" >
+        #{rateunit,jdbcType=VARCHAR},
+      </if>
+      <if test="takemedway != null" >
+        #{takemedway,jdbcType=VARCHAR},
+      </if>
+      <if test="usage != null" >
+        #{usage,jdbcType=VARCHAR},
+      </if>
+      <if test="longortempflag != null" >
+        #{longortempflag,jdbcType=INTEGER},
+      </if>
+      <if test="execstatus != null" >
+        #{execstatus,jdbcType=INTEGER},
+      </if>
+      <if test="bloodstatus != null" >
+        #{bloodstatus,jdbcType=INTEGER},
+      </if>
+      <if test="drugbarcode != null" >
+        #{drugbarcode,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+</mapper>

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor