Compare commits
	
		
			5 Commits
		
	
	
		
			771f4108c2
			...
			feature-Ga
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 43b498de04 | |||
| 547de1727d | |||
| 9bb3c0dd85 | |||
| 01d76a9f21 | |||
| ef8f8db904 | 
@@ -6,7 +6,7 @@
 | 
			
		||||
 | 
			
		||||
  <groupId>com.cpic.xim</groupId>
 | 
			
		||||
  <artifactId>cpicxim-XMNHSA-repeater</artifactId>
 | 
			
		||||
  <version>v20250314</version>
 | 
			
		||||
  <version>v20250526</version>
 | 
			
		||||
 | 
			
		||||
  <name>cpicxim-XMNHSA-repeater</name>
 | 
			
		||||
  <!-- FIXME change it to the project's website -->
 | 
			
		||||
 
 | 
			
		||||
@@ -57,6 +57,7 @@ public class HuixiabaoConfig
 | 
			
		||||
    private static final int SLEEP_SECONDS         = 10;
 | 
			
		||||
 | 
			
		||||
    private static final String url       = "http://172.18.1.150:9040/h3c/new/api/gafe/rest";
 | 
			
		||||
    // private static final String url       = "http://172.16.39.44:9040/h3c/new/api/gafe/rest";
 | 
			
		||||
    private static final String appid     = "hxb-tb";
 | 
			
		||||
    private static final String appSecret = "60F468FB46170DD4CF6CBECE215DBFC0";
 | 
			
		||||
    private static final String funId     = "XY00.00.00.03";
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +1,13 @@
 | 
			
		||||
