diff --git a/config/db/V8.2__add_table.sql b/config/db/V8.2__add_table.sql
index 171d9fa0..b4ac3596 100644
--- a/config/db/V8.2__add_table.sql
+++ b/config/db/V8.2__add_table.sql
@@ -11,8 +11,7 @@ CREATE TABLE `t_ucs_lc_dept_rel` (
`district_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '地区名称',
`type` int(0) NULL DEFAULT NULL COMMENT '部门类型',
`lc_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '浪潮部门名称',
- `lc_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '浪潮部门ID',
- PRIMARY KEY (`ucs_id`) USING BTREE
+ `lc_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '浪潮部门ID'
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'ucs与浪潮部门名称对应表' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
diff --git a/lib/ojdbc8-11.2.0.3.jar b/lib/ojdbc8-11.2.0.3.jar
new file mode 100644
index 00000000..3aa102fe
Binary files /dev/null and b/lib/ojdbc8-11.2.0.3.jar differ
diff --git a/pom.xml b/pom.xml
index 06276c1e..e610e158 100644
--- a/pom.xml
+++ b/pom.xml
@@ -92,6 +92,14 @@
mysql-connector-java
${mysql.version}
+
+
+
+
+
+
+
+
com.oracle
diff --git a/renren-admin/lib/ojdbc8-11.2.0.3.jar b/renren-admin/lib/ojdbc8-11.2.0.3.jar
new file mode 100644
index 00000000..3aa102fe
Binary files /dev/null and b/renren-admin/lib/ojdbc8-11.2.0.3.jar differ
diff --git a/renren-admin/pom.xml b/renren-admin/pom.xml
index 4b929984..c0720bfb 100644
--- a/renren-admin/pom.xml
+++ b/renren-admin/pom.xml
@@ -231,6 +231,22 @@
${project.basedir}/lib/yawei-pso-${yawei-pso.version}.jar
${yawei-pso.version}
+
+
+ com.oracle
+ ojdbc8
+ system
+ ${project.basedir}/lib/ojdbc8-11.2.0.3.jar
+ ${oracle.version}
+
+
+
+
+
+
+
+
+
sw.vc3term
@@ -333,7 +349,7 @@
application-prod.yml
application-show.yml
application-test.yml
- application-xha.yml
+
db/*.sql
domain/**
@@ -370,6 +386,7 @@
. lib/yawei-pso-${yawei-pso.version}.jar
lib/contingencyplan-${contingencyplan.version}.jar
+ lib/ojdbc8-11.2.0.3.jar
diff --git a/renren-admin/src/main/java/io/renren/common/config/JdbcTemplateFactory.java b/renren-admin/src/main/java/io/renren/common/config/JdbcTemplateFactory.java
index 06ce8421..c8ffb707 100644
--- a/renren-admin/src/main/java/io/renren/common/config/JdbcTemplateFactory.java
+++ b/renren-admin/src/main/java/io/renren/common/config/JdbcTemplateFactory.java
@@ -23,7 +23,7 @@ public class JdbcTemplateFactory {
druidDataSource.setTimeBetweenEvictionRunsMillis(properties.getTimeBetweenEvictionRunsMillis());
druidDataSource.setMinEvictableIdleTimeMillis(properties.getMinEvictableIdleTimeMillis());
druidDataSource.setMaxEvictableIdleTimeMillis(properties.getMaxEvictableIdleTimeMillis());
- druidDataSource.setValidationQuery(properties.getValidationQuery());
+ druidDataSource.setValidationQuery("select 1 FROM DUAL");
druidDataSource.setValidationQueryTimeout(properties.getValidationQueryTimeout());
druidDataSource.setTestOnBorrow(properties.isTestOnBorrow());
druidDataSource.setTestOnReturn(properties.isTestOnReturn());
diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/controller/ActTaskController.java b/renren-admin/src/main/java/io/renren/modules/activiti/controller/ActTaskController.java
index 213151aa..af2e5078 100644
--- a/renren-admin/src/main/java/io/renren/modules/activiti/controller/ActTaskController.java
+++ b/renren-admin/src/main/java/io/renren/modules/activiti/controller/ActTaskController.java
@@ -12,6 +12,7 @@ import io.renren.common.utils.Result;
import io.renren.modules.activiti.dto.BatchCompleteDTO;
import io.renren.modules.activiti.dto.TaskDTO;
import io.renren.modules.activiti.service.ActTaskService;
+import io.renren.modules.resource.service.impl.ResourceServiceImpl;
import io.renren.modules.security.user.SecurityUser;
import io.renren.modules.security.user.UserDetail;
import io.renren.modules.sys.dto.SysUserDTO;
@@ -25,6 +26,8 @@ import org.activiti.engine.TaskService;
import org.activiti.engine.repository.ProcessDefinition;
import org.activiti.engine.repository.ProcessDefinitionQuery;
import org.activiti.engine.task.TaskQuery;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.util.StringUtils;
@@ -47,6 +50,8 @@ import java.util.stream.Collectors;
@Api(tags = "任务管理")
public class ActTaskController {
+ private static final Logger logger = LoggerFactory.getLogger(ActTaskController.class);
+
private static final Integer CPU_NUM = Runtime.getRuntime().availableProcessors();
private static final ExecutorService executor = Executors.newWorkStealingPool(CPU_NUM * 3);
@@ -61,11 +66,6 @@ public class ActTaskController {
@Autowired
protected TaskService taskService;
- private JdbcTemplate lcJdbcTemplate;
-
- public void setLcJdbcTemplate(JdbcTemplate lcJdbcTemplate) {
- this.lcJdbcTemplate = JdbcTemplateFactory.getJdbcTemplate();
- }
/**
* 获取用户任务列表
@@ -446,34 +446,34 @@ public class ActTaskController {
@LogOperation("个人中心查询政务云资源申请列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "name", value = "业务名称", paramType = "query", dataType = "String"),
- @ApiImplicitParam(name = "applyType", value = "申请类型", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "status", value = "状态", paramType = "query", dataType = "String"),
@ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query", required = true, dataType = "Integer"),
@ApiImplicitParam(name = "pageSize", value = "分页大小", paramType = "query", required = true, dataType = "Integer")
})
- public Result getZwyBusinessList(String name, String applyType, String status, int pageNum, int pageSize) {
+ public Result getZwyBusinessList(String name, String status, int pageNum, int pageSize) {
UserDetail user = SecurityUser.getUser();
+ JdbcTemplate lcJdbcTemplate = JdbcTemplateFactory.getJdbcTemplate();
StringBuilder sql = new StringBuilder("SELECT BSNUM, BUSINESS_NAME, APPLYTYPE, to_char(CREATE_TIME,'yyyy-mm-dd hh24:mi:ss') AS \"CREATE_TIME\", STATUS " +
- "FROM VIEW_CLOUD_BUSINESS_INDEX WHERE 1 = 1 AND APPLYTYPE = '01' AND STATUS != '00' AND ACCOUNT = '" + user.getUsername() + "'");
+ "FROM VIEW_CLOUD_BUSINESS_INDEX WHERE 1 = 1 AND APPLYTYPE = '01' AND STATUS != '00' AND ACCOUNT = '" + user.getUsername() + "'");
if (!StringUtils.isEmpty(name)) {
- sql.append(" AND BUSINESS_NAME LIKE CONCAT('%', ").append(name).append(", '%') ");
- }
- if (!StringUtils.isEmpty(applyType)) {
- sql.append(" AND APPLYTYPE = '").append(applyType).append("'");
+ sql.append(" AND BUSINESS_NAME LIKE ('%' || '").append(name).append("' || '%') ");
}
if (!StringUtils.isEmpty(status)) {
sql.append(" AND STATUS = '").append(status).append("'");
}
- sql.append("ORDER BY CREATE_TIME DESC");
+ sql.append(" ORDER BY CREATE_TIME DESC");
+ logger.error("--->查询语句{}", sql);
try {
Map resultMap = new HashMap<>();
List
+
+
+ com.oracle
+ ojdbc6
+ system
+ ${project.basedir}/lib/ojdbc6-11.2.0.3.jar
+ ${oracle.version}
+
diff --git a/renren-common/lib/ojdbc8-11.2.0.3.jar b/renren-common/lib/ojdbc8-11.2.0.3.jar
new file mode 100644
index 00000000..3aa102fe
Binary files /dev/null and b/renren-common/lib/ojdbc8-11.2.0.3.jar differ
diff --git a/renren-dynamic-datasource/lib/ojdbc8-11.2.0.3.jar b/renren-dynamic-datasource/lib/ojdbc8-11.2.0.3.jar
new file mode 100644
index 00000000..3aa102fe
Binary files /dev/null and b/renren-dynamic-datasource/lib/ojdbc8-11.2.0.3.jar differ