项目基础搭建

This commit is contained in:
zhengyf 2025-08-18 16:55:36 +08:00
parent 8fabbe8539
commit fd1a6ecac0
51 changed files with 2440 additions and 819 deletions

434
.flattened-pom.xml Normal file
View File

@ -0,0 +1,434 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.18</version>
<relativePath></relativePath>
</parent>
<groupId>com.hzya.frame</groupId>
<artifactId>kangarooDataCenterV3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>kangarooDataCenterV3</name>
<description>kangarooDataCenterV3</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<modules>
<module>base-buildpackage</module>
<module>base-service</module>
<module>base-common</module>
<module>base-webapp</module>
<module>base-core</module>
</modules>
<properties>
<quartz.version>2.3.0</quartz.version>
<maven.compiler.target>1.8</maven.compiler.target>
<spring-boot-starter-cache.version>2.7.18</spring-boot-starter-cache.version>
<junit.version>4.12</junit.version>
<gson.version>2.8.5</gson.version>
<beanutils.version>1.9.4</beanutils.version>
<p6spy.version>3.9.1</p6spy.version>
<pdfbox.version>2.0.20</pdfbox.version>
<zxing.version>3.3.0</zxing.version>
<lombok.version>1.18.22</lombok.version>
<fastjson.version>2.0.33</fastjson.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot-starter-aop.version>2.7.18</spring-boot-starter-aop.version>
<httpclient.version>4.5.13</httpclient.version>
<spring-boot.version>2.7.18</spring-boot.version>
<sa-token-jwt.version>1.30.0</sa-token-jwt.version>
<pagehelper-spring-boot-starter.version>1.4.6</pagehelper-spring-boot-starter.version>
<hutool.version>5.8.19</hutool.version>
<mybatis-plus-boot-starter.version>3.5.6</mybatis-plus-boot-starter.version>
<maven.compiler.source>1.8</maven.compiler.source>
<dynamic-datasource-spring-boot-starter.version>3.5.2</dynamic-datasource-spring-boot-starter.version>
<commons.lang3.version>2.6</commons.lang3.version>
<druid.version>1.1.22</druid.version>
<mysql-connector-java>8.0.13</mysql-connector-java>
<sa.token.version>1.30.0</sa.token.version>
<minio.version>8.0.3</minio.version>
<lang3.version>3.13.0</lang3.version>
<postgresql.version>42.2.6</postgresql.version>
<net.sourceforge.jtds.version>1.3.1</net.sourceforge.jtds.version>
<druid-spring-boot-starter.version>1.2.18</druid-spring-boot-starter.version>
<dingtalk-sdk.version>2.1.46</dingtalk-sdk.version>
<spring-boot-starter-test.version>2.7.18</spring-boot-starter-test.version>
<spring-boot-starter-tomcat.version>2.7.18</spring-boot-starter-tomcat.version>
<unit.version>4.12</unit.version>
<jimureport.version>1.7.4</jimureport.version>
<sa-token-oauth2.version>1.30.0</sa-token-oauth2.version>
<spring-boot-starter-web.version>2.7.18</spring-boot-starter-web.version>
<commons.pool2.version>2.6.0</commons.pool2.version>
<dingtalk-stream-sdk.version>1.3.7</dingtalk-stream-sdk.version>
<guava.version>32.0.1-jre</guava.version>
<sqlserver.version>6.1.0.jre8</sqlserver.version>
<org.springframework.version>5.3.23</org.springframework.version>
<commons.io.version>2.6</commons.io.version>
<ojdbc6.version>11.2.0.4</ojdbc6.version>
<revision>0.0.1-SNAPSHOT</revision>
</properties>
<dependencies>
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
<version>${net.sourceforge.jtds.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>${spring-boot-starter-aop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
<version>${spring-boot-starter-cache.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring-boot-starter-test.version}</version>
<exclusions>
<exclusion>
<artifactId>spring-core</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${unit.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<dependency>
<groupId>p6spy</groupId>
<artifactId>p6spy</artifactId>
<version>${p6spy.version}</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>${gson.version}</version>
</dependency>
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>${zxing.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jdbc</artifactId>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper-spring-boot-starter.version}</version>
<exclusions>
<exclusion>
<artifactId>mybatis</artifactId>
<groupId>org.mybatis</groupId>
</exclusion>
<exclusion>
<artifactId>spring-boot-autoconfigure</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
<exclusion>
<artifactId>spring-boot-starter</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>${sa.token.version}</version>
</dependency>
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-oauth2</artifactId>
<version>${sa-token-oauth2.version}</version>
</dependency>
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-jwt</artifactId>
<version>${sa-token-jwt.version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>dynamic-datasource-spring-boot-starter</artifactId>
<version>${dynamic-datasource-spring-boot-starter.version}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${druid-spring-boot-starter.version}</version>
<exclusions>
<exclusion>
<artifactId>spring-boot-autoconfigure</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.dameng</groupId>
<artifactId>Dm8JdbcDriver18</artifactId>
<version>8.1.1.49</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${beanutils.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>${commons.pool2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${lang3.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.4.0.jre8</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>${pdfbox.version}</version>
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc6</artifactId>
<version>${ojdbc6.version}</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>${quartz.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${org.springframework.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons.io.version}</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>4.0.21</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>8.5.13</version>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-mysql</artifactId>
<version>8.5.13</version>
</dependency>
<dependency>
<groupId>com.yomahub</groupId>
<artifactId>tlog-all-spring-boot-starter</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>com.dingtalk.open</groupId>
<artifactId>app-stream-client</artifactId>
<version>${dingtalk-stream-sdk.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>dingtalk</artifactId>
<version>${dingtalk-sdk.version}</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>alibaba-dingtalk-service-sdk</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.8.0</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.53</version>
</dependency>
</dependencies>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>aliyun</id>
<name>aliyun Repository</name>
<url>https://maven.aliyun.com/repository/public</url>
</repository>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>jeecg</id>
<name>jeecg Repository</name>
<url>https://maven.jeecg.org/nexus/content/repositories/jeecg</url>
</repository>
</repositories>
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.xmreport</include>
<include>**/*.xlsx</include>
<include>**/*.json</include>
<include>**/*.xdb</include>
<include>**/*.txt</include>
<include>**/*.sql</include>
</includes>
</resource>
<resource>
<filtering>true</filtering>
<directory>src/</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
<include>**/*.json</include>
<include>**/*.txt</include>
<include>**/*.sql</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.7</version>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
</executions>
<configuration>
<flattenMode>resolveCiFriendliesOnly</flattenMode>
</configuration>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.7.18</version>
<configuration>
<finalName>${project.artifactId}</finalName>
<mainClass>none</mainClass>
<classifier>execute</classifier>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hzya.frame</groupId>
<artifactId>kangarooDataCenterV3</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.hzya.frame</groupId>
<artifactId>base-buildpackage</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<dependencies>
<dependency>
<groupId>com.hzya.frame</groupId>
<artifactId>base-webapp</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
<build>
<finalName>kangarooDataCenterV3</finalName>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
<configuration></configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<profile.active>dev</profile.active>
</properties>
</profile>
</profiles>
</project>

View File

@ -2,16 +2,18 @@
<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>kangarooDataCenterV3</artifactId>
<groupId>com.hzya.frame</groupId>
<artifactId>kangarooDataCenterV3</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>base-buildpackage</artifactId>
<packaging>war</packaging>
<version>${revision}</version>
<!-- 统一管理依赖版本-->
<dependencies>
<dependency>
<groupId>com.hzya.frame</groupId>
@ -30,30 +32,21 @@
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<id>llg</id> <!--吕磊钢-->
<properties>
<profile.active>llg</profile.active>
</properties>
</profile>
<profile>
<id>xel</id> <!--xel-->
<properties>
<profile.active>xel</profile.active>
</properties>
</profile>
<profile>
<id>zqtlocal</id> <!--曾庆拓-->
<properties>
<profile.active>zqtlocal</profile.active>
</properties>
</profile>
</profiles>
<build>
<finalName>kangarooDataCenterV3</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
<configuration>
<!-- 移除了引用不存在目录的webResources配置 -->
<!-- Maven会自动将依赖的jar包打包到WEB-INF/lib目录 -->
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -4,27 +4,12 @@ import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import com.jcraft.jsch.Channel;
import com.jcraft.jsch.ChannelSftp;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.Session;
import com.jcraft.jsch.SftpATTRS;
import com.jcraft.jsch.SftpException;
import org.apache.commons.net.ftp.FTPClient;
import com.jcraft.jsch.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Properties;

View File

@ -0,0 +1,193 @@
package com.hzya.frame.plugin.gm;
import cn.hutool.core.lang.Assert;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.gm.constant.ProfilesActiveConstant;
import com.hzya.frame.plugin.gm.dao.IMdmGmSubjectBalanceDao;
import com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity;
import com.hzya.frame.plugin.gm.utils.SaveOrUpdateBusinessLogUtil;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;
import java.util.List;
import java.util.concurrent.locks.ReentrantLock;
/**
* Created by zydd on 2025-08-01 14:31
* 广脉科目辅助余额表 同步
* 根据科目同步余额
* table:mdm_gm_subject_balance
*/
public class SubjectAssBalancePlugin extends PluginBaseEntity {
Logger logger = LoggerFactory.getLogger(SubjectAssBalancePlugin.class);
private static final ReentrantLock LOCK = new ReentrantLock(true);
@Override
public void initialize() {
logger.info(getPluginLabel() + "執行初始化方法initialize()");
}
@Override
public void destroy() {
logger.info(getPluginLabel() + "執行銷毀方法destroy()");
}
@Override
public String getPluginId() {
return "gm.SubjectAssBalancePlugin";
}
@Override
public String getPluginName() {
return "广脉:科目辅助余额表同步";
}
@Override
public String getPluginLabel() {
return "广脉:科目辅助余额表同步";
}
@Override
public String getPluginType() {
return "1";
}
@Override
public JsonResultEntity executeBusiness(JSONObject requestJson) throws Exception {
try {
logger.info("调用:" + getPluginName() + "-插件");
String prod = "prod";
String param = String.valueOf(requestJson.get("param"));
if (requestJson != null && ProfilesActiveConstant.TYPE_DATE.equals(requestJson.get("type"))) {
//按日期
if (param != null && !"".equals(param)) {
String[] split = param.split("/");
if (!(split.length == 2)) {
Assert.state(false, "时间格式传递不正确");
}
Assert.notNull(split[0], "开始时间不能为空");
Assert.notNull(split[1], "结束时间不能为空");
// start(split[0], split[1]);
}
} else if (ProfilesActiveConstant.LETS_PROFILES_ACTIVE.equals(prod)) {
//默认
start();
}
} catch (Exception e) {
e.printStackTrace();
logger.error("executeBusiness方法抛出异常", e);
}
return BaseResult.getSuccessMessageEntity("插件执行成功");
}
@Autowired
private IIntegrationTaskLivingDetailsDao iIntegrationTaskLivingDetailsDao;
@Autowired
private SaveOrUpdateBusinessLogUtil saveOrUpdateBusinessLogUtil;
@Autowired
private IMdmGmSubjectBalanceDao mdmGmSubjectBalanceDao;
/**
* 科目
* 54010501
* 54010601
* 54010701
* 220202
* 54010502
* 54010602
* 54010702
* '54010501','54010601','54010701','220202','54010502','54010602','54010702'
*/
public void start() {
LocalDate now = LocalDate.now();
LocalTime time = LocalTime.now();
String subjCodes = "'54010501','54010601','54010701','220202','54010502','54010602','54010702'";
try {
logger.info("调用:" + getPluginName() + "-插件");
MdmGmSubjectBalanceEntity mdmGmSubjectBalanceEntity = new MdmGmSubjectBalanceEntity();
mdmGmSubjectBalanceEntity.setPkCorp("1001");
mdmGmSubjectBalanceEntity.setSubjcodes(subjCodes);
List<MdmGmSubjectBalanceEntity> mdmGmSubjectBalanceEntities = mdmGmSubjectBalanceDao.queryBalanceBySubjectCodesAndPkCorp(mdmGmSubjectBalanceEntity);
if (mdmGmSubjectBalanceEntities != null && mdmGmSubjectBalanceEntities.size() != 0) {
this.delete();
List<List<MdmGmSubjectBalanceEntity>> batches = Lists.partition(mdmGmSubjectBalanceEntities, 500);
for (List<MdmGmSubjectBalanceEntity> batch : batches) {
mdmGmSubjectBalanceDao.saveList(batch);
}
//成功
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
integrationTaskLivingDetailsEntity.setNewState(ProfilesActiveConstant.LOG_STATUS_Y);
integrationTaskLivingDetailsEntity.setRootAppNewData(subjCodes);
integrationTaskLivingDetailsEntity.setNewTransmitInfo(subjCodes);
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
integrationTaskLivingDetailsEntity.setBusinessDate(now.toString());
integrationTaskLivingDetailsEntity.setRootAppPk(now + " " + time);
integrationTaskLivingDetailsEntity.setRootAppBill(now + " " + time);
integrationTaskLivingDetailsEntity.setNewSystemPrimary(null);
integrationTaskLivingDetailsEntity.setNewSystemNumber(null);
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
}
} catch (Exception e) {
e.printStackTrace();
//失败
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
integrationTaskLivingDetailsEntity.setNewState(ProfilesActiveConstant.LOG_STATUS_N);
integrationTaskLivingDetailsEntity.setRootAppNewData(subjCodes);
integrationTaskLivingDetailsEntity.setNewTransmitInfo(e.getMessage());
integrationTaskLivingDetailsEntity.setNewPushDate(new Date());
integrationTaskLivingDetailsEntity.setBusinessDate(now.toString());
integrationTaskLivingDetailsEntity.setRootAppPk(now + " " + time);
integrationTaskLivingDetailsEntity.setRootAppBill(now + " " + time);
integrationTaskLivingDetailsEntity.setPluginId(getPluginId());
saveOrUpdateBusinessLogUtil.saveOrUpdate(integrationTaskLivingDetailsEntity);
}
}
public List<MdmGmSubjectBalanceEntity> start(MdmGmSubjectBalanceEntity mdmGmSubjectBalanceEntity) {
try {
Assert.notNull(mdmGmSubjectBalanceEntity.getPkCorp(), "pkCorp不能为空");
Assert.notNull(mdmGmSubjectBalanceEntity.getSubjcode(), "subjcode不能为空");
List<MdmGmSubjectBalanceEntity> mdmGmSubjectBalanceEntities = mdmGmSubjectBalanceDao.queryBalanceBySubjectCodeAndPkCorp(mdmGmSubjectBalanceEntity);
// 切割成每 500 条一组
List<List<MdmGmSubjectBalanceEntity>> batches = Lists.partition(mdmGmSubjectBalanceEntities, 500);
for (List<MdmGmSubjectBalanceEntity> batch : batches) {
mdmGmSubjectBalanceDao.saveList(batch);
}
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
public List<MdmGmSubjectBalanceEntity> delete() {
mdmGmSubjectBalanceDao.clearTable();
return null;
}
}

View File

@ -0,0 +1,8 @@
package com.hzya.frame.plugin.gm;
/**
* Created by zydd on 2025-08-02 13:59
*/
public class TestController {
}

View File

@ -0,0 +1,24 @@
package com.hzya.frame.plugin.gm.constant;
public class ProfilesActiveConstant {
public static final String LETS_DATE_SOURCE = "gm_u8c_prod";
public static final String LETS_PROFILES_ACTIVE = "prod";
public static final String LOG_STATUS_Y = "Y";
public static final String LOG_STATUS_N = "N";
public static final String LOG_STATUS_Y_H = "'Y','H'";
public static final String TYPE_DATE = "date";
public static final String TYPE_VBILLCODE = "vbillcode";
public static final String TYPE_DETAIL_ERROR = "details_error";
public static final String TYPE_TIME_FRAME = "time_frame";
}

View File

@ -0,0 +1,24 @@
package com.hzya.frame.plugin.gm.dao;
import com.hzya.frame.basedao.dao.IBaseDao;
import com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity;
import java.util.List;
/**
* 广脉科目辅助余额表(mdm_gm_subject_balance: table)表数据库访问层
*
* @author zydd
* @since 2025-08-02 13:39:24
*/
public interface IMdmGmSubjectBalanceDao extends IBaseDao<MdmGmSubjectBalanceEntity, String> {
public List<MdmGmSubjectBalanceEntity> queryBalanceBySubjectCodesAndPkCorp(MdmGmSubjectBalanceEntity entity);
public List<MdmGmSubjectBalanceEntity> queryBalanceBySubjectCodeAndPkCorp(MdmGmSubjectBalanceEntity entity);
void saveList(List<MdmGmSubjectBalanceEntity> mdmGmSubjectBalanceEntities);
void clearTable();
}

View File

@ -0,0 +1,45 @@
package com.hzya.frame.plugin.gm.dao.impl;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.gm.constant.ProfilesActiveConstant;
import com.hzya.frame.plugin.gm.dao.IMdmGmSubjectBalanceDao;
import com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity;
import java.util.List;
/**
* 广脉科目辅助余额表(MdmGmSubjectBalance)表数据库访问层
*
* @author zydd
* @since 2025-08-02 13:39:24
*/
public class MdmGmSubjectBalanceDaoImpl extends MybatisGenericDao<MdmGmSubjectBalanceEntity, String> implements IMdmGmSubjectBalanceDao {
@DS(ProfilesActiveConstant.LETS_DATE_SOURCE)
@Override
public List<MdmGmSubjectBalanceEntity> queryBalanceBySubjectCodesAndPkCorp(MdmGmSubjectBalanceEntity entity) {
List<MdmGmSubjectBalanceEntity> mdmGmSubjectBalanceEntityList =
(List<MdmGmSubjectBalanceEntity>) super.selectList("com.hzya.frame.plugin.gm.dao.impl.MdmGmSubjectBalanceDaoImpl.queryBalanceBySubjectCodesAndPkCorp", entity);
return mdmGmSubjectBalanceEntityList;
}
@Override
public List<MdmGmSubjectBalanceEntity> queryBalanceBySubjectCodeAndPkCorp(MdmGmSubjectBalanceEntity entity) {
List<MdmGmSubjectBalanceEntity> mdmGmSubjectBalanceEntityList =
(List<MdmGmSubjectBalanceEntity>) super.selectList("com.hzya.frame.plugin.gm.dao.impl.MdmGmSubjectBalanceDaoImpl.queryBalanceBySubjectCodeAndPkCorp", entity);
return mdmGmSubjectBalanceEntityList;
}
@Override
public void saveList(List<MdmGmSubjectBalanceEntity> mdmGmSubjectBalanceEntities) {
this.insert("com.hzya.frame.plugin.gm.dao.impl.MdmGmSubjectBalanceDaoImpl.saveList", mdmGmSubjectBalanceEntities);
}
@Override
public void clearTable() {
this.delete("com.hzya.frame.plugin.gm.dao.impl.MdmGmSubjectBalanceDaoImpl.clearTable",null);
}
}

View File

@ -0,0 +1,353 @@
package com.hzya.frame.plugin.gm.entity;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 广脉科目辅助余额表(MdmGmSubjectBalance)实体类
*
* @author zydd
* @since 2025-08-02 13:39:24
*/
public class MdmGmSubjectBalanceEntity extends BaseEntity {
/** 单据规则 */
private String documentRule;
/** 单据规则流水号 */
private Long documentRuleNum;
/** 数据状态 Y正常 N删除 F修改 */
private String dataStatus;
/** 新增数据状态 0待下发 1已下发 */
private String addStatus;
/** 修改数据状态 0待下发 1已下发 */
private String updateStatus;
/** 删除数据状态 0待下发 1已下发 */
private String deleteStatus;
/** 公司id */
private String companyId;
/** data_id */
private String dataId;
/** mdm_up_id */
private String mdmUpId;
/** 公司主键 */
private String pkCorp;
/** 科目编码 */
private String subjcode;
private String subjcodes;
/** 科目名称 */
private String subjname;
/** code1 */
private String code1;
/** code2 */
private String code2;
/** code3 */
private String code3;
/** code4 */
private String code4;
/** code5 */
private String code5;
/** code6 */
private String code6;
/** code7 */
private String code7;
/** code8 */
private String code8;
/** code9 */
private String code9;
/** code10 */
private String code10;
/** def1 */
private String def1;
/** def2 */
private String def2;
/** def3 */
private String def3;
/** def4 */
private String def4;
/** def5 */
private String def5;
/** def6 */
private String def6;
/** def7 */
private String def7;
/** def8 */
private String def8;
/** def9 */
private String def9;
/** def10 */
private String def10;
/** 余额 */
private String balance;
public String getSubjcodes() {
return subjcodes;
}
public void setSubjcodes(String subjcodes) {
this.subjcodes = subjcodes;
}
public String getDocumentRule() {
return documentRule;
}
public void setDocumentRule(String documentRule) {
this.documentRule = documentRule;
}
public Long getDocumentRuleNum() {
return documentRuleNum;
}
public void setDocumentRuleNum(Long documentRuleNum) {
this.documentRuleNum = documentRuleNum;
}
public String getDataStatus() {
return dataStatus;
}
public void setDataStatus(String dataStatus) {
this.dataStatus = dataStatus;
}
public String getAddStatus() {
return addStatus;
}
public void setAddStatus(String addStatus) {
this.addStatus = addStatus;
}
public String getUpdateStatus() {
return updateStatus;
}
public void setUpdateStatus(String updateStatus) {
this.updateStatus = updateStatus;
}
public String getDeleteStatus() {
return deleteStatus;
}
public void setDeleteStatus(String deleteStatus) {
this.deleteStatus = deleteStatus;
}
public String getCompanyId() {
return companyId;
}
public void setCompanyId(String companyId) {
this.companyId = companyId;
}
public String getDataId() {
return dataId;
}
public void setDataId(String dataId) {
this.dataId = dataId;
}
public String getMdmUpId() {
return mdmUpId;
}
public void setMdmUpId(String mdmUpId) {
this.mdmUpId = mdmUpId;
}
public String getPkCorp() {
return pkCorp;
}
public void setPkCorp(String pkCorp) {
this.pkCorp = pkCorp;
}
public String getSubjcode() {
return subjcode;
}
public void setSubjcode(String subjcode) {
this.subjcode = subjcode;
}
public String getSubjname() {
return subjname;
}
public void setSubjname(String subjname) {
this.subjname = subjname;
}
public String getCode1() {
return code1;
}
public void setCode1(String code1) {
this.code1 = code1;
}
public String getCode2() {
return code2;
}
public void setCode2(String code2) {
this.code2 = code2;
}
public String getCode3() {
return code3;
}
public void setCode3(String code3) {
this.code3 = code3;
}
public String getCode4() {
return code4;
}
public void setCode4(String code4) {
this.code4 = code4;
}
public String getCode5() {
return code5;
}
public void setCode5(String code5) {
this.code5 = code5;
}
public String getCode6() {
return code6;
}
public void setCode6(String code6) {
this.code6 = code6;
}
public String getCode7() {
return code7;
}
public void setCode7(String code7) {
this.code7 = code7;
}
public String getCode8() {
return code8;
}
public void setCode8(String code8) {
this.code8 = code8;
}
public String getCode9() {
return code9;
}
public void setCode9(String code9) {
this.code9 = code9;
}
public String getCode10() {
return code10;
}
public void setCode10(String code10) {
this.code10 = code10;
}
public String getDef1() {
return def1;
}
public void setDef1(String def1) {
this.def1 = def1;
}
public String getDef2() {
return def2;
}
public void setDef2(String def2) {
this.def2 = def2;
}
public String getDef3() {
return def3;
}
public void setDef3(String def3) {
this.def3 = def3;
}
public String getDef4() {
return def4;
}
public void setDef4(String def4) {
this.def4 = def4;
}
public String getDef5() {
return def5;
}
public void setDef5(String def5) {
this.def5 = def5;
}
public String getDef6() {
return def6;
}
public void setDef6(String def6) {
this.def6 = def6;
}
public String getDef7() {
return def7;
}
public void setDef7(String def7) {
this.def7 = def7;
}
public String getDef8() {
return def8;
}
public void setDef8(String def8) {
this.def8 = def8;
}
public String getDef9() {
return def9;
}
public void setDef9(String def9) {
this.def9 = def9;
}
public String getDef10() {
return def10;
}
public void setDef10(String def10) {
this.def10 = def10;
}
public String getBalance() {
return balance;
}
public void setBalance(String balance) {
this.balance = balance;
}
}

View File

@ -0,0 +1,712 @@
<?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.hzya.frame.plugin.gm.dao.impl.MdmGmSubjectBalanceDaoImpl">
<resultMap id="get-MdmGmSubjectBalanceEntity-result"
type="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity">
<result property="id" column="id" jdbcType="VARCHAR"/>
<result property="documentRule" column="document_rule" jdbcType="VARCHAR"/>
<result property="documentRuleNum" column="document_rule_num" jdbcType="INTEGER"/>
<result property="dataStatus" column="data_status" jdbcType="VARCHAR"/>
<result property="addStatus" column="add_status" jdbcType="VARCHAR"/>
<result property="updateStatus" column="update_status" jdbcType="VARCHAR"/>
<result property="deleteStatus" column="delete_status" jdbcType="VARCHAR"/>
<result property="sorts" column="sorts" jdbcType="INTEGER"/>
<result property="create_user_id" column="create_user_id" jdbcType="VARCHAR"/>
<result property="create_time" column="create_time" jdbcType="TIMESTAMP"/>
<result property="modify_user_id" column="modify_user_id" jdbcType="VARCHAR"/>
<result property="modify_time" column="modify_time" jdbcType="TIMESTAMP"/>
<result property="sts" column="sts" jdbcType="VARCHAR"/>
<result property="org_id" column="org_id" jdbcType="VARCHAR"/>
<result property="companyId" column="company_id" jdbcType="VARCHAR"/>
<result property="dataId" column="data_id" jdbcType="VARCHAR"/>
<result property="mdmUpId" column="mdm_up_id" jdbcType="VARCHAR"/>
<result property="pkCorp" column="pk_corp" jdbcType="VARCHAR"/>
<result property="subjcode" column="subjcode" jdbcType="VARCHAR"/>
<result property="subjname" column="subjname" jdbcType="VARCHAR"/>
<result property="code1" column="code1" jdbcType="VARCHAR"/>
<result property="code2" column="code2" jdbcType="VARCHAR"/>
<result property="code3" column="code3" jdbcType="VARCHAR"/>
<result property="code4" column="code4" jdbcType="VARCHAR"/>
<result property="code5" column="code5" jdbcType="VARCHAR"/>
<result property="code6" column="code6" jdbcType="VARCHAR"/>
<result property="code7" column="code7" jdbcType="VARCHAR"/>
<result property="code8" column="code8" jdbcType="VARCHAR"/>
<result property="code9" column="code9" jdbcType="VARCHAR"/>
<result property="code10" column="code10" jdbcType="VARCHAR"/>
<result property="def1" column="def1" jdbcType="VARCHAR"/>
<result property="def2" column="def2" jdbcType="VARCHAR"/>
<result property="def3" column="def3" jdbcType="VARCHAR"/>
<result property="def4" column="def4" jdbcType="VARCHAR"/>
<result property="def5" column="def5" jdbcType="VARCHAR"/>
<result property="def6" column="def6" jdbcType="VARCHAR"/>
<result property="def7" column="def7" jdbcType="VARCHAR"/>
<result property="def8" column="def8" jdbcType="VARCHAR"/>
<result property="def9" column="def9" jdbcType="VARCHAR"/>
<result property="def10" column="def10" jdbcType="VARCHAR"/>
<result property="balance" column="balance" jdbcType="VARCHAR"/>
</resultMap>
<!-- 查询的字段-->
<sql id="MdmGmSubjectBalanceEntity_Base_Column_List">
id
,document_rule
,document_rule_num
,data_status
,add_status
,update_status
,delete_status
,sorts
,create_user_id
,create_time
,modify_user_id
,modify_time
,sts
,org_id
,company_id
,data_id
,mdm_up_id
,pk_corp
,subjcode
,subjname
,code1
,code2
,code3
,code4
,code5
,code6
,code7
,code8
,code9
,code10
,def1
,def2
,def3
,def4
,def5
,def6
,def7
,def8
,def9
,def10
,balance
</sql>
<!-- 查询 采用==查询 -->
<select id="entity_list_base" resultMap="get-MdmGmSubjectBalanceEntity-result"
parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity">
select
<include refid="MdmGmSubjectBalanceEntity_Base_Column_List"/>
from mdm_gm_subject_balance
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
<if test="documentRule != null and documentRule != ''">and document_rule = #{documentRule}</if>
<if test="documentRuleNum != null">and document_rule_num = #{documentRuleNum}</if>
<if test="dataStatus != null and dataStatus != ''">and data_status = #{dataStatus}</if>
<if test="addStatus != null and addStatus != ''">and add_status = #{addStatus}</if>
<if test="updateStatus != null and updateStatus != ''">and update_status = #{updateStatus}</if>
<if test="deleteStatus != null and deleteStatus != ''">and delete_status = #{deleteStatus}</if>
<if test="sorts != null">and sorts = #{sorts}</if>
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
<if test="create_time != null">and create_time = #{create_time}</if>
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
<if test="modify_time != null">and modify_time = #{modify_time}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
<if test="dataId != null and dataId != ''">and data_id = #{dataId}</if>
<if test="mdmUpId != null and mdmUpId != ''">and mdm_up_id = #{mdmUpId}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="subjcode != null and subjcode != ''">and subjcode = #{subjcode}</if>
<if test="subjname != null and subjname != ''">and subjname = #{subjname}</if>
<if test="code1 != null and code1 != ''">and code1 = #{code1}</if>
<if test="code2 != null and code2 != ''">and code2 = #{code2}</if>
<if test="code3 != null and code3 != ''">and code3 = #{code3}</if>
<if test="code4 != null and code4 != ''">and code4 = #{code4}</if>
<if test="code5 != null and code5 != ''">and code5 = #{code5}</if>
<if test="code6 != null and code6 != ''">and code6 = #{code6}</if>
<if test="code7 != null and code7 != ''">and code7 = #{code7}</if>
<if test="code8 != null and code8 != ''">and code8 = #{code8}</if>
<if test="code9 != null and code9 != ''">and code9 = #{code9}</if>
<if test="code10 != null and code10 != ''">and code10 = #{code10}</if>
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">and def10 = #{def10}</if>
<if test="balance != null and balance != ''">and balance = #{balance}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询符合条件的数量 -->
<select id="entity_count" resultType="Integer"
parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity">
select count(1) from mdm_gm_subject_balance
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
<if test="documentRule != null and documentRule != ''">and document_rule = #{documentRule}</if>
<if test="documentRuleNum != null">and document_rule_num = #{documentRuleNum}</if>
<if test="dataStatus != null and dataStatus != ''">and data_status = #{dataStatus}</if>
<if test="addStatus != null and addStatus != ''">and add_status = #{addStatus}</if>
<if test="updateStatus != null and updateStatus != ''">and update_status = #{updateStatus}</if>
<if test="deleteStatus != null and deleteStatus != ''">and delete_status = #{deleteStatus}</if>
<if test="sorts != null">and sorts = #{sorts}</if>
<if test="create_user_id != null and create_user_id != ''">and create_user_id = #{create_user_id}</if>
<if test="create_time != null">and create_time = #{create_time}</if>
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id = #{modify_user_id}</if>
<if test="modify_time != null">and modify_time = #{modify_time}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
<if test="org_id != null and org_id != ''">and org_id = #{org_id}</if>
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
<if test="dataId != null and dataId != ''">and data_id = #{dataId}</if>
<if test="mdmUpId != null and mdmUpId != ''">and mdm_up_id = #{mdmUpId}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="subjcode != null and subjcode != ''">and subjcode = #{subjcode}</if>
<if test="subjname != null and subjname != ''">and subjname = #{subjname}</if>
<if test="code1 != null and code1 != ''">and code1 = #{code1}</if>
<if test="code2 != null and code2 != ''">and code2 = #{code2}</if>
<if test="code3 != null and code3 != ''">and code3 = #{code3}</if>
<if test="code4 != null and code4 != ''">and code4 = #{code4}</if>
<if test="code5 != null and code5 != ''">and code5 = #{code5}</if>
<if test="code6 != null and code6 != ''">and code6 = #{code6}</if>
<if test="code7 != null and code7 != ''">and code7 = #{code7}</if>
<if test="code8 != null and code8 != ''">and code8 = #{code8}</if>
<if test="code9 != null and code9 != ''">and code9 = #{code9}</if>
<if test="code10 != null and code10 != ''">and code10 = #{code10}</if>
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">and def10 = #{def10}</if>
<if test="balance != null and balance != ''">and balance = #{balance}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 分页查询列表 采用like格式 -->
<select id="entity_list_like" resultMap="get-MdmGmSubjectBalanceEntity-result"
parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity">
select
<include refid="MdmGmSubjectBalanceEntity_Base_Column_List"/>
from mdm_gm_subject_balance
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id like concat('%',#{id},'%')</if>
<if test="documentRule != null and documentRule != ''">and document_rule like
concat('%',#{documentRule},'%')
</if>
<if test="documentRuleNum != null">and document_rule_num like concat('%',#{documentRuleNum},'%')</if>
<if test="dataStatus != null and dataStatus != ''">and data_status like concat('%',#{dataStatus},'%')</if>
<if test="addStatus != null and addStatus != ''">and add_status like concat('%',#{addStatus},'%')</if>
<if test="updateStatus != null and updateStatus != ''">and update_status like
concat('%',#{updateStatus},'%')
</if>
<if test="deleteStatus != null and deleteStatus != ''">and delete_status like
concat('%',#{deleteStatus},'%')
</if>
<if test="sorts != null">and sorts like concat('%',#{sorts},'%')</if>
<if test="create_user_id != null and create_user_id != ''">and create_user_id like
concat('%',#{create_user_id},'%')
</if>
<if test="create_time != null">and create_time like concat('%',#{create_time},'%')</if>
<if test="modify_user_id != null and modify_user_id != ''">and modify_user_id like
concat('%',#{modify_user_id},'%')
</if>
<if test="modify_time != null">and modify_time like concat('%',#{modify_time},'%')</if>
<if test="sts != null and sts != ''">and sts like concat('%',#{sts},'%')</if>
<if test="org_id != null and org_id != ''">and org_id like concat('%',#{org_id},'%')</if>
<if test="companyId != null and companyId != ''">and company_id like concat('%',#{companyId},'%')</if>
<if test="dataId != null and dataId != ''">and data_id like concat('%',#{dataId},'%')</if>
<if test="mdmUpId != null and mdmUpId != ''">and mdm_up_id like concat('%',#{mdmUpId},'%')</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp like concat('%',#{pkCorp},'%')</if>
<if test="subjcode != null and subjcode != ''">and subjcode like concat('%',#{subjcode},'%')</if>
<if test="subjname != null and subjname != ''">and subjname like concat('%',#{subjname},'%')</if>
<if test="code1 != null and code1 != ''">and code1 like concat('%',#{code1},'%')</if>
<if test="code2 != null and code2 != ''">and code2 like concat('%',#{code2},'%')</if>
<if test="code3 != null and code3 != ''">and code3 like concat('%',#{code3},'%')</if>
<if test="code4 != null and code4 != ''">and code4 like concat('%',#{code4},'%')</if>
<if test="code5 != null and code5 != ''">and code5 like concat('%',#{code5},'%')</if>
<if test="code6 != null and code6 != ''">and code6 like concat('%',#{code6},'%')</if>
<if test="code7 != null and code7 != ''">and code7 like concat('%',#{code7},'%')</if>
<if test="code8 != null and code8 != ''">and code8 like concat('%',#{code8},'%')</if>
<if test="code9 != null and code9 != ''">and code9 like concat('%',#{code9},'%')</if>
<if test="code10 != null and code10 != ''">and code10 like concat('%',#{code10},'%')</if>
<if test="def1 != null and def1 != ''">and def1 like concat('%',#{def1},'%')</if>
<if test="def2 != null and def2 != ''">and def2 like concat('%',#{def2},'%')</if>
<if test="def3 != null and def3 != ''">and def3 like concat('%',#{def3},'%')</if>
<if test="def4 != null and def4 != ''">and def4 like concat('%',#{def4},'%')</if>
<if test="def5 != null and def5 != ''">and def5 like concat('%',#{def5},'%')</if>
<if test="def6 != null and def6 != ''">and def6 like concat('%',#{def6},'%')</if>
<if test="def7 != null and def7 != ''">and def7 like concat('%',#{def7},'%')</if>
<if test="def8 != null and def8 != ''">and def8 like concat('%',#{def8},'%')</if>
<if test="def9 != null and def9 != ''">and def9 like concat('%',#{def9},'%')</if>
<if test="def10 != null and def10 != ''">and def10 like concat('%',#{def10},'%')</if>
<if test="balance != null and balance != ''">and balance like concat('%',#{balance},'%')</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!-- 查询列表 字段采用or格式 -->
<select id="MdmGmSubjectBalanceentity_list_or" resultMap="get-MdmGmSubjectBalanceEntity-result"
parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity">
select
<include refid="MdmGmSubjectBalanceEntity_Base_Column_List"/>
from mdm_gm_subject_balance
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">or id = #{id}</if>
<if test="documentRule != null and documentRule != ''">or document_rule = #{documentRule}</if>
<if test="documentRuleNum != null">or document_rule_num = #{documentRuleNum}</if>
<if test="dataStatus != null and dataStatus != ''">or data_status = #{dataStatus}</if>
<if test="addStatus != null and addStatus != ''">or add_status = #{addStatus}</if>
<if test="updateStatus != null and updateStatus != ''">or update_status = #{updateStatus}</if>
<if test="deleteStatus != null and deleteStatus != ''">or delete_status = #{deleteStatus}</if>
<if test="sorts != null">or sorts = #{sorts}</if>
<if test="create_user_id != null and create_user_id != ''">or create_user_id = #{create_user_id}</if>
<if test="create_time != null">or create_time = #{create_time}</if>
<if test="modify_user_id != null and modify_user_id != ''">or modify_user_id = #{modify_user_id}</if>
<if test="modify_time != null">or modify_time = #{modify_time}</if>
<if test="sts != null and sts != ''">or sts = #{sts}</if>
<if test="org_id != null and org_id != ''">or org_id = #{org_id}</if>
<if test="companyId != null and companyId != ''">or company_id = #{companyId}</if>
<if test="dataId != null and dataId != ''">or data_id = #{dataId}</if>
<if test="mdmUpId != null and mdmUpId != ''">or mdm_up_id = #{mdmUpId}</if>
<if test="pkCorp != null and pkCorp != ''">or pk_corp = #{pkCorp}</if>
<if test="subjcode != null and subjcode != ''">or subjcode = #{subjcode}</if>
<if test="subjname != null and subjname != ''">or subjname = #{subjname}</if>
<if test="code1 != null and code1 != ''">or code1 = #{code1}</if>
<if test="code2 != null and code2 != ''">or code2 = #{code2}</if>
<if test="code3 != null and code3 != ''">or code3 = #{code3}</if>
<if test="code4 != null and code4 != ''">or code4 = #{code4}</if>
<if test="code5 != null and code5 != ''">or code5 = #{code5}</if>
<if test="code6 != null and code6 != ''">or code6 = #{code6}</if>
<if test="code7 != null and code7 != ''">or code7 = #{code7}</if>
<if test="code8 != null and code8 != ''">or code8 = #{code8}</if>
<if test="code9 != null and code9 != ''">or code9 = #{code9}</if>
<if test="code10 != null and code10 != ''">or code10 = #{code10}</if>
<if test="def1 != null and def1 != ''">or def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">or def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">or def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">or def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">or def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">or def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">or def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">or def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">or def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">or def10 = #{def10}</if>
<if test="balance != null and balance != ''">or balance = #{balance}</if>
and sts='Y'
</trim>
<if test=" sort == null or sort == ''.toString() ">order by sorts asc</if>
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
</select>
<!--新增所有列-->
<insert id="entity_insert" parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity"
keyProperty="id" useGeneratedKeys="true">
insert into mdm_gm_subject_balance(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''">id ,</if>
<if test="documentRule != null and documentRule != ''">document_rule ,</if>
<if test="documentRuleNum != null">document_rule_num ,</if>
<if test="dataStatus != null and dataStatus != ''">data_status ,</if>
<if test="addStatus != null and addStatus != ''">add_status ,</if>
<if test="updateStatus != null and updateStatus != ''">update_status ,</if>
<if test="deleteStatus != null and deleteStatus != ''">delete_status ,</if>
<if test="sorts != null">sorts ,</if>
<if test="create_user_id != null and create_user_id != ''">create_user_id ,</if>
<if test="create_time != null">create_time ,</if>
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id ,</if>
<if test="modify_time != null">modify_time ,</if>
<if test="sts != null and sts != ''">sts ,</if>
<if test="org_id != null and org_id != ''">org_id ,</if>
<if test="companyId != null and companyId != ''">company_id ,</if>
<if test="dataId != null and dataId != ''">data_id ,</if>
<if test="mdmUpId != null and mdmUpId != ''">mdm_up_id ,</if>
<if test="pkCorp != null and pkCorp != ''">pk_corp ,</if>
<if test="subjcode != null and subjcode != ''">subjcode ,</if>
<if test="subjname != null and subjname != ''">subjname ,</if>
<if test="code1 != null and code1 != ''">code1 ,</if>
<if test="code2 != null and code2 != ''">code2 ,</if>
<if test="code3 != null and code3 != ''">code3 ,</if>
<if test="code4 != null and code4 != ''">code4 ,</if>
<if test="code5 != null and code5 != ''">code5 ,</if>
<if test="code6 != null and code6 != ''">code6 ,</if>
<if test="code7 != null and code7 != ''">code7 ,</if>
<if test="code8 != null and code8 != ''">code8 ,</if>
<if test="code9 != null and code9 != ''">code9 ,</if>
<if test="code10 != null and code10 != ''">code10 ,</if>
<if test="def1 != null and def1 != ''">def1 ,</if>
<if test="def2 != null and def2 != ''">def2 ,</if>
<if test="def3 != null and def3 != ''">def3 ,</if>
<if test="def4 != null and def4 != ''">def4 ,</if>
<if test="def5 != null and def5 != ''">def5 ,</if>
<if test="def6 != null and def6 != ''">def6 ,</if>
<if test="def7 != null and def7 != ''">def7 ,</if>
<if test="def8 != null and def8 != ''">def8 ,</if>
<if test="def9 != null and def9 != ''">def9 ,</if>
<if test="def10 != null and def10 != ''">def10 ,</if>
<if test="balance != null and balance != ''">balance ,</if>
<if test="sorts == null ">sorts,</if>
<if test="sts == null ">sts,</if>
</trim>
)values(
<trim suffix="" suffixOverrides=",">
<if test="id != null and id != ''">#{id} ,</if>
<if test="documentRule != null and documentRule != ''">#{documentRule} ,</if>
<if test="documentRuleNum != null">#{documentRuleNum} ,</if>
<if test="dataStatus != null and dataStatus != ''">#{dataStatus} ,</if>
<if test="addStatus != null and addStatus != ''">#{addStatus} ,</if>
<if test="updateStatus != null and updateStatus != ''">#{updateStatus} ,</if>
<if test="deleteStatus != null and deleteStatus != ''">#{deleteStatus} ,</if>
<if test="sorts != null">#{sorts} ,</if>
<if test="create_user_id != null and create_user_id != ''">#{create_user_id} ,</if>
<if test="create_time != null">#{create_time} ,</if>
<if test="modify_user_id != null and modify_user_id != ''">#{modify_user_id} ,</if>
<if test="modify_time != null">#{modify_time} ,</if>
<if test="sts != null and sts != ''">#{sts} ,</if>
<if test="org_id != null and org_id != ''">#{org_id} ,</if>
<if test="companyId != null and companyId != ''">#{companyId} ,</if>
<if test="dataId != null and dataId != ''">#{dataId} ,</if>
<if test="mdmUpId != null and mdmUpId != ''">#{mdmUpId} ,</if>
<if test="pkCorp != null and pkCorp != ''">#{pkCorp} ,</if>
<if test="subjcode != null and subjcode != ''">#{subjcode} ,</if>
<if test="subjname != null and subjname != ''">#{subjname} ,</if>
<if test="code1 != null and code1 != ''">#{code1} ,</if>
<if test="code2 != null and code2 != ''">#{code2} ,</if>
<if test="code3 != null and code3 != ''">#{code3} ,</if>
<if test="code4 != null and code4 != ''">#{code4} ,</if>
<if test="code5 != null and code5 != ''">#{code5} ,</if>
<if test="code6 != null and code6 != ''">#{code6} ,</if>
<if test="code7 != null and code7 != ''">#{code7} ,</if>
<if test="code8 != null and code8 != ''">#{code8} ,</if>
<if test="code9 != null and code9 != ''">#{code9} ,</if>
<if test="code10 != null and code10 != ''">#{code10} ,</if>
<if test="def1 != null and def1 != ''">#{def1} ,</if>
<if test="def2 != null and def2 != ''">#{def2} ,</if>
<if test="def3 != null and def3 != ''">#{def3} ,</if>
<if test="def4 != null and def4 != ''">#{def4} ,</if>
<if test="def5 != null and def5 != ''">#{def5} ,</if>
<if test="def6 != null and def6 != ''">#{def6} ,</if>
<if test="def7 != null and def7 != ''">#{def7} ,</if>
<if test="def8 != null and def8 != ''">#{def8} ,</if>
<if test="def9 != null and def9 != ''">#{def9} ,</if>
<if test="def10 != null and def10 != ''">#{def10} ,</if>
<if test="balance != null and balance != ''">#{balance} ,</if>
<if test="sorts == null ">(select (max(IFNULL( a.sorts, 0 )) + 1) as sort from mdm_gm_subject_balance a
WHERE a.sts = 'Y' ),
</if>
<if test="sts == null ">'Y',</if>
</trim>
)
</insert>
<!-- 批量新增 -->
<insert id="entityInsertBatch" keyProperty="id" useGeneratedKeys="true">
insert into mdm_gm_subject_balance(document_rule, document_rule_num, data_status, add_status, update_status,
delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, data_id,
mdm_up_id, pk_corp, subjcode, subjname, code1, code2, code3, code4, code5, code6, code7, code8, code9, code10,
def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, balance, sts)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.dataId},#{entity.mdmUpId},#{entity.pkCorp},#{entity.subjcode},#{entity.subjname},#{entity.code1},#{entity.code2},#{entity.code3},#{entity.code4},#{entity.code5},#{entity.code6},#{entity.code7},#{entity.code8},#{entity.code9},#{entity.code10},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.balance},
'Y')
</foreach>
</insert>
<!-- 批量新增或者修改-->
<insert id="entityInsertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into mdm_gm_subject_balance(document_rule, document_rule_num, data_status, add_status, update_status,
delete_status, create_user_id, create_time, modify_user_id, modify_time, sts, org_id, company_id, data_id,
mdm_up_id, pk_corp, subjcode, subjname, code1, code2, code3, code4, code5, code6, code7, code8, code9, code10,
def1, def2, def3, def4, def5, def6, def7, def8, def9, def10, balance)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.documentRule},#{entity.documentRuleNum},#{entity.dataStatus},#{entity.addStatus},#{entity.updateStatus},#{entity.deleteStatus},#{entity.create_user_id},#{entity.create_time},#{entity.modify_user_id},#{entity.modify_time},#{entity.sts},#{entity.org_id},#{entity.companyId},#{entity.dataId},#{entity.mdmUpId},#{entity.pkCorp},#{entity.subjcode},#{entity.subjname},#{entity.code1},#{entity.code2},#{entity.code3},#{entity.code4},#{entity.code5},#{entity.code6},#{entity.code7},#{entity.code8},#{entity.code9},#{entity.code10},#{entity.def1},#{entity.def2},#{entity.def3},#{entity.def4},#{entity.def5},#{entity.def6},#{entity.def7},#{entity.def8},#{entity.def9},#{entity.def10},#{entity.balance})
</foreach>
on duplicate key update
document_rule = values(document_rule),
document_rule_num = values(document_rule_num),
data_status = values(data_status),
add_status = values(add_status),
update_status = values(update_status),
delete_status = values(delete_status),
create_user_id = values(create_user_id),
create_time = values(create_time),
modify_user_id = values(modify_user_id),
modify_time = values(modify_time),
sts = values(sts),
org_id = values(org_id),
company_id = values(company_id),
data_id = values(data_id),
mdm_up_id = values(mdm_up_id),
pk_corp = values(pk_corp),
subjcode = values(subjcode),
subjname = values(subjname),
code1 = values(code1),
code2 = values(code2),
code3 = values(code3),
code4 = values(code4),
code5 = values(code5),
code6 = values(code6),
code7 = values(code7),
code8 = values(code8),
code9 = values(code9),
code10 = values(code10),
def1 = values(def1),
def2 = values(def2),
def3 = values(def3),
def4 = values(def4),
def5 = values(def5),
def6 = values(def6),
def7 = values(def7),
def8 = values(def8),
def9 = values(def9),
def10 = values(def10),
balance = values(balance)
</insert>
<!--通过主键修改方法-->
<update id="entity_update" parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity">
update mdm_gm_subject_balance set
<trim suffix="" suffixOverrides=",">
<if test="documentRule != null and documentRule != ''">document_rule = #{documentRule},</if>
<if test="documentRuleNum != null">document_rule_num = #{documentRuleNum},</if>
<if test="dataStatus != null and dataStatus != ''">data_status = #{dataStatus},</if>
<if test="addStatus != null and addStatus != ''">add_status = #{addStatus},</if>
<if test="updateStatus != null and updateStatus != ''">update_status = #{updateStatus},</if>
<if test="deleteStatus != null and deleteStatus != ''">delete_status = #{deleteStatus},</if>
<if test="create_user_id != null and create_user_id != ''">create_user_id = #{create_user_id},</if>
<if test="create_time != null">create_time = #{create_time},</if>
<if test="modify_user_id != null and modify_user_id != ''">modify_user_id = #{modify_user_id},</if>
<if test="modify_time != null">modify_time = #{modify_time},</if>
<if test="sts != null and sts != ''">sts = #{sts},</if>
<if test="org_id != null and org_id != ''">org_id = #{org_id},</if>
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
<if test="dataId != null and dataId != ''">data_id = #{dataId},</if>
<if test="mdmUpId != null and mdmUpId != ''">mdm_up_id = #{mdmUpId},</if>
<if test="pkCorp != null and pkCorp != ''">pk_corp = #{pkCorp},</if>
<if test="subjcode != null and subjcode != ''">subjcode = #{subjcode},</if>
<if test="subjname != null and subjname != ''">subjname = #{subjname},</if>
<if test="code1 != null and code1 != ''">code1 = #{code1},</if>
<if test="code2 != null and code2 != ''">code2 = #{code2},</if>
<if test="code3 != null and code3 != ''">code3 = #{code3},</if>
<if test="code4 != null and code4 != ''">code4 = #{code4},</if>
<if test="code5 != null and code5 != ''">code5 = #{code5},</if>
<if test="code6 != null and code6 != ''">code6 = #{code6},</if>
<if test="code7 != null and code7 != ''">code7 = #{code7},</if>
<if test="code8 != null and code8 != ''">code8 = #{code8},</if>
<if test="code9 != null and code9 != ''">code9 = #{code9},</if>
<if test="code10 != null and code10 != ''">code10 = #{code10},</if>
<if test="def1 != null and def1 != ''">def1 = #{def1},</if>
<if test="def2 != null and def2 != ''">def2 = #{def2},</if>
<if test="def3 != null and def3 != ''">def3 = #{def3},</if>
<if test="def4 != null and def4 != ''">def4 = #{def4},</if>
<if test="def5 != null and def5 != ''">def5 = #{def5},</if>
<if test="def6 != null and def6 != ''">def6 = #{def6},</if>
<if test="def7 != null and def7 != ''">def7 = #{def7},</if>
<if test="def8 != null and def8 != ''">def8 = #{def8},</if>
<if test="def9 != null and def9 != ''">def9 = #{def9},</if>
<if test="def10 != null and def10 != ''">def10 = #{def10},</if>
<if test="balance != null and balance != ''">balance = #{balance},</if>
</trim>
where id = #{id}
</update>
<!-- 逻辑删除 -->
<update id="entity_logicDelete" parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity">
update mdm_gm_subject_balance
set sts= 'N',
modify_time = #{modify_time},
modify_user_id = #{modify_user_id}
where id = #{id}
</update>
<!-- 多条件逻辑删除 -->
<update id="entity_logicDelete_Multi_Condition"
parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity">
update mdm_gm_subject_balance set sts= 'N' ,modify_time = #{modify_time},modify_user_id = #{modify_user_id}
<trim prefix="where" prefixOverrides="and">
<if test="id != null and id != ''">and id = #{id}</if>
<if test="documentRule != null and documentRule != ''">and document_rule = #{documentRule}</if>
<if test="documentRuleNum != null">and document_rule_num = #{documentRuleNum}</if>
<if test="dataStatus != null and dataStatus != ''">and data_status = #{dataStatus}</if>
<if test="addStatus != null and addStatus != ''">and add_status = #{addStatus}</if>
<if test="updateStatus != null and updateStatus != ''">and update_status = #{updateStatus}</if>
<if test="deleteStatus != null and deleteStatus != ''">and delete_status = #{deleteStatus}</if>
<if test="sorts != null">and sorts = #{sorts}</if>
<if test="sts != null and sts != ''">and sts = #{sts}</if>
<if test="companyId != null and companyId != ''">and company_id = #{companyId}</if>
<if test="dataId != null and dataId != ''">and data_id = #{dataId}</if>
<if test="mdmUpId != null and mdmUpId != ''">and mdm_up_id = #{mdmUpId}</if>
<if test="pkCorp != null and pkCorp != ''">and pk_corp = #{pkCorp}</if>
<if test="subjcode != null and subjcode != ''">and subjcode = #{subjcode}</if>
<if test="subjname != null and subjname != ''">and subjname = #{subjname}</if>
<if test="code1 != null and code1 != ''">and code1 = #{code1}</if>
<if test="code2 != null and code2 != ''">and code2 = #{code2}</if>
<if test="code3 != null and code3 != ''">and code3 = #{code3}</if>
<if test="code4 != null and code4 != ''">and code4 = #{code4}</if>
<if test="code5 != null and code5 != ''">and code5 = #{code5}</if>
<if test="code6 != null and code6 != ''">and code6 = #{code6}</if>
<if test="code7 != null and code7 != ''">and code7 = #{code7}</if>
<if test="code8 != null and code8 != ''">and code8 = #{code8}</if>
<if test="code9 != null and code9 != ''">and code9 = #{code9}</if>
<if test="code10 != null and code10 != ''">and code10 = #{code10}</if>
<if test="def1 != null and def1 != ''">and def1 = #{def1}</if>
<if test="def2 != null and def2 != ''">and def2 = #{def2}</if>
<if test="def3 != null and def3 != ''">and def3 = #{def3}</if>
<if test="def4 != null and def4 != ''">and def4 = #{def4}</if>
<if test="def5 != null and def5 != ''">and def5 = #{def5}</if>
<if test="def6 != null and def6 != ''">and def6 = #{def6}</if>
<if test="def7 != null and def7 != ''">and def7 = #{def7}</if>
<if test="def8 != null and def8 != ''">and def8 = #{def8}</if>
<if test="def9 != null and def9 != ''">and def9 = #{def9}</if>
<if test="def10 != null and def10 != ''">and def10 = #{def10}</if>
<if test="balance != null and balance != ''">and balance = #{balance}</if>
and sts='Y'
</trim>
</update>
<!--通过主键删除-->
<delete id="entity_delete">
delete
from mdm_gm_subject_balance
where id = #{id}
</delete>
<select id="queryBalanceBySubjectCodeAndPkCorp" parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity" resultMap="get-MdmGmSubjectBalanceEntity-result">
SELECT
gl_detail.pk_corp as pkCorp,
bd_accsubj.subjcode as subjcode,
bd_accsubj.subjname as subjname,
bd_accsubj.balanflag,
bd_accsubj.balanorient,
bd_accsubj.incurflag,
gl_ftpfreevalue.code1 as code1,
gl_ftpfreevalue.code3 as code3,
gl_ftpfreevalue.code5 as code5,
gl_ftpfreevalue.code8 as code8,
CASE
WHEN bd_accsubj.balanorient = 1 THEN SUM(gl_detail.localdebitamount) - SUM(gl_detail.localcreditamount)
WHEN bd_accsubj.balanorient = 2 THEN SUM(gl_detail.localcreditamount) - SUM(gl_detail.localdebitamount)
END AS balance
FROM
gl_detail gl_detail
LEFT JOIN gl_fixtmpfreevalue gl_ftpfreevalue ON gl_detail.assid = gl_ftpfreevalue.assid
INNER JOIN bd_accsubj bd_accsubj ON gl_detail.pk_accsubj = bd_accsubj.pk_accsubj
INNER JOIN gl_voucher voucher ON voucher.pk_voucher = gl_detail.pk_voucher
WHERE
1=1
AND bd_accsubj.subjcode = #{subjcode}
AND gl_detail.dr = 0
AND gl_detail.discardflagv = 'N'
AND pk_managerv != 'N/A'
AND gl_detail.pk_corp = #{pkCorp}
GROUP BY
gl_detail.pk_corp,
bd_accsubj.subjcode,
bd_accsubj.subjname,
bd_accsubj.balanflag,
bd_accsubj.balanorient,
bd_accsubj.incurflag,
gl_ftpfreevalue.code1,
gl_ftpfreevalue.code3,
gl_ftpfreevalue.code5,
gl_ftpfreevalue.code8
</select>
<select id="queryBalanceBySubjectCodesAndPkCorp" parameterType="com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity" resultMap="get-MdmGmSubjectBalanceEntity-result">
SELECT
gl_detail.pk_corp as pkCorp,
bd_accsubj.subjcode as subjcode,
bd_accsubj.subjname as subjname,
bd_accsubj.balanflag,
bd_accsubj.balanorient,
bd_accsubj.incurflag,
gl_ftpfreevalue.code1 as code1,
gl_ftpfreevalue.code3 as code3,
gl_ftpfreevalue.code5 as code5,
gl_ftpfreevalue.code8 as code8,
-- SUM(gl_detail.localdebitamount)- SUM(gl_detail.localcreditamount) as balance
CASE
WHEN bd_accsubj.balanorient = 1 THEN SUM(gl_detail.localdebitamount) - SUM(gl_detail.localcreditamount)
WHEN bd_accsubj.balanorient = 2 THEN SUM(gl_detail.localcreditamount) - SUM(gl_detail.localdebitamount)
END AS balance
FROM
gl_detail gl_detail
LEFT JOIN gl_fixtmpfreevalue gl_ftpfreevalue ON gl_detail.assid = gl_ftpfreevalue.assid
INNER JOIN bd_accsubj bd_accsubj ON gl_detail.pk_accsubj = bd_accsubj.pk_accsubj
INNER JOIN gl_voucher voucher ON voucher.pk_voucher = gl_detail.pk_voucher
WHERE
1=1
AND bd_accsubj.subjcode IN (${subjcodes})
AND gl_detail.dr = 0
AND gl_detail.discardflagv = 'N'
AND pk_managerv != 'N/A'
AND gl_detail.pk_corp = #{pkCorp}
GROUP BY
gl_detail.pk_corp,
bd_accsubj.subjcode,
bd_accsubj.subjname,
bd_accsubj.balanflag,
bd_accsubj.balanorient,
bd_accsubj.incurflag,
gl_ftpfreevalue.code1,
gl_ftpfreevalue.code3,
gl_ftpfreevalue.code5,
gl_ftpfreevalue.code8
</select>
<insert id="saveList" parameterType="java.util.List">
INSERT INTO mdm_gm_subject_balance (
id,
pk_corp,
subjcode,
subjname,
code1,
code3,
code5,
code8,
balance,
sts,
data_status
) VALUES
<foreach collection="list" item="item" separator=",">
(
UUID(),
#{item.pkCorp},
#{item.subjcode},
#{item.subjname},
#{item.code1},
#{item.code3},
#{item.code5},
#{item.code8},
#{item.balance},
'Y',
'Y'
)
</foreach>
</insert>
<delete id="clearTable">
TRUNCATE TABLE mdm_gm_subject_balance;
</delete>
</mapper>

View File

@ -0,0 +1,12 @@
package com.hzya.frame.plugin.gm.service;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity;
/**
* 广脉科目辅助余额表(MdmGmSubjectBalance)表服务接口
*
* @author zydd
* @since 2025-08-02 13:39:24
*/
public interface IMdmGmSubjectBalanceService extends IBaseService<MdmGmSubjectBalanceEntity, String>{
}

View File

@ -0,0 +1,23 @@
package com.hzya.frame.plugin.gm.service.impl;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.gm.dao.IMdmGmSubjectBalanceDao;
import com.hzya.frame.plugin.gm.entity.MdmGmSubjectBalanceEntity;
import com.hzya.frame.plugin.gm.service.IMdmGmSubjectBalanceService;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 广脉科目辅助余额表(MdmGmSubjectBalance)表服务实现类
*
* @author zydd
* @since 2025-08-02 13:39:24
*/
public class MdmGmSubjectBalanceServiceImpl extends BaseService<MdmGmSubjectBalanceEntity, String> implements IMdmGmSubjectBalanceService {
private IMdmGmSubjectBalanceDao mdmGmSubjectBalanceDao;
@Autowired
public void setMdmGmSubjectBalanceDao(IMdmGmSubjectBalanceDao dao) {
this.mdmGmSubjectBalanceDao = dao;
this.dao = dao;
}
}

View File

@ -0,0 +1,178 @@
package com.hzya.frame.plugin.gm.utils;
import cn.hutool.core.lang.Assert;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.dao.IIntegrationTaskLivingDetailsDao;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
import com.hzya.frame.uuid.UUIDLong;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* 保存或者更新业务日志
*/
@Component
public class SaveOrUpdateBusinessLogUtil {
Logger logger = LoggerFactory.getLogger(SaveOrUpdateBusinessLogUtil.class);
@Autowired
private IIntegrationTaskLivingDetailsDao iIntegrationTaskLivingDetailsDao;
private static final Object insertOrUpdateLock = new Object();
private static final Object queryDetailsLock = new Object();
private static final String successY = "Y";
private static final String failN = "N";
private static final Object OBJECT_LOCK = new Object();
/**
* 保存或者更新
*
* @param integrationTaskLivingDetailsEntity 提交参数
*/
public void saveOrUpdate(IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity) {
Assert.notNull(integrationTaskLivingDetailsEntity, "integrationTaskLivingDetailsEntity不能为空");
Assert.notNull(integrationTaskLivingDetailsEntity.getRootAppPk(), "源系统单号不能为空");
Assert.notNull(integrationTaskLivingDetailsEntity.getPluginId(), "场景id不能为空");
synchronized (OBJECT_LOCK) {
Thread n = new Thread(new Runnable() {
@Override
public void run() {
try {
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetails = null;
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity1 = new IntegrationTaskLivingDetailsEntity();
integrationTaskLivingDetailsEntity1.setNewState("N");
integrationTaskLivingDetailsEntity1.setRootAppPk(integrationTaskLivingDetailsEntity.getRootAppPk());
integrationTaskLivingDetailsEntity1.setPluginId(integrationTaskLivingDetailsEntity.getPluginId());
List<IntegrationTaskLivingDetailsEntity> integrationTaskLivingDetailsEntities = iIntegrationTaskLivingDetailsDao.query(integrationTaskLivingDetailsEntity1);
if (integrationTaskLivingDetailsEntities != null && integrationTaskLivingDetailsEntities.size() > 0) {
integrationTaskLivingDetails = integrationTaskLivingDetailsEntities.get(0);
}
if (integrationTaskLivingDetails != null) {
//存在则更新可能是NY / NN
integrationTaskLivingDetailsEntity.setId(integrationTaskLivingDetails.getId());
updateSuccessMessage(integrationTaskLivingDetailsEntity);
} else {
//不存在则新增可能是Y / N
Long uuid = UUIDLong.longUUID();
integrationTaskLivingDetailsEntity.setId(String.valueOf(uuid));
saveSuccessMessage(integrationTaskLivingDetailsEntity);
// logger.info("integration_task_living_details->日志保存成功,主键:{}", save.getId());
}
} catch (Exception e) {
logger.error("SaveOrUpdateBusinessLogUtil对应的saveOrUpdate方法抛出异常日志详情保存失败", e);
//2024年9月3日 10:26:45 如果这里往上抛出异常没有功能搭配处理
}
}
});
n.start();
try{
n.join();
}catch (Exception e){
logger.error("",e);
}
}
}
/**
* 更新日志 存在则更新可能是NY / NN
* 肯定有id
*
* @param integrationTaskLivingDetailsEntity
*/
private void updateSuccessMessage(IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity) {
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity1 = queryIntegrationTaskLivingDetailsEntityN(integrationTaskLivingDetailsEntity.getId());
if (successY.equals(integrationTaskLivingDetailsEntity.getNewState())) {
//NY
iIntegrationTaskLivingDetailsDao.deleteEntity(integrationTaskLivingDetailsEntity1);
String successIdentification = "success";
integrationTaskLivingDetailsEntity.setRootAppNewData(successIdentification);
integrationTaskLivingDetailsEntity.setNewTransmitInfo(successIdentification);
iIntegrationTaskLivingDetailsDao.saveSuccessLog(integrationTaskLivingDetailsEntity);
} else if (failN.equals(integrationTaskLivingDetailsEntity.getNewState())) {
//NN
String rootAppNewData = integrationTaskLivingDetailsEntity.getRootAppNewData();
if (integrationTaskLivingDetailsEntity.getRootAppNewData() != null && !integrationTaskLivingDetailsEntity.getRootAppNewData().trim().equals("") && integrationTaskLivingDetailsEntity.getRootAppNewData().length() >= 500) {
rootAppNewData = integrationTaskLivingDetailsEntity.getRootAppNewData().substring(0, 500);
}
String newTransmitInfo = integrationTaskLivingDetailsEntity.getNewTransmitInfo();
if (integrationTaskLivingDetailsEntity.getNewTransmitInfo() != null && !integrationTaskLivingDetailsEntity.getNewTransmitInfo().trim().equals("") && integrationTaskLivingDetailsEntity.getNewTransmitInfo().length() >= 500) {
newTransmitInfo = integrationTaskLivingDetailsEntity.getNewTransmitInfo().substring(0, 500);
}
integrationTaskLivingDetailsEntity.setRootAppNewData(rootAppNewData);
integrationTaskLivingDetailsEntity.setNewTransmitInfo(newTransmitInfo);
iIntegrationTaskLivingDetailsDao.update(integrationTaskLivingDetailsEntity);
}
}
/**
* 新增日志 不存在则新增可能是Y / N
*
* @param integrationTaskLivingDetailsEntity
*/
private void saveSuccessMessage(IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity) {
if (successY.equals(integrationTaskLivingDetailsEntity.getNewState())) {
//Y
String successIdentification = "success";
integrationTaskLivingDetailsEntity.setRootAppNewData(successIdentification);
integrationTaskLivingDetailsEntity.setNewTransmitInfo(successIdentification);
iIntegrationTaskLivingDetailsDao.saveSuccessLog(integrationTaskLivingDetailsEntity);
} else if (failN.equals(integrationTaskLivingDetailsEntity.getNewState())) {
//N
String rootAppNewData = integrationTaskLivingDetailsEntity.getRootAppNewData();
if (integrationTaskLivingDetailsEntity.getRootAppNewData() != null && !integrationTaskLivingDetailsEntity.getRootAppNewData().trim().equals("") && integrationTaskLivingDetailsEntity.getRootAppNewData().length() >= 500) {
rootAppNewData = integrationTaskLivingDetailsEntity.getRootAppNewData().substring(0, 500);
}
String newTransmitInfo = integrationTaskLivingDetailsEntity.getNewTransmitInfo();
if (integrationTaskLivingDetailsEntity.getNewTransmitInfo() != null && !integrationTaskLivingDetailsEntity.getNewTransmitInfo().trim().equals("") && integrationTaskLivingDetailsEntity.getNewTransmitInfo().length() >= 500) {
newTransmitInfo = integrationTaskLivingDetailsEntity.getNewTransmitInfo().substring(0, 500);
}
integrationTaskLivingDetailsEntity.setRootAppNewData(rootAppNewData);
integrationTaskLivingDetailsEntity.setNewTransmitInfo(newTransmitInfo);
iIntegrationTaskLivingDetailsDao.save(integrationTaskLivingDetailsEntity);
}
}
private static final Object queryIntegrationTaskLivingDetailsEntityLock = new Object();
/**
* 根据明细id查询明细信息成功表 integration_task_living_details_success
*/
public IntegrationTaskLivingDetailsEntity queryIntegrationTaskLivingDetailsEntityY(IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity) {
// Assert.notNull(integration_task_living_details_id, "业务明细id不能为空");
// IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
// integrationTaskLivingDetailsEntity.setId(integration_task_living_details_id);
// integrationTaskLivingDetailsEntity.setNewState("Y");//查询成功表
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity1 = iIntegrationTaskLivingDetailsDao.queryEntity(integrationTaskLivingDetailsEntity);
Assert.notNull(integrationTaskLivingDetailsEntity1, "根据主键id没有查询到明细信息");
return integrationTaskLivingDetailsEntity1;
}
/**
* 根据明细id查询明细信息错误表 integration_task_living_details
*/
public IntegrationTaskLivingDetailsEntity queryIntegrationTaskLivingDetailsEntityN(String integration_task_living_details_id) {
Assert.notNull(integration_task_living_details_id, "业务明细id不能为空");
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity = new IntegrationTaskLivingDetailsEntity();
integrationTaskLivingDetailsEntity.setId(integration_task_living_details_id);
integrationTaskLivingDetailsEntity.setNewState("N");//查询失败表
IntegrationTaskLivingDetailsEntity integrationTaskLivingDetailsEntity1 = iIntegrationTaskLivingDetailsDao.queryEntity(integrationTaskLivingDetailsEntity);
Assert.notNull(integrationTaskLivingDetailsEntity1, "根据主键id没有查询到明细信息");
return integrationTaskLivingDetailsEntity1;
}
}

View File

@ -1,8 +1,8 @@
package com.hzya.frame.plugin.masterData.dao.impl;
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
import com.hzya.frame.plugin.masterData.dao.IMdmDao;
import com.hzya.frame.basedao.dao.MybatisGenericDao;
import com.hzya.frame.plugin.masterData.dao.IMdmDao;
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
/**
* 客户档案(MdmCustomer)表数据库访问层
*

View File

@ -1,6 +1,5 @@
package com.hzya.frame.plugin.masterData.entity;
import java.util.Date;
import com.hzya.frame.web.entity.BaseEntity;
/**
* 客户档案(MdmCustomer)实体类

View File

@ -1,7 +1,7 @@
package com.hzya.frame.plugin.masterData.service;
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
/**
* 客户档案(MdmCustomer)表服务接口
*

View File

@ -1,11 +1,10 @@
package com.hzya.frame.plugin.masterData.service.impl;
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.masterData.dao.IMdmDao;
import com.hzya.frame.plugin.masterData.service.IMdmService;
import com.hzya.frame.plugin.masterData.entity.MdmEntity;
import com.hzya.frame.plugin.masterData.service.IMdmService;
import org.springframework.beans.factory.annotation.Autowired;
import com.hzya.frame.basedao.service.impl.BaseService;
/**
* 客户档案(MdmCustomer)表服务实现类
*

View File

@ -1,6 +1,5 @@
package com.hzya.frame.plugin.mdmDistribute.plugin;
import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON;

View File

@ -2,12 +2,8 @@ package com.hzya.frame.plugin.pushMessage.plugin;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.base.PluginBaseEntity;
import com.hzya.frame.plugin.pushMessage.dao.IPushMessageDao;
import com.hzya.frame.plugin.pushMessage.entity.PushMessageEntity;
import com.hzya.frame.sysnew.comparison.masterData.service.IMasterDataService;
import com.hzya.frame.sysnew.pushMessage.dao.ISysPushMessageDao;
import com.hzya.frame.sysnew.pushMessage.entity.SysPushMessageEntity;
import com.hzya.frame.sysnew.pushMessage.service.ISysPushMessageService;
import com.hzya.frame.sysnew.sendMessageLog.service.ISysSendMessageLogService;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;

View File

@ -1,9 +1,7 @@
package com.hzya.frame.plugin.pushMessage.service;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.basedao.service.IBaseService;
import com.hzya.frame.plugin.pushMessage.entity.PushMessageEntity;
import com.hzya.frame.web.entity.JsonResultEntity;
public interface IPushMessageService extends IBaseService<PushMessageEntity, String> {

View File

@ -1,16 +1,10 @@
package com.hzya.frame.plugin.pushMessage.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.basedao.service.impl.BaseService;
import com.hzya.frame.plugin.pushMessage.dao.IPushMessageDao;
import com.hzya.frame.plugin.pushMessage.entity.PushMessageEntity;
import com.hzya.frame.plugin.pushMessage.service.IPushMessageService;
import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
public class PushMessageServiceImpl extends BaseService<PushMessageEntity, String> implements IPushMessageService {

View File

@ -1,23 +0,0 @@
#######################澳星环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: GBK
file:
# 日志保存路径
path: E:\yongansystem\log
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://127.0.0.1:3306/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: E:\yongansystem\file
zt:
url: http://127.0.0.1:9081/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -1,42 +0,0 @@
#######################dev环境#######################
logging:
#日志级别 指定目录级别
level:
root: warn
encodings: UTF-8
file:
# 日志保存路径
path: /home/webservice/zt/log
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /home/webservice/zt/file
# path: D:\webservice\file
# pluginpath: D:\webservice\plugin
pluginpath: /home/webservice/zt/plugin
# tomcatpath: D:\apache-tomcat-9.0.69\webapps\kangarooDataCenter\WEB-INF\classes\
tomcatpath: /home/webservice/zt/tomcatV3/webapps/kangarooDataCenterV3/WEB-INF/classes/
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
zt:
url: http://127.0.0.1:9082/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -1,27 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: D:\yongansystem\kangarooDataCenter\v3\logs
spring:
datasource:
dynamic:
datasource:
master:
# url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
# username: root
# password: bd993088e8a7c3dc5f44441617f9b4bf
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: D:\yongansystem\kangarooDataCenter\v3\logs
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -1,82 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/apple/Desktop/log/local
spring:
data:
mongodb:
# host: 192.168.2.237
# port: 27017
# database: businesscenter
# auto-index-creation: true
# password: hzya1314
# username: hzya
flyway:
# 启动flyway migration, 默认为true
enabled: false
datasource:
dynamic:
druid:
filters: stat,log4j2
datasource:
master:
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
# type: com.alibaba.druid.pool.DruidDataSource
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
# url: jdbc:dm://hzya.ufyct.com:9040/businesscenter?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
# url: jdbc:dm://hzya.ufyct.com:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: hzyazt
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: dm.jdbc.driver.DmDriver
savefile:
# 文件保存路径
path: /Users/apple/Desktop/log/local
tomcatpath: /Users/apple/Desktop/log/local
pluginpath: /Users/apple/Desktop/log/local
zt:
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
server:
port: 10086
# mysqldump -d mylm -hhzya.ufyct.com -p9096 -uroot -phzya1314 >%dirName%\table_view.sql
database:
databaseName: businesscenter
host: 192.168.2.237
port: 3306
username: root
password: hzya@1314
filePase: /Users/apple/Desktop/log
fileName: data.sql
#sftp:
# host: 192.168.2.237
# port: 9091
# username: cs237
# password: hzya@1314
# filePase: /databaseBack

View File

@ -1,23 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/apple/Desktop/log/local
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/apple/Desktop/log/local
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -1,23 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/xiangerlin/work/app/logs/dev
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/xiangerlin/work/app/file/dev
pluginpath: /Users/xiangerlin/work/app/file/dev
tomcatpath: /Users/xiangerlin/work/app/file/dev

View File

@ -1,90 +0,0 @@
#logging:
# #日志级别 指定目录级别
# level:
# root: info
# encodings: UTF-8
# file:
# # 日志保存路径
# path: /zt/log
#spring:
# flyway:
# # 启动flyway migration, 默认为true
# enabled: false
# datasource:
# dynamic:
# druid:
# filters: stat,log4j2
# datasource:
# master:
# url: jdbc:dm://10.75.51.82:5238?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
# username: businesscenter
# password: 6842568689469adad597d144ee104063
# driver-class-name: dm.jdbc.driver.DmDriver
#savefile:
# # 文件保存路径
# path: /zt/file
#公司mysql
#ax:
# url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface
#logging:
# #日志级别 指定目录级别warn
# level:
# root: info
# encodings: UTF-8
# file:
# # 日志保存路径
# path: /home/webservice/zt/log
#spring:
# datasource:
# dynamic:
# datasource:
# master:
# url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
# username: root
# password: 62e4295b615a30dbf3b8ee96f41c820b
# driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
#savefile:
# # 文件保存路径
# path: /home/webservice/zt/file
#公司服务器达梦
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /zt/log
spring:
flyway:
# 启动flyway migration, 默认为true
enabled: false
datasource:
dynamic:
druid:
filters: stat,log4j2
datasource:
master:
url: jdbc:dm://ufidahz.com.cn:9040?schema=businesscenter&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8&compatibleMode=oracle
username: hzyazt
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: dm.jdbc.driver.DmDriver
savefile:
# 文件保存路径
path: /zt/file
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /zt/elecfile
OA:
data_source_code: yc_oa

View File

@ -1,21 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/xiangerlin/work/app/logs/ydc
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/xiangerlin/work/app/logs/ydc

View File

@ -1,31 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: /Users/xiangerlin/work/app/logs/yuecheng
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: /Users/xiangerlin/work/app/logs/yuecheng
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826F3067A6B93BC3839C836A06007869CD351FBBE388B51F742859388BBC1DE089923AAFBC69E448F15141DDF30EE6CE90185

View File

@ -1,23 +0,0 @@
#######################本地环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: E:\yongansystem\log
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9096/businesscenternew?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: bd993088e8a7c3dc5f44441617f9b4bf
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: E:\yongansystem\log
zt:
url: http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -1,39 +0,0 @@
#######################zqtlocal环境#######################
logging:
#日志级别 指定目录级别
level:
root: info
encodings: UTF-8
file:
# 日志保存路径
path: D:/local/logs/
spring:
datasource:
dynamic:
datasource:
master:
url: jdbc:mysql://ufidahz.com.cn:9014/businesscenter?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF8&serverTimezone=GMT%2B8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowLoadLocalInfile=false&autoReconnect=true&failOverReadOnly=false&connectTimeout=30000&socketTimeout=30000&autoReconnectForPools=true
username: root
password: 62e4295b615a30dbf3b8ee96f41c820b
driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
savefile:
# 文件保存路径
path: D:/local/upload/
pluginpath : D:/local/plugin/
tomcatpath: E:\apache-tomcat-9.0.27\webapps\kangarooDataCenterV3\WEB-INF\classes\
cbs8:
appId: 1P4AGrpz
appSecret: 2c2369ae5dc04382844bbe3a5abf39e1bea9cd3a
url: https://cbs8-openapi-reprd.csuat.cmburl.cn
# 测试用这个 这个是银行给的,和下面的公钥不是一对密钥
ya_private_key: 83BA7EC821D35F4CB31FF9A51C1EFA520FC52AF828C2337F88E91CF119B07F44
# 这个私钥到时候上传到cbs和下面到是同一对
#ya_private_key: e1eacfdee9b8d4184437d5a2071e17ce31befc3d93395f9f05709ed562e8dc46
ya_public_key: 044fa399d2223760f17b81b863cb482b009294c4516f8a605dea1475ec09e720eaa98468715e5ad509a592a0b426061551c5a3df236966c23253a7d894eac0dcde
cbs_public_key: 0469146F06BF3B01236E84632441E826
#电子回单下载临时存放位置
elec_path: /Users/xiangerlin/Downloads/
OA:
data_source_code: yc_oa
zt:
url: http://127.0.0.1:10086/kangarooDataCenterV3/entranceController/externalCallInterface

View File

@ -36,15 +36,15 @@ spring:
# use-suffix-pattern: true
profiles:
# active: @profileActive@
active: @profile.active@
active: cocodev
# active: dev
servlet:
multipart:
enabled: true
#单个文件的大小
max-file-size: 100MB
max-file-size: 300MB
#单次请求的文件的总大小
max-request-size: 100MB
max-request-size: 300MB
# 默认数据源设置
datasource:
dynamic:

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin>
<id>GmPlugin</id>
<name>GmPlugin插件</name>
<category>20250801</category>
</plugin>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean name="mdmGmSubjectBalanceDao" class="com.hzya.frame.plugin.gm.dao.impl.MdmGmSubjectBalanceDaoImpl"/>
</beans>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean name="subjectAssBalancePlugin" class="com.hzya.frame.plugin.gm.SubjectAssBalancePlugin"/>
</beans>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-autowire="byName">
<bean name="mdmGmSubjectBalanceService" class="com.hzya.frame.plugin.gm.service.impl.MdmGmSubjectBalanceServiceImpl"/>
</beans>

View File

@ -1,170 +1,120 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL如果设置为WARN则低于WARN的信息都不会输出 -->
<!-- scan:当此属性设置为true时配置文件如果发生改变将会被重新加载默认值为true -->
<!-- scanPeriod:设置监测配置文件是否有修改的时间间隔如果没有给出时间单位默认单位是毫秒。当scan为true时此属性生效。默认的时间间隔为1分钟。 -->
<!-- debug:当此属性设置为true时将打印出logback内部日志信息实时查看logback运行状态。默认值为false。 -->
<configuration>
<contextName>logback</contextName>
<!-- 日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL如果设置为WARN则低于WARN的信息都不会输出 -->
<!-- 彩色日志(IDE下载插件才可以生效) -->
<!-- 彩色日志依赖的渲染类 -->
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter"/>
<conversionRule conversionWord="wex"
converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter"/>
<conversionRule conversionWord="wEx"
converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter"/>
<!-- 彩色日志格式 -->
<property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%1p}) %clr(${PID:- }){magenta} %clr(--){faint} %clr([%1.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/>
<!-- 日志路径和编码配置 -->
<springProperty scope="context" name="logPath" source="logging.file.path" defaultValue="logdir"/>
<springProperty scope="context" name="encodings" source="logging.encodings" defaultValue="UTF-8"/>
<!--定义日志文档的存储地址 勿在 LogBack 的配置中使用相对路径-->
<property name="LOG_HOME" value="${logPath}"/>
<property name="MAX_HISTORY" value="50"/>
<property name="MAX_FILE_SIZE" value="50MB"/>
<!-- 控制台输出 -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<!-- <encoder>-->
<!-- <Pattern>${CONSOLE_LOG_PATTERN}</Pattern>-->
<!-- &lt;!&ndash; 设置字符集 &ndash;&gt;-->
<!-- <charset>${encodings}</charset>-->
<!-- </encoder>-->
<!--这里替换成AspectLogbackEncoder-->
<!-- 控制台输出(已正确配置编码) -->
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
<Pattern>${CONSOLE_LOG_PATTERN}</Pattern>
<!-- 设置字符集 -->
<charset>${encodings}</charset>
<charset>${encodings}</charset> <!-- 控制台编码UTF-8 -->
</encoder>
</appender>
<!-- INFO级别日志输出到文件 -->
<!-- INFO级别日志输出到文件新增charset配置 -->
<appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<!-- 添加filter只记录INFO级别以上的日志 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- 每个日志文件最大MB -->
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
<!-- 日志文件保留天 -->
<maxHistory>${MAX_HISTORY}</maxHistory>
<!-- <fileNamePattern>${LOG_PATH}/%d{yyyy-MM-dd}/info/info_%d{yyyyMMddHH}.%i.log</fileNamePattern>-->
<fileNamePattern>${LOG_PATH}/%d{yyyy-MM-dd}/info/info_%d{yyyyMMdd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- 日志文件超过最大大小后立即生成新文件 -->
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<!-- <encoder>-->
<!-- <pattern>%d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{50} - %msg%n</pattern>-->
<!-- </encoder>-->
<!--这里替换成AspectLogbackEncoder-->
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
<charset>${encodings}</charset> <!-- 文件编码UTF-8 -->
</encoder>
</appender>
<!-- WARN级别日志-->
<!-- WARN级别日志新增charset配置 -->
<appender name="WARN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- 每个日志文件最大MB -->
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
<!-- 日志文件保留天 -->
<maxHistory>${MAX_HISTORY}</maxHistory>
<fileNamePattern>${LOG_PATH}/%d{yyyy-MM-dd}/warn/warn_%d{yyyyMMdd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- 日志文件超过最大大小后立即生成新文件 -->
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<!-- 添加 WARN只记录WARN级别以上的日志 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>WARN</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<!-- <encoder>-->
<!-- <pattern>%d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{50} - %msg%n</pattern>-->
<!-- </encoder>-->
<!--这里替换成AspectLogbackEncoder-->
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
<charset>${encodings}</charset> <!-- 文件编码UTF-8 -->
</encoder>
</appender>
<!-- error级别日志-->
<!-- ERROR级别日志新增charset配置 -->
<appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- 每个日志文件最大MB -->
<!-- <maxFileSize>${MAX_FILE_SIZE}</maxFileSize>-->
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
<!-- 日志文件保留天 -->
<maxHistory>${MAX_HISTORY}</maxHistory>
<fileNamePattern>${LOG_PATH}/%d{yyyy-MM-dd}/error/error_%d{yyyyMMdd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- 日志文件超过最大大小后立即生成新文件 -->
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<!-- 添加 ERROR只记录ERROR级别以上的日志 -->
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<!-- <encoder>-->
<!-- <pattern>%d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{50} - %msg%n</pattern>-->
<!-- </encoder>-->
<!--这里替换成AspectLogbackEncoder-->
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
<charset>${encodings}</charset> <!-- 文件编码UTF-8 -->
</encoder>
</appender>
<!-- ALL 任意级别日志都会记录在此级别日志-->
<!-- ALL级别日志新增charset配置 -->
<appender name="ALL_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<!-- 每个日志文件最大MB -->
<!-- <maxFileSize>${MAX_FILE_SIZE}</maxFileSize>-->
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
<!-- 日志文件保留天 -->
<maxHistory>${MAX_HISTORY}</maxHistory>
<fileNamePattern>${LOG_PATH}/%d{yyyy-MM-dd}/all/all_%d{yyyyMMdd}.%i.log</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<!-- 日志文件超过最大大小后立即生成新文件 -->
<maxFileSize>${MAX_FILE_SIZE}</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<!-- <encoder>-->
<!-- <pattern>%d{yyyy-MM-dd HH:mm:ss} %-5level [%thread] %logger{50} - %msg%n</pattern>-->
<!-- </encoder>-->
<!--这里替换成AspectLogbackEncoder-->
<encoder class="com.yomahub.tlog.core.enhance.logback.AspectLogbackEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern>
<charset>${encodings}</charset> <!-- 文件编码UTF-8 -->
</encoder>
</appender>
<!-- 根日志配置 -->
<root level="INFO">
<!-- 控制面板输出 -->
<appender-ref ref="CONSOLE"/>
<!-- 按照每天生成日志文档 -->
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="WARN_FILE"/>
<appender-ref ref="ERROR_FILE"/>
<appender-ref ref="ALL_FILE"/>
</root>
<!-- ERROR 级别-->
<root level="ERROR">
<!-- 按照每天生成日志文档 -->
<appender-ref ref="INFO_FILE"/>
<appender-ref ref="WARN_FILE"/>
<appender-ref ref="ERROR_FILE"/>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hzya.frame</groupId>
<artifactId>kangarooDataCenterV3</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.hzya.frame</groupId>
<artifactId>base-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>none</mainClass>
<classifier>execute</classifier>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -80,7 +80,7 @@ public class AESUtil {
}
public static void main(String[] args) {
String data = "U8C241231";
String data = "hzya1314";
String encrypt1 = encrypt(data);
System.out.println(encrypt1);
}

View File

@ -1,31 +1,28 @@
package com.hzya.frame.util.bipV3;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import java.io.IOException;
import java.util.Base64;
/**
* Base64工具类
* Base64工具类使用Java标准库替代sun.misc
*
* @author liyang
*
*/
public class Base64Util {
/**
* Base64编码
* Base64编码字节数组 -> 字符串
*/
public static String encryptBASE64(byte[] key) {
return (new BASE64Encoder()).encodeBuffer(key);
// 使用标准Base64编码器
return Base64.getEncoder().encodeToString(key);
}
/**
* Base64解码
* @throws IOException
* Base64解码字符串 -> 字节数组
*/
public static byte[] decryptBASE64(String key) throws IOException {
return (new BASE64Decoder()).decodeBuffer(key);
public static byte[] decryptBASE64(String key) {
// 使用标准Base64解码器
return Base64.getDecoder().decode(key);
}
}

View File

@ -1,31 +1,29 @@
package com.hzya.frame.util.oldNcc;
import java.io.IOException;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import java.util.Base64;
/**
* Base64<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* Base64工具类
*
* @author liyang
*
*/
public class Base64Util {
/**
* Base64<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* Base64编码
*/
public static String encryptBASE64(byte[] key) {
return (new BASE64Encoder()).encodeBuffer(key);
// 标准Base64编码器将字节数组编码为字符串
return Base64.getEncoder().encodeToString(key);
}
/**
* Base64<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* @throws IOException
* Base64解码
*/
public static byte[] decryptBASE64(String key) throws IOException {
return (new BASE64Decoder()).decodeBuffer(key);
public static byte[] decryptBASE64(String key) {
// 标准Base64解码器将字符串解码为字节数组
// 注意此处不再抛出IOException标准库会抛出IllegalArgumentException参数无效时
return Base64.getDecoder().decode(key);
}
}

View File

@ -27,7 +27,6 @@ public class CompressUtil {
* ԭ<EFBFBD><EFBFBD>
* @return
* @throws IOException
* @throws BizException
* @throws Exception
*/
public static String deflaterCompress(String source) throws Exception {
@ -87,7 +86,7 @@ public class CompressUtil {
}
value = new String(bos.toByteArray(), StandardCharsets.UTF_8);
} catch (IOException | DataFormatException e) {
} catch (DataFormatException e) {
throw new Exception("<EFBFBD><EFBFBD>ѹ<EFBFBD>" + e.getMessage());
} finally {
bos.close();
@ -103,8 +102,7 @@ public class CompressUtil {
* ԭ<EFBFBD><EFBFBD>
* @return
* @throws IOException
* @throws BizException
* @throws Exception
= * @throws Exception
*/
public static String gzipCompress(String source) throws Exception {
String value = null;
@ -135,7 +133,6 @@ public class CompressUtil {
* @param source
* ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD>
* @return
* @throws BizException
* @throws Exception
*/
public static String gzipDecompress(String source) throws Exception {

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hzya.frame</groupId>
<artifactId>kangarooDataCenterV3</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.hzya.frame</groupId>
<artifactId>base-core</artifactId>
<version>0.0.1-SNAPSHOT</version>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<dependencies>
<dependency>
<groupId>com.hzya.frame</groupId>
<artifactId>base-common</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>none</mainClass>
<classifier>execute</classifier>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hzya.frame</groupId>
<artifactId>kangarooDataCenterV3</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.hzya.frame</groupId>
<artifactId>base-service</artifactId>
<version>0.0.1-SNAPSHOT</version>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<dependencies>
<dependency>
<groupId>com.hzya.frame</groupId>
<artifactId>base-core</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>none</mainClass>
<classifier>execute</classifier>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -23,6 +23,11 @@
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.0.5</version>
</dependency>
</dependencies>
<build>

View File

@ -56,7 +56,6 @@ import com.hzya.frame.web.entity.BaseResult;
import com.hzya.frame.web.entity.JsonResultEntity;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
@ -74,7 +73,6 @@ import org.apache.http.util.EntityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.task.TaskExecutor;
import org.springframework.http.client.MultipartBodyBuilder;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;

View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.hzya.frame</groupId>
<artifactId>kangarooDataCenterV3</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<groupId>com.hzya.frame</groupId>
<artifactId>base-webapp</artifactId>
<version>0.0.1-SNAPSHOT</version>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<dependencies>
<dependency>
<groupId>com.hzya.frame</groupId>
<artifactId>base-service</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>none</mainClass>
<classifier>execute</classifier>
</configuration>
</plugin>
</plugins>
</build>
</project>

201
pom.xml
View File

@ -7,19 +7,8 @@
<module>base-common</module>
<module>base-webapp</module>
<module>base-core</module>
<!-- <module>fw-bip</module>-->
<!-- <module>fw-cbs</module>-->
<!-- <module>fw-dd</module>-->
<!-- <module>fw-grpU8</module>-->
<!-- <module>fw-nc</module>-->
<!-- <module>fw-ncc</module>-->
<!-- <module>fw-ningbobank</module>-->
<!-- <module>fw-oa</module>-->
<!-- <module>fw-u8</module>-->
<!-- <module>fw-u8c</module>-->
<!-- <module>fw-u9c</module>-->
<!-- <module>fw-weixin</module>-->
</modules>
<groupId>com.hzya.frame</groupId>
<artifactId>kangarooDataCenterV3</artifactId>
<description>kangarooDataCenterV3</description>
@ -27,12 +16,13 @@
<name>kangarooDataCenterV3</name>
<modelVersion>4.0.0</modelVersion>
<packaging>pom</packaging>
<properties>
<revision>0.0.1-SNAPSHOT</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<revision>0.0.1-SNAPSHOT</revision> <!-- 实际版本号,供子模块继承 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- 其他版本变量保持不变 -->
<junit.version>4.12</junit.version>
<fastjson.version>2.0.33</fastjson.version>
<spring-boot-starter-web.version>2.7.18</spring-boot-starter-web.version>
@ -42,10 +32,7 @@
<zxing.version>3.3.0</zxing.version>
<hutool.version>5.8.19</hutool.version>
<druid.version>1.1.22</druid.version>
<!-- <mybatis-spring-boot-starter.version>2.2.2</mybatis-spring-boot-starter.version>-->
<mybatis-plus-boot-starter.version>3.5.6</mybatis-plus-boot-starter.version>
<!-- <mysql-connector-j.version>8.0.13</mysql-connector-j.version>-->
<!-- <mysql-connector-java>5.1.49</mysql-connector-java>-->
<mysql-connector-java>8.0.33</mysql-connector-java>
<pagehelper-spring-boot-starter.version>1.4.6</pagehelper-spring-boot-starter.version>
<spring-boot-starter-cache.version>2.7.18</spring-boot-starter-cache.version>
@ -77,27 +64,19 @@
<jimureport.version>1.7.4</jimureport.version>
<dingtalk-stream-sdk.version>1.3.7</dingtalk-stream-sdk.version>
<dingtalk-sdk.version>2.1.46</dingtalk-sdk.version>
<!-- <groovy.version>4.0.15</groovy.version>-->
</properties>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.18</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<!-- 统一管理依赖版本 -->
<dependencies>
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-dependencies</artifactId>-->
<!-- <version>${spring-boot.version}</version>-->
<!-- <type>pom</type>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-cache -->
<!-- https://mvnrepository.com/artifact/net.sourceforge.jtds/jtds -->
<!-- 移除重复的spring-boot-starter-cache依赖解决版本冲突警告 -->
<!-- 保留其他必要依赖 -->
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
@ -108,18 +87,12 @@
<artifactId>spring-boot-starter-aop</artifactId>
<version>${spring-boot-starter-aop.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.13</version>
</dependency>
<!-- 仅保留一处spring-boot-starter-cache依赖已在properties中定义版本 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
@ -141,20 +114,16 @@
<artifactId>junit</artifactId>
<version>${unit.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>${fastjson.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/p6spy/p6spy -->
<dependency>
<groupId>p6spy</groupId>
<artifactId>p6spy</artifactId>
<version>${p6spy.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
@ -165,30 +134,11 @@
<artifactId>core</artifactId>
<version>${zxing.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter -->
<!-- <dependency>-->
<!-- <groupId>org.mybatis.spring.boot</groupId>-->
<!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
<!-- <version>${mybatis-spring-boot-starter.version}</version>-->
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-autoconfigure</artifactId>-->
<!-- </exclusion>-->
<!-- <exclusion>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter</artifactId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
<!-- </dependency>-->
<!-- https://mvnrepository.com/artifact/com.mysql/mysql-connector-j -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
@ -217,7 +167,6 @@
</exclusion>
</exclusions>
</dependency>
<!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
@ -228,7 +177,6 @@
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
@ -262,15 +210,12 @@
</exclusion>
</exclusions>
</dependency>
<!-- 添加dm8 jdbc jar 包依赖-->
<dependency>
<groupId>com.dameng</groupId>
<artifactId>Dm8JdbcDriver18</artifactId>
<version>8.1.1.49</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
@ -281,13 +226,11 @@
<artifactId>commons-pool2</artifactId>
<version>${commons.pool2.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${lang3.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
@ -299,44 +242,18 @@
<artifactId>mssql-jdbc</artifactId>
<version>6.4.0.jre8</version>
</dependency>
<!--sqlserver-->
<!-- <dependency>-->
<!-- <groupId>com.microsoft.sqlserver</groupId>-->
<!-- <artifactId>mssql-jdbc</artifactId>-->
<!-- <version>${sqlserver.version}</version>-->
<!-- <exclusions>-->
<!-- <exclusion>-->
<!-- <artifactId>bcprov-jdk15on</artifactId>-->
<!-- <groupId>org.bouncycastle</groupId>-->
<!-- </exclusion>-->
<!-- </exclusions>-->
<!-- </dependency>-->
<!-- https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on -->
<!-- <dependency>-->
<!-- <groupId>org.bouncycastle</groupId>-->
<!-- <artifactId>bcprov-jdk15on</artifactId>-->
<!-- <version>1.52</version>-->
<!-- </dependency>-->
<!-- pdf转图片 -->
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>${pdfbox.version}</version>
</dependency>
<!-- oracle依赖-->
<!-- <dependency>-->
<!-- <groupId>com.oracle.database.jdbc</groupId>-->
<!-- <artifactId>ojdbc6</artifactId>-->
<!-- <version>${ojdbc6.version}</version>-->
<!-- </dependency>-->
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc6</artifactId>
<version>${ojdbc6.version}</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>${quartz.version}</version>
@ -356,12 +273,6 @@
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<!-- 缓存-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
<!-- postgresql驱动 -->
<dependency>
<groupId>org.postgresql</groupId>
@ -369,15 +280,12 @@
<version>${postgresql.version}</version>
<scope>runtime</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.groovy/groovy-all -->
<dependency>
<groupId>org.apache.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>4.0.21</version>
<type>pom</type>
</dependency>
<!-- flyway依赖包 -->
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
@ -415,7 +323,7 @@
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.8.0</version> <!-- 这里的版本号可根据实际情况修改 -->
<version>3.8.0</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
@ -423,14 +331,34 @@
<version>0.1.53</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>3.0.5</version>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.13</version> <!-- 与项目中 httpclient 版本保持一致 -->
</dependency>
</dependencies>
<build>
<plugins>
<!-- 添加flatten-maven-plugin解决${revision}变量解析问题 -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.7</version>
<executions>
<execution>
<id>flatten</id>
<phase>process-resources</phase>
<goals>
<goal>flatten</goal>
</goals>
</execution>
</executions>
<configuration>
<flattenMode>resolveCiFriendliesOnly</flattenMode> <!-- 替换${revision}为实际版本 -->
</configuration>
</plugin>
<!-- 资源文件拷贝插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -440,6 +368,7 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!-- java编译插件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -458,13 +387,13 @@
<version>2.7.18</version>
<configuration>
<finalName>${project.artifactId}</finalName>
<mainClass>none</mainClass> <!-- 取消查找本项目下的Main方法为了解决Unable to find main class的问题 -->
<classifier>execute</classifier> <!-- 为了解决依赖模块找不到此模块中的类或属性 -->
<skip>true</skip>
<mainClass>none</mainClass> <!-- 父模块无需主类 -->
<classifier>execute</classifier>
<skip>true</skip> <!-- 父模块跳过打包 -->
</configuration>
</plugin>
<plugin>
<!--设置maven-war-plugins插件否则外部依赖无法打进war包-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
@ -472,42 +401,10 @@
<skipTests>true</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>${basedir}/../base-service/src/main/webapp/WEB-INF/lib</directory>
<targetPath>WEB-INF/lib/</targetPath>
<filtering>false</filtering>
<includes>
<!-- 匹配所有jar包 -->
<include>**/*.jar</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../fw-bip/src/main/webapp/WEB-INF/lib</directory>
<targetPath>WEB-INF/lib/</targetPath>
<filtering>false</filtering>
<includes>
<!-- 匹配所有jar包 -->
<include>**/*.jar</include>
</includes>
</resource>
<resource>
<directory>${basedir}/../fw-ningbobank/src/main/webapp/WEB-INF/lib</directory>
<targetPath>WEB-INF/lib/</targetPath>
<filtering>false</filtering>
<includes>
<!-- 匹配所有jar包 -->
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
<!-- 父模块为pom打包无需war插件删除多余配置 -->
</plugins>
<!-- 加载src/main/java下的xml -->
<resources>
<resource>
@ -526,14 +423,11 @@
<include>**/*.xlsx</include>
<include>**/*.json</include>
<include>**/*.xdb</include>
<!-- <include>**/*.jpg</include>-->
<include>**/*.txt</include>
<include>**/*.sql</include>
</includes>
<filtering>true</filtering>
</resource>
<!--扫描配置文件所在的目录-->
<resource>
<directory>src/</directory>
<includes>
@ -542,25 +436,14 @@
<include>**/*.xml</include>
<include>**/*.json</include>
<include>**/*.txt</include>
<!-- <include>**/*.jpg</include>-->
<include>**/*.sql</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
<!--阿里云仓库:仓库优先级为:本地仓库(localRepositories) > profile中的repositories仓库 > POM > mirrors全局仓库 -->
<repositories>
<!-- <repository>-->
<!-- <id>spring-milestones</id>-->
<!-- <name>Spring Milestones</name>-->
<!-- <url>https://repo.spring.io/libs-milestone</url>-->
<!-- <snapshots>-->
<!-- <enabled>false</enabled>-->
<!-- </snapshots>-->
<!-- </repository>-->
<repositories>
<repository>
<id>aliyun</id>
<name>aliyun Repository</name>
@ -577,7 +460,5 @@
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
</project>