<Configuration status="WARN" monitorInterval="300">
 | 
			
		||||
    <Appenders>
 | 
			
		||||
        <Console name="Console" target="SYSTEM_OUT">
 | 
			
		||||
            <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} ### %msg%n" />
 | 
			
		||||
            <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5level %logger{36} ### %msg%n" />
 | 
			
		||||
            <ThresholdFilter level="trace" onMatch="ACCEPT" onMismatch="DENY" />
 | 
			
		||||
        </Console>
 | 
			
		||||
        <RollingFile name="rolling_file_win" 
 | 
			
		||||
            filePattern="./logs/huixiabao/$${date:yyyy-MM}/huixiabao-%d{MM-dd-yyyy}-%i.log.gz">
 | 
			
		||||
            <PatternLayout>
 | 
			
		||||
                <Pattern>[%t][%level][%d{HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
 | 
			
		||||
                <Pattern>[%t][%level][%d{yyyy-MM-dd HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
 | 
			
		||||
            </PatternLayout>
 | 
			
		||||
            <Policies>
 | 
			
		||||
                <TimeBasedTriggeringPolicy interval="1" />
 | 
			
		||||
@@ -18,7 +18,7 @@
 | 
			
		||||
        <RollingFile name="rolling_file_linux"
 | 
			
		||||
            filePattern="/logs/huixiabao/$${date:yyyy-MM}/app-%d{MM-dd-yyyy}-%i.log.gz">
 | 
			
		||||
            <PatternLayout>
 | 
			
		||||
                <Pattern>[%t][%level][%d{HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
 | 
			
		||||
                <Pattern>[%t][%level][%d{yyyy-MM-dd HH:mm:ss.SSS}][%logger.%M{36}#%L] %msg%n</Pattern>
 | 
			
		||||
            </PatternLayout>
 | 
			
		||||
            <Policies>
 | 
			
		||||
                <TimeBasedTriggeringPolicy interval="1" />
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,3 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2025-03-16 00:35:09
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @FilePath: /cpicxim-huixiabao/.vscode/fileheader.template.js
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2023} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
/**
 | 
			
		||||
 * This file is generated by VSCode extension: Fileheader Pro
 | 
			
		||||
 */
 | 
			
		||||
@@ -71,14 +62,14 @@ class CustomLanguageProvider extends globalThis.FileheaderLanguageProvider {
 | 
			
		||||
    // prettier-ignore
 | 
			
		||||
    return tpl
 | 
			
		||||
`/**
 | 
			
		||||
 * @Author:        ${variables.authorName} <${variables.authorEmail}>
 | 
			
		||||
 * @Date:          ${variables.birthtime}
 | 
			
		||||
 * @LastEditors:   ${variables.userName}
 | 
			
		||||
 * @LastModified:  ${variables.mtime}
 | 
			
		||||
 * @FilePath:      ${variables.filePath}
 | 
			
		||||
 * @Author: ${variables.authorName} <${variables.authorEmail}>
 | 
			
		||||
 * @Date: ${variables.birthtime}
 | 
			
		||||
 * @LastEditors: ${variables.userName}
 | 
			
		||||
 * @LastModified: ${variables.mtime}
 | 
			
		||||
 * @FilePath: ${variables.filePath}
 | 
			
		||||
 * @Description:
 | 
			
		||||
 * 
 | 
			
		||||
 * Copyright (c) ${2025} by Kane All rights reserved
 | 
			
		||||
 *               Copyright (c) ${2025} by Kane All rights reserved
 | 
			
		||||
 */`;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,7 @@
 | 
			
		||||
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 | 
			
		||||
    <maven.compiler.source>18</maven.compiler.source>
 | 
			
		||||
    <maven.compiler.target>18</maven.compiler.target>
 | 
			
		||||
    <spring.version>6.2.4</spring.version>
 | 
			
		||||
    <spring.version>6.2.11</spring.version>
 | 
			
		||||
    <log4j.version>2.24.3</log4j.version>
 | 
			
		||||
    <jackson.version>2.18.3</jackson.version>
 | 
			
		||||
  </properties>
 | 
			
		||||
 
 | 
			
		||||
@@ -12,34 +12,80 @@ package com.cpic.xim.data.config;
 | 
			
		||||
 | 
			
		||||
public class AppConfig
 | 
			
		||||
{
 | 
			
		||||
    public static String getDrivername()
 | 
			
		||||
    public static String getDrivernamemysql()
 | 
			
		||||
    {
 | 
			
		||||
        return driverName;
 | 
			
		||||
        return driverNameMySQL;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getUrlproduct()
 | 
			
		||||
    public static String getUrlproductmysql()
 | 
			
		||||
    {
 | 
			
		||||
        return urlProduct;
 | 
			
		||||
        return urlProductMySQL;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getUrltest()
 | 
			
		||||
    public static String getUrltestmysql()
 | 
			
		||||
    {
 | 
			
		||||
        return urlTest;
 | 
			
		||||
        return urlTestMySQL;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getUsername()
 | 
			
		||||
    public static String getUsernamemysql()
 | 
			
		||||
    {
 | 
			
		||||
        return userName;
 | 
			
		||||
        return userNameMySQL;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getPassword()
 | 
			
		||||
    public static String getPasswordmysql()
 | 
			
		||||
    {
 | 
			
		||||
        return password;
 | 
			
		||||
        return passwordMySQL;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private final static String driverName = "com.mysql.cj.jdbc.Driver";
 | 
			
		||||
    private final static String urlProduct = "jdbc:mysql://10.39.0.85:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
 | 
			
		||||
    private final static String urlTest    = "jdbc:mysql://10.39.0.84:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
 | 
			
		||||
    private final static String userName   = "huixiabao";
 | 
			
		||||
    private final static String password   = "Kane@1981";
 | 
			
		||||
}
 | 
			
		||||
    public static String getDrivernamegaussdb()
 | 
			
		||||
    {
 | 
			
		||||
        return driverNameGaussDB;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getUrlgaussdbproduct()
 | 
			
		||||
    {
 | 
			
		||||
        return urlGaussDBProduct;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getUsernamegaussdbproduct()
 | 
			
		||||
    {
 | 
			
		||||
        return userNameGaussDBProduct;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getPasswordgaussdbproduct()
 | 
			
		||||
    {
 | 
			
		||||
        return passwordGaussDBProduct;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getUrlgaussdbtest()
 | 
			
		||||
    {
 | 
			
		||||
        return urlGaussDBTest;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getUsernamegaussdbtest()
 | 
			
		||||
    {
 | 
			
		||||
        return userNameGaussDBTest;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static String getPasswordgaussdbtest()
 | 
			
		||||
    {
 | 
			
		||||
        return passwordGaussDBTest;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private final static String driverNameMySQL = "com.mysql.cj.jdbc.Driver";
 | 
			
		||||
    private final static String urlProductMySQL = "jdbc:mysql://10.39.0.85:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
 | 
			
		||||
    private final static String urlTestMySQL    = "jdbc:mysql://10.39.0.84:3306/huixiabao?useUnicode=true&characterEncoding=utf8&useSSL=true";
 | 
			
		||||
    private final static String userNameMySQL   = "huixiabao";
 | 
			
		||||
    private final static String passwordMySQL   = "Kane@1981";
 | 
			
		||||
 | 
			
		||||
    // 高斯数据库
 | 
			
		||||
    private final static String driverNameGaussDB = "org.postgresql.Driver";
 | 
			
		||||
 | 
			
		||||
    private final static String urlGaussDBProduct      = "jdbc:postgresql://30.191.0.36:25308/qing";
 | 
			
		||||
    private final static String userNameGaussDBProduct = "xim_ywglxt_app";
 | 
			
		||||
    private final static String passwordGaussDBProduct = "qYldSdbfQ!o5M4M";
 | 
			
		||||
 | 
			
		||||
    private final static String urlGaussDBTest      = "jdbc:postgresql://10.182.2.208:25308/qing";
 | 
			
		||||
    private final static String userNameGaussDBTest = "cx_xiamen";
 | 
			
		||||
    private final static String passwordGaussDBTest = "aThK80#!";
 | 
			
		||||
}
 | 
			
		||||
@@ -46,9 +46,9 @@ public class HuixiabaoDbUtils
 | 
			
		||||
            Class.forName( "com.mysql.cj.jdbc.Driver" );
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            connection      = DriverManager.getConnection( AppConfig.getUrltest(),
 | 
			
		||||
                                                           AppConfig.getUsername(),
 | 
			
		||||
                                                           AppConfig.getPassword() );
 | 
			
		||||
            connection      = DriverManager.getConnection( AppConfig.getUrltestmysql(),
 | 
			
		||||
                                                           AppConfig.getUsernamemysql(),
 | 
			
		||||
                                                           AppConfig.getPasswordmysql() );
 | 
			
		||||
            statementDelete = connection.prepareStatement( sqlDelete.trim() );
 | 
			
		||||
            statementInsert = connection.prepareStatement( sqlInsert.trim() );
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								惠厦保服务器 10.39.0.30.lnk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								惠厦保服务器 10.39.0.30.lnk
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								惠厦保服务器 10.39.46.43.lnk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								惠厦保服务器 10.39.46.43.lnk
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								沈育洪用 - 副本.lnk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								沈育洪用 - 副本.lnk
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Reference in New Issue
	
	Block a user