From 138947dc1516ef4e57f60aed7ab5bc2d3a82c28e Mon Sep 17 00:00:00 2001
From: IT-xiaoXiong <774495953@qq.com>
Date: Thu, 17 Feb 2022 10:43:48 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E5=90=8C=E9=80=BB?=
=?UTF-8?q?=E8=BE=91=E5=89=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/java/aiyh/utils/Util.java | 23 +-
.../aiyh/utils/apirequest/ApiRequestUtil.java | 12 -
.../datasource/ModelDataHandler.java | 20 +-
.../datasource/WorkflowDataHandler.java | 32 +-
.../paramtype/ListTypeHandler.java | 16 +
.../paramtype/ObjectTypeHandler.java | 33 +
.../CurrentDataTimeRuleHandler.java | 1 -
.../paramvalue/CustomerSqlRuleHandler.java | 1 +
.../entity/ApiRequestParamData.java | 9 +-
.../utils/apirequest/entity/ParamInfo.java | 1 -
.../mapper/ParamValueParseMapper.java | 35 +-
.../apirequest/service/ApiRequestService.java | 65 +-
.../async_organization/ExportExcel.java | 5 +-
.../copy_attachment/dao/ConfigTableData.java | 3 -
.../copy_attachment/dao/DocTemplateDao.java | 2 -
.../copy_attachment/web/CopyAttachment.java | 4 -
.../service/impl/FaDDContractService.java | 39 +-
.../fadada/web/FaDDContractController.java | 1 -
.../controller/PatentWallController.java | 24 +-
.../patentWall/service/PatentWallService.java | 650 +++++++++---------
.../SyncOrganizationForOtherAPI.java | 290 ++++----
.../async_organization/model/Employee.java | 6 +
.../resources/WEB-INF/log4jinit.properties | 1 +
src/test/java/utilTest/UtilTest.java | 2 +-
24 files changed, 750 insertions(+), 525 deletions(-)
delete mode 100644 src/main/java/aiyh/utils/apirequest/ApiRequestUtil.java
diff --git a/src/main/java/aiyh/utils/Util.java b/src/main/java/aiyh/utils/Util.java
index 80a054e..64a9751 100644
--- a/src/main/java/aiyh/utils/Util.java
+++ b/src/main/java/aiyh/utils/Util.java
@@ -63,10 +63,10 @@ public class Util extends weaver.general.Util {
private static final UtilService utilService = new UtilService();
private static final RecordSet rs = new RecordSet();
private static final String LOGGER_NAME = "cusAYH";
- static ToolUtil toolUtil = new ToolUtil();
private static final RecordsetUtil recordsetUtil = new RecordsetUtil();
private static final UtilMapper mapper = getMapper(UtilMapper.class);
private static final LoggerUtil loggerUtil = new LoggerUtil();
+ static ToolUtil toolUtil = new ToolUtil();
private static volatile Logger log = null;
/**
@@ -1806,20 +1806,13 @@ public class Util extends weaver.general.Util {
public static String getErrString(Throwable throwable) {
StringWriter stringWriter = new StringWriter();
throwable.printStackTrace(new PrintWriter(stringWriter, true));
- new Thread(() -> {
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- } finally {
- try {
- stringWriter.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- });
- return stringWriter.getBuffer().toString();
+ String errStr = stringWriter.getBuffer().toString();
+ try {
+ stringWriter.close();
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ return errStr;
}
/**
diff --git a/src/main/java/aiyh/utils/apirequest/ApiRequestUtil.java b/src/main/java/aiyh/utils/apirequest/ApiRequestUtil.java
deleted file mode 100644
index d5aa93d..0000000
--- a/src/main/java/aiyh/utils/apirequest/ApiRequestUtil.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package aiyh.utils.apirequest;
-
-/**
- *
第三方请求工具类
- * create 2022/1/22 0022 20:15
- *
- * @author EBU7-dev1-ayh
- */
-
-
-public class ApiRequestUtil {
-}
diff --git a/src/main/java/aiyh/utils/apirequest/core/typehandler/datasource/ModelDataHandler.java b/src/main/java/aiyh/utils/apirequest/core/typehandler/datasource/ModelDataHandler.java
index 8ee61f8..7077f0d 100644
--- a/src/main/java/aiyh/utils/apirequest/core/typehandler/datasource/ModelDataHandler.java
+++ b/src/main/java/aiyh/utils/apirequest/core/typehandler/datasource/ModelDataHandler.java
@@ -12,7 +12,25 @@ import aiyh.utils.apirequest.pojo.ApiRequestMain;
* @author EBU7-dev1-ayh
*/
-
+/*
+ * 彩蛋 2 书接上回
+ *
+ *
+ * 客户想再上级面前表扬我,让给我加点工资 ----> 主要是怕我没做完项目就离职
+ *
+ * 后来客户问老板,我会不会项目没做完离职,老板自信的说不会:
+ * 评了优秀员工,奖励iPhone12一个
+ * 年会抽奖抽中 无人机\ps4任选
+ * 所以坚定我不会离职 (可是,算错了,调薪没成功就已经打算离职了)
+ *
+ * 客户之前似乎争取过让我涨薪,但是具体情况不知道
+ *
+ * 客户说 那个是抽奖嘛,那你给人家加工资了没
+ *
+ * 老板说 加了,加了百分之29%
+ *
+ * 后续自行寻找
+ */
public class ModelDataHandler implements IDataSourceHandler {
@Override
public ParamConfigInfo parseDataSource(ApiRequestData apiRequestData) {
diff --git a/src/main/java/aiyh/utils/apirequest/core/typehandler/datasource/WorkflowDataHandler.java b/src/main/java/aiyh/utils/apirequest/core/typehandler/datasource/WorkflowDataHandler.java
index 9737ec8..5f9e3c5 100644
--- a/src/main/java/aiyh/utils/apirequest/core/typehandler/datasource/WorkflowDataHandler.java
+++ b/src/main/java/aiyh/utils/apirequest/core/typehandler/datasource/WorkflowDataHandler.java
@@ -27,7 +27,22 @@ import java.util.Map;
* @author EBU7-dev1-ayh
*/
-
+/*
+ * 彩蛋3 书接上回
+ *
+ * 好吧,刚好我知道了这件事
+ * 我震惊了,加薪了我竟然不知道,离大谱
+ * 不过客户争取加工资的还要一个同事,他加了,我没加(本来无所谓,大不了问问调薪机制,但是老板们说的破大防了)
+ *
+ * 这一刻,公司的印象全没了,路走死了啊!
+ *
+ * 好了,这回离职的想法更加坚定了
+ *
+ * 当这个注释被看到的时候就是离职的时候(或许没看到就离职了,后来的同学有幸看到注释的话,
+ * 好好想想什么样的场景,自己拿捏,在项目中加班是常事,但是依然没有加班工资,且有时候你会被好几个项目经理一起催,
+ * 结局就是加班到凌晨,免费劳动力。)
+ *
+ */
public class WorkflowDataHandler implements IDataSourceHandler {
private final DataSourceMapper mapper = Util.getMapper(DataSourceMapper.class);
@@ -56,8 +71,9 @@ public class WorkflowDataHandler implements IDataSourceHandler {
/**
* 查询流程明细表数据,并通过明细表数据解析请求参数
+ *
* @param apiRequestData api请求配置参数对象
- * @param mainData 流程主表数据信息
+ * @param mainData 流程主表数据信息
* @return api请求参数信息
*/
public List> parseValueForDetail(ApiRequestData apiRequestData, Map mainData) {
@@ -65,6 +81,10 @@ public class WorkflowDataHandler implements IDataSourceHandler {
List