Commit 7abf8fdb authored by 吴霞's avatar 吴霞

后台数据缓存

parents
Pipeline #45 canceled with stages
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="data-plat" />
</profile>
</annotationProcessing>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal">
<data-source name="shchyy@122.112.217.71" uuid="ddca05be-75a2-47e3-a60e-52a8f15763f3">
<database-info product="MySQL" version="5.7.25-3-log" jdbc-version="4.0" driver-name="MySQL Connector Java" driver-version="mysql-connector-java-5.1.47 ( Revision: fe1903b1ecb4a96a917f7ed3190d80c049b1de29 )" family="MYSQL" exact-version="5.7.25">
<extra-name-characters>#@</extra-name-characters>
<identifier-quote-string>`</identifier-quote-string>
</database-info>
<case-sensitivity plain-identifiers="lower" quoted-identifiers="lower" />
<secret-storage>master_key</secret-storage>
<user-name>chyy_demo</user-name>
<introspection-schemas>*:@</introspection-schemas>
</data-source>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="shchyy@122.112.217.71" uuid="ddca05be-75a2-47e3-a60e-52a8f15763f3">
<driver-ref>mysql</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>com.mysql.jdbc.Driver</jdbc-driver>
<jdbc-url>jdbc:mysql://122.112.217.71:3306/shchyy</jdbc-url>
<driver-properties>
<property name="autoReconnect" value="true" />
<property name="zeroDateTimeBehavior" value="convertToNull" />
<property name="tinyInt1isBit" value="false" />
<property name="characterEncoding" value="utf8" />
<property name="characterSetResults" value="utf8" />
<property name="yearIsDateType" value="false" />
</driver-properties>
</data-source>
</component>
</project>
\ No newline at end of file
<component name="ProjectDictionaryState">
<dictionary name="1">
<words>
<w>atrophic</w>
<w>esophagitis</w>
<w>gastroscopy</w>
</words>
</dictionary>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="JavaDoc" enabled="true" level="WARNING" enabled_by_default="true">
<option name="TOP_LEVEL_CLASS_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="INNER_CLASS_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="METHOD_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="@return@param@throws or @exception" />
</value>
</option>
<option name="FIELD_OPTIONS">
<value>
<option name="ACCESS_JAVADOC_REQUIRED_FOR" value="none" />
<option name="REQUIRED_TAGS" value="" />
</value>
</option>
<option name="IGNORE_DEPRECATED" value="false" />
<option name="IGNORE_JAVADOC_PERIOD" value="true" />
<option name="IGNORE_DUPLICATED_THROWS" value="false" />
<option name="IGNORE_POINT_TO_ITSELF" value="false" />
<option name="myAdditionalJavadocTags" value="date,description" />
</inspection_tool>
</profile>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="SqlDialectMappings">
<file url="PROJECT" dialect="MySQL" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>data-plat</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4" />
\ No newline at end of file
<?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>dataplat</groupId>
<artifactId>dataplat</artifactId>
<version>1.0-SNAPSHOT</version>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.3.RELEASE</version>
<relativePath />
</parent>
<properties>
<spring-boot-web.version>LATEST</spring-boot-web.version>
<mybatis-plus-starter.version>LATEST</mybatis-plus-starter.version>
<mybatis-plus.version>LATEST</mybatis-plus.version>
<mysql.connector.version>LATEST</mysql.connector.version>
<jdbc.version>LATEST</jdbc.version>
<lombok.version>LATEST</lombok.version>
<hutool.version>LATEST</hutool.version>
<fastjson.version>LATEST</fastjson.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot-web.version}</version>
</dependency>
<!-- lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
<version>${lombok.version}</version>
</dependency>
<!-- mybatis-plus -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus-starter.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<!-- mysql -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.connector.version}</version>
</dependency>
<!-- JDBC -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>${jdbc.version}</version>
</dependency>
<!--hu tool -->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
<!-- fast json -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<!--开启 cache 缓存 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
<!-- ehcache 缓存 -->
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
</dependency>
<!--<dependency> -->
<!--<groupId>com.huawei.paas.cse</groupId> -->
<!--<artifactId>cse-solution-service-engine</artifactId> -->
<!--<exclusions> -->
<!--<exclusion> -->
<!--<groupId>org.slf4j</groupId> -->
<!--<artifactId>slf4j-log4j12</artifactId> -->
<!--</exclusion> -->
<!--</exclusions> -->
<!--</dependency> -->
<!--<dependency> -->
<!--<groupId>org.apache.servicecomb</groupId> -->
<!--<artifactId>spring-boot-starter-provider</artifactId> -->
<!--</dependency> -->
</dependencies>
<!--<dependencyManagement> -->
<!--<dependencies> -->
<!--<dependency> -->
<!--<groupId>org.apache.servicecomb</groupId> -->
<!--<artifactId>java-chassis-dependencies-springboot2</artifactId> -->
<!--<version>1.1.0.B018</version> -->
<!--<type>pom</type> -->
<!--<scope>import</scope> -->
<!--</dependency> -->
<!--<dependency> -->
<!--<groupId>com.huawei.paas.cse</groupId> -->
<!--<artifactId>cse-dependency</artifactId> -->
<!--<version>2.3.46</version> -->
<!--<type>pom</type> -->
<!--<scope>import</scope> -->
<!--</dependency> -->
<!--</dependencies> -->
<!--</dependencyManagement> -->
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
</build>
</project>
\ No newline at end of file
package com.sict.data;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
/**
* @description
*
* @author Jxy
* @date Create in 16:25 2019/10/16
*/
// @EnableServiceComb
@EnableCaching
@SpringBootApplication
@MapperScan(basePackages = "com.sict.data.mapper")
public class DataPlatApplication {
public static void main(String[] args) {
SpringApplication.run(DataPlatApplication.class, args);
}
}
package com.sict.data.config;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.cors.CorsConfiguration;
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
import org.springframework.web.filter.CorsFilter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/**
* @description
*
* @author Jxy
* @date Create in 15:57 2019/10/23
*/
@Configuration
public class CorsFilterConfig {
@Bean
public FilterRegistrationBean<CorsFilter> corsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
ArrayList<String> objects = new ArrayList<>();
objects.add("*");
config.setAllowedOrigins(objects);
config.setAllowedHeaders(objects);
config.setAllowedMethods(objects);
// source.registerCorsConfiguration("/**", config);
Map<String, CorsConfiguration> corsConfigurations = new HashMap<>(1);
corsConfigurations.put("/**", config);
source.setCorsConfigurations(corsConfigurations);
FilterRegistrationBean<CorsFilter> bean = new FilterRegistrationBean<>(new CorsFilter(source));
bean.setOrder(0);
return bean;
}
}
package com.sict.data.controller;
import com.sict.data.utils.MsgEnum;
import com.sict.data.service.IDataPlatService;
import com.sict.data.utils.ResponseUtil;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @description 前端控制器
*
* @author Jxy
* @date 2019-10-16
*/
@AllArgsConstructor
@Slf4j
@RestController
@RequestMapping("/data-plat")
public class DataPlatController {
private final IDataPlatService dataPlatService;
/**
* @description 获取各医联体下筛查人数排行榜(取前30个医联体)
*
* @author Jxy
* @date 13:55 2019/10/17
* @return com.sict.data.dto.ScreeningDTO
*/
@GetMapping("/screening/rank")
public MsgEnum getScreeningRank() {
try {
return ResponseUtil.success(dataPlatService.getScreeningRank());
} catch (Exception e) {
log.error("获取各医联体下筛查人数排行榜失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取各医联体下筛查人数排行榜失败!");
}
}
/**
* @description 获取血清检测人次统计结果(省份)
*
* @author Jxy
* @date 10:32 2019/10/18
* @return com.sict.data.utils.MsgEnum
*/
@GetMapping("/serum/statistics")
public MsgEnum getSerumStatistics() {
try {
return ResponseUtil.success(dataPlatService.getSerumStatistics());
} catch (Exception e) {
log.error("获取省份血检人次统计结果失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取省份血检人次统计结果失败!");
}
}
/**
* @description 获取胃镜检查人次统计结果(省份)
*
* @author Jxy
* @date 14:22 2019/10/18
* @return com.sict.data.utils.MsgEnum
*/
@GetMapping("/gastroscopy/statistics")
public MsgEnum getGastroscopyStatistics() {
try {
return ResponseUtil.success(dataPlatService.getGastroscopyStatistics());
} catch (Exception e) {
log.error("获取省份胃镜检查人次统计结果失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取省份胃镜检查人次统计结果失败!");
}
}
/**
* @description 获取筛查人次统计结果(省份)
*
* @author Jxy
* @date 11:20 2019/10/21
* @return com.sict.data.utils.MsgEnum
*/
@GetMapping("/screening/statistics")
public MsgEnum getScreeningStatistics() {
try {
return ResponseUtil.success(dataPlatService.getScreeningStatistics());
} catch (Exception e) {
log.error("获取省份筛查人次统计结果失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取省份筛查人次统计结果失败!");
}
}
/**
* @description 获取胃镜精查最终诊断异常统计结果
*
* @author Jxy
* @date 13:50 2019/10/21
* @return com.sict.data.utils.MsgEnum
*/
@GetMapping("/result/statistics")
public MsgEnum getGastroscopyDetailResultStatistics() {
try {
return ResponseUtil.success(dataPlatService.getGastroscopyDetailResultStatistics());
} catch (Exception e) {
log.error("获取胃镜精查最终诊断异常统计结果失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取胃镜精查最终诊断异常统计结果失败!");
}
}
/**
* @description 获取患病风险等级评估统计
*
* @author Jxy
* @date 16:24 2019/10/22
* @return com.sict.data.utils.MsgEnum
*/
@GetMapping("/risk/statistics")
public MsgEnum getRiskAssessStatistics() {
try {
return ResponseUtil.success(dataPlatService.getRiskAssessStatistics());
} catch (Exception e) {
log.error("获取患病风险等级评估统计结果失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取患病风险等级评估统计结果失败!");
}
}
/**
* @description 获取胃镜精查统计结果
*
* @author Jxy
* @date 10:31 2019/10/23
* @return com.sict.data.utils.MsgEnum
*/
@GetMapping("/detail/statistics")
public MsgEnum getGastroscopyDetailStatistics() {
try {
return ResponseUtil.success(dataPlatService.getGastroscopyDetailStatistics());
} catch (Exception e) {
log.error("获取胃镜精查统计结果失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取胃镜精查统计结果失败!");
}
}
/**
* @description 获取综合统计结果
*
* @author Jxy
* @date 17:05 2019/10/25
* @return com.sict.data.utils.MsgEnum
*/
@GetMapping("/complex/statistics")
public MsgEnum getComplexStatistics() {
try {
return ResponseUtil.success(dataPlatService.getComplexStatistics());
} catch (Exception e) {
log.error("获取综合统计结果失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取综合统计结果失败!");
}
}
/**
* @description 获取医院相关统计(申请数、认证数、开展筛查数)
*
* @author Jxy
* @date 10:29 2019/10/28
* @return com.sict.data.utils.MsgEnum
*/
@GetMapping("/hosp/statistics")
public MsgEnum getHospStatistics() {
try {
return ResponseUtil.success(dataPlatService.getHospStatistics());
} catch (Exception e) {
log.error("获取医院相关统计(申请数、认证数、开展筛查数)失败。错误信息:【{}】,错误详情:【{}】", e.toString(), e.getMessage());
return ResponseUtil.error(e.toString(), "获取医院相关统计(申请数、认证数、开展筛查数)失败!");
}
}
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 综合统计结果
*
* @author Jxy
* @date Create in 17:07 2019/10/25
*/
@Data
public class ComplexResultDTO {
/**
* 血检总人次
*/
private Integer serumActualTotal;
/**
* HP抗体(IGG)检测阳性总人次
*/
private Integer iggPositive;
/**
* 应精查人次
*/
private Integer gastroscopyDetailTotal;
/**
* 实际精查人次
*/
private Integer gastroscopyDetailActual;
/**
* 高级别上皮内瘤变患者总人次统计
*/
private Integer highEsophagusTumor;
/**
* 早期食管癌患者总人次统计
*/
private Integer earlyEsophagealCancer;
/**
* 早期胃癌患者人次统计
*/
private Integer earlyGastricCancer;
/**
* 萎缩性胃炎患者总人次统计
*/
private Integer atrophicGastritis;
/**
* 胃溃疡患者总人次统计
*/
private Integer stomachUlcer;
/**
* 胃息肉患者总人次统计
*/
private Integer gastricPolyp;
/**
* 申请医院
*/
private Integer applyHosp;
/**
* 认证医院
*/
private Integer certifiedHosp;
/**
* 开展筛查医院
*/
private Integer screeningHosp;
/**
* 筛查总人次统计
*/
private Integer screeningTotal;
}
package com.sict.data.dto;
import lombok.Data;
import java.util.List;
/**
* @description 胃镜检查结果统计
*
* @author Jxy
* @date Create in 14:34 2019/10/18
*/
@Data
public class GastroscopyDTO {
/**
* 胃镜检查总人次
*/
private Integer gastroscopyTotal;
/**
* 计划胃镜检查人次
*/
private Integer gastroscopyPlan;
/**
* 实际胃镜检查人次
*/
private Integer gastroscopyActual;
/**
* 胃镜精检总人次
*/
private Integer gastroscopyDetail;
/**
* 早癌患者总数
*/
private Integer earlyCancer;
/**
* 各省份胃镜检查结果统计集合
*/
private List<ProvinceGastroscopyDTO> dtoList;
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 胃镜精查患者人次统计
*
* @author Jxy
* @date Create in 10:33 2019/10/23
*/
@Data
public class GastroscopyDetailDTO {
/**
* 应精查人次
*/
private Integer total;
/**
* 实际精查人次
*/
private Integer actual;
}
package com.sict.data.dto;
import lombok.Data;
import java.util.List;
/**
* @description 胃镜精查最终诊断结果患者总人次统计
*
* @author Jxy
* @date Create in 16:09 2019/10/21
*/
@Data
public class GastroscopyResultDTO {
/**
* 诊断结果异常总人次
*/
private Integer total;
/**
* 食管粘膜上皮内瘤变患者总人次统计
*/
private Integer esophagusTumor;
/**
* 早期食管癌患者总人次统计
*/
private Integer earlyEsophagealCancer;
/**
* 进展期食管癌患者总人次统计
*/
private Integer progressEsophagealCancer;
/**
* Barret食管患者总人次统计
*/
private Integer barretEsophagus;
/**
* 反流性食管炎患者总人次统计
*/
private Integer refluxEsophagitis;
/**
* 胃粘膜上皮内瘤变患者总人次统计
*/
private Integer gastricMucosaTumor;
/**
* 早期胃癌患者人次统计
*/
private Integer earlyGastricCancer;
/**
* 进展期胃癌患者总人次统计
*/
private Integer progressGastricCancer;
/**
* 萎缩性胃炎患者总人次统计
*/
private Integer atrophicGastritis;
/**
* 胃溃疡患者总人次统计
*/
private Integer stomachUlcer;
/**
* 胃息肉患者总人次统计
*/
private Integer gastricPolyp;
/**
* 非萎缩性胃炎患者总人次统计
*/
private Integer nonAtrophicGastritis;
/**
* 十二指肠球部溃疡患者总人次统计
*/
private Integer duodenalUlcer;
/**
* 其它病变患者总人次统计
*/
private Integer others;
/**
* 高级别上皮内瘤变患者总人次统计
*/
private Integer highEsophagusTumor;
/**
* 省份胃镜精查最终诊断结果异常患者人次统计集合
*/
private List<ProvinceGastroscopyResultDTO> dtoList;
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 医联体筛查结果统计
*
* @author Jxy
* @date Create in 10:14 2019/10/17
*/
@Data
public class HospScreeningDTO {
/**
* 医联体编号
*/
private String hospNum;
/**
* 医联体名称
*/
private String hospName;
/**
* 筛查患者数量(审核 + 未审核)
*/
private Integer hospScreeningTotal;
/**
* 申请筛查患者数量(未审核)
*/
private Integer hospApplyScreeningTotal;
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 申请医院、认证医院、开展筛查医院 相关统计
*
* @author Jxy
* @date Create in 10:25 2019/10/28
*/
@Data
public class HospStatisticsDTO {
/**
* 申请医院
*/
private Integer applyHosp;
/**
* 认证医院
*/
private Integer certifiedHosp;
/**
* 开展筛查医院
*/
private Integer screeningHosp;
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 省份胃镜检查结果统计
*
* @author Jxy
* @date Create in 14:27 2019/10/18
*/
@Data
public class ProvinceGastroscopyDTO {
/**
* 省份名称
*/
private String provinceName;
/**
* 省份胃镜检查总人次
*/
private Integer gastroscopyTotal;
/**
* 省份计划胃镜检查人次
*/
private Integer gastroscopyPlan;
/**
* 省份实际胃镜检查人次
*/
private Integer gastroscopyActual;
/**
* 省份胃镜精查人次
*/
private Integer gastroscopyDetail;
/**
* 省份早癌患者数
*/
private Integer earlyCancer;
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 省份胃镜精查最终诊断结果异常患者人次统计
*
* @author Jxy
* @date Create in 15:36 2019/10/21
*/
@Data
public class ProvinceGastroscopyResultDTO {
/**
* 省份名称
*/
private String provinceName;
/**
* 省份诊断结果异常总人次
*/
private Integer total;
/**
* 省份食管粘膜上皮内瘤变患者人次统计
*/
private Integer esophagusTumor;
/**
* 省份早期食管癌患者人次统计
*/
private Integer earlyEsophagealCancer;
/**
* 省份进展期食管癌患者人次统计
*/
private Integer progressEsophagealCancer;
/**
* 省份Barret食管患者人次统计
*/
private Integer barretEsophagus;
/**
* 省份反流性食管炎患者人次统计
*/
private Integer refluxEsophagitis;
/**
* 省份胃粘膜上皮内瘤变患者人次统计
*/
private Integer gastricMucosaTumor;
/**
* 省份早期胃癌患者人次统计
*/
private Integer earlyGastricCancer;
/**
* 省份进展期胃癌患者人次统计
*/
private Integer progressGastricCancer;
/**
* 省份萎缩性胃炎患者人次统计
*/
private Integer atrophicGastritis;
/**
* 省份胃溃疡患者人次统计
*/
private Integer stomachUlcer;
/**
* 省份胃息肉患者人次统计
*/
private Integer gastricPolyp;
/**
* 省份非萎缩性胃炎患者人次统计
*/
private Integer nonAtrophicGastritis;
/**
* 省份十二指肠球部溃疡患者人次统计
*/
private Integer duodenalUlcer;
/**
* 省份其它病变患者人次统计
*/
private Integer others;
/**
* 省份高级别上皮内瘤变患者人次统计
*/
private Integer highEsophagusTumor;
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 省份筛查结果统计
*
* @author Jxy
* @date Create in 10:14 2019/10/17
*/
@Data
public class ProvinceScreeningDTO {
/**
* 省份名称
*/
private String provinceName;
/**
* 省份筛查患者数量(审核 + 未审核)
*/
private Integer provinceScreeningTotal;
/**
* 省份申请筛查患者数量(未审核)
*/
private Integer provinceApplyScreeningTotal;
/**
* 省份医院申请数量
*/
private Integer hospApply;
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 省份血检结果统计
*
* @author Jxy
* @date Create in 10:34 2019/10/18
*/
@Data
public class ProvinceSerumDTO {
/**
* 省份名称
*/
private String provinceName;
/**
* 省份血检总人次
*/
private Integer serumTestTotal;
/**
* 省份计划血检人次
*/
private Integer serumTestPlan;
/**
* 省份实际血检人次
*/
private Integer serumTestActual;
/**
* 省份HP抗体(IGG)检测阳性总人次
*/
private Integer iggPositive;
/**
* 省份早癌患者数
*/
private Integer earlyCancer;
}
package com.sict.data.dto;
import lombok.Data;
/**
* @description 患病风险等级评估统计
*
* @author Jxy
* @date Create in 14:46 2019/10/22
*/
@Data
public class RiskAssessDTO {
/**
* 高风险人次
*/
private Integer highRisk;
/**
* 中风险人次
*/
private Integer mediumRisk;
/**
* 低风险人次
*/
private Integer lowRisk;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment