commit code
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
HELP.md
|
||||
/target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
@@ -0,0 +1,286 @@
|
||||
#!/bin/sh
|
||||
# ----------------------------------------------------------------------------
|
||||
# Licensed to the Apache Software Foundation (ASF) under one
|
||||
# or more contributor license agreements. See the NOTICE file
|
||||
# distributed with this work for additional information
|
||||
# regarding copyright ownership. The ASF licenses this file
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Maven2 Start Up Batch script
|
||||
#
|
||||
# Required ENV vars:
|
||||
# ------------------
|
||||
# JAVA_HOME - location of a JDK home dir
|
||||
#
|
||||
# Optional ENV vars
|
||||
# -----------------
|
||||
# M2_HOME - location of maven2's installed home dir
|
||||
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
|
||||
# e.g. to debug Maven itself, use
|
||||
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
|
||||
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
if [ -z "$MAVEN_SKIP_RC" ] ; then
|
||||
|
||||
if [ -f /etc/mavenrc ] ; then
|
||||
. /etc/mavenrc
|
||||
fi
|
||||
|
||||
if [ -f "$HOME/.mavenrc" ] ; then
|
||||
. "$HOME/.mavenrc"
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
# OS specific support. $var _must_ be set to either true or false.
|
||||
cygwin=false;
|
||||
darwin=false;
|
||||
mingw=false
|
||||
case "`uname`" in
|
||||
CYGWIN*) cygwin=true ;;
|
||||
MINGW*) mingw=true;;
|
||||
Darwin*) darwin=true
|
||||
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
|
||||
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
if [ -x "/usr/libexec/java_home" ]; then
|
||||
export JAVA_HOME="`/usr/libexec/java_home`"
|
||||
else
|
||||
export JAVA_HOME="/Library/Java/Home"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$JAVA_HOME" ] ; then
|
||||
if [ -r /etc/gentoo-release ] ; then
|
||||
JAVA_HOME=`java-config --jre-home`
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$M2_HOME" ] ; then
|
||||
## resolve links - $0 may be a link to maven's home
|
||||
PRG="$0"
|
||||
|
||||
# need this for relative symlinks
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG="`dirname "$PRG"`/$link"
|
||||
fi
|
||||
done
|
||||
|
||||
saveddir=`pwd`
|
||||
|
||||
M2_HOME=`dirname "$PRG"`/..
|
||||
|
||||
# make it fully qualified
|
||||
M2_HOME=`cd "$M2_HOME" && pwd`
|
||||
|
||||
cd "$saveddir"
|
||||
# echo Using m2 at $M2_HOME
|
||||
fi
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||
if $cygwin ; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME=`cygpath --unix "$M2_HOME"`
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
|
||||
[ -n "$CLASSPATH" ] &&
|
||||
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
|
||||
fi
|
||||
|
||||
# For Mingw, ensure paths are in UNIX format before anything is touched
|
||||
if $mingw ; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME="`(cd "$M2_HOME"; pwd)`"
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
|
||||
# TODO classpath?
|
||||
fi
|
||||
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
javaExecutable="`which javac`"
|
||||
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
|
||||
# readlink(1) is not available as standard on Solaris 10.
|
||||
readLink=`which readlink`
|
||||
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
|
||||
if $darwin ; then
|
||||
javaHome="`dirname \"$javaExecutable\"`"
|
||||
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
|
||||
else
|
||||
javaExecutable="`readlink -f \"$javaExecutable\"`"
|
||||
fi
|
||||
javaHome="`dirname \"$javaExecutable\"`"
|
||||
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
|
||||
JAVA_HOME="$javaHome"
|
||||
export JAVA_HOME
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$JAVACMD" ] ; then
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
else
|
||||
JAVACMD="`which java`"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
echo "Error: JAVA_HOME is not defined correctly." >&2
|
||||
echo " We cannot execute $JAVACMD" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$JAVA_HOME" ] ; then
|
||||
echo "Warning: JAVA_HOME environment variable is not set."
|
||||
fi
|
||||
|
||||
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
|
||||
|
||||
# traverses directory structure from process work directory to filesystem root
|
||||
# first directory with .mvn subdirectory is considered project base directory
|
||||
find_maven_basedir() {
|
||||
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
echo "Path not specified to find_maven_basedir"
|
||||
return 1
|
||||
fi
|
||||
|
||||
basedir="$1"
|
||||
wdir="$1"
|
||||
while [ "$wdir" != '/' ] ; do
|
||||
if [ -d "$wdir"/.mvn ] ; then
|
||||
basedir=$wdir
|
||||
break
|
||||
fi
|
||||
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
|
||||
if [ -d "${wdir}" ]; then
|
||||
wdir=`cd "$wdir/.."; pwd`
|
||||
fi
|
||||
# end of workaround
|
||||
done
|
||||
echo "${basedir}"
|
||||
}
|
||||
|
||||
# concatenates all lines of a file
|
||||
concat_lines() {
|
||||
if [ -f "$1" ]; then
|
||||
echo "$(tr -s '\n' ' ' < "$1")"
|
||||
fi
|
||||
}
|
||||
|
||||
BASE_DIR=`find_maven_basedir "$(pwd)"`
|
||||
if [ -z "$BASE_DIR" ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
##########################################################################################
|
||||
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
|
||||
# This allows using the maven wrapper in projects that prohibit checking in binary data.
|
||||
##########################################################################################
|
||||
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found .mvn/wrapper/maven-wrapper.jar"
|
||||
fi
|
||||
else
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
|
||||
fi
|
||||
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar"
|
||||
while IFS="=" read key value; do
|
||||
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
|
||||
esac
|
||||
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Downloading from: $jarUrl"
|
||||
fi
|
||||
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
|
||||
|
||||
if command -v wget > /dev/null; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found wget ... using wget"
|
||||
fi
|
||||
wget "$jarUrl" -O "$wrapperJarPath"
|
||||
elif command -v curl > /dev/null; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found curl ... using curl"
|
||||
fi
|
||||
curl -o "$wrapperJarPath" "$jarUrl"
|
||||
else
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Falling back to using Java to download"
|
||||
fi
|
||||
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
|
||||
if [ -e "$javaClass" ]; then
|
||||
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo " - Compiling MavenWrapperDownloader.java ..."
|
||||
fi
|
||||
# Compiling the Java class
|
||||
("$JAVA_HOME/bin/javac" "$javaClass")
|
||||
fi
|
||||
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||
# Running the downloader
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo " - Running MavenWrapperDownloader.java ..."
|
||||
fi
|
||||
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
##########################################################################################
|
||||
# End of extension
|
||||
##########################################################################################
|
||||
|
||||
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo $MAVEN_PROJECTBASEDIR
|
||||
fi
|
||||
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
|
||||
|
||||
# For Cygwin, switch paths to Windows format before running java
|
||||
if $cygwin; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME=`cygpath --path --windows "$M2_HOME"`
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
|
||||
[ -n "$CLASSPATH" ] &&
|
||||
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
|
||||
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
|
||||
MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
|
||||
fi
|
||||
|
||||
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
|
||||
|
||||
exec "$JAVACMD" \
|
||||
$MAVEN_OPTS \
|
||||
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
|
||||
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
|
||||
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
|
||||
@@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.1.3.RELEASE</version>
|
||||
<relativePath /> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
<groupId>com.ydw.bat.wkflow</groupId>
|
||||
<artifactId>bat-wkflow</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>bat-wkflow</name>
|
||||
<description>基础项目</description>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<java.version>1.8</java.version>
|
||||
<activiti.version>5.22.0</activiti.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.tmsps.fk.common</groupId>
|
||||
<artifactId>fk-util</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
<!-- Eureka -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
|
||||
<version>2.0.0.RELEASE</version>
|
||||
</dependency>
|
||||
<!-- Feign客户端 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||
<version>2.0.2.RELEASE</version>
|
||||
</dependency>
|
||||
<!-- DB 相关 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
</dependency>
|
||||
<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->
|
||||
<dependency>
|
||||
<groupId>org.mybatis</groupId>
|
||||
<artifactId>mybatis</artifactId>
|
||||
<version>3.5.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>druid</artifactId>
|
||||
<version>1.0.28</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.6</version>
|
||||
</dependency>
|
||||
<!-- Web undertow -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<!-- lombok -->
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<!-- Activiti -->
|
||||
<dependency>
|
||||
<groupId>org.activiti</groupId>
|
||||
<artifactId>activiti-spring</artifactId>
|
||||
<version>${activiti.version}</version>
|
||||
</dependency>
|
||||
<!-- Activiti 启动器 -->
|
||||
<dependency>
|
||||
<groupId>org.activiti</groupId>
|
||||
<artifactId>activiti-spring-boot-starter-basic</artifactId>
|
||||
<version>${activiti.version}</version>
|
||||
</dependency>
|
||||
<!-- Activiti 流程图 -->
|
||||
<dependency>
|
||||
<groupId>org.activiti</groupId>
|
||||
<artifactId>activiti-diagram-rest</artifactId>
|
||||
<version>${activiti.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.activiti</groupId>
|
||||
<artifactId>activiti-rest</artifactId>
|
||||
<version>${activiti.version}</version>
|
||||
</dependency>
|
||||
<!-- Activiti 在线设计 -->
|
||||
<dependency>
|
||||
<groupId>org.activiti</groupId>
|
||||
<artifactId>activiti-modeler</artifactId>
|
||||
<version>${activiti.version}</version>
|
||||
</dependency>
|
||||
<!-- <dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency> -->
|
||||
<!-- 热部署 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-devtools</artifactId>
|
||||
<optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->
|
||||
</dependency>
|
||||
<!-- Test -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<!--添加配置跳过测试-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.22.1</version>
|
||||
<configuration>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,33 @@
|
||||
package com.ydw.bat.wkflow;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
|
||||
/**
|
||||
* 启动类
|
||||
*
|
||||
* Api: http://localhost:17210/bat-wkflow/swagger-ui.html
|
||||
*
|
||||
* @author 冯晓东 398479251@qq.com
|
||||
*
|
||||
*/
|
||||
@EnableEurekaClient
|
||||
@EnableFeignClients
|
||||
@SpringBootApplication
|
||||
@EnableAutoConfiguration(exclude = {
|
||||
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
|
||||
org.activiti.spring.boot.SecurityAutoConfiguration.class })
|
||||
@MapperScan("com.ydw.bat.wkflow.business.*.mapper")
|
||||
@EnableScheduling
|
||||
public class BatWkflowApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(BatWkflowApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
+317
@@ -0,0 +1,317 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.define;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ydw.bat.wkflow.business_auth.LawsUserInfoService;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.ResponseMessage;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.UserVO;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNameService;
|
||||
import org.activiti.engine.IdentityService;
|
||||
import org.activiti.engine.RepositoryService;
|
||||
import org.activiti.engine.RuntimeService;
|
||||
import org.activiti.engine.TaskService;
|
||||
import org.activiti.engine.repository.Model;
|
||||
import org.activiti.engine.repository.ProcessDefinition;
|
||||
import org.activiti.engine.repository.ProcessDefinitionQuery;
|
||||
import org.activiti.engine.runtime.ProcessInstance;
|
||||
import org.activiti.engine.task.Task;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.tmsps.fk.common.base.action.BaseAction;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.util.SessionTool;
|
||||
import com.ydw.bat.wkflow.util.activiti.ActivitiTools;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@Api(description = "流程定义管理")
|
||||
@RestController
|
||||
public class ActivitDefineController extends BaseAction {
|
||||
|
||||
@Autowired
|
||||
private RuntimeService runtimeService;
|
||||
@Autowired
|
||||
private RepositoryService repositoryService;
|
||||
@Autowired
|
||||
private TaskService taskService;
|
||||
@Autowired
|
||||
private IdentityService identityService;
|
||||
@Autowired
|
||||
private IBusProcessNameService ibusprocessnameService;
|
||||
@Autowired
|
||||
private LawsUserInfoService lawsUserInfoService;
|
||||
|
||||
@ApiOperation(value = "流程定义列表-分页")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "name", value = "名称"),
|
||||
@ApiImplicitParam(name = "category_id", value = "类型id"), @ApiImplicitParam(name = "current", value = "当前页"),
|
||||
@ApiImplicitParam(name = "size", value = "每页条数") })
|
||||
@GetMapping("/activitDefineListPage")
|
||||
public Wrapper<Map<String, Object>> activitDefineListPage(String name, String category_id, int current, int size) {
|
||||
// 创建查询对象
|
||||
ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery();
|
||||
// 使用流程定义的名称模糊查询
|
||||
if (ChkUtil.isNotNull(name)) {
|
||||
processDefinitionQuery.processDefinitionNameLike("%" + name + "%");
|
||||
}
|
||||
if (ChkUtil.isNotNull(category_id)) {
|
||||
processDefinitionQuery.processDefinitionCategory(category_id);
|
||||
}
|
||||
long total = processDefinitionQuery.count();
|
||||
List<ProcessDefinition> list = processDefinitionQuery.orderByProcessDefinitionKey().asc().listPage((current - 1) * size, size);
|
||||
List<Map<String, Object>> definitions = ActivitiTools.turnProcessDefinitions(list);
|
||||
for (Map<String, Object> map : definitions) {
|
||||
Model model = repositoryService.createModelQuery().deploymentId(map.get("deploymentId")+"").singleResult();
|
||||
if(ChkUtil.isNotNull(model)) {
|
||||
map.put("modelId", model.getId());
|
||||
}else {
|
||||
map.put("modelId", "");
|
||||
}
|
||||
}
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("records", definitions);
|
||||
map.put("current", current);
|
||||
map.put("size", size);
|
||||
map.put("total", total);
|
||||
return WrapMapper.ok(map);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "流程定义列表")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "name", value = "名称"),
|
||||
@ApiImplicitParam(name = "category_id", value = "类型id") })
|
||||
@GetMapping("/activitDefineList")
|
||||
public Wrapper<List<Map<String, Object>>> activitDefineList(String name, String category_id) {
|
||||
// 创建查询对象
|
||||
ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery();
|
||||
// 使用流程定义的名称模糊查询
|
||||
if (name == null) {
|
||||
name = "";
|
||||
}
|
||||
if (ChkUtil.isNotNull(category_id)) {
|
||||
processDefinitionQuery.processDefinitionCategory(category_id);
|
||||
}
|
||||
processDefinitionQuery.orderByDeploymentId().desc();
|
||||
List<ProcessDefinition> list = processDefinitionQuery.processDefinitionNameLike("%" + name + "%").list();
|
||||
return WrapMapper.ok(ActivitiTools.turnProcessDefinitions(list));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除流程定义")
|
||||
@ApiImplicitParam(name = "deploymentId", value = "流程deploymentId")
|
||||
@GetMapping("/activiti_define_delete")
|
||||
public Wrapper<String> activiti_define_delete(String deploymentId) {
|
||||
repositoryService.deleteDeployment(deploymentId);
|
||||
return WrapMapper.ok("删除成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "启动流程-以流程定义id")
|
||||
@ApiImplicitParam(name = "id", value = "流程定义Id")
|
||||
@GetMapping("/activiti_define_start")
|
||||
public Wrapper<String> activiti_define_start(String id) {
|
||||
// 创建查询对象
|
||||
ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery();
|
||||
// 使用流程定义的名称模糊查询
|
||||
processDefinitionQuery.processDefinitionCategory("4bdf0b396b4aa6ea10dd5e19956a1e22");
|
||||
long total = processDefinitionQuery.count();
|
||||
List<ProcessDefinition> list = processDefinitionQuery.orderByProcessDefinitionKey().asc().list();
|
||||
List<Map<String, Object>> definitions = ActivitiTools.turnProcessDefinitions(list);
|
||||
String pid = "";
|
||||
for(Map<String, Object> map:definitions){
|
||||
if(map.get("key").toString().equals(id)){
|
||||
pid = map.get("id").toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ProcessDefinition pd = repositoryService.createProcessDefinitionQuery().processDefinitionId(id).singleResult();
|
||||
|
||||
ProcessInstance pi = runtimeService.startProcessInstanceById(pid);
|
||||
Task task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();
|
||||
task.setAssignee(SessionTool.getSessionAdminId());
|
||||
taskService.saveTask(task);
|
||||
|
||||
logger.info("启动流程实例,获取id-->{},实例名称-->{}", pi.getId(), pd.getName());
|
||||
return WrapMapper.ok(pi.getId());
|
||||
}
|
||||
|
||||
@ApiOperation(value = "启动流程-以流程定义id")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "流程定义Id"),
|
||||
@ApiImplicitParam(name = "userId", value = "流程发起人Id") })
|
||||
@GetMapping("/activiti_define_start_user")
|
||||
public Wrapper<String> activiti_define_start(String id,String userId,String bpnId) {
|
||||
// 创建查询对象
|
||||
ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery();
|
||||
// 使用流程定义的名称模糊查询
|
||||
processDefinitionQuery.processDefinitionCategory("4bdf0b396b4aa6ea10dd5e19956a1e22");
|
||||
long total = processDefinitionQuery.count();
|
||||
List<ProcessDefinition> list = processDefinitionQuery.orderByProcessDefinitionKey().asc().list();
|
||||
List<Map<String, Object>> definitions = ActivitiTools.turnProcessDefinitions(list);
|
||||
String pid = "";
|
||||
for(Map<String, Object> map:definitions){
|
||||
if(map.get("key").toString().equals(id)){
|
||||
pid = map.get("id").toString();
|
||||
}
|
||||
}
|
||||
|
||||
ProcessDefinition pd = repositoryService.createProcessDefinitionQuery().processDefinitionId(pid).singleResult();
|
||||
|
||||
ProcessInstance pi = runtimeService.startProcessInstanceById(pid);
|
||||
Task task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();
|
||||
task.setAssignee(userId);
|
||||
taskService.saveTask(task);
|
||||
|
||||
if(bpnId == null) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
BusProcessName busProcessName = new BusProcessName();
|
||||
busProcessName.setPrcId(pi.getId());
|
||||
busProcessName.setCreatTime(sdf.format(new Date()));
|
||||
busProcessName.setCreatUser(userId);
|
||||
ResponseMessage<UserVO> byId = lawsUserInfoService.getById(userId);
|
||||
busProcessName.setCreatUserName(byId.getData().getUname());
|
||||
busProcessName.setPrcNum(new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()));
|
||||
if(id.equals("bzhyhhgllc")){
|
||||
String prcName = bpnId;
|
||||
busProcessName.setPrcType("16");
|
||||
busProcessName.setPrcName(prcName);
|
||||
}
|
||||
ibusprocessnameService.save(busProcessName);
|
||||
}else {
|
||||
if (bpnId.indexOf("会议会后") != -1) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
BusProcessName busProcessName = new BusProcessName();
|
||||
busProcessName.setPrcId(pi.getId());
|
||||
busProcessName.setCreatTime(sdf.format(new Date()));
|
||||
busProcessName.setCreatUser(userId);
|
||||
ResponseMessage<UserVO> byId = lawsUserInfoService.getById(userId);
|
||||
busProcessName.setCreatUserName(byId.getData().getUname());
|
||||
busProcessName.setPrcNum(new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()));
|
||||
if (id.equals("bzhyhhgllc")) {
|
||||
String prcName = bpnId;
|
||||
busProcessName.setPrcType("16");
|
||||
busProcessName.setPrcName(prcName);
|
||||
}
|
||||
ibusprocessnameService.save(busProcessName);
|
||||
} else {
|
||||
QueryWrapper<BusProcessName> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("ID", bpnId);
|
||||
BusProcessName one = ibusprocessnameService.getOne(queryWrapper);
|
||||
one.setPrcNum(new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()));
|
||||
one.setPrcId(pi.getId());
|
||||
ibusprocessnameService.saveOrUpdate(one);
|
||||
}
|
||||
}
|
||||
logger.info("启动流程实例,获取id-->{},实例名称-->{}", pi.getId(), pd.getName());
|
||||
return WrapMapper.ok(task.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 企标复审流程专用
|
||||
* @param id
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "启动流程-以流程定义id")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "流程定义Id"),
|
||||
@ApiImplicitParam(name = "userId", value = "流程发起人Id") })
|
||||
@GetMapping("/activiti_define_start_user1")
|
||||
public Map<String,String> activiti_define_start1(String id,String userId,String standName) {
|
||||
ProcessDefinition pd = repositoryService.createProcessDefinitionQuery().processDefinitionId(id).singleResult();
|
||||
|
||||
ProcessInstance pi = runtimeService.startProcessInstanceById(id);
|
||||
Task task = taskService.createTaskQuery().processInstanceId(pi.getId()).singleResult();
|
||||
task.setAssignee(userId);
|
||||
taskService.saveTask(task);
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
BusProcessName busProcessName = new BusProcessName();
|
||||
busProcessName.setPrcId(pi.getId());
|
||||
busProcessName.setCreatTime(sdf.format(new Date()));
|
||||
if (userId != null){
|
||||
busProcessName.setCreatUser(userId);
|
||||
ResponseMessage<UserVO> byId = lawsUserInfoService.getById(userId);
|
||||
busProcessName.setCreatUserName(byId.getData().getUname());
|
||||
}
|
||||
busProcessName.setPrcNum(new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date()));
|
||||
if (id.equals("qbfslc:1:2962547")){
|
||||
busProcessName.setPrcType("19");
|
||||
String prcName = standName+"-企标复审";
|
||||
busProcessName.setPrcName(prcName);
|
||||
}
|
||||
if (id.equals("qbfzlc:1:3130004")){
|
||||
busProcessName.setPrcType("7");
|
||||
String prcName = standName+"-企标废止";
|
||||
busProcessName.setPrcName(prcName);
|
||||
}
|
||||
if (id.equals("qbzxdsqlc:1:2595004")){
|
||||
busProcessName.setPrcType("6");
|
||||
String prcName = "QBFS"+
|
||||
new SimpleDateFormat("yyyyMMdd").format(new Date());
|
||||
busProcessName.setPrcName(prcName);
|
||||
}
|
||||
ibusprocessnameService.save(busProcessName);
|
||||
logger.info("启动流程实例,获取id-->{},实例名称-->{}", pi.getId(), pd.getName());
|
||||
Map<String,String> map = new HashMap<>();
|
||||
map.put("prcId",pi.getId());
|
||||
map.put("taskId",task.getId());
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "启动流程-以key")
|
||||
@ApiImplicitParam(name = "keyName", value = "key")
|
||||
@GetMapping("/start")
|
||||
public Wrapper<String> startProcess(String keyName) {
|
||||
// 在流程启动之前设置发起人
|
||||
identityService.setAuthenticatedUserId(SessionTool.getSessionAdminId());
|
||||
// 启动流程
|
||||
ProcessInstance process = runtimeService.startProcessInstanceByKey(keyName);
|
||||
|
||||
// 用于开启第一个 task任务
|
||||
Task task = taskService.createTaskQuery().processInstanceId(process.getId()).singleResult();
|
||||
task.setAssignee(SessionTool.getSessionAdminId());
|
||||
taskService.saveTask(task);
|
||||
|
||||
return WrapMapper.ok(process.getId() + " : " + process.getProcessDefinitionId());
|
||||
}
|
||||
|
||||
@ApiOperation(value = "判断流程定义key的唯一性")
|
||||
@GetMapping("/check_define_key")
|
||||
public Wrapper<String> check_define_key(String modelId, String key) {
|
||||
Model modelData = repositoryService.getModel(modelId);
|
||||
System.out.println("modelData"+modelData);
|
||||
ProcessDefinition pd = null;
|
||||
if(modelData.getDeploymentId()!=null){
|
||||
pd = repositoryService.createProcessDefinitionQuery()
|
||||
.deploymentId(modelData.getDeploymentId()).singleResult();
|
||||
}
|
||||
|
||||
if (ChkUtil.isNotNull(pd) && pd.getKey().equals(key)) {
|
||||
return WrapMapper.ok("TRUE");
|
||||
}
|
||||
|
||||
Pattern p = Pattern.compile(".*\\d+.*");
|
||||
Matcher m = p.matcher(key);
|
||||
if (m.matches()) {
|
||||
return WrapMapper.ok("NUM");
|
||||
}
|
||||
List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().processDefinitionKey(key)
|
||||
.list();
|
||||
if (list.size() > 0) {
|
||||
return WrapMapper.ok("FALSE");
|
||||
}
|
||||
return WrapMapper.ok("TRUE");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,293 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Auto-generated: 2020-11-16 22:42:30
|
||||
*
|
||||
* @author bejson.com (i@bejson.com)
|
||||
* @website http://www.bejson.com/java2pojo/
|
||||
*/
|
||||
public class Children {
|
||||
|
||||
private String VSEId;
|
||||
private boolean isTree;
|
||||
private String deptName;
|
||||
private String resNum;
|
||||
private String resName;
|
||||
private List<ItemsList> itemsList;
|
||||
private String deptId;
|
||||
private String resId;
|
||||
private String VSEName;
|
||||
private List<ZNodes> zNodes;
|
||||
private Form form;
|
||||
private String type;
|
||||
private String taskId;
|
||||
private String DREId;
|
||||
private String DREName;
|
||||
private String resType;
|
||||
/**
|
||||
* 审批意见
|
||||
*/
|
||||
private String approvalOpinions;
|
||||
|
||||
/**
|
||||
* 审批内容
|
||||
*/
|
||||
private String approvalContent;
|
||||
private Date opinionTime;
|
||||
private String opinion;
|
||||
private String opinionContent;
|
||||
private String opinionName;
|
||||
private String opinionNode;
|
||||
private String termsConditions;
|
||||
|
||||
private String XMPGJS;
|
||||
private String XMPGJSName;
|
||||
|
||||
private String newPutText;
|
||||
private String prodPutText;
|
||||
private String authObj;
|
||||
private String authDelive;
|
||||
private String performInfo;
|
||||
|
||||
public void setVSEId(String VSEId) {
|
||||
this.VSEId = VSEId;
|
||||
}
|
||||
public String getVSEId() {
|
||||
return VSEId;
|
||||
}
|
||||
|
||||
public void setIsTree(boolean isTree) {
|
||||
this.isTree = isTree;
|
||||
}
|
||||
public boolean getIsTree() {
|
||||
return isTree;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setResNum(String resNum) {
|
||||
this.resNum = resNum;
|
||||
}
|
||||
public String getResNum() {
|
||||
return resNum;
|
||||
}
|
||||
|
||||
public void setResName(String resName) {
|
||||
this.resName = resName;
|
||||
}
|
||||
public String getResName() {
|
||||
return resName;
|
||||
}
|
||||
|
||||
public void setItemsList(List<ItemsList> itemsList) {
|
||||
this.itemsList = itemsList;
|
||||
}
|
||||
public List<ItemsList> getItemsList() {
|
||||
return itemsList;
|
||||
}
|
||||
|
||||
public void setDeptId(String deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
public String getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
public String getResId() {
|
||||
return resId;
|
||||
}
|
||||
|
||||
public void setVSEName(String VSEName) {
|
||||
this.VSEName = VSEName;
|
||||
}
|
||||
public String getVSEName() {
|
||||
return VSEName;
|
||||
}
|
||||
|
||||
public void setZNodes(List<ZNodes> zNodes) {
|
||||
this.zNodes = zNodes;
|
||||
}
|
||||
public List<ZNodes> getZNodes() {
|
||||
return zNodes;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public String getDREId() {
|
||||
return DREId;
|
||||
}
|
||||
|
||||
public void setDREId(String DREId) {
|
||||
this.DREId = DREId;
|
||||
}
|
||||
|
||||
public String getDREName() {
|
||||
return DREName;
|
||||
}
|
||||
|
||||
public void setDREName(String DREName) {
|
||||
this.DREName = DREName;
|
||||
}
|
||||
|
||||
public Form getForm() {
|
||||
return form;
|
||||
}
|
||||
|
||||
public void setForm(Form form) {
|
||||
this.form = form;
|
||||
}
|
||||
|
||||
public String getApprovalOpinions() {
|
||||
return approvalOpinions;
|
||||
}
|
||||
|
||||
public void setApprovalOpinions(String approvalOpinions) {
|
||||
this.approvalOpinions = approvalOpinions;
|
||||
}
|
||||
|
||||
public String getApprovalContent() {
|
||||
return approvalContent;
|
||||
}
|
||||
|
||||
public void setApprovalContent(String approvalContent) {
|
||||
this.approvalContent = approvalContent;
|
||||
}
|
||||
|
||||
public String getResType() {
|
||||
return resType;
|
||||
}
|
||||
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
|
||||
public String getOpinion() {
|
||||
return opinion;
|
||||
}
|
||||
|
||||
public void setOpinion(String opinion) {
|
||||
this.opinion = opinion;
|
||||
}
|
||||
|
||||
public String getOpinionContent() {
|
||||
return opinionContent;
|
||||
}
|
||||
|
||||
public void setOpinionContent(String opinionContent) {
|
||||
this.opinionContent = opinionContent;
|
||||
}
|
||||
|
||||
public String getOpinionName() {
|
||||
return opinionName;
|
||||
}
|
||||
|
||||
public void setOpinionName(String opinionName) {
|
||||
this.opinionName = opinionName;
|
||||
}
|
||||
|
||||
public String getOpinionNode() {
|
||||
return opinionNode;
|
||||
}
|
||||
|
||||
public void setOpinionNode(String opinionNode) {
|
||||
this.opinionNode = opinionNode;
|
||||
}
|
||||
|
||||
public Date getOpinionTime() {
|
||||
return opinionTime;
|
||||
}
|
||||
|
||||
public void setOpinionTime(Date opinionTime) {
|
||||
this.opinionTime = opinionTime;
|
||||
}
|
||||
|
||||
public String getTermsConditions() {
|
||||
return termsConditions;
|
||||
}
|
||||
|
||||
public void setTermsConditions(String termsConditions) {
|
||||
this.termsConditions = termsConditions;
|
||||
}
|
||||
|
||||
public String getXMPGJS() {
|
||||
return XMPGJS;
|
||||
}
|
||||
|
||||
public void setXMPGJS(String XMPGJS) {
|
||||
this.XMPGJS = XMPGJS;
|
||||
}
|
||||
|
||||
public String getXMPGJSName() {
|
||||
return XMPGJSName;
|
||||
}
|
||||
|
||||
public void setXMPGJSName(String XMPGJSName) {
|
||||
this.XMPGJSName = XMPGJSName;
|
||||
}
|
||||
|
||||
public String getNewPutText() {
|
||||
return newPutText;
|
||||
}
|
||||
|
||||
public void setNewPutText(String newPutText) {
|
||||
this.newPutText = newPutText;
|
||||
}
|
||||
|
||||
public String getProdPutText() {
|
||||
return prodPutText;
|
||||
}
|
||||
|
||||
public void setProdPutText(String prodPutText) {
|
||||
this.prodPutText = prodPutText;
|
||||
}
|
||||
|
||||
public String getAuthObj() {
|
||||
return authObj;
|
||||
}
|
||||
|
||||
public void setAuthObj(String authObj) {
|
||||
this.authObj = authObj;
|
||||
}
|
||||
|
||||
public String getAuthDelive() {
|
||||
return authDelive;
|
||||
}
|
||||
|
||||
public void setAuthDelive(String authDelive) {
|
||||
this.authDelive = authDelive;
|
||||
}
|
||||
|
||||
public String getPerformInfo() {
|
||||
return performInfo;
|
||||
}
|
||||
|
||||
public void setPerformInfo(String performInfo) {
|
||||
this.performInfo = performInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,85 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
public class Data {
|
||||
private String attId;
|
||||
private String fileName;
|
||||
private String fileSuffix;
|
||||
private String filePath;
|
||||
private String name;
|
||||
private String id;
|
||||
private String standNum;
|
||||
private String standName;
|
||||
private String oldFileName;
|
||||
|
||||
public String getOldFileName() {
|
||||
return oldFileName;
|
||||
}
|
||||
|
||||
public void setOldFileName(String oldFileName) {
|
||||
this.oldFileName = oldFileName;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getStandNum() {
|
||||
return standNum;
|
||||
}
|
||||
|
||||
public void setStandNum(String standNum) {
|
||||
this.standNum = standNum;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getFileSuffix() {
|
||||
return fileSuffix;
|
||||
}
|
||||
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
return attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Form {
|
||||
|
||||
private String estimatedChangeCycle;
|
||||
private String itemNumber;
|
||||
private String justified;
|
||||
private String SupportingMaterials;
|
||||
private String changeScheme;
|
||||
private String cost;
|
||||
private String current;
|
||||
private String cycle;
|
||||
private String enterpriseLabel;
|
||||
private String enterpriseLabel2;
|
||||
private String enterpriseLabel3;
|
||||
private String estimatedCost;
|
||||
private String feedback;
|
||||
private String nonConformity;
|
||||
private String riskPoint;
|
||||
private String verificationScheme;
|
||||
private List<String> fileInfoList;
|
||||
private String fileInfo;
|
||||
private List<FromFile> file;
|
||||
private String compTime;
|
||||
|
||||
private String compPerson;
|
||||
|
||||
private String nonConfomity;
|
||||
|
||||
private String resNum;
|
||||
|
||||
private String creatUser;
|
||||
|
||||
private String creatOrgId;
|
||||
|
||||
private String creatUserName;
|
||||
|
||||
public String getEstimatedChangeCycle() {
|
||||
return estimatedChangeCycle;
|
||||
}
|
||||
|
||||
public void setEstimatedChangeCycle(String estimatedChangeCycle) {
|
||||
this.estimatedChangeCycle = estimatedChangeCycle;
|
||||
}
|
||||
|
||||
public String getItemNumber() {
|
||||
return itemNumber;
|
||||
}
|
||||
|
||||
public void setItemNumber(String itemNumber) {
|
||||
this.itemNumber = itemNumber;
|
||||
}
|
||||
|
||||
public String getJustified() {
|
||||
return justified;
|
||||
}
|
||||
|
||||
public void setJustified(String justified) {
|
||||
this.justified = justified;
|
||||
}
|
||||
|
||||
public String getSupportingMaterials() {
|
||||
return SupportingMaterials;
|
||||
}
|
||||
|
||||
public void setSupportingMaterials(String supportingMaterials) {
|
||||
SupportingMaterials = supportingMaterials;
|
||||
}
|
||||
|
||||
public String getChangeScheme() {
|
||||
return changeScheme;
|
||||
}
|
||||
|
||||
public void setChangeScheme(String changeScheme) {
|
||||
this.changeScheme = changeScheme;
|
||||
}
|
||||
|
||||
public String getCost() {
|
||||
return cost;
|
||||
}
|
||||
|
||||
public void setCost(String cost) {
|
||||
this.cost = cost;
|
||||
}
|
||||
|
||||
public String getCurrent() {
|
||||
return current;
|
||||
}
|
||||
|
||||
public void setCurrent(String current) {
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
public String getCycle() {
|
||||
return cycle;
|
||||
}
|
||||
|
||||
public void setCycle(String cycle) {
|
||||
this.cycle = cycle;
|
||||
}
|
||||
|
||||
public String getEnterpriseLabel() {
|
||||
return enterpriseLabel;
|
||||
}
|
||||
|
||||
public void setEnterpriseLabel(String enterpriseLabel) {
|
||||
this.enterpriseLabel = enterpriseLabel;
|
||||
}
|
||||
|
||||
public String getEnterpriseLabel2() {
|
||||
return enterpriseLabel2;
|
||||
}
|
||||
|
||||
public void setEnterpriseLabel2(String enterpriseLabel2) {
|
||||
this.enterpriseLabel2 = enterpriseLabel2;
|
||||
}
|
||||
|
||||
public String getEnterpriseLabel3() {
|
||||
return enterpriseLabel3;
|
||||
}
|
||||
|
||||
public void setEnterpriseLabel3(String enterpriseLabel3) {
|
||||
this.enterpriseLabel3 = enterpriseLabel3;
|
||||
}
|
||||
|
||||
public String getEstimatedCost() {
|
||||
return estimatedCost;
|
||||
}
|
||||
|
||||
public void setEstimatedCost(String estimatedCost) {
|
||||
this.estimatedCost = estimatedCost;
|
||||
}
|
||||
|
||||
public String getFeedback() {
|
||||
return feedback;
|
||||
}
|
||||
|
||||
public void setFeedback(String feedback) {
|
||||
this.feedback = feedback;
|
||||
}
|
||||
|
||||
public String getNonConformity() {
|
||||
return nonConformity;
|
||||
}
|
||||
|
||||
public void setNonConformity(String nonConformity) {
|
||||
this.nonConformity = nonConformity;
|
||||
}
|
||||
|
||||
public String getRiskPoint() {
|
||||
return riskPoint;
|
||||
}
|
||||
|
||||
public void setRiskPoint(String riskPoint) {
|
||||
this.riskPoint = riskPoint;
|
||||
}
|
||||
|
||||
public String getVerificationScheme() {
|
||||
return verificationScheme;
|
||||
}
|
||||
|
||||
public void setVerificationScheme(String verificationScheme) {
|
||||
this.verificationScheme = verificationScheme;
|
||||
}
|
||||
|
||||
public List<String> getFileInfoList() {
|
||||
return fileInfoList;
|
||||
}
|
||||
|
||||
public void setFileInfoList(List<String> fileInfoList) {
|
||||
this.fileInfoList = fileInfoList;
|
||||
}
|
||||
|
||||
public String getFileInfo() {
|
||||
return fileInfo;
|
||||
}
|
||||
|
||||
public void setFileInfo(String fileInfo) {
|
||||
this.fileInfo = fileInfo;
|
||||
}
|
||||
|
||||
public List<FromFile> getFile() {
|
||||
return file;
|
||||
}
|
||||
|
||||
public void setFile(List<FromFile> file) {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public String getCompTime() {
|
||||
return compTime;
|
||||
}
|
||||
|
||||
public void setCompTime(String compTime) {
|
||||
this.compTime = compTime;
|
||||
}
|
||||
|
||||
public String getCompPerson() {
|
||||
return compPerson;
|
||||
}
|
||||
|
||||
public void setCompPerson(String compPerson) {
|
||||
this.compPerson = compPerson;
|
||||
}
|
||||
|
||||
public String getNonConfomity() {
|
||||
return nonConfomity;
|
||||
}
|
||||
|
||||
public void setNonConfomity(String nonConfomity) {
|
||||
this.nonConfomity = nonConfomity;
|
||||
}
|
||||
|
||||
public String getResNum() {
|
||||
return resNum;
|
||||
}
|
||||
|
||||
public void setResNum(String resNum) {
|
||||
this.resNum = resNum;
|
||||
}
|
||||
|
||||
public String getCreatUser() {
|
||||
return creatUser;
|
||||
}
|
||||
|
||||
public void setCreatUser(String creatUser) {
|
||||
this.creatUser = creatUser;
|
||||
}
|
||||
|
||||
public String getCreatOrgId() {
|
||||
return creatOrgId;
|
||||
}
|
||||
|
||||
public void setCreatOrgId(String creatOrgId) {
|
||||
this.creatOrgId = creatOrgId;
|
||||
}
|
||||
|
||||
public String getCreatUserName() {
|
||||
return creatUserName;
|
||||
}
|
||||
|
||||
public void setCreatUserName(String creatUserName) {
|
||||
this.creatUserName = creatUserName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
public class FromFile {
|
||||
private String uid;
|
||||
private String size;
|
||||
private String percentage;
|
||||
private String name;
|
||||
private Response response;
|
||||
|
||||
public String getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
public void setUid(String uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
public String getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public String getPercentage() {
|
||||
return percentage;
|
||||
}
|
||||
|
||||
public void setPercentage(String percentage) {
|
||||
this.percentage = percentage;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Response getResponse() {
|
||||
return response;
|
||||
}
|
||||
|
||||
public void setResponse(Response response) {
|
||||
this.response = response;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,281 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class ItemListNew {
|
||||
|
||||
private List<String> deptName;
|
||||
private List<String> foName;
|
||||
private String resNum;
|
||||
private String resName;
|
||||
private List<String> foId;
|
||||
private List<String> deptId;
|
||||
private String resId;
|
||||
private String taskId;
|
||||
private List<ZNodes> zNodes;
|
||||
private Form form;
|
||||
private String type;
|
||||
private String userId;
|
||||
private String VSEId;
|
||||
private String VSEName;
|
||||
private String DREId;
|
||||
private String DREName;
|
||||
private String termsConditions;
|
||||
private String resType;
|
||||
/**
|
||||
* 审批意见
|
||||
*/
|
||||
private String approvalOpinions;
|
||||
|
||||
/**
|
||||
* 审批内容
|
||||
*/
|
||||
private String approvalContent;
|
||||
|
||||
private Date opinionTime;
|
||||
|
||||
private String opinion;
|
||||
private String opinionContent;
|
||||
private String opinionName;
|
||||
private String opinionNode;
|
||||
|
||||
private String compTime;
|
||||
|
||||
private String compPerson;
|
||||
|
||||
private List<String> XMPGJS;
|
||||
private List<String> XMPGJSName;
|
||||
|
||||
public List<String> getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(List<String> deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public List<String> getFoName() {
|
||||
return foName;
|
||||
}
|
||||
|
||||
public void setFoName(List<String> foName) {
|
||||
this.foName = foName;
|
||||
}
|
||||
|
||||
public String getResNum() {
|
||||
return resNum;
|
||||
}
|
||||
|
||||
public void setResNum(String resNum) {
|
||||
this.resNum = resNum;
|
||||
}
|
||||
|
||||
public String getResName() {
|
||||
return resName;
|
||||
}
|
||||
|
||||
public void setResName(String resName) {
|
||||
this.resName = resName;
|
||||
}
|
||||
|
||||
public List<String> getFoId() {
|
||||
return foId;
|
||||
}
|
||||
|
||||
public void setFoId(List<String> foId) {
|
||||
this.foId = foId;
|
||||
}
|
||||
|
||||
public String getResId() {
|
||||
return resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public List<ZNodes> getzNodes() {
|
||||
return zNodes;
|
||||
}
|
||||
|
||||
public void setzNodes(List<ZNodes> zNodes) {
|
||||
this.zNodes = zNodes;
|
||||
}
|
||||
|
||||
public Form getForm() {
|
||||
return form;
|
||||
}
|
||||
|
||||
public void setForm(Form form) {
|
||||
this.form = form;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getVSEId() {
|
||||
return VSEId;
|
||||
}
|
||||
|
||||
public void setVSEId(String VSEId) {
|
||||
this.VSEId = VSEId;
|
||||
}
|
||||
|
||||
public String getVSEName() {
|
||||
return VSEName;
|
||||
}
|
||||
|
||||
public void setVSEName(String VSEName) {
|
||||
this.VSEName = VSEName;
|
||||
}
|
||||
|
||||
public String getDREId() {
|
||||
return DREId;
|
||||
}
|
||||
|
||||
public void setDREId(String DREId) {
|
||||
this.DREId = DREId;
|
||||
}
|
||||
|
||||
public String getDREName() {
|
||||
return DREName;
|
||||
}
|
||||
|
||||
public void setDREName(String DREName) {
|
||||
this.DREName = DREName;
|
||||
}
|
||||
|
||||
public String getTermsConditions() {
|
||||
return termsConditions;
|
||||
}
|
||||
|
||||
public void setTermsConditions(String termsConditions) {
|
||||
this.termsConditions = termsConditions;
|
||||
}
|
||||
|
||||
public String getResType() {
|
||||
return resType;
|
||||
}
|
||||
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
public String getApprovalOpinions() {
|
||||
return approvalOpinions;
|
||||
}
|
||||
|
||||
public void setApprovalOpinions(String approvalOpinions) {
|
||||
this.approvalOpinions = approvalOpinions;
|
||||
}
|
||||
|
||||
public String getApprovalContent() {
|
||||
return approvalContent;
|
||||
}
|
||||
|
||||
public void setApprovalContent(String approvalContent) {
|
||||
this.approvalContent = approvalContent;
|
||||
}
|
||||
|
||||
public Date getOpinionTime() {
|
||||
return opinionTime;
|
||||
}
|
||||
|
||||
public void setOpinionTime(Date opinionTime) {
|
||||
this.opinionTime = opinionTime;
|
||||
}
|
||||
|
||||
public String getOpinion() {
|
||||
return opinion;
|
||||
}
|
||||
|
||||
public void setOpinion(String opinion) {
|
||||
this.opinion = opinion;
|
||||
}
|
||||
|
||||
public String getOpinionContent() {
|
||||
return opinionContent;
|
||||
}
|
||||
|
||||
public void setOpinionContent(String opinionContent) {
|
||||
this.opinionContent = opinionContent;
|
||||
}
|
||||
|
||||
public String getOpinionName() {
|
||||
return opinionName;
|
||||
}
|
||||
|
||||
public void setOpinionName(String opinionName) {
|
||||
this.opinionName = opinionName;
|
||||
}
|
||||
|
||||
public String getOpinionNode() {
|
||||
return opinionNode;
|
||||
}
|
||||
|
||||
public void setOpinionNode(String opinionNode) {
|
||||
this.opinionNode = opinionNode;
|
||||
}
|
||||
|
||||
public String getCompTime() {
|
||||
return compTime;
|
||||
}
|
||||
|
||||
public void setCompTime(String compTime) {
|
||||
this.compTime = compTime;
|
||||
}
|
||||
|
||||
public String getCompPerson() {
|
||||
return compPerson;
|
||||
}
|
||||
|
||||
public void setCompPerson(String compPerson) {
|
||||
this.compPerson = compPerson;
|
||||
}
|
||||
|
||||
public List<String> getXMPGJS() {
|
||||
return XMPGJS;
|
||||
}
|
||||
|
||||
public void setXMPGJS(List<String> XMPGJS) {
|
||||
this.XMPGJS = XMPGJS;
|
||||
}
|
||||
|
||||
public List<String> getXMPGJSName() {
|
||||
return XMPGJSName;
|
||||
}
|
||||
|
||||
public void setXMPGJSName(List<String> XMPGJSName) {
|
||||
this.XMPGJSName = XMPGJSName;
|
||||
}
|
||||
|
||||
public List<String> getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(List<String> deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,328 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class ItemsList {
|
||||
|
||||
|
||||
private String deptName;
|
||||
private String foName;
|
||||
private String resNum;
|
||||
private String resName;
|
||||
private List<String> foId;
|
||||
private String deptId;
|
||||
private String resId;
|
||||
private String taskId;
|
||||
private List<ZNodes> zNodes;
|
||||
private Form form;
|
||||
private String type;
|
||||
private String userId;
|
||||
private String VSEId;
|
||||
private String VSEName;
|
||||
private String DREId;
|
||||
private String DREName;
|
||||
private String termsConditions;
|
||||
private String resType;
|
||||
/**
|
||||
* 审批意见
|
||||
*/
|
||||
private String approvalOpinions;
|
||||
|
||||
/**
|
||||
* 审批内容
|
||||
*/
|
||||
private String approvalContent;
|
||||
|
||||
private Date opinionTime;
|
||||
|
||||
private String opinion;
|
||||
private String opinionContent;
|
||||
private String opinionName;
|
||||
private String opinionNode;
|
||||
|
||||
private String compTime;
|
||||
|
||||
private String compPerson;
|
||||
|
||||
private String XMPGJS;
|
||||
private String XMPGJSName;
|
||||
|
||||
private String newPutText;
|
||||
private String prodPutText;
|
||||
private String authObj;
|
||||
private String authDelive;
|
||||
private String performInfo;
|
||||
|
||||
public String getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(String deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public String getFoName() {
|
||||
return foName;
|
||||
}
|
||||
|
||||
public void setFoName(String foName) {
|
||||
this.foName = foName;
|
||||
}
|
||||
|
||||
public String getResNum() {
|
||||
return resNum;
|
||||
}
|
||||
|
||||
public void setResNum(String resNum) {
|
||||
this.resNum = resNum;
|
||||
}
|
||||
|
||||
public String getResName() {
|
||||
return resName;
|
||||
}
|
||||
|
||||
public void setResName(String resName) {
|
||||
this.resName = resName;
|
||||
}
|
||||
|
||||
public List<String> getFoId() {
|
||||
return foId;
|
||||
}
|
||||
|
||||
public void setFoId(List<String> foId) {
|
||||
this.foId = foId;
|
||||
}
|
||||
|
||||
public String getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(String deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public String getResId() {
|
||||
return resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public List<ZNodes> getzNodes() {
|
||||
return zNodes;
|
||||
}
|
||||
|
||||
public void setzNodes(List<ZNodes> zNodes) {
|
||||
this.zNodes = zNodes;
|
||||
}
|
||||
|
||||
public Form getForm() {
|
||||
return form;
|
||||
}
|
||||
|
||||
public void setForm(Form form) {
|
||||
this.form = form;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getVSEId() {
|
||||
return VSEId;
|
||||
}
|
||||
|
||||
public void setVSEId(String VSEId) {
|
||||
this.VSEId = VSEId;
|
||||
}
|
||||
|
||||
public String getVSEName() {
|
||||
return VSEName;
|
||||
}
|
||||
|
||||
public void setVSEName(String VSEName) {
|
||||
this.VSEName = VSEName;
|
||||
}
|
||||
|
||||
public String getDREId() {
|
||||
return DREId;
|
||||
}
|
||||
|
||||
public void setDREId(String DREId) {
|
||||
this.DREId = DREId;
|
||||
}
|
||||
|
||||
public String getDREName() {
|
||||
return DREName;
|
||||
}
|
||||
|
||||
public void setDREName(String DREName) {
|
||||
this.DREName = DREName;
|
||||
}
|
||||
|
||||
public String getTermsConditions() {
|
||||
return termsConditions;
|
||||
}
|
||||
|
||||
public void setTermsConditions(String termsConditions) {
|
||||
this.termsConditions = termsConditions;
|
||||
}
|
||||
|
||||
public String getApprovalOpinions() {
|
||||
return approvalOpinions;
|
||||
}
|
||||
|
||||
public void setApprovalOpinions(String approvalOpinions) {
|
||||
this.approvalOpinions = approvalOpinions;
|
||||
}
|
||||
|
||||
public String getApprovalContent() {
|
||||
return approvalContent;
|
||||
}
|
||||
|
||||
public void setApprovalContent(String approvalContent) {
|
||||
this.approvalContent = approvalContent;
|
||||
}
|
||||
|
||||
public String getResType() {
|
||||
return resType;
|
||||
}
|
||||
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
public String getOpinion() {
|
||||
return opinion;
|
||||
}
|
||||
|
||||
public void setOpinion(String opinion) {
|
||||
this.opinion = opinion;
|
||||
}
|
||||
|
||||
public String getOpinionContent() {
|
||||
return opinionContent;
|
||||
}
|
||||
|
||||
public void setOpinionContent(String opinionContent) {
|
||||
this.opinionContent = opinionContent;
|
||||
}
|
||||
|
||||
public String getOpinionName() {
|
||||
return opinionName;
|
||||
}
|
||||
|
||||
public void setOpinionName(String opinionName) {
|
||||
this.opinionName = opinionName;
|
||||
}
|
||||
|
||||
public String getOpinionNode() {
|
||||
return opinionNode;
|
||||
}
|
||||
|
||||
public void setOpinionNode(String opinionNode) {
|
||||
this.opinionNode = opinionNode;
|
||||
}
|
||||
|
||||
public Date getOpinionTime() {
|
||||
return opinionTime;
|
||||
}
|
||||
|
||||
public void setOpinionTime(Date opinionTime) {
|
||||
this.opinionTime = opinionTime;
|
||||
}
|
||||
|
||||
public String getCompTime() {
|
||||
return compTime;
|
||||
}
|
||||
|
||||
public void setCompTime(String compTime) {
|
||||
this.compTime = compTime;
|
||||
}
|
||||
|
||||
public String getCompPerson() {
|
||||
return compPerson;
|
||||
}
|
||||
|
||||
public void setCompPerson(String compPerson) {
|
||||
this.compPerson = compPerson;
|
||||
}
|
||||
|
||||
public String getXMPGJS() {
|
||||
return XMPGJS;
|
||||
}
|
||||
|
||||
public void setXMPGJS(String XMPGJS) {
|
||||
this.XMPGJS = XMPGJS;
|
||||
}
|
||||
|
||||
public String getXMPGJSName() {
|
||||
return XMPGJSName;
|
||||
}
|
||||
|
||||
public void setXMPGJSName(String XMPGJSName) {
|
||||
this.XMPGJSName = XMPGJSName;
|
||||
}
|
||||
|
||||
public String getNewPutText() {
|
||||
return newPutText;
|
||||
}
|
||||
|
||||
public void setNewPutText(String newPutText) {
|
||||
this.newPutText = newPutText;
|
||||
}
|
||||
|
||||
public String getProdPutText() {
|
||||
return prodPutText;
|
||||
}
|
||||
|
||||
public void setProdPutText(String prodPutText) {
|
||||
this.prodPutText = prodPutText;
|
||||
}
|
||||
|
||||
public String getAuthObj() {
|
||||
return authObj;
|
||||
}
|
||||
|
||||
public void setAuthObj(String authObj) {
|
||||
this.authObj = authObj;
|
||||
}
|
||||
|
||||
public String getAuthDelive() {
|
||||
return authDelive;
|
||||
}
|
||||
|
||||
public void setAuthDelive(String authDelive) {
|
||||
this.authDelive = authDelive;
|
||||
}
|
||||
|
||||
public String getPerformInfo() {
|
||||
return performInfo;
|
||||
}
|
||||
|
||||
public void setPerformInfo(String performInfo) {
|
||||
this.performInfo = performInfo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import com.tmsps.fk.common.base.dto.BaseVueQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "ModelQuery 对象", description = "")
|
||||
public class ModelQuery<T> extends BaseVueQuery<T> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Wrapper<T> makeQueryWrapper() {
|
||||
QueryWrapper<T> queryWrapper = new QueryWrapper<>();
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Page {
|
||||
private Integer pageNo;
|
||||
private Integer pageSize;
|
||||
private Long count;
|
||||
private List<BusProcessName> list;
|
||||
|
||||
public Integer getPageSize() {
|
||||
return pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(Integer pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public Long getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(Long count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
public List<BusProcessName> getList() {
|
||||
return list;
|
||||
}
|
||||
|
||||
public void setList(List<BusProcessName> list) {
|
||||
this.list = list;
|
||||
}
|
||||
|
||||
public Integer getPageNo() {
|
||||
return pageNo;
|
||||
}
|
||||
|
||||
public void setPageNo(Integer pageNo) {
|
||||
this.pageNo = pageNo;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,580 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Auto-generated: 2020-11-16 22:42:30
|
||||
*
|
||||
* @author bejson.com (i@bejson.com)
|
||||
* @website http://www.bejson.com/java2pojo/
|
||||
*/
|
||||
public class ProjectAssessDTO {
|
||||
|
||||
private String prodectCode;
|
||||
private String creationUser;
|
||||
private Date creationTime;
|
||||
private Date planPassTime;
|
||||
private String productBrand;
|
||||
private String flatform;
|
||||
private String productName;
|
||||
private String productSet;
|
||||
private String saleMarket;
|
||||
private Date modifyTime;
|
||||
private String targetMarket;
|
||||
// private Children children;
|
||||
private List<Children> children;
|
||||
private String id;
|
||||
private String productType;
|
||||
private Date eopTime;
|
||||
private String dataType;
|
||||
private String relatePerson;
|
||||
private Date sopTime;
|
||||
private Date actualPassTime;
|
||||
private List<String> carModeFileList;
|
||||
private String isDevelop;
|
||||
private String pointTime;
|
||||
private String carModel;
|
||||
private String opinion;
|
||||
private Date opinionTime;
|
||||
private String opinionContent;
|
||||
private String vseOpinion;
|
||||
private String vseOpinionContent;
|
||||
|
||||
private String carModeFile;
|
||||
private String energyKind;
|
||||
private String validFlag;
|
||||
private String relatePersonShow;
|
||||
private String energyKindShow;
|
||||
private String productTypeShow;
|
||||
private String standId;
|
||||
private String standType;
|
||||
private String shownumber;
|
||||
private String showname;
|
||||
private String country;
|
||||
private String notId;
|
||||
private String testItemId;
|
||||
private String testItemName;
|
||||
private String testItemCode;
|
||||
private String standName;
|
||||
private String authTypeShow;
|
||||
private String standCode;
|
||||
private String productBrandShow;
|
||||
private String targetMarketShow;
|
||||
private String saleMarketShow;
|
||||
private String creatUser;
|
||||
private String productNo;
|
||||
private String producePlace;
|
||||
private String baseCartype;
|
||||
private String leftRight;
|
||||
private String productManager;
|
||||
private String productManagerShow;
|
||||
private String productTypeCode;
|
||||
private String productTypeCodeShow;
|
||||
private String producePlaceShow;
|
||||
private String prcNum;
|
||||
private String produceCode;
|
||||
private String productStage;
|
||||
private String zhengcarNo;
|
||||
private String zhengcarSopTime;
|
||||
private List<String> userEOList;
|
||||
|
||||
|
||||
public void setProdectCode(String prodectCode) {
|
||||
this.prodectCode = prodectCode;
|
||||
}
|
||||
public String getProdectCode() {
|
||||
return prodectCode;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
public String getCreationUser() {
|
||||
return creationUser;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setPlanPassTime(Date planPassTime) {
|
||||
this.planPassTime = planPassTime;
|
||||
}
|
||||
public Date getPlanPassTime() {
|
||||
return planPassTime;
|
||||
}
|
||||
|
||||
public void setProductBrand(String productBrand) {
|
||||
this.productBrand = productBrand;
|
||||
}
|
||||
public String getProductBrand() {
|
||||
return productBrand;
|
||||
}
|
||||
|
||||
public void setFlatform(String flatform) {
|
||||
this.flatform = flatform;
|
||||
}
|
||||
public String getFlatform() {
|
||||
return flatform;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductSet(String productSet) {
|
||||
this.productSet = productSet;
|
||||
}
|
||||
public String getProductSet() {
|
||||
return productSet;
|
||||
}
|
||||
|
||||
public void setSaleMarket(String saleMarket) {
|
||||
this.saleMarket = saleMarket;
|
||||
}
|
||||
public String getSaleMarket() {
|
||||
return saleMarket;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setTargetMarket(String targetMarket) {
|
||||
this.targetMarket = targetMarket;
|
||||
}
|
||||
public String getTargetMarket() {
|
||||
return targetMarket;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setProductType(String productType) {
|
||||
this.productType = productType;
|
||||
}
|
||||
public String getProductType() {
|
||||
return productType;
|
||||
}
|
||||
|
||||
public void setEopTime(Date eopTime) {
|
||||
this.eopTime = eopTime;
|
||||
}
|
||||
public Date getEopTime() {
|
||||
return eopTime;
|
||||
}
|
||||
|
||||
public void setDataType(String dataType) {
|
||||
this.dataType = dataType;
|
||||
}
|
||||
public String getDataType() {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
public void setRelatePerson(String relatePerson) {
|
||||
this.relatePerson = relatePerson;
|
||||
}
|
||||
public String getRelatePerson() {
|
||||
return relatePerson;
|
||||
}
|
||||
|
||||
public void setSopTime(Date sopTime) {
|
||||
this.sopTime = sopTime;
|
||||
}
|
||||
public Date getSopTime() {
|
||||
return sopTime;
|
||||
}
|
||||
|
||||
public void setActualPassTime(Date actualPassTime) {
|
||||
this.actualPassTime = actualPassTime;
|
||||
}
|
||||
public Date getActualPassTime() {
|
||||
return actualPassTime;
|
||||
}
|
||||
|
||||
public void setCarModeFileList(List<String> carModeFileList) {
|
||||
this.carModeFileList = carModeFileList;
|
||||
}
|
||||
public List<String> getCarModeFileList() {
|
||||
return carModeFileList;
|
||||
}
|
||||
|
||||
public void setIsDevelop(String isDevelop) {
|
||||
this.isDevelop = isDevelop;
|
||||
}
|
||||
public String getIsDevelop() {
|
||||
return isDevelop;
|
||||
}
|
||||
|
||||
public void setPointTime(String pointTime) {
|
||||
this.pointTime = pointTime;
|
||||
}
|
||||
public String getPointTime() {
|
||||
return pointTime;
|
||||
}
|
||||
|
||||
public void setCarModel(String carModel) {
|
||||
this.carModel = carModel;
|
||||
}
|
||||
public String getCarModel() {
|
||||
return carModel;
|
||||
}
|
||||
|
||||
public List<Children> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<Children> children) {
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
public String getOpinion() {
|
||||
return opinion;
|
||||
}
|
||||
|
||||
public void setOpinion(String opinion) {
|
||||
this.opinion = opinion;
|
||||
}
|
||||
|
||||
public String getOpinionContent() {
|
||||
return opinionContent;
|
||||
}
|
||||
|
||||
public void setOpinionContent(String opinionContent) {
|
||||
this.opinionContent = opinionContent;
|
||||
}
|
||||
|
||||
public String getVseOpinion() {
|
||||
return vseOpinion;
|
||||
}
|
||||
|
||||
public void setVseOpinion(String vseOpinion) {
|
||||
this.vseOpinion = vseOpinion;
|
||||
}
|
||||
|
||||
public String getVseOpinionContent() {
|
||||
return vseOpinionContent;
|
||||
}
|
||||
|
||||
public void setVseOpinionContent(String vseOpinionContent) {
|
||||
this.vseOpinionContent = vseOpinionContent;
|
||||
}
|
||||
|
||||
public String getCarModeFile() {
|
||||
return carModeFile;
|
||||
}
|
||||
|
||||
public void setCarModeFile(String carModeFile) {
|
||||
this.carModeFile = carModeFile;
|
||||
}
|
||||
|
||||
public String getEnergyKind() {
|
||||
return energyKind;
|
||||
}
|
||||
|
||||
public void setEnergyKind(String energyKind) {
|
||||
this.energyKind = energyKind;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getRelatePersonShow() {
|
||||
return relatePersonShow;
|
||||
}
|
||||
|
||||
public void setRelatePersonShow(String relatePersonShow) {
|
||||
this.relatePersonShow = relatePersonShow;
|
||||
}
|
||||
|
||||
public String getEnergyKindShow() {
|
||||
return energyKindShow;
|
||||
}
|
||||
|
||||
public void setEnergyKindShow(String energyKindShow) {
|
||||
this.energyKindShow = energyKindShow;
|
||||
}
|
||||
|
||||
public String getProductTypeShow() {
|
||||
return productTypeShow;
|
||||
}
|
||||
|
||||
public void setProductTypeShow(String productTypeShow) {
|
||||
this.productTypeShow = productTypeShow;
|
||||
}
|
||||
|
||||
public String getStandId() {
|
||||
return standId;
|
||||
}
|
||||
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
public String getStandType() {
|
||||
return standType;
|
||||
}
|
||||
|
||||
public void setStandType(String standType) {
|
||||
this.standType = standType;
|
||||
}
|
||||
|
||||
public String getShownumber() {
|
||||
return shownumber;
|
||||
}
|
||||
|
||||
public void setShownumber(String shownumber) {
|
||||
this.shownumber = shownumber;
|
||||
}
|
||||
|
||||
public String getShowname() {
|
||||
return showname;
|
||||
}
|
||||
|
||||
public void setShowname(String showname) {
|
||||
this.showname = showname;
|
||||
}
|
||||
|
||||
public String getCountry() {
|
||||
return country;
|
||||
}
|
||||
|
||||
public void setCountry(String country) {
|
||||
this.country = country;
|
||||
}
|
||||
|
||||
public String getNotId() {
|
||||
return notId;
|
||||
}
|
||||
|
||||
public void setNotId(String notId) {
|
||||
this.notId = notId;
|
||||
}
|
||||
|
||||
public String getTestItemId() {
|
||||
return testItemId;
|
||||
}
|
||||
|
||||
public void setTestItemId(String testItemId) {
|
||||
this.testItemId = testItemId;
|
||||
}
|
||||
|
||||
public String getTestItemName() {
|
||||
return testItemName;
|
||||
}
|
||||
|
||||
public void setTestItemName(String testItemName) {
|
||||
this.testItemName = testItemName;
|
||||
}
|
||||
|
||||
public String getTestItemCode() {
|
||||
return testItemCode;
|
||||
}
|
||||
|
||||
public void setTestItemCode(String testItemCode) {
|
||||
this.testItemCode = testItemCode;
|
||||
}
|
||||
|
||||
public String getAuthTypeShow() {
|
||||
return authTypeShow;
|
||||
}
|
||||
|
||||
public void setAuthTypeShow(String authTypeShow) {
|
||||
this.authTypeShow = authTypeShow;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getStandCode() {
|
||||
return standCode;
|
||||
}
|
||||
|
||||
public void setStandCode(String standCode) {
|
||||
this.standCode = standCode;
|
||||
}
|
||||
|
||||
public String getProductBrandShow() {
|
||||
return productBrandShow;
|
||||
}
|
||||
|
||||
public void setProductBrandShow(String productBrandShow) {
|
||||
this.productBrandShow = productBrandShow;
|
||||
}
|
||||
|
||||
public String getTargetMarketShow() {
|
||||
return targetMarketShow;
|
||||
}
|
||||
|
||||
public void setTargetMarketShow(String targetMarketShow) {
|
||||
this.targetMarketShow = targetMarketShow;
|
||||
}
|
||||
|
||||
public String getSaleMarketShow() {
|
||||
return saleMarketShow;
|
||||
}
|
||||
|
||||
public void setSaleMarketShow(String saleMarketShow) {
|
||||
this.saleMarketShow = saleMarketShow;
|
||||
}
|
||||
|
||||
public String getCreatUser() {
|
||||
return creatUser;
|
||||
}
|
||||
|
||||
public void setCreatUser(String creatUser) {
|
||||
this.creatUser = creatUser;
|
||||
}
|
||||
|
||||
public String getProductNo() {
|
||||
return productNo;
|
||||
}
|
||||
|
||||
public void setProductNo(String productNo) {
|
||||
this.productNo = productNo;
|
||||
}
|
||||
|
||||
public String getProducePlace() {
|
||||
return producePlace;
|
||||
}
|
||||
|
||||
public void setProducePlace(String producePlace) {
|
||||
this.producePlace = producePlace;
|
||||
}
|
||||
|
||||
public String getBaseCartype() {
|
||||
return baseCartype;
|
||||
}
|
||||
|
||||
public void setBaseCartype(String baseCartype) {
|
||||
this.baseCartype = baseCartype;
|
||||
}
|
||||
|
||||
public String getLeftRight() {
|
||||
return leftRight;
|
||||
}
|
||||
|
||||
public void setLeftRight(String leftRight) {
|
||||
this.leftRight = leftRight;
|
||||
}
|
||||
|
||||
public String getProductManager() {
|
||||
return productManager;
|
||||
}
|
||||
|
||||
public void setProductManager(String productManager) {
|
||||
this.productManager = productManager;
|
||||
}
|
||||
|
||||
public String getProductManagerShow() {
|
||||
return productManagerShow;
|
||||
}
|
||||
|
||||
public void setProductManagerShow(String productManagerShow) {
|
||||
this.productManagerShow = productManagerShow;
|
||||
}
|
||||
|
||||
public String getProductTypeCode() {
|
||||
return productTypeCode;
|
||||
}
|
||||
|
||||
public void setProductTypeCode(String productTypeCode) {
|
||||
this.productTypeCode = productTypeCode;
|
||||
}
|
||||
|
||||
public String getProductTypeCodeShow() {
|
||||
return productTypeCodeShow;
|
||||
}
|
||||
|
||||
public void setProductTypeCodeShow(String productTypeCodeShow) {
|
||||
this.productTypeCodeShow = productTypeCodeShow;
|
||||
}
|
||||
|
||||
public String getProducePlaceShow() {
|
||||
return producePlaceShow;
|
||||
}
|
||||
|
||||
public void setProducePlaceShow(String producePlaceShow) {
|
||||
this.producePlaceShow = producePlaceShow;
|
||||
}
|
||||
|
||||
public String getPrcNum() {
|
||||
return prcNum;
|
||||
}
|
||||
|
||||
public void setPrcNum(String prcNum) {
|
||||
this.prcNum = prcNum;
|
||||
}
|
||||
|
||||
public String getProduceCode() {
|
||||
return produceCode;
|
||||
}
|
||||
|
||||
public void setProduceCode(String produceCode) {
|
||||
this.produceCode = produceCode;
|
||||
}
|
||||
|
||||
public String getProductStage() {
|
||||
return productStage;
|
||||
}
|
||||
|
||||
public void setProductStage(String productStage) {
|
||||
this.productStage = productStage;
|
||||
}
|
||||
|
||||
public String getZhengcarNo() {
|
||||
return zhengcarNo;
|
||||
}
|
||||
|
||||
public void setZhengcarNo(String zhengcarNo) {
|
||||
this.zhengcarNo = zhengcarNo;
|
||||
}
|
||||
|
||||
public String getZhengcarSopTime() {
|
||||
return zhengcarSopTime;
|
||||
}
|
||||
|
||||
public void setZhengcarSopTime(String zhengcarSopTime) {
|
||||
this.zhengcarSopTime = zhengcarSopTime;
|
||||
}
|
||||
|
||||
public List<String> getUserEOList() {
|
||||
return userEOList;
|
||||
}
|
||||
|
||||
public void setUserEOList(List<String> userEOList) {
|
||||
this.userEOList = userEOList;
|
||||
}
|
||||
|
||||
public Date getOpinionTime() {
|
||||
return opinionTime;
|
||||
}
|
||||
|
||||
public void setOpinionTime(Date opinionTime) {
|
||||
this.opinionTime = opinionTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 项目评估符合不符合列表
|
||||
* @author david
|
||||
*/
|
||||
public class ProjectFormDTO extends Form {
|
||||
|
||||
/**
|
||||
* 标准或者条款ID
|
||||
*/
|
||||
private String resId;
|
||||
|
||||
/**
|
||||
* 标准编号
|
||||
*/
|
||||
private String resNum;
|
||||
|
||||
/**
|
||||
* 标准名称
|
||||
*/
|
||||
private String resName;
|
||||
|
||||
/**
|
||||
* 填写人id
|
||||
*/
|
||||
private String writeUserId;
|
||||
|
||||
/**
|
||||
* 填写人名称
|
||||
*/
|
||||
private String writeUsername;
|
||||
|
||||
/**
|
||||
* 条款编号
|
||||
*/
|
||||
private String clauseNum;
|
||||
|
||||
/**
|
||||
* 条款名称
|
||||
*/
|
||||
private String clauseName;
|
||||
|
||||
/**
|
||||
* 条款内容
|
||||
*/
|
||||
private String clauseContent;
|
||||
|
||||
/**
|
||||
* 审批意见
|
||||
*/
|
||||
private String approvalOpinions;
|
||||
|
||||
/**
|
||||
* 审批内容
|
||||
*/
|
||||
private String approvalContent;
|
||||
|
||||
/**
|
||||
* 任务id,用于查询任务数据,修改json
|
||||
*/
|
||||
private String taskId;
|
||||
private String opinion;
|
||||
private Date opinionTime;
|
||||
private String opinionContent;
|
||||
private String vseOpinion;
|
||||
private String vseOpinionContent;
|
||||
private String opinionName;
|
||||
private String opinionNode;
|
||||
private String termsConditions;
|
||||
|
||||
private String XMPGJS;
|
||||
private String XMPGJSName;
|
||||
|
||||
public String getResId() {
|
||||
return resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
public String getResNum() {
|
||||
return resNum;
|
||||
}
|
||||
|
||||
public void setResNum(String resNum) {
|
||||
this.resNum = resNum;
|
||||
}
|
||||
|
||||
public String getResName() {
|
||||
return resName;
|
||||
}
|
||||
|
||||
public void setResName(String resName) {
|
||||
this.resName = resName;
|
||||
}
|
||||
|
||||
public String getWriteUserId() {
|
||||
return writeUserId;
|
||||
}
|
||||
|
||||
public void setWriteUserId(String writeUserId) {
|
||||
this.writeUserId = writeUserId;
|
||||
}
|
||||
|
||||
public String getWriteUsername() {
|
||||
return writeUsername;
|
||||
}
|
||||
|
||||
public void setWriteUsername(String writeUsername) {
|
||||
this.writeUsername = writeUsername;
|
||||
}
|
||||
|
||||
public String getClauseNum() {
|
||||
return clauseNum;
|
||||
}
|
||||
|
||||
public void setClauseNum(String clauseNum) {
|
||||
this.clauseNum = clauseNum;
|
||||
}
|
||||
|
||||
public String getClauseName() {
|
||||
return clauseName;
|
||||
}
|
||||
|
||||
public void setClauseName(String clauseName) {
|
||||
this.clauseName = clauseName;
|
||||
}
|
||||
|
||||
public String getClauseContent() {
|
||||
return clauseContent;
|
||||
}
|
||||
|
||||
public void setClauseContent(String clauseContent) {
|
||||
this.clauseContent = clauseContent;
|
||||
}
|
||||
|
||||
public String getApprovalOpinions() {
|
||||
return approvalOpinions;
|
||||
}
|
||||
|
||||
public void setApprovalOpinions(String approvalOpinions) {
|
||||
this.approvalOpinions = approvalOpinions;
|
||||
}
|
||||
|
||||
public String getApprovalContent() {
|
||||
return approvalContent;
|
||||
}
|
||||
|
||||
public void setApprovalContent(String approvalContent) {
|
||||
this.approvalContent = approvalContent;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public String getOpinion() {
|
||||
return opinion;
|
||||
}
|
||||
|
||||
public void setOpinion(String opinion) {
|
||||
this.opinion = opinion;
|
||||
}
|
||||
|
||||
public String getOpinionContent() {
|
||||
return opinionContent;
|
||||
}
|
||||
|
||||
public void setOpinionContent(String opinionContent) {
|
||||
this.opinionContent = opinionContent;
|
||||
}
|
||||
|
||||
public String getVseOpinion() {
|
||||
return vseOpinion;
|
||||
}
|
||||
|
||||
public void setVseOpinion(String vseOpinion) {
|
||||
this.vseOpinion = vseOpinion;
|
||||
}
|
||||
|
||||
public String getVseOpinionContent() {
|
||||
return vseOpinionContent;
|
||||
}
|
||||
|
||||
public void setVseOpinionContent(String vseOpinionContent) {
|
||||
this.vseOpinionContent = vseOpinionContent;
|
||||
}
|
||||
|
||||
public String getOpinionName() {
|
||||
return opinionName;
|
||||
}
|
||||
|
||||
public void setOpinionName(String opinionName) {
|
||||
this.opinionName = opinionName;
|
||||
}
|
||||
|
||||
public String getOpinionNode() {
|
||||
return opinionNode;
|
||||
}
|
||||
|
||||
public void setOpinionNode(String opinionNode) {
|
||||
this.opinionNode = opinionNode;
|
||||
}
|
||||
|
||||
public Date getOpinionTime() {
|
||||
return opinionTime;
|
||||
}
|
||||
|
||||
public void setOpinionTime(Date opinionTime) {
|
||||
this.opinionTime = opinionTime;
|
||||
}
|
||||
|
||||
public String getTermsConditions() {
|
||||
return termsConditions;
|
||||
}
|
||||
|
||||
public void setTermsConditions(String termsConditions) {
|
||||
this.termsConditions = termsConditions;
|
||||
}
|
||||
|
||||
public String getXMPGJS() {
|
||||
return XMPGJS;
|
||||
}
|
||||
|
||||
public void setXMPGJS(String XMPGJS) {
|
||||
this.XMPGJS = XMPGJS;
|
||||
}
|
||||
|
||||
public String getXMPGJSName() {
|
||||
return XMPGJSName;
|
||||
}
|
||||
|
||||
public void setXMPGJSName(String XMPGJSName) {
|
||||
this.XMPGJSName = XMPGJSName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
public class Response {
|
||||
private String ok;
|
||||
private String message;
|
||||
private String respCode;
|
||||
private Data data;
|
||||
|
||||
public String getOk() {
|
||||
return ok;
|
||||
}
|
||||
|
||||
public void setOk(String ok) {
|
||||
this.ok = ok;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public String getRespCode() {
|
||||
return respCode;
|
||||
}
|
||||
|
||||
public void setRespCode(String respCode) {
|
||||
this.respCode = respCode;
|
||||
}
|
||||
|
||||
public Data getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Data data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class StandardDTO {
|
||||
|
||||
private String resNum;
|
||||
private String resName;
|
||||
private List<ItemsList> itemsList;
|
||||
private String resId;
|
||||
private String taskId;
|
||||
private List<String> foId;
|
||||
private Form form;
|
||||
private String type;
|
||||
private String userId;
|
||||
private String resType;
|
||||
private String deadline;
|
||||
private List<FromFile> fileList;
|
||||
private Date Time;
|
||||
private String fileIds;
|
||||
/**
|
||||
* 审批意见
|
||||
*/
|
||||
private String approvalOpinions;
|
||||
|
||||
/**
|
||||
* 审批内容
|
||||
*/
|
||||
private String approvalContent;
|
||||
|
||||
private String compTime;
|
||||
|
||||
private String compPerson;
|
||||
|
||||
public void setResNum(String resNum) {
|
||||
this.resNum = resNum;
|
||||
}
|
||||
public String getResNum() {
|
||||
return resNum;
|
||||
}
|
||||
|
||||
public void setResName(String resName) {
|
||||
this.resName = resName;
|
||||
}
|
||||
public String getResName() {
|
||||
return resName;
|
||||
}
|
||||
|
||||
public void setItemsList(List<ItemsList> itemsList) {
|
||||
this.itemsList = itemsList;
|
||||
}
|
||||
public List<ItemsList> getItemsList() {
|
||||
return itemsList;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
public String getResId() {
|
||||
return resId;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public List<String> getFoId() {
|
||||
return foId;
|
||||
}
|
||||
|
||||
public void setFoId(List<String> foId) {
|
||||
this.foId = foId;
|
||||
}
|
||||
|
||||
public Form getForm() {
|
||||
return form;
|
||||
}
|
||||
|
||||
public void setForm(Form form) {
|
||||
this.form = form;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getApprovalOpinions() {
|
||||
return approvalOpinions;
|
||||
}
|
||||
|
||||
public void setApprovalOpinions(String approvalOpinions) {
|
||||
this.approvalOpinions = approvalOpinions;
|
||||
}
|
||||
|
||||
public String getApprovalContent() {
|
||||
return approvalContent;
|
||||
}
|
||||
|
||||
public void setApprovalContent(String approvalContent) {
|
||||
this.approvalContent = approvalContent;
|
||||
}
|
||||
|
||||
public String getResType() {
|
||||
return resType;
|
||||
}
|
||||
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
public String getDeadline() {
|
||||
return deadline;
|
||||
}
|
||||
|
||||
public void setDeadline(String deadline) {
|
||||
this.deadline = deadline;
|
||||
}
|
||||
|
||||
public List<FromFile> getFileList() {
|
||||
return fileList;
|
||||
}
|
||||
|
||||
public void setFileList(List<FromFile> fileList) {
|
||||
this.fileList = fileList;
|
||||
}
|
||||
|
||||
public Date getTime() {
|
||||
return Time;
|
||||
}
|
||||
|
||||
public void setTime(Date time) {
|
||||
Time = time;
|
||||
}
|
||||
|
||||
public String getFileIds() {
|
||||
return fileIds;
|
||||
}
|
||||
|
||||
public void setFileIds(String fileIds) {
|
||||
this.fileIds = fileIds;
|
||||
}
|
||||
|
||||
public String getCompTime() {
|
||||
return compTime;
|
||||
}
|
||||
|
||||
public void setCompTime(String compTime) {
|
||||
this.compTime = compTime;
|
||||
}
|
||||
|
||||
public String getCompPerson() {
|
||||
return compPerson;
|
||||
}
|
||||
|
||||
public void setCompPerson(String compPerson) {
|
||||
this.compPerson = compPerson;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,250 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class StandardDTONew {
|
||||
|
||||
private String resNum;
|
||||
private String resName;
|
||||
private String resId;
|
||||
private String taskId;
|
||||
private List<String> foId;
|
||||
private Form form;
|
||||
private String type;
|
||||
private String userId;
|
||||
private String resType;
|
||||
private String deadline;
|
||||
private List<FromFile> fileList;
|
||||
private Date Time;
|
||||
private String fileIds;
|
||||
private List<ItemListNew> itemsList;
|
||||
/**
|
||||
* 审批意见
|
||||
*/
|
||||
private String approvalOpinions;
|
||||
|
||||
/**
|
||||
* 审批内容
|
||||
*/
|
||||
private String approvalContent;
|
||||
|
||||
private String compTime;
|
||||
|
||||
private String compPerson;
|
||||
|
||||
private List<String> deptName;
|
||||
private List<String> roleIdAndId;
|
||||
private List<String> deptId;
|
||||
private List<String> XMPGJSName;
|
||||
private List<String> XMPGJS;
|
||||
private List<String> roleName;
|
||||
private List<String> foName;
|
||||
private String backSaveFlag;
|
||||
|
||||
public void setResNum(String resNum) {
|
||||
this.resNum = resNum;
|
||||
}
|
||||
public String getResNum() {
|
||||
return resNum;
|
||||
}
|
||||
|
||||
public void setResName(String resName) {
|
||||
this.resName = resName;
|
||||
}
|
||||
public String getResName() {
|
||||
return resName;
|
||||
}
|
||||
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
public String getResId() {
|
||||
return resId;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public List<String> getFoId() {
|
||||
return foId;
|
||||
}
|
||||
|
||||
public void setFoId(List<String> foId) {
|
||||
this.foId = foId;
|
||||
}
|
||||
|
||||
public Form getForm() {
|
||||
return form;
|
||||
}
|
||||
|
||||
public void setForm(Form form) {
|
||||
this.form = form;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getApprovalOpinions() {
|
||||
return approvalOpinions;
|
||||
}
|
||||
|
||||
public void setApprovalOpinions(String approvalOpinions) {
|
||||
this.approvalOpinions = approvalOpinions;
|
||||
}
|
||||
|
||||
public String getApprovalContent() {
|
||||
return approvalContent;
|
||||
}
|
||||
|
||||
public void setApprovalContent(String approvalContent) {
|
||||
this.approvalContent = approvalContent;
|
||||
}
|
||||
|
||||
public String getResType() {
|
||||
return resType;
|
||||
}
|
||||
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
public String getDeadline() {
|
||||
return deadline;
|
||||
}
|
||||
|
||||
public void setDeadline(String deadline) {
|
||||
this.deadline = deadline;
|
||||
}
|
||||
|
||||
public List<FromFile> getFileList() {
|
||||
return fileList;
|
||||
}
|
||||
|
||||
public void setFileList(List<FromFile> fileList) {
|
||||
this.fileList = fileList;
|
||||
}
|
||||
|
||||
public Date getTime() {
|
||||
return Time;
|
||||
}
|
||||
|
||||
public void setTime(Date time) {
|
||||
Time = time;
|
||||
}
|
||||
|
||||
public String getFileIds() {
|
||||
return fileIds;
|
||||
}
|
||||
|
||||
public void setFileIds(String fileIds) {
|
||||
this.fileIds = fileIds;
|
||||
}
|
||||
|
||||
public String getCompTime() {
|
||||
return compTime;
|
||||
}
|
||||
|
||||
public void setCompTime(String compTime) {
|
||||
this.compTime = compTime;
|
||||
}
|
||||
|
||||
public String getCompPerson() {
|
||||
return compPerson;
|
||||
}
|
||||
|
||||
public void setCompPerson(String compPerson) {
|
||||
this.compPerson = compPerson;
|
||||
}
|
||||
|
||||
public List<ItemListNew> getItemsList() {
|
||||
return itemsList;
|
||||
}
|
||||
|
||||
public void setItemsList(List<ItemListNew> itemsList) {
|
||||
this.itemsList = itemsList;
|
||||
}
|
||||
|
||||
public List<String> getDeptName() {
|
||||
return deptName;
|
||||
}
|
||||
|
||||
public void setDeptName(List<String> deptName) {
|
||||
this.deptName = deptName;
|
||||
}
|
||||
|
||||
public List<String> getRoleIdAndId() {
|
||||
return roleIdAndId;
|
||||
}
|
||||
|
||||
public void setRoleIdAndId(List<String> roleIdAndId) {
|
||||
this.roleIdAndId = roleIdAndId;
|
||||
}
|
||||
|
||||
public List<String> getDeptId() {
|
||||
return deptId;
|
||||
}
|
||||
|
||||
public void setDeptId(List<String> deptId) {
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
public List<String> getXMPGJSName() {
|
||||
return XMPGJSName;
|
||||
}
|
||||
|
||||
public void setXMPGJSName(List<String> XMPGJSName) {
|
||||
this.XMPGJSName = XMPGJSName;
|
||||
}
|
||||
|
||||
public List<String> getXMPGJS() {
|
||||
return XMPGJS;
|
||||
}
|
||||
|
||||
public void setXMPGJS(List<String> XMPGJS) {
|
||||
this.XMPGJS = XMPGJS;
|
||||
}
|
||||
|
||||
public List<String> getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(List<String> roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public List<String> getFoName() {
|
||||
return foName;
|
||||
}
|
||||
|
||||
public void setFoName(List<String> foName) {
|
||||
this.foName = foName;
|
||||
}
|
||||
|
||||
public String getBackSaveFlag() {
|
||||
return backSaveFlag;
|
||||
}
|
||||
|
||||
public void setBackSaveFlag(String backSaveFlag) {
|
||||
this.backSaveFlag = backSaveFlag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class TaskCommonQuery {
|
||||
|
||||
@ApiModelProperty(value = "当前页")
|
||||
private int current;
|
||||
@ApiModelProperty(value = "数量")
|
||||
private int size;
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "开始时间从")
|
||||
private String startTime;
|
||||
@ApiModelProperty(value = "到")
|
||||
private String endTime;
|
||||
@ApiModelProperty(value = "结束时间从")
|
||||
private String finishStartTime;
|
||||
@ApiModelProperty(value = "到")
|
||||
private String finishEndTime;
|
||||
@ApiModelProperty(value = "流程分类")
|
||||
private String category_id;
|
||||
|
||||
@ApiModelProperty(value = "用户Id")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty(value = "创建用户Id")
|
||||
private String creatuserId;
|
||||
|
||||
@ApiModelProperty(value = "流程类型")
|
||||
private String prcType;
|
||||
|
||||
@ApiModelProperty(value = "流程名称或编号")
|
||||
private String prcNameOrId;
|
||||
|
||||
@ApiModelProperty(value = "流程状态")
|
||||
private String prcState;
|
||||
|
||||
@ApiModelProperty(value = "节点名称")
|
||||
private String taskName;
|
||||
|
||||
@ApiModelProperty(value = "任务集合")
|
||||
private List<String> taskList;
|
||||
|
||||
@ApiModelProperty(value = "流程名称")
|
||||
private String prcName;
|
||||
|
||||
@ApiModelProperty(value = "流程编号")
|
||||
private String prcNum;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.dto;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class ZNodes {
|
||||
|
||||
private String orgName;
|
||||
private boolean isParent;
|
||||
private Date creationTime;
|
||||
private String roleId;
|
||||
private String icon;
|
||||
private String pId;
|
||||
private String title;
|
||||
private Date modifyTime;
|
||||
private String name;
|
||||
private String roleName;
|
||||
private String id;
|
||||
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgName() {
|
||||
return orgName;
|
||||
}
|
||||
|
||||
public void setIsParent(boolean isParent) {
|
||||
this.isParent = isParent;
|
||||
}
|
||||
|
||||
public boolean getIsParent() {
|
||||
return isParent;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String getIcon() {
|
||||
return icon;
|
||||
}
|
||||
|
||||
public void setPId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
public String getPId() {
|
||||
return pId;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
/* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.ydw.bat.wkflow.business_activiti.editor;
|
||||
|
||||
import org.activiti.editor.constants.ModelDataJsonConstants;
|
||||
import org.activiti.engine.ActivitiException;
|
||||
import org.activiti.engine.RepositoryService;
|
||||
import org.activiti.engine.repository.Model;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import com.tmsps.fk.common.base.action.BaseAction;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @author Tijs Rademakers
|
||||
*/
|
||||
@Api(description = "工作流编辑器")
|
||||
@RestController
|
||||
@RequestMapping(value = "/service")
|
||||
public class ModelEditorJsonRestResource extends BaseAction implements ModelDataJsonConstants {
|
||||
|
||||
@Autowired
|
||||
private RepositoryService repositoryService;
|
||||
|
||||
@Autowired
|
||||
private ObjectMapper objectMapper;
|
||||
|
||||
@ApiOperation(value = "获取模型json数据")
|
||||
@ApiImplicitParam(name = "modelId", value = "模型id")
|
||||
@SuppressWarnings("deprecation")
|
||||
@GetMapping(value = "/model/{modelId}/json", produces = "application/json")
|
||||
public ObjectNode getEditorJson(@PathVariable String modelId) {
|
||||
ObjectNode modelNode = null;
|
||||
|
||||
Model model = repositoryService.getModel(modelId);
|
||||
|
||||
if (model != null) {
|
||||
try {
|
||||
if (StringUtils.isNotEmpty(model.getMetaInfo())) {
|
||||
modelNode = (ObjectNode) objectMapper.readTree(model.getMetaInfo());
|
||||
} else {
|
||||
modelNode = objectMapper.createObjectNode();
|
||||
modelNode.put(MODEL_NAME, model.getName());
|
||||
}
|
||||
modelNode.put(MODEL_ID, model.getId());
|
||||
ObjectNode editorJsonNode = (ObjectNode) objectMapper
|
||||
.readTree(new String(repositoryService.getModelEditorSource(model.getId()), "utf-8"));
|
||||
modelNode.put("model", editorJsonNode);
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.error("Error creating model JSON", e);
|
||||
throw new ActivitiException("Error creating model JSON", e);
|
||||
}
|
||||
}
|
||||
return modelNode;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
/* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.ydw.bat.wkflow.business_activiti.editor;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.activiti.editor.constants.ModelDataJsonConstants;
|
||||
import org.activiti.engine.ActivitiException;
|
||||
import org.activiti.engine.RepositoryService;
|
||||
import org.activiti.engine.repository.Model;
|
||||
import org.apache.batik.transcoder.TranscoderInput;
|
||||
import org.apache.batik.transcoder.TranscoderOutput;
|
||||
import org.apache.batik.transcoder.image.PNGTranscoder;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @author Tijs Rademakers
|
||||
*/
|
||||
@Api(description = "工作流编辑器")
|
||||
@RestController
|
||||
@RequestMapping(value = "/service")
|
||||
public class ModelSaveRestResource implements ModelDataJsonConstants {
|
||||
|
||||
protected static final Logger LOGGER = LoggerFactory.getLogger(ModelSaveRestResource.class);
|
||||
|
||||
@Autowired
|
||||
private RepositoryService repositoryService;
|
||||
|
||||
@Autowired
|
||||
private ObjectMapper objectMapper;
|
||||
|
||||
@ApiOperation(value = "模型保存")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "modelId", value = "模型id"),
|
||||
@ApiImplicitParam(name = "name", value = "名称"),
|
||||
@ApiImplicitParam(name = "json_xml", value = "流程图xml"),
|
||||
@ApiImplicitParam(name = "svg_xml", value = "流程配置xml"),
|
||||
@ApiImplicitParam(name = "description", value = "描述") })
|
||||
@PutMapping(value = "/model/{modelId}/save")
|
||||
@ResponseStatus(value = HttpStatus.OK)
|
||||
public void saveModel(@PathVariable String modelId, @RequestParam("name") String name,
|
||||
@RequestParam("json_xml") String json_xml, @RequestParam("svg_xml") String svg_xml,
|
||||
@RequestParam("description") String description) {
|
||||
try {
|
||||
|
||||
Model model = repositoryService.getModel(modelId);
|
||||
|
||||
ObjectNode modelJson = (ObjectNode) objectMapper.readTree(model.getMetaInfo());
|
||||
|
||||
modelJson.put(MODEL_NAME, name);
|
||||
modelJson.put(MODEL_DESCRIPTION, description);
|
||||
model.setMetaInfo(modelJson.toString());
|
||||
model.setName(name);
|
||||
|
||||
repositoryService.saveModel(model);
|
||||
|
||||
repositoryService.addModelEditorSource(model.getId(), json_xml.getBytes("utf-8"));
|
||||
|
||||
InputStream svgStream = new ByteArrayInputStream(svg_xml.getBytes("utf-8"));
|
||||
TranscoderInput input = new TranscoderInput(svgStream);
|
||||
|
||||
PNGTranscoder transcoder = new PNGTranscoder();
|
||||
// Setup output
|
||||
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
|
||||
TranscoderOutput output = new TranscoderOutput(outStream);
|
||||
|
||||
// Do the transformation
|
||||
transcoder.transcode(input, output);
|
||||
final byte[] result = outStream.toByteArray();
|
||||
repositoryService.addModelEditorSourceExtra(model.getId(), result);
|
||||
outStream.close();
|
||||
|
||||
} catch (Exception e) {
|
||||
LOGGER.error("Error saving model", e);
|
||||
throw new ActivitiException("Error saving model", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
/* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.ydw.bat.wkflow.business_activiti.editor;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
import org.activiti.engine.ActivitiException;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @author Tijs Rademakers
|
||||
*/
|
||||
@Api(description = "工作流编辑器")
|
||||
@RestController
|
||||
@RequestMapping(value = "/service")
|
||||
public class StencilsetRestResource {
|
||||
|
||||
@ApiOperation(value = "获取模型stencilset的数据")
|
||||
@GetMapping(value = "/editor/stencilset", produces = "application/json;charset=utf-8")
|
||||
public @ResponseBody String getStencilset() {
|
||||
InputStream stencilsetStream = this.getClass().getClassLoader().getResourceAsStream("stencilset.json");
|
||||
try {
|
||||
return IOUtils.toString(stencilsetStream, "utf-8");
|
||||
} catch (Exception e) {
|
||||
throw new ActivitiException("Error while loading stencil set", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.instance;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.activiti.engine.RuntimeService;
|
||||
import org.activiti.engine.runtime.ProcessInstance;
|
||||
import org.activiti.engine.runtime.ProcessInstanceQuery;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.util.activiti.ActivitiTools;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@Api(description = "流程实例管理")
|
||||
@RestController
|
||||
public class ActivitiInstanceController {
|
||||
|
||||
@Autowired
|
||||
private RuntimeService runtimeService;
|
||||
|
||||
@ApiOperation(value = "流程实例列表")
|
||||
@ApiImplicitParam(name = "name", value = "名称")
|
||||
@GetMapping("/activitiInstanceList")
|
||||
public List<Map<String, Object>> activitiInstanceList(String name) {
|
||||
// 创建查询对象
|
||||
ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
|
||||
if (name != null && !"".equals(name)) {
|
||||
processInstanceQuery.processInstanceNameLike("%" + name + "%");
|
||||
}
|
||||
processInstanceQuery.orderByProcessInstanceId().desc();
|
||||
|
||||
List<ProcessInstance> list = processInstanceQuery.list();
|
||||
return ActivitiTools.turnProcessInstances(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "流程挂起")
|
||||
@ApiImplicitParam(name = "processInstanceId", value = "流程实例id")
|
||||
@GetMapping("/instance/suspend")
|
||||
public Wrapper<String> suspend(String processInstanceId) {
|
||||
runtimeService.suspendProcessInstanceById(processInstanceId);
|
||||
return WrapMapper.ok("挂起成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "流程重新激活")
|
||||
@ApiImplicitParam(name = "processInstanceId", value = "流程实例id")
|
||||
@GetMapping("/instance/gorun")
|
||||
public Wrapper<String> gorun(String processInstanceId) {
|
||||
runtimeService.activateProcessInstanceById(processInstanceId);
|
||||
return WrapMapper.ok("重新激活成功");
|
||||
}
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.instance;
|
||||
|
||||
import java.io.OutputStream;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNameService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.ydw.bat.wkflow.business_activiti.instance.service.InstanceService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@Api(description = "流程实例图")
|
||||
@RestController
|
||||
@RequestMapping("/instance")
|
||||
public class InstanceImageController {
|
||||
|
||||
@Autowired
|
||||
private InstanceService instanceService;
|
||||
@Autowired
|
||||
private IBusProcessNameService iBusProcessNameService;
|
||||
|
||||
// @ApiOperation(value = "获取图片")
|
||||
// @ApiImplicitParam(name = "processInstanceId", value = "流程实例id")
|
||||
// @GetMapping("/getImg")
|
||||
// public void getImg(String processInstanceId, HttpServletResponse response) throws Exception {
|
||||
// response.setContentType("image/jpg"); // 设置返回的文件类型
|
||||
//
|
||||
// byte[] bytes = instanceService.getProcessImage(processInstanceId);
|
||||
//
|
||||
// OutputStream os = response.getOutputStream();
|
||||
// os.write(bytes);
|
||||
// os.flush();
|
||||
// os.close();
|
||||
// }
|
||||
|
||||
@ApiOperation(value = "获取图片")
|
||||
@ApiImplicitParam(name = "processInstanceId", value = "流程实例id")
|
||||
@GetMapping("/getImg")
|
||||
public byte[] getImg(String prcNum) throws Exception {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
queryWrapper.eq("PRC_NUM",prcNum);
|
||||
BusProcessName one = iBusProcessNameService.getOne(queryWrapper);
|
||||
byte[] bytes = instanceService.getProcessImage(one.getPrcId());
|
||||
return bytes;
|
||||
}
|
||||
}
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.instance.service;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.activiti.bpmn.model.BpmnModel;
|
||||
import org.activiti.engine.HistoryService;
|
||||
import org.activiti.engine.RepositoryService;
|
||||
import org.activiti.engine.history.HistoricActivityInstance;
|
||||
import org.activiti.engine.history.HistoricProcessInstance;
|
||||
import org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity;
|
||||
import org.activiti.image.impl.DefaultProcessDiagramGenerator;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class InstanceService {
|
||||
|
||||
protected Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@Autowired
|
||||
private RepositoryService repositoryService;
|
||||
|
||||
@Autowired
|
||||
private HistoryService historyService;
|
||||
|
||||
public byte[] getProcessImage(String processInstanceId) throws Exception {
|
||||
// TODO 获取流程图像,已执行节点和流程线高亮显示
|
||||
// 获取历史流程实例
|
||||
HistoricProcessInstance historicProcessInstance = queryHistoricProcessInstance(processInstanceId);
|
||||
if (historicProcessInstance == null) {
|
||||
throw new Exception();
|
||||
} else {
|
||||
// 获取流程定义
|
||||
ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) repositoryService
|
||||
.getProcessDefinition(historicProcessInstance.getProcessDefinitionId());
|
||||
|
||||
// 获取流程历史中已执行节点,并按照节点在流程中执行先后顺序排序
|
||||
List<HistoricActivityInstance> historicActivityInstanceList = historyService
|
||||
.createHistoricActivityInstanceQuery().processInstanceId(processInstanceId)
|
||||
.orderByHistoricActivityInstanceId().asc().list();
|
||||
|
||||
// 已执行的节点ID集合
|
||||
List<String> executedActivityIdList = new ArrayList<String>();
|
||||
int index = 1;
|
||||
logger.info("获取已经执行的节点ID");
|
||||
for (HistoricActivityInstance activityInstance : historicActivityInstanceList) {
|
||||
executedActivityIdList.add(activityInstance.getActivityId());
|
||||
logger.info("第[" + index + "]个已执行节点=" + activityInstance.getActivityId() + " : "
|
||||
+ activityInstance.getActivityName());
|
||||
index++;
|
||||
}
|
||||
// 获取流程图图像字符流
|
||||
BpmnModel bpmnModel = repositoryService.getBpmnModel(processDefinition.getId());
|
||||
DefaultProcessDiagramGenerator generator = new DefaultProcessDiagramGenerator();
|
||||
InputStream imageStream = generator.generateDiagram(bpmnModel, "png", executedActivityIdList,
|
||||
new ArrayList<String>(), "宋体", "宋体", "宋体", null, 1.0);
|
||||
byte[] buffer = new byte[imageStream.available()];
|
||||
imageStream.read(buffer);
|
||||
imageStream.close();
|
||||
return buffer;
|
||||
}
|
||||
}
|
||||
|
||||
private HistoricProcessInstance queryHistoricProcessInstance(String processInstanceId) {
|
||||
// TODO 通过流程id查询流程
|
||||
return historyService.createHistoricProcessInstanceQuery().processInstanceId(processInstanceId).singleResult();
|
||||
}
|
||||
}
|
||||
+213
@@ -0,0 +1,213 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.model;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.category.entity.Category;
|
||||
import com.ydw.bat.wkflow.business_main.category.service.ICategoryService;
|
||||
import org.activiti.bpmn.converter.BpmnXMLConverter;
|
||||
import org.activiti.bpmn.model.BpmnModel;
|
||||
import org.activiti.editor.constants.ModelDataJsonConstants;
|
||||
import org.activiti.editor.language.json.converter.BpmnJsonConverter;
|
||||
import org.activiti.engine.RepositoryService;
|
||||
import org.activiti.engine.repository.Deployment;
|
||||
import org.activiti.engine.repository.Model;
|
||||
import org.activiti.engine.repository.ModelQuery;
|
||||
import org.activiti.engine.repository.NativeModelQuery;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.cglib.beans.BeanMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.fasterxml.jackson.databind.JsonNode;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import com.tmsps.fk.common.base.action.BaseAction;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.business_main.form.service.IFormVariableService;
|
||||
import com.ydw.bat.wkflow.util.CreatedTools;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@Api(description = "工作流模板管理")
|
||||
@RestController
|
||||
public class ActivitiModelController extends BaseAction {
|
||||
|
||||
@Autowired
|
||||
private RepositoryService repositoryService;
|
||||
@Autowired
|
||||
private ObjectMapper objectMapper;
|
||||
@Autowired
|
||||
private IFormVariableService iFormVariableService;
|
||||
@Autowired
|
||||
private ICategoryService iCategoryService;
|
||||
|
||||
@ApiOperation(value = "新建模板")
|
||||
@ApiImplicitParam(name = "category_id", value = "类型id")
|
||||
@SuppressWarnings("deprecation")
|
||||
@GetMapping("/create")
|
||||
public void newModel(HttpServletRequest request, HttpServletResponse response, String category_id)
|
||||
throws IOException {
|
||||
// 初始化一个空模型
|
||||
Model model = repositoryService.newModel();
|
||||
|
||||
// 设置一些默认信息
|
||||
String name = "";
|
||||
String description = "";
|
||||
int revision = 1;
|
||||
String key = "m_" + CreatedTools.getCreated();
|
||||
// 设置子系统
|
||||
model.setTenantId("子系统1");
|
||||
model.setCategory(category_id);
|
||||
|
||||
ObjectNode modelNode = objectMapper.createObjectNode();
|
||||
modelNode.put(ModelDataJsonConstants.MODEL_NAME, name);
|
||||
modelNode.put(ModelDataJsonConstants.MODEL_DESCRIPTION, description);
|
||||
modelNode.put(ModelDataJsonConstants.MODEL_REVISION, revision);
|
||||
|
||||
model.setName(name);
|
||||
model.setKey(key);
|
||||
model.setMetaInfo(modelNode.toString());
|
||||
|
||||
repositoryService.saveModel(model);
|
||||
String id = model.getId();
|
||||
|
||||
// 完善ModelEditorSource
|
||||
ObjectNode editorNode = objectMapper.createObjectNode();
|
||||
editorNode.put("id", "canvas");
|
||||
editorNode.put("resourceId", "canvas");
|
||||
ObjectNode stencilSetNode = objectMapper.createObjectNode();
|
||||
stencilSetNode.put("namespace", "http://b3mn.org/stencilset/bpmn2.0#");
|
||||
editorNode.put("stencilset", stencilSetNode);
|
||||
repositoryService.addModelEditorSource(id, editorNode.toString().getBytes("utf-8"));
|
||||
response.sendRedirect(request.getContextPath() + "/modeler.html?modelId=" + id);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "模板列表")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "name", value = "名称"),
|
||||
@ApiImplicitParam(name = "category_id", value = "类型id") })
|
||||
@GetMapping("/modelList")
|
||||
public Wrapper<List<Model>> modelList(String name, String category_id) {
|
||||
String sql = "select distinct RES.* from ACT_RE_MODEL RES WHERE RES.TENANT_ID_ = '子系统1' and RES.NAME_<>'' and RES.CATEGORY_=#{category} order by RES.CREATE_TIME_ desc";
|
||||
NativeModelQuery nativeModelQuery = repositoryService.createNativeModelQuery();
|
||||
if (ChkUtil.isNull(category_id)) {
|
||||
sql = sql.replace("and RES.CATEGORY_=#{category}", "");
|
||||
}else {
|
||||
nativeModelQuery.parameter("category", category_id);
|
||||
}
|
||||
nativeModelQuery.sql(sql);
|
||||
List<Model> list = nativeModelQuery.list();
|
||||
return WrapMapper.ok(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "模板列表-分页")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "name", value = "名称"),
|
||||
@ApiImplicitParam(name = "category_id", value = "类型id"), @ApiImplicitParam(name = "current", value = "当前页"),
|
||||
@ApiImplicitParam(name = "size", value = "每页条数") })
|
||||
@GetMapping("/modelListPage")
|
||||
public Wrapper<Map<String, Object>> modelListPage(String name, String category_id, int current, int size) {
|
||||
if (ChkUtil.isNull(name)) {
|
||||
name = "";
|
||||
} else {
|
||||
current = 1;
|
||||
}
|
||||
ModelQuery modelQuery = repositoryService.createModelQuery();
|
||||
if (ChkUtil.isNotNull(category_id)) {
|
||||
modelQuery.modelCategory(category_id);
|
||||
}
|
||||
modelQuery.modelNameLike("%" + name + "%").modelTenantId("子系统1");
|
||||
long total = modelQuery.count();
|
||||
List<Model> list = modelQuery.orderByCreateTime().desc().listPage((current - 1) * size, size);
|
||||
List<Map<String, Object>> resultList = new ArrayList<>();
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
for(Model model:list){
|
||||
Map<String, Object> resultMap = this.beanToMap(model);
|
||||
if(resultMap.get("category")!=null){
|
||||
Category category = iCategoryService.getById(resultMap.get("category").toString());
|
||||
resultMap.put("categoryName",category.getType());
|
||||
}
|
||||
resultList.add(resultMap);
|
||||
}
|
||||
map.put("records", resultList);
|
||||
map.put("current", current);
|
||||
map.put("size", size);
|
||||
map.put("total", total);
|
||||
return WrapMapper.ok(map);
|
||||
}
|
||||
|
||||
public static <T> Map<String, Object> beanToMap(T bean) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
if (bean != null) {
|
||||
BeanMap beanMap = BeanMap.create(bean);
|
||||
for (Object key : beanMap.keySet()) {
|
||||
map.put(key+"", beanMap.get(key));
|
||||
}
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除模板")
|
||||
@ApiImplicitParam(name = "modelId", value = "模型id")
|
||||
@GetMapping("/deleteModel")
|
||||
public Wrapper<String> deleteModel(String modelId) {
|
||||
repositoryService.deleteModel(modelId);
|
||||
return WrapMapper.ok("删除成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "修改流程所属分类")
|
||||
@ApiImplicitParam(name = "modelId", value = "模型id")
|
||||
@GetMapping("/updatModel")
|
||||
public Wrapper<String> updatModel(String modelId,String categoryId) {
|
||||
Model modelData = repositoryService.getModel(modelId);
|
||||
modelData.setCategory(categoryId);
|
||||
repositoryService.saveModel(modelData);
|
||||
return WrapMapper.ok("修改成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "部署")
|
||||
@ApiImplicitParam(name = "modelId", value = "模型id")
|
||||
@GetMapping("/deploy")
|
||||
public Wrapper<String> deploy(String modelId) throws Exception {
|
||||
|
||||
// 获取模型
|
||||
Model modelData = repositoryService.getModel(modelId);
|
||||
byte[] bytes = repositoryService.getModelEditorSource(modelData.getId());
|
||||
|
||||
if (bytes == null) {
|
||||
return WrapMapper.ok("模型数据为空,请先设计流程并成功保存,再进行发布。");
|
||||
}
|
||||
|
||||
// 生成/更新 模板变量表
|
||||
iFormVariableService.createAndUpdateFormVariable(bytes, modelId);
|
||||
|
||||
JsonNode modelNode = new ObjectMapper().readTree(bytes);
|
||||
BpmnModel model = new BpmnJsonConverter().convertToBpmnModel(modelNode);
|
||||
model.setTargetNamespace(modelData.getCategory());
|
||||
|
||||
if (model.getProcesses().size() == 0) {
|
||||
return WrapMapper.ok("数据模型不符要求,请至少设计一条主线流程。");
|
||||
}
|
||||
byte[] bpmnBytes = new BpmnXMLConverter().convertToXML(model);
|
||||
|
||||
// 发布流程
|
||||
String processName = modelData.getName() + ".bpmn20.xml";
|
||||
Deployment deployment = repositoryService.createDeployment().name(modelData.getName())
|
||||
.category(modelData.getCategory()).addString(processName, new String(bpmnBytes, "UTF-8")).deploy();
|
||||
modelData.setDeploymentId(deployment.getId());
|
||||
repositoryService.saveModel(modelData);
|
||||
|
||||
return WrapMapper.ok("部署成功");
|
||||
}
|
||||
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.model;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.util.Base64;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.activiti.engine.RepositoryService;
|
||||
import org.activiti.engine.repository.Model;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@Api(description = "流程图片管理")
|
||||
@RestController
|
||||
@RequestMapping("/model")
|
||||
public class ActivitiModelImageController {
|
||||
|
||||
@Autowired
|
||||
private RepositoryService repositoryService;
|
||||
|
||||
@ApiOperation(value = "获取图片-base64")
|
||||
@ApiImplicitParam(name = "modelId", value = "模型id")
|
||||
@GetMapping("/getImgBase64")
|
||||
public Wrapper<String> getImgBase64(String modelId) {
|
||||
// 模型模块
|
||||
byte[] bytes = repositoryService.getModelEditorSourceExtra(modelId);
|
||||
String image = Base64.getEncoder().encodeToString(bytes);
|
||||
return WrapMapper.ok("data:image/png;base64," + image);
|
||||
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取图片")
|
||||
@ApiImplicitParam(name = "modelId", value = "模型id")
|
||||
@GetMapping("/getImg")
|
||||
public void getImg(String modelId, HttpServletResponse response) throws IOException {
|
||||
response.setContentType("image/jpg"); // 设置返回的文件类型
|
||||
|
||||
// 模型模块
|
||||
byte[] bytes = repositoryService.getModelEditorSourceExtra(modelId);
|
||||
|
||||
OutputStream os = response.getOutputStream();
|
||||
if(ChkUtil.isNotNull(bytes)) {
|
||||
os.write(bytes);
|
||||
os.flush();
|
||||
os.close();
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取图片-通过deploymentId")
|
||||
@ApiImplicitParam(name = "deploymentId", value = "流程deploymentId")
|
||||
@GetMapping("/getImgByDeploymentId")
|
||||
public void getImgByDeploymentId(String deploymentId, HttpServletResponse response) throws IOException {
|
||||
Model model = repositoryService.createModelQuery().deploymentId(deploymentId).singleResult();
|
||||
|
||||
String modelId = model.getId();
|
||||
getImg(modelId, response);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.service;
|
||||
|
||||
import org.activiti.engine.HistoryService;
|
||||
import org.activiti.engine.history.HistoricTaskInstance;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.Datas;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.HiDatas;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IDatasService;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IHiDatasService;
|
||||
|
||||
/**
|
||||
* TODO 任务回退
|
||||
*
|
||||
* @author Administrator
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
public class TaskRollBackService {
|
||||
|
||||
protected Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
||||
@Autowired
|
||||
private HistoryService historyService;
|
||||
@Autowired
|
||||
private IDatasService datasService;
|
||||
@Autowired
|
||||
private IHiDatasService hiDatasService;
|
||||
|
||||
@Transactional
|
||||
public String rollBack(String backTaskId) {
|
||||
// TODO 流程回退
|
||||
logger.info("任务流程回退-->{}", backTaskId);
|
||||
HistoricTaskInstance preTask = historyService.createHistoricTaskInstanceQuery().taskId(backTaskId)
|
||||
.singleResult();
|
||||
if (ChkUtil.isNull(preTask)) {
|
||||
return "任务不存在";
|
||||
}
|
||||
// 获取任务提交信息
|
||||
QueryWrapper<Datas> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("ACTI_PROC_INST_ID", preTask.getProcessInstanceId());
|
||||
queryWrapper.eq("ACTI_TASK_ID", preTask.getId());
|
||||
Datas datas = datasService.getOne(queryWrapper);
|
||||
QueryWrapper<HiDatas> hiQueryWrapper = new QueryWrapper<>();
|
||||
hiQueryWrapper.eq("DATAS_ID", datas.getObjectId());
|
||||
HiDatas hiDatas = hiDatasService.getOne(hiQueryWrapper);
|
||||
// 删除工作流历史记录数据
|
||||
hiDatasService.rollBack(hiDatas, preTask.getProcessInstanceId());
|
||||
// 删除任务记录数据
|
||||
datasService.rollBack(datas);
|
||||
return "回退成功";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.service;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import org.activiti.engine.TaskService;
|
||||
import org.activiti.engine.task.NativeTaskQuery;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.ydw.bat.wkflow.business_activiti.dto.TaskCommonQuery;
|
||||
import com.ydw.bat.wkflow.util.SessionTool;
|
||||
import com.ydw.bat.wkflow.util.date.DateTools;
|
||||
|
||||
/**
|
||||
* 待办任务注入类,动态修改 Task的assignee等
|
||||
*
|
||||
* @author 冯晓东
|
||||
*
|
||||
*/
|
||||
@Service
|
||||
public class TaskTodoService {
|
||||
|
||||
protected Logger logger = LoggerFactory.getLogger(getClass());
|
||||
|
||||
@Autowired
|
||||
private TaskService taskService;
|
||||
|
||||
/**
|
||||
* 查询待办任务 拼接sql 包含待办任务和委托任务
|
||||
* @param taskCommonQuery
|
||||
* @return
|
||||
*/
|
||||
public NativeTaskQuery createSql(TaskCommonQuery taskCommonQuery) {
|
||||
Date start = DateTools.strToDate2(taskCommonQuery.getStartTime());
|
||||
Date end = DateTools.strToDate2(taskCommonQuery.getEndTime());
|
||||
NativeTaskQuery nativeTaskQuery = taskService.createNativeTaskQuery();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(
|
||||
"select distinct RES.* from ACT_RU_TASK RES left join ACT_RU_IDENTITYLINK I on I.TASK_ID_ = RES.ID_ inner join ACT_RE_PROCDEF D on RES.PROC_DEF_ID_ = D.ID_ ");
|
||||
sb.append(" left join t_delegate_business db on RES.PROC_DEF_ID_=db.BUSINESS_KEY and db.IS_DELETED=0 ");
|
||||
sb.append(" left join t_delegate de on db.DELEGATE_ID=de.OBJECT_ID and de.USERD=#{userd} ");
|
||||
sb.append(" WHERE ");
|
||||
//任务名称
|
||||
if (ChkUtil.isNotNull(taskCommonQuery.getName())) {
|
||||
sb.append(" RES.NAME_ LIKE #{taskName} and ");
|
||||
nativeTaskQuery = nativeTaskQuery.parameter("taskName", taskCommonQuery.getName());
|
||||
}
|
||||
|
||||
//日期查询
|
||||
if (ChkUtil.isNotNull(taskCommonQuery.getStartTime())) {
|
||||
sb.append(" RES.CREATE_TIME_ >= #{starttime} and ");
|
||||
nativeTaskQuery = nativeTaskQuery.parameter("starttime", start);
|
||||
}
|
||||
if (ChkUtil.isNotNull(taskCommonQuery.getEndTime())) {
|
||||
sb.append(" RES.CREATE_TIME_ <= #{endtime} and ");
|
||||
nativeTaskQuery = nativeTaskQuery.parameter("endtime", end);
|
||||
}
|
||||
|
||||
sb.append(
|
||||
" (RES.ASSIGNEE_=#{assignee} or (RES.ASSIGNEE_ is null and I.TYPE_ = 'candidate' and (I.USER_ID_=#{user_id} ))) ");
|
||||
sb.append(
|
||||
" or (RES.ASSIGNEE_ = de.USER or (RES.ASSIGNEE_ is null and I.TYPE_ = 'candidate' and (I.USER_ID_ = de.USER ))) ");
|
||||
sb.append(" order by RES.CREATE_TIME_ desc ");
|
||||
if(StringUtils.isBlank(taskCommonQuery.getUserId())){
|
||||
nativeTaskQuery = nativeTaskQuery.parameter("userd", SessionTool.getSessionAdminId())
|
||||
.parameter("assignee", SessionTool.getSessionAdminId())
|
||||
.parameter("user_id", SessionTool.getSessionAdminId());
|
||||
}else{
|
||||
nativeTaskQuery = nativeTaskQuery.parameter("userd", taskCommonQuery.getUserId())
|
||||
.parameter("assignee", taskCommonQuery.getUserId())
|
||||
.parameter("user_id", taskCommonQuery.getUserId());
|
||||
}
|
||||
|
||||
nativeTaskQuery = nativeTaskQuery.sql(sb.toString());
|
||||
|
||||
return nativeTaskQuery;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,179 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.task;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.activiti.engine.HistoryService;
|
||||
import org.activiti.engine.RepositoryService;
|
||||
import org.activiti.engine.RuntimeService;
|
||||
import org.activiti.engine.history.HistoricProcessInstance;
|
||||
import org.activiti.engine.history.HistoricProcessInstanceQuery;
|
||||
import org.activiti.engine.history.HistoricTaskInstance;
|
||||
import org.activiti.engine.history.HistoricTaskInstanceQuery;
|
||||
import org.activiti.engine.repository.ProcessDefinition;
|
||||
import org.activiti.engine.runtime.ProcessInstance;
|
||||
import org.activiti.engine.runtime.ProcessInstanceQuery;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.business_activiti.dto.TaskCommonQuery;
|
||||
import com.ydw.bat.wkflow.util.SessionTool;
|
||||
import com.ydw.bat.wkflow.util.activiti.ActivitiTools;
|
||||
import com.ydw.bat.wkflow.util.date.DateTools;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@Api(description = "已办任务管理")
|
||||
@RestController
|
||||
public class HastodoTasksController {
|
||||
|
||||
@Autowired
|
||||
private RuntimeService runtimeService;
|
||||
@Autowired
|
||||
private HistoryService historyService;
|
||||
@Autowired
|
||||
private RepositoryService repositoryService;
|
||||
|
||||
// @ApiOperation(value = "我的已办任务列表")
|
||||
// @ApiImplicitParams({ @ApiImplicitParam(name = "name", value = "名称"),
|
||||
// @ApiImplicitParam(name = "current", value = "当前页"), @ApiImplicitParam(name = "size", value = "每页条数") })
|
||||
// @PostMapping("/hastodoTasksList")
|
||||
// public Wrapper<Map<String, Object>> HastodoTasksList(@RequestBody TaskCommonQuery taskCommonQuery) {
|
||||
// // 创建查询对象
|
||||
// String name = taskCommonQuery.getName();
|
||||
// int size = taskCommonQuery.getSize();
|
||||
// int current = taskCommonQuery.getCurrent();
|
||||
// HistoricTaskInstanceQuery historicTaskInstanceQuery = historyService.createHistoricTaskInstanceQuery();
|
||||
// if (ChkUtil.isNotNull(name)) {
|
||||
// historicTaskInstanceQuery.taskNameLike("%" + name + "%");
|
||||
// }
|
||||
// List<String> category = new ArrayList<>();
|
||||
// category.add(taskCommonQuery.getCategory_id());
|
||||
// historicTaskInstanceQuery.processCategoryIn(category);
|
||||
// historicTaskInstanceQuery.taskAssignee(SessionTool.getSessionAdminId());
|
||||
// Date startDate = DateTools.strToDate2(taskCommonQuery.getStartTime());
|
||||
// Date endDate = DateTools.strToDate2(taskCommonQuery.getEndTime());
|
||||
// historicTaskInstanceQuery.taskCreatedAfter(startDate).taskCreatedBefore(endDate);
|
||||
// // Date finishStartDate =
|
||||
// // DateTools.strToDate2(taskCommonQuery.getFinishStartTime());
|
||||
// // Date finishEndDate =
|
||||
// // DateTools.strToDate2(taskCommonQuery.getFinishEndTime());
|
||||
// // historicTaskInstanceQuery.taskDueAfter(finishStartDate).taskDueBefore(finishEndDate);
|
||||
// historicTaskInstanceQuery.finished();
|
||||
// long total = historicTaskInstanceQuery.count();
|
||||
// if (ChkUtil.isNotNull(name) || ChkUtil.isNotNull(startDate) || ChkUtil.isNotNull(endDate)) {
|
||||
// current = 1;
|
||||
// }
|
||||
// List<HistoricTaskInstance> list = historicTaskInstanceQuery.orderByHistoricTaskInstanceEndTime().desc()
|
||||
// .listPage((current - 1) * size, size);
|
||||
// List<Map<String, Object>> listEnd = ActivitiTools.turnHistoricTaskInstance(list);
|
||||
// for (Map<String, Object> map : listEnd) {
|
||||
// ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionId(map.get("processDefinitionId")+"").singleResult();
|
||||
// map.put("processInstanceName", processDefinition.getName());
|
||||
// }
|
||||
// Map<String, Object> map = new HashMap<>();
|
||||
// map.put("records", listEnd);
|
||||
// map.put("current", current);
|
||||
// map.put("size", size);
|
||||
// map.put("total", total);
|
||||
// return WrapMapper.ok(map);
|
||||
// }
|
||||
|
||||
|
||||
@ApiOperation(value = "我的已办任务列表")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "name", value = "名称"),
|
||||
@ApiImplicitParam(name = "current", value = "当前页"), @ApiImplicitParam(name = "size", value = "每页条数"),
|
||||
@ApiImplicitParam(name = "userId", value = "用户Id")})
|
||||
@PostMapping("/hastodoTasksList")
|
||||
public Wrapper<Map<String, Object>> HastodoTasksListByUserId(@RequestBody TaskCommonQuery taskCommonQuery) {
|
||||
// 创建查询对象
|
||||
String name = taskCommonQuery.getName();
|
||||
int size = taskCommonQuery.getSize();
|
||||
int current = taskCommonQuery.getCurrent();
|
||||
HistoricTaskInstanceQuery historicTaskInstanceQuery = historyService.createHistoricTaskInstanceQuery();
|
||||
if (ChkUtil.isNotNull(name)) {
|
||||
historicTaskInstanceQuery.taskNameLike("%" + name + "%");
|
||||
}
|
||||
List<String> category = new ArrayList<>();
|
||||
category.add(taskCommonQuery.getCategory_id());
|
||||
historicTaskInstanceQuery.processCategoryIn(category);
|
||||
historicTaskInstanceQuery.taskAssignee(taskCommonQuery.getUserId());
|
||||
Date startDate = DateTools.strToDate2(taskCommonQuery.getStartTime());
|
||||
Date endDate = DateTools.strToDate2(taskCommonQuery.getEndTime());
|
||||
historicTaskInstanceQuery.taskCreatedAfter(startDate).taskCreatedBefore(endDate);
|
||||
// Date finishStartDate =
|
||||
// DateTools.strToDate2(taskCommonQuery.getFinishStartTime());
|
||||
// Date finishEndDate =
|
||||
// DateTools.strToDate2(taskCommonQuery.getFinishEndTime());
|
||||
// historicTaskInstanceQuery.taskDueAfter(finishStartDate).taskDueBefore(finishEndDate);
|
||||
historicTaskInstanceQuery.finished();
|
||||
long total = historicTaskInstanceQuery.count();
|
||||
if (ChkUtil.isNotNull(name) || ChkUtil.isNotNull(startDate) || ChkUtil.isNotNull(endDate)) {
|
||||
current = 1;
|
||||
}
|
||||
List<HistoricTaskInstance> list = historicTaskInstanceQuery.orderByHistoricTaskInstanceEndTime().desc()
|
||||
.listPage((current - 1) * size, size);
|
||||
List<Map<String, Object>> listEnd = ActivitiTools.turnHistoricTaskInstance(list);
|
||||
for (Map<String, Object> map : listEnd) {
|
||||
ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionId(map.get("processDefinitionId")+"").singleResult();
|
||||
map.put("processInstanceName", processDefinition.getName());
|
||||
}
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("records", listEnd);
|
||||
map.put("current", current);
|
||||
map.put("size", size);
|
||||
map.put("total", total);
|
||||
return WrapMapper.ok(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "流程监控(查询已经发起的流程实例以及已经执行完成的流程实例)")
|
||||
@ApiImplicitParam(name = "name", value = "名称")
|
||||
@GetMapping("/queryHistoricInstance")
|
||||
public Wrapper<Page<HistoricProcessInstance>> queryHistoricInstance(String name, int current, int size, String category_id) {
|
||||
// 根据条件查询所有的流程实例
|
||||
HistoricProcessInstanceQuery historicProcessInstanceQuery = historyService.createHistoricProcessInstanceQuery();
|
||||
|
||||
if (ChkUtil.isNotNull(name)) {
|
||||
historicProcessInstanceQuery.processInstanceNameLike("%" + name + "%");
|
||||
current = 1;
|
||||
}
|
||||
historicProcessInstanceQuery.processDefinitionCategory(category_id);
|
||||
long total = historicProcessInstanceQuery.count();
|
||||
List<HistoricProcessInstance> list = historicProcessInstanceQuery.orderByProcessInstanceStartTime().desc()
|
||||
.listPage((current - 1) * size, size);
|
||||
// 判断流程实例是否走完
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
ProcessInstanceQuery createProcessInstanceQuery = runtimeService.createProcessInstanceQuery();
|
||||
ProcessInstanceQuery processInstanceId = createProcessInstanceQuery.processInstanceId(list.get(i).getId());
|
||||
ProcessInstance singleResult = processInstanceId.singleResult();
|
||||
if (singleResult == null) {
|
||||
list.get(i).setLocalizedDescription("已完成");
|
||||
} else {
|
||||
list.get(i).setLocalizedDescription("进行中");
|
||||
}
|
||||
}
|
||||
|
||||
Page<HistoricProcessInstance> page = new Page<HistoricProcessInstance>();
|
||||
page.setTotal(total);
|
||||
page.setRecords(list);
|
||||
page.setCurrent(current);
|
||||
page.setSize(size);
|
||||
return WrapMapper.ok(page);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.task;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ydw.bat.wkflow.business_auth.LawsUserInfoService;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.*;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessEntrustService;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNameService;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNewService;
|
||||
import org.activiti.engine.HistoryService;
|
||||
import org.activiti.engine.history.HistoricTaskInstance;
|
||||
import org.activiti.engine.history.HistoricTaskInstanceQuery;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.ydw.bat.wkflow.util.activiti.ActivitiTools;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@Api(description = "流程明细管理")
|
||||
@RestController
|
||||
@RequestMapping("/task")
|
||||
public class TaskController {
|
||||
|
||||
@Autowired
|
||||
private HistoryService historyService;
|
||||
@Autowired
|
||||
private JdbcTemplate jt;
|
||||
@Autowired
|
||||
LawsUserInfoService lawsUserInfoService;
|
||||
@Autowired
|
||||
private IBusProcessNameService iBusProcessNameService;
|
||||
@Autowired
|
||||
private IBusProcessNewService iBusProcessNewService;
|
||||
@Autowired
|
||||
private IBusProcessEntrustService iBusProcessEntrustService;
|
||||
|
||||
@ApiOperation(value = "流程实例明细列表")
|
||||
@ApiImplicitParam(name = "prcNum", value = "流程实例id")
|
||||
@GetMapping("/get_list_by_instance")
|
||||
public List<Map<String, Object>> get_list_by_instance(String prcNum,String sortWord,String shunxu) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
queryWrapper.eq("PRC_NUM",prcNum);
|
||||
BusProcessName one = iBusProcessNameService.getOne(queryWrapper);
|
||||
HistoricTaskInstanceQuery historicTaskInstanceQuery = historyService.createHistoricTaskInstanceQuery()
|
||||
.processInstanceId(one.getPrcId()).orderByTaskCreateTime().asc();
|
||||
List<HistoricTaskInstance> list2 = historicTaskInstanceQuery.list();
|
||||
List<Map<String,Object>> list = ActivitiTools.turnHistoricTaskInstance(list2);
|
||||
for (Map<String, Object> historicTaskInstance : list) {
|
||||
// if(ChkUtil.isNull(historicTaskInstance.get("assignee"))) {
|
||||
// continue;
|
||||
// }
|
||||
//需要修改 根据当前表结构查询
|
||||
// Map<String, Object> map = jt.queryForMap("select t.USR_NAME from view_t_au_usr t where t.OBJECT_ID=?", historicTaskInstance.get("assignee"));
|
||||
// if(ChkUtil.isNotNull(map)) {
|
||||
// historicTaskInstance.put("assignee", map.get("USR_NAME"));
|
||||
// }
|
||||
if(ChkUtil.isNull(historicTaskInstance.get("assignee"))) {
|
||||
ResponseMessage<List<OrgEO>> listUser = lawsUserInfoService.getManagerByOrgIdNew("企业标准管理工程师");
|
||||
if(listUser.getData()!=null){
|
||||
List<String> qbgcs = new ArrayList<>();
|
||||
for (OrgEO orgEO : listUser.getData()) {
|
||||
qbgcs.add(orgEO.getUserName());
|
||||
}
|
||||
String str= StringUtils.join(qbgcs, ",");
|
||||
historicTaskInstance.put("assignee", str);
|
||||
}
|
||||
}else{
|
||||
ResponseMessage<UserVO> assignee = lawsUserInfoService.getById(historicTaskInstance.get("assignee").toString());
|
||||
|
||||
if(assignee.getData()!=null){
|
||||
historicTaskInstance.put("assignee", assignee.getData().getUname());
|
||||
historicTaskInstance.put("assigneeId", assignee.getData().getUsid());
|
||||
QueryWrapper queryWrapper2 = new QueryWrapper();
|
||||
queryWrapper2.eq("TASK_ID",historicTaskInstance.get("id"));
|
||||
queryWrapper2.orderByAsc("CREATE_TIME");
|
||||
List<BusProcessEntrust> list1 = iBusProcessEntrustService.list(queryWrapper2);
|
||||
String str = "";
|
||||
if(list1.size()>0){
|
||||
ResponseMessage<UserVO> assignee1 = lawsUserInfoService.getById(list1.get(0).getUserId());
|
||||
historicTaskInstance.put("assignee", assignee.getData().getUname()+"("+assignee1.getData().getUname()+" 委托)");
|
||||
}
|
||||
}
|
||||
}
|
||||
historicTaskInstance.put("prcType",one.getPrcType());
|
||||
historicTaskInstance.put("prcName",one.getPrcName());
|
||||
historicTaskInstance.put("prcNum",one.getPrcNum());
|
||||
QueryWrapper queryWrapper1 = new QueryWrapper();
|
||||
queryWrapper1.eq("TASK_ID",historicTaskInstance.get("id"));
|
||||
List<BusProcessNew> list1 = iBusProcessNewService.list(queryWrapper1);
|
||||
if(list1.size()>0){
|
||||
historicTaskInstance.put("comment",list1.get(0).getCommitFlag());
|
||||
historicTaskInstance.put("commentText",list1.get(0).getCommitText());
|
||||
}else{
|
||||
historicTaskInstance.put("comment","");
|
||||
historicTaskInstance.put("commentText","");
|
||||
}
|
||||
|
||||
}
|
||||
if(StringUtils.isNotBlank(sortWord)){
|
||||
Collections.sort(list, new Comparator<Map<String, Object>>() {
|
||||
public int compare(Map<String, Object> o1, Map<String, Object> o2) {
|
||||
String id1="";
|
||||
String id2="";
|
||||
if(sortWord.equals("startTime")){
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
id1 = df.format(o1.get(sortWord));
|
||||
id2 = df.format(o2.get(sortWord));
|
||||
}else{
|
||||
id1 = (String) o1.get(sortWord);
|
||||
id2 = (String) o2.get(sortWord);
|
||||
}
|
||||
if(shunxu.equals("desc")){
|
||||
return id2.compareTo(id1);
|
||||
}else{
|
||||
return id1.compareTo(id2);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
return list;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.ydw.bat.wkflow.business_activiti.task;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.business_activiti.service.TaskRollBackService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@Api(description = "任务回退")
|
||||
@RestController
|
||||
public class TaskRollBackController {
|
||||
|
||||
@Autowired
|
||||
private TaskRollBackService taskRollBackService;
|
||||
|
||||
@ApiOperation(value = "待办任务回退")
|
||||
@ApiImplicitParams({ @ApiImplicitParam(name = "backToTaskId", value = "回退到任务id") })
|
||||
@GetMapping("/rollBack")
|
||||
public Wrapper<String> rollBack(String backToTaskId) {
|
||||
|
||||
String result = taskRollBackService.rollBack(backToTaskId);
|
||||
|
||||
return WrapMapper.ok(result);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,26 @@
|
||||
package com.ydw.bat.wkflow.business_auth;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
|
||||
@Component
|
||||
@FeignClient(value = "${wkfow.auth}",path="/fk-auth",url="")
|
||||
@RequestMapping("/api/usr")
|
||||
public interface AuUsrFeignService {
|
||||
|
||||
@GetMapping("/departManager")
|
||||
public Wrapper<List<String>> getDepartManager(@RequestParam("currentUsrId") String currentUsrId);
|
||||
|
||||
@GetMapping("/generalManager")
|
||||
public Wrapper<List<String>> getGeneralManager();
|
||||
|
||||
@GetMapping("/finance")
|
||||
public Wrapper<List<String>> getFinance();
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.ydw.bat.wkflow.business_auth;
|
||||
|
||||
/**
|
||||
* @Author 刘凌枫羽
|
||||
* @Date 2020/12/11 20:23
|
||||
* @Version 1.0
|
||||
*/
|
||||
public class JsonData {
|
||||
|
||||
String json;
|
||||
|
||||
public String getJson() {
|
||||
return json;
|
||||
}
|
||||
|
||||
public void setJson(String json) {
|
||||
this.json = json;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.ydw.bat.wkflow.business_auth;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.*;
|
||||
import feign.Headers;
|
||||
import feign.Param;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
@Component
|
||||
@FeignClient(value = "LAWSSystem2",path="/api",url="")
|
||||
@RequestMapping("/")
|
||||
public interface LawsUserInfoService {
|
||||
|
||||
@GetMapping("sys/org/getManagerByOrgId")
|
||||
public ResponseMessage<List<OrgEO>> getManagerByOrgId(@RequestParam("roleName") String currentUsrId, @RequestParam("orgId") String orgId);
|
||||
|
||||
@GetMapping("sys/org/getOrgByUserId")
|
||||
public ResponseMessage<String> getOrgByUserId(@RequestParam("userId") String userId);
|
||||
|
||||
/**
|
||||
* 废止(企标复审)
|
||||
* @param standCode
|
||||
* @param standName
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("lawss/sarBussionessStand/listByPage")
|
||||
public ResponseMessage<List<SarBussionessStandEO>> standList(@RequestParam("standCode")String standCode, @RequestParam("standName")String standName);
|
||||
|
||||
@PostMapping("lawss/sarBussionessStand/addOrUpdateStandState")
|
||||
void addOrUpdateStandState(SarBussionessStandStateEO sarBussionessStandStateEO);
|
||||
|
||||
@GetMapping("lawss/sarBussStandPlan/listByPage")
|
||||
public ResponseMessage<List<SarBussStandPlanEO>> standPlanList(@RequestParam("standCode")String standCode, @RequestParam("standName")String standName);
|
||||
|
||||
@GetMapping("sys/user/getById")
|
||||
public ResponseMessage<UserVO> getById(@RequestParam("id") String id);
|
||||
|
||||
@GetMapping("lawss/sarProductInfo/queryMap")
|
||||
public ResponseMessage<Map<String, List<String>>> queryMap();
|
||||
|
||||
@GetMapping("sys/org/getUserId")
|
||||
public String getUserId(@RequestParam("roleId")String roleId,
|
||||
@RequestParam("userId")String userId,
|
||||
@RequestParam("hierarchy")String hierarchy);
|
||||
|
||||
@GetMapping("sys/org/getManagerByOrgIdNew")
|
||||
public ResponseMessage<List<OrgEO>> getManagerByOrgIdNew(@RequestParam("roleName") String currentUsrId);
|
||||
|
||||
@GetMapping("lawss/sarProductUser/queryUser")
|
||||
public String queryUser(@RequestParam("accessId") String accessId);
|
||||
|
||||
@GetMapping("sys/org/getUserByRoleId")
|
||||
public String getUserByRoleId(@RequestParam("roleId") String roleId);
|
||||
|
||||
@GetMapping("sys/org/getLoginUserId")
|
||||
public String getLoginUserId();
|
||||
|
||||
@GetMapping("lawss/activiti/activiti_define_start1")
|
||||
public Map<String,String> activiti_define_start(@RequestParam("id") String id,@RequestParam("userId") String userId);
|
||||
|
||||
@PostMapping("person/personMsg/saveNew")
|
||||
public String saveNewPersonMsg(PersonMsgEO personMsgEO);
|
||||
|
||||
@PostMapping("lawss/mail/sendMail")
|
||||
public ResponseMessage sendMail(@RequestParam("userId") Set<String> userId,@RequestParam("msg") String msg);
|
||||
|
||||
@GetMapping("sys/role/getParentIds")
|
||||
public ResponseMessage getParentIds(@RequestParam("id") String id);
|
||||
|
||||
@PostMapping("sys/role/getFoByDREs")
|
||||
void getFoByDREs(@RequestParam("ids") String ids,@RequestParam("msg") String msg);
|
||||
|
||||
@PostMapping("sys/role/xxxxx")
|
||||
void xxxx (@RequestParam("standList") List<String> standList,@RequestParam("projectList") List<String> projectList);
|
||||
|
||||
@GetMapping("lawss/mail/sendMailByUserIdFeign")
|
||||
public ResponseMessage sendEmail(@RequestParam("userId") String userId, @RequestParam("msg") String msg, @RequestParam("title") String title);
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
package com.ydw.bat.wkflow.business_main.category.controller;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.activiti.engine.RepositoryService;
|
||||
import org.activiti.engine.repository.ModelQuery;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.business_main.category.dto.CategoryQuery;
|
||||
import com.ydw.bat.wkflow.business_main.category.entity.Category;
|
||||
import com.ydw.bat.wkflow.business_main.category.service.ICategoryService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Api(description = "流程分类管理")
|
||||
@RestController
|
||||
@RequestMapping("/category/category")
|
||||
public class CategoryController {
|
||||
|
||||
@Autowired
|
||||
private ICategoryService iCategoryService;
|
||||
@Autowired
|
||||
private RepositoryService repositoryService;
|
||||
|
||||
@ApiOperation(value = "流程分类列表")
|
||||
@GetMapping("/list")
|
||||
public Wrapper<List<Category>> list() {
|
||||
QueryWrapper<Category> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.orderBy(true, true, "CODE");
|
||||
List<Category> list = iCategoryService.list(queryWrapper);
|
||||
return WrapMapper.ok(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "流程分类分页列表")
|
||||
@PostMapping("/page")
|
||||
public Wrapper<IPage<Category>> list(@RequestBody(required = false) CategoryQuery<Category> categoryQuery) {
|
||||
|
||||
IPage<Category> page = iCategoryService.page(categoryQuery,categoryQuery.makeQueryWrapper());
|
||||
|
||||
return WrapMapper.ok(page);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "添加流程分类")
|
||||
@PostMapping("/add")
|
||||
public Wrapper<String> add(@ApiParam @Valid @RequestBody Category category) {
|
||||
category.setCreateTime(new Date());
|
||||
iCategoryService.save(category);
|
||||
|
||||
return WrapMapper.ok("保存成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除流程分类")
|
||||
@ApiImplicitParam(name = "objectId", value = "主键id")
|
||||
@GetMapping("/delete")
|
||||
public Wrapper<String> delete(String objectId) {
|
||||
ModelQuery modelQuery = repositoryService.createModelQuery();
|
||||
modelQuery.modelCategory(objectId);
|
||||
long total = modelQuery.count();
|
||||
if(total>0){
|
||||
return WrapMapper.error("流程分类中还存在流程,不允许删除");
|
||||
}else{
|
||||
iCategoryService.removeById(objectId);
|
||||
return WrapMapper.ok("删除成功");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "编辑获取流程分类数据")
|
||||
@ApiImplicitParam(name = "objectId", value = "主键id")
|
||||
@GetMapping("/edit_form")
|
||||
public Wrapper<Category> editForm(String objectId) {
|
||||
Category opFunc = iCategoryService.getById(objectId);
|
||||
return WrapMapper.ok(opFunc);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "编辑流程分类")
|
||||
@PostMapping("/edit")
|
||||
public Wrapper<String> edit(@Valid @RequestBody Category category) {
|
||||
Category categoryDb = iCategoryService.getById(category.getObjectId());
|
||||
categoryDb.setType(category.getType());
|
||||
categoryDb.setCode(category.getCode());
|
||||
iCategoryService.saveOrUpdate(categoryDb);
|
||||
|
||||
return WrapMapper.ok("保存成功");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.ydw.bat.wkflow.business_main.category.dto;
|
||||
|
||||
import com.tmsps.fk.common.base.dto.BaseVueQuery;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "CategoryQuery 对象", description = "")
|
||||
public class CategoryQuery<T> extends BaseVueQuery<T> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public Wrapper<T> makeQueryWrapper() {
|
||||
QueryWrapper<T> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.orderBy(true, true, "CODE");
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.ydw.bat.wkflow.business_main.category.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("t_category")
|
||||
@ApiModel(value = "Category对象", description = "")
|
||||
public class Category {
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@TableId(value = "OBJECT_ID", type = IdType.UUID)
|
||||
private String objectId;
|
||||
|
||||
@ApiModelProperty(value = "是否被删除(0:否;1:是)")
|
||||
@TableLogic(value = "0", delval = "1")
|
||||
@TableField("IS_DELETED")
|
||||
private int isDeleted;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATE_TIME")
|
||||
private Date createTime = new Date(System.currentTimeMillis());
|
||||
|
||||
@ApiModelProperty(value = "编码 排序用")
|
||||
@TableField("CODE")
|
||||
private String code;
|
||||
|
||||
@ApiModelProperty(value = "类型名称")
|
||||
@TableField("TYPE")
|
||||
private String type;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.category.mapper;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.category.entity.Category;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
public interface CategoryMapper extends BaseMapper<Category> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.category.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.category.entity.Category;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
public interface ICategoryService extends IService<Category> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.ydw.bat.wkflow.business_main.category.service.impl;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.category.entity.Category;
|
||||
import com.ydw.bat.wkflow.business_main.category.mapper.CategoryMapper;
|
||||
import com.ydw.bat.wkflow.business_main.category.service.ICategoryService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Service
|
||||
public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> implements ICategoryService {
|
||||
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-05
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/datas/bus-process")
|
||||
public class BusProcessController {
|
||||
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-12-11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/datas/bus-process-entrust")
|
||||
public class BusProcessEntrustController {
|
||||
|
||||
}
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.controller;
|
||||
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNameService;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNewService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.activiti.engine.task.Task;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-11
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/datas/bus-process-name")
|
||||
public class BusProcessNameController {
|
||||
|
||||
// @Autowired
|
||||
// private IBusProcessNameService iBusProcessNameService;
|
||||
//
|
||||
// @ApiOperation(value = "查询待办任务")
|
||||
// @GetMapping("/queryBusProcessNameForEnd")
|
||||
// public List<BusProcessName> queryBusProcessNameForEnd() {
|
||||
// return iBusProcessNameService.findBusProcessNameForEnd();
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.controller;
|
||||
|
||||
|
||||
import com.tmsps.fk.common.base.action.BaseAction;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessNew;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNewService;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.impl.BusProcessNewServiceImpl;
|
||||
import com.ydw.bat.wkflow.util.WebUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.activiti.engine.task.Task;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-10
|
||||
*/
|
||||
@Api(description = "业务数据查询")
|
||||
@RestController
|
||||
@RequestMapping("/datas/bus-process-new")
|
||||
public class BusProcessNewController extends BaseAction {
|
||||
|
||||
@Autowired
|
||||
private IBusProcessNewService iBusProcessNewService;
|
||||
|
||||
@ApiOperation(value = "查询待办任务")
|
||||
@GetMapping("/queryTask")
|
||||
public List<Task> QueryTask(String userId,String pId) {
|
||||
List<Task> tasks = iBusProcessNewService.QueryTask(userId, pId);
|
||||
return tasks;
|
||||
}
|
||||
|
||||
@ApiOperation(value = "待办任务详情")
|
||||
@GetMapping("/todotask")
|
||||
public List<BusProcessNew> todotask(String userId,String pId) {
|
||||
List<BusProcessNew> findtodotask = iBusProcessNewService.findtodotask(userId, pId);
|
||||
return findtodotask;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.controller;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.dto.DatasQuery;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.Datas;
|
||||
import com.ydw.bat.wkflow.business_main.datas.mapper.DatasMapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IDatasService;
|
||||
import com.ydw.bat.wkflow.util.SessionTool;
|
||||
import com.ydw.bat.wkflow.util.TjTools;
|
||||
import com.ydw.bat.wkflow.util.date.DateTools;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Api(description = "我的业务管理")
|
||||
@RestController
|
||||
@RequestMapping("/datas/datas")
|
||||
public class DatasController {
|
||||
|
||||
@Autowired
|
||||
private IDatasService datasService;
|
||||
@Autowired
|
||||
private DatasMapper datasMapper;
|
||||
|
||||
@ApiOperation(value = "我的业务列表")
|
||||
@PostMapping("/list")
|
||||
public Wrapper<IPage<Datas>> list(@RequestBody DatasQuery<Datas> datasQuery) {
|
||||
datasQuery.setAssigner(SessionTool.getSessionAdminId());
|
||||
datasQuery.setType("填写单");
|
||||
IPage<Datas> ipage = datasService.page(datasQuery, datasQuery.makeQueryWrapper());
|
||||
|
||||
return WrapMapper.ok(ipage);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "业务统计")
|
||||
@PostMapping("/statistics")
|
||||
public Wrapper<Map<String, Integer>> statistics(@RequestBody DatasQuery<Datas> datasQuery) {
|
||||
System.err.println(datasQuery);
|
||||
datasQuery.setType("填写单");
|
||||
datasQuery.setName("请假单");
|
||||
if(ChkUtil.isNull(datasQuery.getDate())) {
|
||||
if("年".equals(datasQuery.getFormatType())) {
|
||||
datasQuery.setDate(DateTools.getYear()+"");
|
||||
}else {
|
||||
datasQuery.setDate(DateTools.getYearMonth());
|
||||
}
|
||||
}
|
||||
String dataFormat = "";
|
||||
if("年".equals(datasQuery.getFormatType())) {
|
||||
dataFormat = "%c";
|
||||
}else {
|
||||
dataFormat = "%e";
|
||||
}
|
||||
// 获取创建时间
|
||||
List<Map<String, Object>> list = datasMapper.selectCreateTimeList(dataFormat, datasQuery.makeQueryWrapper());
|
||||
Map<String, Integer> map = TjTools.groupBy(list, "date");
|
||||
return WrapMapper.ok(map);
|
||||
}
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/datas/hi-datas")
|
||||
public class HiDatasController {
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.dto;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.tmsps.fk.common.base.dto.BaseVueQuery;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "DatasQuery对象", description = "")
|
||||
public class DatasQuery<T> extends BaseVueQuery<T> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "表单名称")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "操作人员")
|
||||
private String assigner;
|
||||
@ApiModelProperty(value = "类型:填写单 or 审批单")
|
||||
private String type;
|
||||
@ApiModelProperty(value = "流程分类")
|
||||
private String category_id;
|
||||
@ApiModelProperty(value = "表单id")
|
||||
private String formKid;
|
||||
@ApiModelProperty(value = "统计时间", example = "年-月 | 年")
|
||||
private String date;
|
||||
@ApiModelProperty(value = "统计时间类型: 月 or 年")
|
||||
private String formatType;
|
||||
|
||||
public Wrapper<T> makeQueryWrapper() {
|
||||
QueryWrapper<T> queryWrapper = new QueryWrapper<>();
|
||||
if (ChkUtil.isNotNull(name)) {
|
||||
queryWrapper.like("FORM_NAME", name);
|
||||
}
|
||||
if (ChkUtil.isNotNull(assigner)) {
|
||||
queryWrapper.eq("ASSIGNER", assigner);
|
||||
}
|
||||
if (ChkUtil.isNotNull(type)) {
|
||||
queryWrapper.eq("TYPE", type);
|
||||
}
|
||||
if (ChkUtil.isNotNull(category_id)) {
|
||||
queryWrapper.eq("CATEGORY_ID", category_id);
|
||||
}
|
||||
if(ChkUtil.isNotNull(formKid)) {
|
||||
queryWrapper.eq("FORM_KID", formKid);
|
||||
}
|
||||
if(ChkUtil.isNotNull(date)) {
|
||||
if("月".equals(formatType)) {
|
||||
queryWrapper.like("DATE_FORMAT(CREATE_TIME,'%Y-%m')", date);
|
||||
}else {
|
||||
queryWrapper.like("DATE_FORMAT(CREATE_TIME,'%Y')", date);
|
||||
}
|
||||
}
|
||||
queryWrapper.orderByDesc("CREATE_TIME");
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,216 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>ATT_FILE AttFileEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class AttFileEO{
|
||||
|
||||
private static final long serialVersionUID = 1284335706608668758L;
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(AttFileEO.class);
|
||||
|
||||
private String id;
|
||||
private String fileName;
|
||||
private String oldFileName;
|
||||
private String fileSuffix;
|
||||
private String filePath;
|
||||
private Integer validFlag;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
private String tableName;
|
||||
|
||||
private String resId;
|
||||
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>fileName -> file_name</li>
|
||||
* <li>oldFileName -> old_file_name</li>
|
||||
* <li>fileSuffix -> file_suffix</li>
|
||||
* <li>filePath -> file_path</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){
|
||||
return null;
|
||||
}
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "fileName": return "file_name";
|
||||
case "oldFileName": return "old_file_name";
|
||||
case "fileSuffix": return "file_suffix";
|
||||
case "filePath": return "file_path";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>file_name -> fileName</li>
|
||||
* <li>old_file_name -> oldFileName</li>
|
||||
* <li>file_suffix -> fileSuffix</li>
|
||||
* <li>file_path -> filePath</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){
|
||||
return null;
|
||||
}
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "file_name": return "fileName";
|
||||
case "old_file_name": return "oldFileName";
|
||||
case "file_suffix": return "fileSuffix";
|
||||
case "file_path": return "filePath";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
int tableNameIndex = this.id.lastIndexOf("_");
|
||||
if(tableNameIndex!= -1){
|
||||
String tableName = this.id.substring(0, tableNameIndex);
|
||||
this.tableName=tableName;
|
||||
}else{
|
||||
logger.error("文件ID格式错误:"+this.id);
|
||||
}
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
if(tableName!=null && !tableName.isEmpty()){
|
||||
this.id = tableName+"_"+id;
|
||||
}
|
||||
//此处注意保存时表结构是否存在
|
||||
this.id=id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOldFileName() {
|
||||
return this.oldFileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOldFileName(String oldFileName) {
|
||||
this.oldFileName = oldFileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileSuffix() {
|
||||
return this.fileSuffix;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFilePath() {
|
||||
return this.filePath;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getTableName() {
|
||||
if(this.tableName !=null && !this.tableName.isEmpty()){
|
||||
return this.tableName;
|
||||
}else{
|
||||
int tableNameIndex = this.id.lastIndexOf("_");
|
||||
if(tableNameIndex !=-1){
|
||||
String tableName = this.id.substring(0, tableNameIndex);
|
||||
this.tableName=tableName;
|
||||
}else{
|
||||
logger.error("文件ID格式错误:"+this.id);
|
||||
}
|
||||
return this.tableName;
|
||||
}
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public String getResId() {
|
||||
return resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
public class AttFileVo {
|
||||
|
||||
private String id;
|
||||
private String fileName;
|
||||
private String oldFileName;
|
||||
private String fileSuffix;
|
||||
private String filePath;
|
||||
private String attId;
|
||||
|
||||
private String name;
|
||||
//识别文件名中的标准号和名称
|
||||
private String standNum;
|
||||
private String standName;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getOldFileName() {
|
||||
return oldFileName;
|
||||
}
|
||||
|
||||
public void setOldFileName(String oldFileName) {
|
||||
this.oldFileName = oldFileName;
|
||||
}
|
||||
|
||||
public String getFileSuffix() {
|
||||
return fileSuffix;
|
||||
}
|
||||
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
this.name = this.oldFileName;
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
this.attId=this.id;
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
public String getStandNum() {
|
||||
return standNum;
|
||||
}
|
||||
|
||||
public void setStandNum(String standNum) {
|
||||
this.standNum = standNum;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
public class BusMes {
|
||||
|
||||
private String userId;
|
||||
|
||||
private String taskId;
|
||||
|
||||
private String json;
|
||||
|
||||
private String taskIds;
|
||||
|
||||
private String pId;
|
||||
|
||||
private String prcType;
|
||||
|
||||
private String createUser;
|
||||
|
||||
private String createUserName;
|
||||
|
||||
public String getDept() {
|
||||
return dept;
|
||||
}
|
||||
|
||||
public void setDept(String dept) {
|
||||
this.dept = dept;
|
||||
}
|
||||
|
||||
private String dept;
|
||||
|
||||
private String userName;
|
||||
|
||||
private String id;
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getTaskId() {
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public void setTaskId(String taskId) {
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public String getJson() {
|
||||
return json;
|
||||
}
|
||||
|
||||
public void setJson(String json) {
|
||||
this.json = json;
|
||||
}
|
||||
|
||||
public String getTaskIds() {
|
||||
return taskIds;
|
||||
}
|
||||
|
||||
public void setTaskIds(String taskIds) {
|
||||
this.taskIds = taskIds;
|
||||
}
|
||||
|
||||
public String getpId() {
|
||||
return pId;
|
||||
}
|
||||
|
||||
public void setpId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
public String getCreateUser() {
|
||||
return createUser;
|
||||
}
|
||||
|
||||
public void setCreateUser(String createUser) {
|
||||
this.createUser = createUser;
|
||||
}
|
||||
|
||||
public String getPrcType() {
|
||||
return prcType;
|
||||
}
|
||||
|
||||
public void setPrcType(String prcType) {
|
||||
this.prcType = prcType;
|
||||
}
|
||||
|
||||
public String getCreateUserName() {
|
||||
return createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-05
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("BUS_PROCESS")
|
||||
@ApiModel(value="BusProcess对象", description="")
|
||||
public class BusProcess implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@TableId(value = "ID", type = IdType.UUID)
|
||||
private String id;
|
||||
|
||||
@TableField("PID")
|
||||
private String pid;
|
||||
|
||||
@TableField("USERID")
|
||||
private String userid;
|
||||
|
||||
@TableField("FLAG")
|
||||
private Integer flag;
|
||||
|
||||
@TableField("SID")
|
||||
private String sid;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-12-11
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("BUS_PROCESS_ENTRUST")
|
||||
@ApiModel(value="BusProcessEntrust对象", description="")
|
||||
public class BusProcessEntrust implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@TableId(value = "ID", type = IdType.UUID)
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "委托人员")
|
||||
@TableField("USER_ID")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty(value = "被委托人员")
|
||||
@TableField("EN_USER_ID")
|
||||
private String enUserId;
|
||||
|
||||
@TableField("TASK_ID")
|
||||
private String taskId;
|
||||
|
||||
@TableField("PRC_ID")
|
||||
private String prcId;
|
||||
|
||||
@TableField("TASK_NAME")
|
||||
private String taskName;
|
||||
|
||||
@TableField("PRC_NAME")
|
||||
private String prcName;
|
||||
|
||||
@TableField("CREATE_TIME")
|
||||
private Date createTime = new Date(System.currentTimeMillis());;
|
||||
|
||||
@TableField("VALID_FLAG")
|
||||
private String validFlag;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-11
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("BUS_PROCESS_NAME")
|
||||
@ApiModel(value="BusProcessName对象", description="")
|
||||
public class BusProcessName implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@TableId(value = "ID", type = IdType.UUID)
|
||||
private String id;
|
||||
|
||||
@TableField("PRC_NAME")
|
||||
private String prcName;
|
||||
|
||||
@TableField("PRC_ID")
|
||||
private String prcId;
|
||||
|
||||
@TableField("PRC_MES")
|
||||
private String prcMes;
|
||||
|
||||
@TableField("OVER_TIME")
|
||||
private String overTime;
|
||||
|
||||
@TableField("PRC_NUM")
|
||||
private String prcNum;
|
||||
|
||||
@TableField("CREAT_TIME")
|
||||
private String creatTime;
|
||||
|
||||
@TableField("CREAT_USER")
|
||||
private String creatUser;
|
||||
|
||||
@TableField("PRC_TYPE")
|
||||
private String prcType;
|
||||
|
||||
@TableField("CREATE_USER_NAME")
|
||||
private String creatUserName;
|
||||
|
||||
@TableField("MES")
|
||||
private String mes;
|
||||
|
||||
@TableField("END_TIME")
|
||||
private String endTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String taskIds;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String taskInfo;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String taskAssignee;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String isEnd;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String taskBackAssignee;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String acceptTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String endTaskTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String startTaskTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("BUS_PROCESS_NEW")
|
||||
@ApiModel(value="BusProcessNew对象", description="")
|
||||
public class BusProcessNew implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
@TableId(value = "ID", type = IdType.UUID)
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "资源类型")
|
||||
@TableField("MSG_TYPE")
|
||||
private String msgType;
|
||||
|
||||
@ApiModelProperty(value = "标准id")
|
||||
@TableField("STAND_ID")
|
||||
private String standId;
|
||||
|
||||
@ApiModelProperty(value = "条款id")
|
||||
@TableField("CLAUSE_ID")
|
||||
private String clauseId;
|
||||
|
||||
@ApiModelProperty(value = "处理人")
|
||||
@TableField("USER_ID")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty(value = "信息")
|
||||
@TableField("MESG")
|
||||
private String mesg;
|
||||
|
||||
@ApiModelProperty(value = "节点信息")
|
||||
@TableField("TASK_INFO")
|
||||
private String taskInfo;
|
||||
|
||||
@ApiModelProperty(value = "父级id")
|
||||
@TableField("PARENT_ID")
|
||||
private String parentId;
|
||||
|
||||
@ApiModelProperty(value = "任务id")
|
||||
@TableField("TASK_ID")
|
||||
private String taskId;
|
||||
|
||||
@ApiModelProperty(value = "流程实例id")
|
||||
@TableField("P_ID")
|
||||
private String pId;
|
||||
|
||||
@ApiModelProperty(value = "完成注记")
|
||||
@TableField("FINISH_FLAG")
|
||||
private String finishFlag;
|
||||
|
||||
@ApiModelProperty(value = "审批意见")
|
||||
@TableField("COMMIT_FLAG")
|
||||
private String commitFlag;
|
||||
|
||||
@ApiModelProperty(value = "审批意见")
|
||||
@TableField("COMMIT_TEXT")
|
||||
private String commitText;
|
||||
|
||||
@ApiModelProperty(value = "子流程ID")
|
||||
@TableField("SUB_ID")
|
||||
private String subId;
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("t_datas")
|
||||
@ApiModel(value = "Datas对象", description = "")
|
||||
public class Datas {
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@TableId(value = "OBJECT_ID", type = IdType.UUID)
|
||||
private String objectId;
|
||||
|
||||
@ApiModelProperty(value = "是否被删除(0:否;1:是)")
|
||||
@TableLogic(value = "0", delval = "1")
|
||||
@TableField("IS_DELETED")
|
||||
private int isDeleted;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATE_TIME")
|
||||
private Date createTime = new Date(System.currentTimeMillis());
|
||||
|
||||
@ApiModelProperty(value = "流程实例ID")
|
||||
@TableField("ACTI_PROC_INST_ID")
|
||||
private String actiProcInstId;
|
||||
|
||||
@ApiModelProperty(value = "排序")
|
||||
@TableField("SORTZ")
|
||||
private int sortz;
|
||||
|
||||
@ApiModelProperty(value = "任务ID")
|
||||
@TableField("ACTI_TASK_ID")
|
||||
private String actiTaskId;
|
||||
|
||||
@ApiModelProperty(value = "表单提交json")
|
||||
@TableField("FORM_JSON")
|
||||
private String formJson;
|
||||
|
||||
@ApiModelProperty(value = "表单ID")
|
||||
@TableField("FORM_KID")
|
||||
private String formKid;
|
||||
|
||||
@ApiModelProperty(value = "表单名称")
|
||||
@TableField("FORM_NAME")
|
||||
private String formName;
|
||||
|
||||
@ApiModelProperty(value = "表单的同类标识,从t_form表拷贝而来", example = "同时下发到 人事+财务,人事与财务的审批单互相不可见,通过show_key做标识区分")
|
||||
@TableField("SHOW_KEY")
|
||||
private String showKey;
|
||||
|
||||
@ApiModelProperty(value = "类型ID")
|
||||
@TableField("CATEGORY_ID")
|
||||
private String categoryId;
|
||||
|
||||
@ApiModelProperty(value = "类型名称")
|
||||
@TableField("CATEGORY_NAME")
|
||||
private String categoryName;
|
||||
|
||||
@ApiModelProperty(value = "表单填写Json名称")
|
||||
@TableField("FORM_VALS_JSON")
|
||||
private String formValsJson;
|
||||
|
||||
@ApiModelProperty(value = "表单附件json名称")
|
||||
@TableField("FORM_FILES_JSON")
|
||||
private String formFilesJson;
|
||||
|
||||
@TableField("REFER_KID")
|
||||
private String referKid;
|
||||
|
||||
@ApiModelProperty(value = "重置状态:知道同一类表单,表单重置:statuz为 -100")
|
||||
@TableField("STATUZ")
|
||||
private int statuz;
|
||||
|
||||
@ApiModelProperty(value = "类型:填写单 or 审批单")
|
||||
@TableField("TYPE")
|
||||
private String type;
|
||||
|
||||
@ApiModelProperty(value = "操作人员")
|
||||
@TableField("ASSIGNER")
|
||||
private String assigner;
|
||||
|
||||
@ApiModelProperty(value = "表单提交html")
|
||||
@TableField("HTML")
|
||||
private String html;
|
||||
|
||||
@ApiModelProperty(value = "表单提交只读 html代码")
|
||||
@TableField("HTML_READONLY")
|
||||
private String htmlReadonly;
|
||||
|
||||
@ApiModelProperty(value = "运行类型: html or json")
|
||||
@TableField("RUN_TYPE")
|
||||
private String runType;
|
||||
|
||||
@ApiModelProperty(value = "工作流节点id")
|
||||
@TableField("RESOURCE_ID")
|
||||
private String resourceId;
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 参考 https://www.devdoc.cn/activiti-table-act_ru_variable.html 获取activiti表结构
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-23
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("t_hi_datas")
|
||||
@ApiModel(value="HiDatas对象", description="")
|
||||
public class HiDatas implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@TableId(value = "OBJECT_ID", type = IdType.UUID)
|
||||
private String objectId;
|
||||
|
||||
@ApiModelProperty(value = "是否被删除(0:否;1:是)")
|
||||
@TableLogic(value = "0", delval = "1")
|
||||
@TableField("IS_DELETED")
|
||||
private int isDeleted;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATE_TIME")
|
||||
private Date createTime = new Date(System.currentTimeMillis());
|
||||
|
||||
@ApiModelProperty(value = "Datas的id")
|
||||
@TableField("DATAS_ID")
|
||||
private String datasId;
|
||||
|
||||
@ApiModelProperty(value = "历史节点表数据")
|
||||
@TableField("ACT_HI_ACTINST")
|
||||
private String actHiActinst;
|
||||
|
||||
@ApiModelProperty(value = "历史附件表数据")
|
||||
@TableField("ACT_HI_ATTACHMENT")
|
||||
private String actHiAttachment;
|
||||
|
||||
@ApiModelProperty(value = "历史意见表数据")
|
||||
@TableField("ACT_HI_COMMENT")
|
||||
private String actHiComment;
|
||||
|
||||
@ApiModelProperty(value = "历史详情表数据")
|
||||
@TableField("ACT_HI_DETAIL")
|
||||
private String actHiDetail;
|
||||
|
||||
@ApiModelProperty(value = "历史流程人员表数据")
|
||||
@TableField("ACT_HI_IDENTITYLINK")
|
||||
private String actHiIdentitylink;
|
||||
|
||||
@ApiModelProperty(value = "历史流程实例表数据")
|
||||
@TableField("ACT_HI_PROCINST")
|
||||
private String actHiProcinst;
|
||||
|
||||
@ApiModelProperty(value = "历史任务实例表数据")
|
||||
@TableField("ACT_HI_TASKINST")
|
||||
private String actHiTaskinst;
|
||||
|
||||
@ApiModelProperty(value = "历史变量表数据")
|
||||
@TableField("ACT_HI_VARINST")
|
||||
private String actHiVarinst;
|
||||
|
||||
@ApiModelProperty(value = "throwEvent、catchEvent时间监听信息表数据")
|
||||
@TableField("ACT_RU_EVENT_SUBSCR")
|
||||
private String actRuEventSubscr;
|
||||
|
||||
@ApiModelProperty(value = "运行时流程执行实例表数据")
|
||||
@TableField("ACT_RU_EXECUTION")
|
||||
private String actRuExecution;
|
||||
|
||||
@ApiModelProperty(value = "运行时流程人员表数据")
|
||||
@TableField("ACT_RU_IDENTITYLINK")
|
||||
private String actRuIdentitylink;
|
||||
|
||||
@ApiModelProperty(value = "运行时定时任务数据表数据")
|
||||
@TableField("ACT_RU_JOB")
|
||||
private String actRuJob;
|
||||
|
||||
@ApiModelProperty(value = "运行时任务节点表数据")
|
||||
@TableField("ACT_RU_TASK")
|
||||
private String actRuTask;
|
||||
|
||||
@ApiModelProperty(value = "运行时流程变量数据表数据")
|
||||
@TableField("ACT_RU_VARIABLE")
|
||||
private String actRuVariable;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,178 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_MENU MenuEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class MenuEO{
|
||||
|
||||
private static final long serialVersionUID = 2497292638985614077L;
|
||||
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String remarks;
|
||||
private String permission;
|
||||
private Integer isShow;
|
||||
private String icon;
|
||||
private String href;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>permission -> permission</li>
|
||||
* <li>isShow -> is_show</li>
|
||||
* <li>icon -> icon</li>
|
||||
* <li>href -> href</li>
|
||||
* <li>parentIds -> parent_ids</li>
|
||||
* <li>parentId -> parent_id</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "remarks": return "remarks";
|
||||
case "permission": return "permission";
|
||||
case "isShow": return "is_show";
|
||||
case "icon": return "icon";
|
||||
case "href": return "href";
|
||||
case "parentIds": return "parent_ids";
|
||||
case "parentId": return "parent_id";
|
||||
case "name": return "name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>permission -> permission</li>
|
||||
* <li>is_show -> isShow</li>
|
||||
* <li>icon -> icon</li>
|
||||
* <li>href -> href</li>
|
||||
* <li>parent_ids -> parentIds</li>
|
||||
* <li>parent_id -> parentId</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "remarks": return "remarks";
|
||||
case "permission": return "permission";
|
||||
case "is_show": return "isShow";
|
||||
case "icon": return "icon";
|
||||
case "href": return "href";
|
||||
case "parent_ids": return "parentIds";
|
||||
case "parent_id": return "parentId";
|
||||
case "name": return "name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPermission() {
|
||||
return this.permission;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPermission(String permission) {
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getIsShow() {
|
||||
return this.isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsShow(Integer isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getIcon() {
|
||||
return this.icon;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIcon(String icon) {
|
||||
this.icon = icon;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getHref() {
|
||||
return this.href;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setHref(String href) {
|
||||
this.href = href;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,300 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ORG OrgEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class OrgEO {
|
||||
|
||||
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private Integer isShow;
|
||||
private String parentIds;
|
||||
private String pId;
|
||||
private String shotName;
|
||||
private String remarks;
|
||||
private Integer orgDesc;
|
||||
private String orgType;
|
||||
private String orgCode;
|
||||
private String orgName;
|
||||
private String id;
|
||||
|
||||
//补充字段
|
||||
private String ssoId;
|
||||
private String ssoOrgId;
|
||||
private String userName;
|
||||
private String usId;
|
||||
private String roleId;
|
||||
private String roleName;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>isShow -> is_show</li>
|
||||
* <li>parentIds -> parent_ids</li>
|
||||
* <li>parentId -> parent_id</li>
|
||||
* <li>shotName -> shot_name</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>orgDesc -> org_desc</li>
|
||||
* <li>orgType -> org_type</li>
|
||||
* <li>orgCode -> org_code</li>
|
||||
* <li>orgName -> org_name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "isShow": return "is_show";
|
||||
case "parentIds": return "parent_ids";
|
||||
case "parentId": return "parent_id";
|
||||
case "shotName": return "shot_name";
|
||||
case "remarks": return "remarks";
|
||||
case "orgDesc": return "org_desc";
|
||||
case "orgType": return "org_type";
|
||||
case "orgCode": return "org_code";
|
||||
case "orgName": return "org_name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>is_show -> isShow</li>
|
||||
* <li>parent_ids -> parentIds</li>
|
||||
* <li>parent_id -> parentId</li>
|
||||
* <li>shot_name -> shotName</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>org_desc -> orgDesc</li>
|
||||
* <li>org_type -> orgType</li>
|
||||
* <li>org_code -> orgCode</li>
|
||||
* <li>org_name -> orgName</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "is_show": return "isShow";
|
||||
case "parent_ids": return "parentIds";
|
||||
case "parent_id": return "parentId";
|
||||
case "shot_name": return "shotName";
|
||||
case "remarks": return "remarks";
|
||||
case "org_desc": return "orgDesc";
|
||||
case "org_type": return "orgType";
|
||||
case "org_code": return "orgCode";
|
||||
case "org_name": return "orgName";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
if(modifyTime==null){
|
||||
return new Date();
|
||||
}else{
|
||||
return this.modifyTime;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
if(creationTime == null){
|
||||
return new Date();
|
||||
}else{
|
||||
return this.creationTime;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getIsShow() {
|
||||
return this.isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsShow(Integer isShow) {
|
||||
this.isShow = isShow;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getParentIds() {
|
||||
return this.parentIds;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setParentIds(String parentIds) {
|
||||
this.parentIds = parentIds;
|
||||
}
|
||||
|
||||
|
||||
public String getpId() {
|
||||
return pId;
|
||||
}
|
||||
|
||||
public void setpId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getShotName() {
|
||||
return this.shotName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setShotName(String shotName) {
|
||||
this.shotName = shotName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getOrgDesc() {
|
||||
return this.orgDesc;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgDesc(Integer orgDesc) {
|
||||
this.orgDesc = orgDesc;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOrgType() {
|
||||
return this.orgType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgType(String orgType) {
|
||||
this.orgType = orgType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOrgCode() {
|
||||
return this.orgCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgCode(String orgCode) {
|
||||
this.orgCode = orgCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOrgName() {
|
||||
return this.orgName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getSsoId() {
|
||||
return ssoId;
|
||||
}
|
||||
|
||||
public void setSsoId(String ssoId) {
|
||||
this.ssoId = ssoId;
|
||||
}
|
||||
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getUsId() {
|
||||
return usId;
|
||||
}
|
||||
|
||||
public void setUsId(String usId) {
|
||||
this.usId = usId;
|
||||
}
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public void setRoleName(String roleName) {
|
||||
this.roleName = roleName;
|
||||
}
|
||||
|
||||
public String getSsoOrgId() {
|
||||
return ssoOrgId;
|
||||
}
|
||||
|
||||
public void setSsoOrgId(String ssoOrgId) {
|
||||
this.ssoOrgId = ssoOrgId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,240 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_PERSON_MSG PersonMsgEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class PersonMsgEO{
|
||||
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
//@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private Integer readFlag;
|
||||
private String msgContent;
|
||||
private String msgTitle;
|
||||
private String userId;
|
||||
private String id;
|
||||
private String userIds;
|
||||
|
||||
// 发送预警判断是否出现在产品中时使用
|
||||
private String warningId;
|
||||
private String warningType;
|
||||
|
||||
// 与流程相关,流程编号
|
||||
private String processnum;
|
||||
|
||||
//消息类型
|
||||
private String msgType;
|
||||
//业务id
|
||||
private String busiId;
|
||||
//消息结果
|
||||
private String msgResult;
|
||||
//返回地址
|
||||
private String returnAddress;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>readFlag -> read_flag</li>
|
||||
* <li>msgContent -> msg_content</li>
|
||||
* <li>msgTitle -> msg_title</li>
|
||||
* <li>userId -> user_id</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "readFlag": return "read_flag";
|
||||
case "msgContent": return "msg_content";
|
||||
case "msgTitle": return "msg_title";
|
||||
case "userId": return "user_id";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>read_flag -> readFlag</li>
|
||||
* <li>msg_content -> msgContent</li>
|
||||
* <li>msg_title -> msgTitle</li>
|
||||
* <li>user_id -> userId</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "read_flag": return "readFlag";
|
||||
case "msg_content": return "msgContent";
|
||||
case "msg_title": return "msgTitle";
|
||||
case "user_id": return "userId";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getReadFlag() {
|
||||
return this.readFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setReadFlag(Integer readFlag) {
|
||||
this.readFlag = readFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getMsgContent() {
|
||||
return this.msgContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setMsgContent(String msgContent) {
|
||||
this.msgContent = msgContent;
|
||||
}
|
||||
|
||||
public String getMsgTitle() {
|
||||
return msgTitle;
|
||||
}
|
||||
|
||||
public void setMsgTitle(String msgTitle) {
|
||||
this.msgTitle = msgTitle;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getWarningId() {
|
||||
return warningId;
|
||||
}
|
||||
|
||||
public void setWarningId(String warningId) {
|
||||
this.warningId = warningId;
|
||||
}
|
||||
|
||||
public String getWarningType() {
|
||||
return warningType;
|
||||
}
|
||||
|
||||
public void setWarningType(String warningType) {
|
||||
this.warningType = warningType;
|
||||
}
|
||||
|
||||
public String getProcessnum() {
|
||||
return processnum;
|
||||
}
|
||||
|
||||
public void setProcessnum(String processnum) {
|
||||
this.processnum = processnum;
|
||||
}
|
||||
|
||||
public String getMsgType() {
|
||||
return msgType;
|
||||
}
|
||||
|
||||
public void setMsgType(String msgType) {
|
||||
this.msgType = msgType;
|
||||
}
|
||||
|
||||
public String getBusiId() {
|
||||
return busiId;
|
||||
}
|
||||
|
||||
public void setBusiId(String busiId) {
|
||||
this.busiId = busiId;
|
||||
}
|
||||
|
||||
public String getMsgResult() {
|
||||
return msgResult;
|
||||
}
|
||||
|
||||
public void setMsgResult(String msgResult) {
|
||||
this.msgResult = msgResult;
|
||||
}
|
||||
|
||||
public String getReturnAddress() {
|
||||
return returnAddress;
|
||||
}
|
||||
|
||||
public void setReturnAddress(String returnAddress) {
|
||||
this.returnAddress = returnAddress;
|
||||
}
|
||||
|
||||
public String getUserIds() {
|
||||
return userIds;
|
||||
}
|
||||
|
||||
public void setUserIds(String userIds) {
|
||||
this.userIds = userIds;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
|
||||
public class ResponseMessage<T> {
|
||||
private String respCode;
|
||||
private String respMsg;
|
||||
private T data;
|
||||
private boolean ok;
|
||||
|
||||
public ResponseMessage() {
|
||||
}
|
||||
|
||||
public ResponseMessage(String respCode, String message) {
|
||||
this.respCode = respCode;
|
||||
this.respMsg = message;
|
||||
}
|
||||
|
||||
public ResponseMessage(String respCode, String message, boolean ok) {
|
||||
this.respCode = respCode;
|
||||
this.respMsg = message;
|
||||
this.ok = ok;
|
||||
}
|
||||
|
||||
public ResponseMessage(String respCode, String message, boolean ok, T data) {
|
||||
this.respCode = respCode;
|
||||
this.respMsg = message;
|
||||
this.ok = ok;
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getRespCode() {
|
||||
return this.respCode;
|
||||
}
|
||||
|
||||
public void setRespCode(String respCode) {
|
||||
this.respCode = respCode;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return this.respMsg;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.respMsg = message;
|
||||
}
|
||||
|
||||
public T getData() {
|
||||
return this.data;
|
||||
}
|
||||
|
||||
public void setData(T data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public boolean isOk() {
|
||||
return this.ok;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,299 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>TS_ROLE RoleEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class RoleEO{
|
||||
|
||||
private static final long serialVersionUID = -1386892031737294731L;
|
||||
|
||||
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private Integer validFlag;
|
||||
private String operUser;
|
||||
private String extInfo;
|
||||
private String remarks;
|
||||
private Integer isDefault;
|
||||
private Integer useFlag;
|
||||
private String roleType;
|
||||
private String name;
|
||||
private String id;
|
||||
|
||||
private String operUserName;
|
||||
|
||||
private List<MenuEO> menuEOList = new ArrayList<>();
|
||||
private List<String> menuEOIdList = new ArrayList<>();
|
||||
|
||||
private String orgUseName;
|
||||
|
||||
private Integer disableFlag;
|
||||
|
||||
private Integer unlockFlag;
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>operUser -> oper_user</li>
|
||||
* <li>extInfo -> ext_info</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>isDefault -> is_default</li>
|
||||
* <li>useFlag -> use_flag</li>
|
||||
* <li>roleType -> role_type</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "disableFlag": return "disable_flag";
|
||||
case "unlockFlag": return "unlock_flag";
|
||||
case "operUser": return "oper_user";
|
||||
case "extInfo": return "ext_info";
|
||||
case "remarks": return "remarks";
|
||||
case "isDefault": return "is_default";
|
||||
case "useFlag": return "use_flag";
|
||||
case "roleType": return "role_type";
|
||||
case "name": return "name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>oper_user -> operUser</li>
|
||||
* <li>ext_info -> extInfo</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>is_default -> isDefault</li>
|
||||
* <li>use_flag -> useFlag</li>
|
||||
* <li>role_type -> roleType</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "disable_flag": return "disableFlag";
|
||||
case "unlock_flag": return "unlockFlag";
|
||||
case "oper_user": return "operUser";
|
||||
case "ext_info": return "extInfo";
|
||||
case "remarks": return "remarks";
|
||||
case "is_default": return "isDefault";
|
||||
case "use_flag": return "useFlag";
|
||||
case "role_type": return "roleType";
|
||||
case "name": return "name";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
public RoleEO(){}
|
||||
public RoleEO(Date modifyTime, Date creationTime, Integer validFlag, String operUser, String extInfo, String remarks, Integer isDefault, Integer useFlag, String roleType, String name, String id, List<MenuEO> menuEOList, List<String> menuEOIdList, Integer disableFlag, Integer unlockFlag) {
|
||||
this.modifyTime = modifyTime;
|
||||
this.creationTime = creationTime;
|
||||
this.validFlag = validFlag;
|
||||
this.operUser = operUser;
|
||||
this.extInfo = extInfo;
|
||||
this.remarks = remarks;
|
||||
this.isDefault = isDefault;
|
||||
this.useFlag = useFlag;
|
||||
this.roleType = roleType;
|
||||
this.name = name;
|
||||
this.id = id;
|
||||
this.menuEOList = menuEOList;
|
||||
this.menuEOIdList = menuEOIdList;
|
||||
this.disableFlag=disableFlag;
|
||||
this.unlockFlag=unlockFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
if(modifyTime==null){
|
||||
return new Date();
|
||||
}else{
|
||||
return this.modifyTime;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
if(creationTime == null){
|
||||
return new Date();
|
||||
}else{
|
||||
return this.creationTime;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getOperUser() {
|
||||
return this.operUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOperUser(String operUser) {
|
||||
this.operUser = operUser;
|
||||
}
|
||||
|
||||
public String getExtInfo() {
|
||||
return extInfo;
|
||||
}
|
||||
|
||||
public void setExtInfo(String extInfo) {
|
||||
this.extInfo = extInfo;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getIsDefault() {
|
||||
return this.isDefault;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsDefault(Integer isDefault) {
|
||||
this.isDefault = isDefault;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getUseFlag() {
|
||||
return this.useFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUseFlag(Integer useFlag) {
|
||||
this.useFlag = useFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRoleType() {
|
||||
return this.roleType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRoleType(String roleType) {
|
||||
this.roleType = roleType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<MenuEO> getMenuEOList() {
|
||||
return menuEOList;
|
||||
}
|
||||
|
||||
public void setMenuEOList(List<MenuEO> menuEOList) {
|
||||
this.menuEOList = menuEOList;
|
||||
}
|
||||
|
||||
public List<String> getMenuEOIdList() {
|
||||
return menuEOIdList;
|
||||
}
|
||||
|
||||
public void setMenuEOIdList(List<String> menuEOIdList) {
|
||||
this.menuEOIdList = menuEOIdList;
|
||||
}
|
||||
|
||||
public RoleEO(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getOperUserName() {
|
||||
return operUserName;
|
||||
}
|
||||
|
||||
public void setOperUserName(String operUserName) {
|
||||
this.operUserName = operUserName;
|
||||
}
|
||||
|
||||
public void setOrgUseName(String orgUseName) {
|
||||
this.orgUseName =orgUseName;
|
||||
}
|
||||
|
||||
public String getOrgUseName(){
|
||||
return this.orgUseName;
|
||||
}
|
||||
|
||||
public void setDisableFlag(Integer disableFlag){
|
||||
this.disableFlag=disableFlag;
|
||||
}
|
||||
|
||||
public Integer getDisableFlag(){
|
||||
return this.disableFlag;
|
||||
}
|
||||
|
||||
public void setUnlockFlag(Integer unlockFlag){
|
||||
this.unlockFlag=unlockFlag;
|
||||
}
|
||||
|
||||
public Integer getUnlockFlag(){
|
||||
return this.unlockFlag;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,627 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_BUSS_STAND_PLAN SarBussStandPlanEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-11-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarBussStandPlanEO{
|
||||
|
||||
private String id;
|
||||
private String standCode;//标准编号
|
||||
private String replacedStandNum;//被代替标准编号
|
||||
private String planType;//计划类型
|
||||
private String planStatus;//计划状态
|
||||
private String cnName;//中文名称
|
||||
private String enName;//英文名称
|
||||
private String standSort;//标准类别
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date planStartTime;// 计划开始时间
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date planEndTime;// 计划结束时间
|
||||
private String compilersUser;//标准起草组组员
|
||||
private String standLevel;//标准密级
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date putTime;//发布时间
|
||||
private String compileUnit;//涉及的会签部门
|
||||
private String planSource;//标准制修订来源
|
||||
private String planReason;//制修订原因
|
||||
private String testWork;//验证工作
|
||||
private String planImpact;//项目影响
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
private Integer validFlag;
|
||||
private String planReasonFile;//标准制修订来源附件
|
||||
private String testWorkFile;//制修订原因附件
|
||||
private String planImpactFile;//验证工作附件
|
||||
|
||||
private List<AttFileEO> planReasonFileList;
|
||||
private List<AttFileEO> testWorkFileList;
|
||||
private List<AttFileEO> planImpactFileLis;
|
||||
//用来显示的
|
||||
private String standSortShow;
|
||||
private String compilersUserName;
|
||||
private String standLevelShow;
|
||||
private String compileUnitName;
|
||||
private String planSourceShow;
|
||||
private String type;
|
||||
//新加字段
|
||||
private String draftUser;//起草人
|
||||
private String draftingUnit;//起草单位
|
||||
private String draftUserName;
|
||||
private String draftingUnitName;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date actualEndTime;//实际结束时间
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>standCode -> stand_code</li>
|
||||
* <li>replacedStandNum -> replaced_stand_num</li>
|
||||
* <li>planType -> plan_type</li>
|
||||
* <li>cnName -> cn_name</li>
|
||||
* <li>enName -> en_name</li>
|
||||
* <li>standSort -> stand_sort</li>
|
||||
* <li>planStartTime -> plan_start_time</li>
|
||||
* <li>planEndTime -> plan_end_time</li>
|
||||
* <li>compilersUser -> compilers_user</li>
|
||||
* <li>standLevel -> stand_level</li>
|
||||
* <li>putTime -> put_time</li>
|
||||
* <li>compileUnit -> compile_unit</li>
|
||||
* <li>planSource -> plan_source</li>
|
||||
* <li>planReason -> plan_reason</li>
|
||||
* <li>testWork -> test_work</li>
|
||||
* <li>planImpact -> plan_impact</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>planReasonFile -> plan_reason_file</li>
|
||||
* <li>testWorkFile -> test_work_file</li>
|
||||
* <li>planImpactFile -> plan_impact_file</li>
|
||||
* <li>planStatus -> plan_status</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id":
|
||||
return "id";
|
||||
case "standCode":
|
||||
return "stand_code";
|
||||
case "replacedStandNum":
|
||||
return "replaced_stand_num";
|
||||
case "planType":
|
||||
return "plan_type";
|
||||
case "cnName":
|
||||
return "cn_name";
|
||||
case "enName":
|
||||
return "en_name";
|
||||
case "standSort":
|
||||
return "stand_sort";
|
||||
case "planStartTime":
|
||||
return "plan_start_time";
|
||||
case "planEndTime":
|
||||
return "plan_end_time";
|
||||
case "compilersUser":
|
||||
return "compilers_user";
|
||||
case "standLevel":
|
||||
return "stand_level";
|
||||
case "putTime":
|
||||
return "put_time";
|
||||
case "compileUnit":
|
||||
return "compile_unit";
|
||||
case "planSource":
|
||||
return "plan_source";
|
||||
case "planReason":
|
||||
return "plan_reason";
|
||||
case "testWork":
|
||||
return "test_work";
|
||||
case "planImpact":
|
||||
return "plan_impact";
|
||||
case "creationTime":
|
||||
return "creation_time";
|
||||
case "modifyTime":
|
||||
return "modify_time";
|
||||
case "validFlag":
|
||||
return "valid_flag";
|
||||
case "planReasonFile":
|
||||
return "plan_reason_file";
|
||||
case "testWorkFile":
|
||||
return "test_work_file";
|
||||
case "planImpactFile":
|
||||
return "plan_impact_file";
|
||||
case "planStatus":
|
||||
return "plan_status";
|
||||
case "draftUser":
|
||||
return "draft_user";
|
||||
case "draftingUnit":
|
||||
return "drafting_unit";
|
||||
case "actualEndTime":
|
||||
return "actual_end_time";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>stand_code -> standCode</li>
|
||||
* <li>replaced_stand_num -> replacedStandNum</li>
|
||||
* <li>plan_type -> planType</li>
|
||||
* <li>cn_name -> cnName</li>
|
||||
* <li>en_name -> enName</li>
|
||||
* <li>stand_sort -> standSort</li>
|
||||
* <li>plan_start_time -> planStartTime</li>
|
||||
* <li>plan_end_time -> planEndTime</li>
|
||||
* <li>compilers_user -> compilersUser</li>
|
||||
* <li>stand_level -> standLevel</li>
|
||||
* <li>put_time -> putTime</li>
|
||||
* <li>compile_unit -> compileUnit</li>
|
||||
* <li>plan_source -> planSource</li>
|
||||
* <li>plan_reason -> planReason</li>
|
||||
* <li>test_work -> testWork</li>
|
||||
* <li>plan_impact -> planImpact</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>plan_reason_file -> planReasonFile</li>
|
||||
* <li>test_work_file -> testWorkFile</li>
|
||||
* <li>plan_impact_file -> planImpactFile</li>
|
||||
* <li>plan_status -> planStatus</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id":
|
||||
return "id";
|
||||
case "stand_code":
|
||||
return "standCode";
|
||||
case "replaced_stand_num":
|
||||
return "replacedStandNum";
|
||||
case "plan_type":
|
||||
return "planType";
|
||||
case "cn_name":
|
||||
return "cnName";
|
||||
case "en_name":
|
||||
return "enName";
|
||||
case "stand_sort":
|
||||
return "standSort";
|
||||
case "plan_start_time":
|
||||
return "planStartTime";
|
||||
case "plan_end_time":
|
||||
return "planEndTime";
|
||||
case "compilers_user":
|
||||
return "compilersUser";
|
||||
case "stand_level":
|
||||
return "standLevel";
|
||||
case "put_time":
|
||||
return "putTime";
|
||||
case "compile_unit":
|
||||
return "compileUnit";
|
||||
case "plan_source":
|
||||
return "planSource";
|
||||
case "plan_reason":
|
||||
return "planReason";
|
||||
case "test_work":
|
||||
return "testWork";
|
||||
case "plan_impact":
|
||||
return "planImpact";
|
||||
case "creation_time":
|
||||
return "creationTime";
|
||||
case "modify_time":
|
||||
return "modifyTime";
|
||||
case "valid_flag":
|
||||
return "validFlag";
|
||||
case "plan_reason_file":
|
||||
return "planReasonFile";
|
||||
case "test_work_file":
|
||||
return "testWorkFile";
|
||||
case "plan_impact_file":
|
||||
return "planImpactFile";
|
||||
case "plan_status":
|
||||
return "planStatus";
|
||||
case "draft_user":
|
||||
return "draftUser";
|
||||
case "drafting_unit":
|
||||
return "draftingUnit";
|
||||
case "actual_end_time":
|
||||
return "actualEndTime";
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandCode() {
|
||||
return this.standCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandCode(String standCode) {
|
||||
this.standCode = standCode;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getReplacedStandNum() {
|
||||
return this.replacedStandNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setReplacedStandNum(String replacedStandNum) {
|
||||
this.replacedStandNum = replacedStandNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPlanType() {
|
||||
return this.planType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPlanType(String planType) {
|
||||
this.planType = planType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCnName() {
|
||||
return this.cnName;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setCnName(String cnName) {
|
||||
this.cnName = cnName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getEnName() {
|
||||
return this.enName;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setEnName(String enName) {
|
||||
this.enName = enName;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public String getStandSort() {
|
||||
return this.standSort;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setStandSort(String standSort) {
|
||||
this.standSort = standSort;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public Date getPlanStartTime() {
|
||||
return this.planStartTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setPlanStartTime(Date planStartTime) {
|
||||
this.planStartTime = planStartTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public Date getPlanEndTime() {
|
||||
return this.planEndTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setPlanEndTime(Date planEndTime) {
|
||||
this.planEndTime = planEndTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public String getCompilersUser() {
|
||||
return this.compilersUser;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setCompilersUser(String compilersUser) {
|
||||
this.compilersUser = compilersUser;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public String getStandLevel() {
|
||||
return this.standLevel;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setStandLevel(String standLevel) {
|
||||
this.standLevel = standLevel;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getPutTime() {
|
||||
return this.putTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPutTime(Date putTime) {
|
||||
this.putTime = putTime;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public String getCompileUnit() {
|
||||
return this.compileUnit;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setCompileUnit(String compileUnit) {
|
||||
this.compileUnit = compileUnit;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public String getPlanSource() {
|
||||
return this.planSource;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
**/
|
||||
public void setPlanSource(String planSource) {
|
||||
this.planSource = planSource;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPlanReason() {
|
||||
return this.planReason;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPlanReason(String planReason) {
|
||||
this.planReason = planReason;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getTestWork() {
|
||||
return this.testWork;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setTestWork(String testWork) {
|
||||
this.testWork = testWork;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPlanImpact() {
|
||||
return this.planImpact;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPlanImpact(String planImpact) {
|
||||
this.planImpact = planImpact;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPlanReasonFile() {
|
||||
return this.planReasonFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPlanReasonFile(String planReasonFile) {
|
||||
this.planReasonFile = planReasonFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getTestWorkFile() {
|
||||
return this.testWorkFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setTestWorkFile(String testWorkFile) {
|
||||
this.testWorkFile = testWorkFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPlanImpactFile() {
|
||||
return this.planImpactFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPlanImpactFile(String planImpactFile) {
|
||||
this.planImpactFile = planImpactFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPlanStatus() {
|
||||
return this.planStatus;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPlanStatus(String planStatus) {
|
||||
this.planStatus = planStatus;
|
||||
}
|
||||
|
||||
public String getStandSortShow() {
|
||||
return standSortShow;
|
||||
}
|
||||
|
||||
public void setStandSortShow(String standSortShow) {
|
||||
this.standSortShow = standSortShow;
|
||||
}
|
||||
|
||||
public String getCompilersUserName() {
|
||||
return compilersUserName;
|
||||
}
|
||||
|
||||
public void setCompilersUserName(String compilersUserName) {
|
||||
this.compilersUserName = compilersUserName;
|
||||
}
|
||||
|
||||
public String getStandLevelShow() {
|
||||
return standLevelShow;
|
||||
}
|
||||
|
||||
public void setStandLevelShow(String standLevelShow) {
|
||||
this.standLevelShow = standLevelShow;
|
||||
}
|
||||
|
||||
public String getCompileUnitName() {
|
||||
return compileUnitName;
|
||||
}
|
||||
|
||||
public void setCompileUnitName(String compileUnitName) {
|
||||
this.compileUnitName = compileUnitName;
|
||||
}
|
||||
|
||||
public List<AttFileEO> getPlanReasonFileList() {
|
||||
return planReasonFileList;
|
||||
}
|
||||
|
||||
public void setPlanReasonFileList(List<AttFileEO> planReasonFileList) {
|
||||
this.planReasonFileList = planReasonFileList;
|
||||
}
|
||||
|
||||
public List<AttFileEO> getTestWorkFileList() {
|
||||
return testWorkFileList;
|
||||
}
|
||||
|
||||
public void setTestWorkFileList(List<AttFileEO> testWorkFileList) {
|
||||
this.testWorkFileList = testWorkFileList;
|
||||
}
|
||||
|
||||
public List<AttFileEO> getPlanImpactFileLis() {
|
||||
return planImpactFileLis;
|
||||
}
|
||||
|
||||
public void setPlanImpactFileLis(List<AttFileEO> planImpactFileLis) {
|
||||
this.planImpactFileLis = planImpactFileLis;
|
||||
}
|
||||
|
||||
public String getPlanSourceShow() {
|
||||
return planSourceShow;
|
||||
}
|
||||
|
||||
public void setPlanSourceShow(String planSourceShow) {
|
||||
this.planSourceShow = planSourceShow;
|
||||
}
|
||||
|
||||
public String getDraftUser() {
|
||||
return draftUser;
|
||||
}
|
||||
|
||||
public void setDraftUser(String draftUser) {
|
||||
this.draftUser = draftUser;
|
||||
}
|
||||
|
||||
public String getDraftingUnit() {
|
||||
return draftingUnit;
|
||||
}
|
||||
|
||||
public void setDraftingUnit(String draftingUnit) {
|
||||
this.draftingUnit = draftingUnit;
|
||||
}
|
||||
|
||||
public Date getActualEndTime() {
|
||||
return actualEndTime;
|
||||
}
|
||||
|
||||
public void setActualEndTime(Date actualEndTime) {
|
||||
this.actualEndTime = actualEndTime;
|
||||
}
|
||||
|
||||
public String getDraftUserName() {
|
||||
return draftUserName;
|
||||
}
|
||||
|
||||
public void setDraftUserName(String draftUserName) {
|
||||
this.draftUserName = draftUserName;
|
||||
}
|
||||
|
||||
public String getDraftingUnitName() {
|
||||
return draftingUnitName;
|
||||
}
|
||||
|
||||
public void setDraftingUnitName(String draftingUnitName) {
|
||||
this.draftingUnitName = draftingUnitName;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
+468
@@ -0,0 +1,468 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_BUSSIONESS_STAND SarBussionessStandEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarBussionessStandEO{
|
||||
|
||||
private String modifyTime;
|
||||
private String creationTime;
|
||||
private Integer validFlag;
|
||||
private String standStatus;
|
||||
private String replacedStandNum;
|
||||
private String replaceStandNum;
|
||||
private String firstPutTime;
|
||||
private String putTime;
|
||||
private String issueTime;
|
||||
private String standEnName;
|
||||
private String standName;
|
||||
//标准编码
|
||||
private String standCode;
|
||||
private String id;
|
||||
//目录ID 非标准信息表中的字段
|
||||
private String menuId;
|
||||
private String menuParentId;
|
||||
private String standStatusShow; // 标准状态下拉框 --单选
|
||||
private String standNatrueShow;
|
||||
private String standSortShow;
|
||||
private String applyCountryShow;
|
||||
private List<AttFileVo> standFileList = new ArrayList<AttFileVo>();
|
||||
private List<AttFileVo> opinionFilesList = new ArrayList<AttFileVo>();
|
||||
private List<AttFileVo> relevanceFileList = new ArrayList<AttFileVo>();
|
||||
private String collectId;
|
||||
//文件的类型
|
||||
private String standFileClassify;
|
||||
//文件的下载id
|
||||
private String attId;
|
||||
//记录是否修改了替代文件号
|
||||
private int upReplaceNumFlag;
|
||||
//记录是否修改了文件号
|
||||
private int upNumFlag;
|
||||
// 数据库新加的字段
|
||||
private String applyCountry;//适用国家/地区
|
||||
private String standNature;//标准性质
|
||||
private String standSort;//标准类别
|
||||
private String remark;//备注
|
||||
private String standYear;//备注
|
||||
private Map<String, Object> attrInfoMap = new LinkedHashMap<>(); //属性表字段与值
|
||||
private String sarStandAttrEOStr; //新增修改时属性表信息
|
||||
private String fileIds; //全部文件ID
|
||||
private List<SarStandAttrDetailsEO> attrInfoList = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>putUser -> put_user</li>
|
||||
* <li>citationUser -> citation_user</li>
|
||||
* <li>responsibleUnit -> responsible_unit</li>
|
||||
* <li>standFile -> stand_file</li>
|
||||
* <li>tags -> tags</li>
|
||||
* <li>standStatus -> stand_status</li>
|
||||
* <li>replacedStandNum -> replaced_stand_num</li>
|
||||
* <li>replaceStandNum -> replace_stand_num</li>
|
||||
* <li>quoteStand -> quote_stand</li>
|
||||
* <li>firstPutTime -> first_put_time</li>
|
||||
* <li>putYear -> put_year</li>
|
||||
* <li>putTime -> put_time</li>
|
||||
* <li>issueTime -> issue_time</li>
|
||||
* <li>energyKind -> energy_kind</li>
|
||||
* <li>applyArctic -> apply_arctic</li>
|
||||
* <li>standEnName -> stand_en_name</li>
|
||||
* <li>standName -> stand_name</li>
|
||||
* <li>standCode -> stand_code</li>
|
||||
* <li>classifyCode -> classify_code</li>
|
||||
* <li>standSubclass -> stand_subclass</li>
|
||||
* <li>standGenera -> stand_genera</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null){ return null;}
|
||||
switch (fieldName) {
|
||||
case "modifyTime": return "modify_time";
|
||||
case "creationTime": return "creation_time";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "putUser": return "put_user";
|
||||
case "citationUser": return "citation_user";
|
||||
case "responsibleUnit": return "responsible_unit";
|
||||
case "standFile": return "stand_file";
|
||||
case "tags": return "tags";
|
||||
case "standStatus": return "stand_status";
|
||||
case "replacedStandNum": return "replaced_stand_num";
|
||||
case "replaceStandNum": return "replace_stand_num";
|
||||
case "quoteStand": return "quote_stand";
|
||||
case "firstPutTime": return "first_put_time";
|
||||
case "putYear": return "put_year";
|
||||
case "putTime": return "put_time";
|
||||
case "issueTime": return "issue_time";
|
||||
case "energyKind": return "energy_kind";
|
||||
case "applyArctic": return "apply_arctic";
|
||||
case "standEnName": return "stand_en_name";
|
||||
case "standName": return "stand_name";
|
||||
case "standCode": return "stand_code";
|
||||
case "classifyCode": return "classify_code";
|
||||
case "standSubclass": return "stand_subclass";
|
||||
case "standGenera": return "stand_genera";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>put_user -> putUser</li>
|
||||
* <li>citation_user -> citationUser</li>
|
||||
* <li>responsible_unit -> responsibleUnit</li>
|
||||
* <li>stand_file -> standFile</li>
|
||||
* <li>tags -> tags</li>
|
||||
* <li>stand_status -> standStatus</li>
|
||||
* <li>replaced_stand_num -> replacedStandNum</li>
|
||||
* <li>replace_stand_num -> replaceStandNum</li>
|
||||
* <li>quote_stand -> quoteStand</li>
|
||||
* <li>first_put_time -> firstPutTime</li>
|
||||
* <li>put_year -> putYear</li>
|
||||
* <li>put_time -> putTime</li>
|
||||
* <li>issue_time -> issueTime</li>
|
||||
* <li>energy_kind -> energyKind</li>
|
||||
* <li>apply_arctic -> applyArctic</li>
|
||||
* <li>stand_en_name -> standEnName</li>
|
||||
* <li>stand_name -> standName</li>
|
||||
* <li>stand_code -> standCode</li>
|
||||
* <li>classify_code -> classifyCode</li>
|
||||
* <li>stand_subclass -> standSubclass</li>
|
||||
* <li>stand_genera -> standGenera</li>
|
||||
* <li>id -> id</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null){ return null;}
|
||||
switch (columnName) {
|
||||
case "modify_time": return "modifyTime";
|
||||
case "creation_time": return "creationTime";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "put_user": return "putUser";
|
||||
case "citation_user": return "citationUser";
|
||||
case "responsible_unit": return "responsibleUnit";
|
||||
case "stand_file": return "standFile";
|
||||
case "tags": return "tags";
|
||||
case "stand_status": return "standStatus";
|
||||
case "replaced_stand_num": return "replacedStandNum";
|
||||
case "replace_stand_num": return "replaceStandNum";
|
||||
case "quote_stand": return "quoteStand";
|
||||
case "first_put_time": return "firstPutTime";
|
||||
case "put_year": return "putYear";
|
||||
case "put_time": return "putTime";
|
||||
case "issue_time": return "issueTime";
|
||||
case "energy_kind": return "energyKind";
|
||||
case "apply_arctic": return "applyArctic";
|
||||
case "stand_en_name": return "standEnName";
|
||||
case "stand_name": return "standName";
|
||||
case "stand_code": return "standCode";
|
||||
case "classify_code": return "classifyCode";
|
||||
case "stand_subclass": return "standSubclass";
|
||||
case "stand_genera": return "standGenera";
|
||||
case "id": return "id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getPutTime() {
|
||||
return putTime;
|
||||
}
|
||||
|
||||
public void setPutTime(String putTime) {
|
||||
this.putTime = putTime;
|
||||
}
|
||||
|
||||
public Integer getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getStandStatus() {
|
||||
return standStatus;
|
||||
}
|
||||
|
||||
public void setStandStatus(String standStatus) {
|
||||
this.standStatus = standStatus;
|
||||
}
|
||||
|
||||
public String getReplacedStandNum() {
|
||||
return replacedStandNum;
|
||||
}
|
||||
|
||||
public void setReplacedStandNum(String replacedStandNum) {
|
||||
this.replacedStandNum = replacedStandNum;
|
||||
}
|
||||
|
||||
public String getReplaceStandNum() {
|
||||
return replaceStandNum;
|
||||
}
|
||||
|
||||
public void setReplaceStandNum(String replaceStandNum) {
|
||||
this.replaceStandNum = replaceStandNum;
|
||||
}
|
||||
|
||||
public String getFirstPutTime() {
|
||||
return firstPutTime;
|
||||
}
|
||||
|
||||
public void setFirstPutTime(String firstPutTime) {
|
||||
this.firstPutTime = firstPutTime;
|
||||
}
|
||||
|
||||
public String getIssueTime() {
|
||||
return issueTime;
|
||||
}
|
||||
|
||||
public void setIssueTime(String issueTime) {
|
||||
this.issueTime = issueTime;
|
||||
}
|
||||
|
||||
public String getStandEnName() {
|
||||
return standEnName;
|
||||
}
|
||||
|
||||
public void setStandEnName(String standEnName) {
|
||||
this.standEnName = standEnName;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getStandCode() {
|
||||
return standCode;
|
||||
}
|
||||
|
||||
public void setStandCode(String standCode) {
|
||||
this.standCode = standCode;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getMenuParentId() {
|
||||
return menuParentId;
|
||||
}
|
||||
|
||||
public void setMenuParentId(String menuParentId) {
|
||||
this.menuParentId = menuParentId;
|
||||
}
|
||||
|
||||
public String getStandStatusShow() {
|
||||
return standStatusShow;
|
||||
}
|
||||
|
||||
public void setStandStatusShow(String standStatusShow) {
|
||||
this.standStatusShow = standStatusShow;
|
||||
}
|
||||
|
||||
public String getStandNatrueShow() {
|
||||
return standNatrueShow;
|
||||
}
|
||||
|
||||
public void setStandNatrueShow(String standNatrueShow) {
|
||||
this.standNatrueShow = standNatrueShow;
|
||||
}
|
||||
|
||||
public String getStandSortShow() {
|
||||
return standSortShow;
|
||||
}
|
||||
|
||||
public void setStandSortShow(String standSortShow) {
|
||||
this.standSortShow = standSortShow;
|
||||
}
|
||||
|
||||
public String getApplyCountryShow() {
|
||||
return applyCountryShow;
|
||||
}
|
||||
|
||||
public void setApplyCountryShow(String applyCountryShow) {
|
||||
this.applyCountryShow = applyCountryShow;
|
||||
}
|
||||
|
||||
public List<AttFileVo> getStandFileList() {
|
||||
return standFileList;
|
||||
}
|
||||
|
||||
public void setStandFileList(List<AttFileVo> standFileList) {
|
||||
this.standFileList = standFileList;
|
||||
}
|
||||
|
||||
public List<AttFileVo> getOpinionFilesList() {
|
||||
return opinionFilesList;
|
||||
}
|
||||
|
||||
public void setOpinionFilesList(List<AttFileVo> opinionFilesList) {
|
||||
this.opinionFilesList = opinionFilesList;
|
||||
}
|
||||
|
||||
public List<AttFileVo> getRelevanceFileList() {
|
||||
return relevanceFileList;
|
||||
}
|
||||
|
||||
public void setRelevanceFileList(List<AttFileVo> relevanceFileList) {
|
||||
this.relevanceFileList = relevanceFileList;
|
||||
}
|
||||
|
||||
public String getCollectId() {
|
||||
return collectId;
|
||||
}
|
||||
|
||||
public void setCollectId(String collectId) {
|
||||
this.collectId = collectId;
|
||||
}
|
||||
|
||||
public String getStandFileClassify() {
|
||||
return standFileClassify;
|
||||
}
|
||||
|
||||
public void setStandFileClassify(String standFileClassify) {
|
||||
this.standFileClassify = standFileClassify;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
return attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
public int getUpReplaceNumFlag() {
|
||||
return upReplaceNumFlag;
|
||||
}
|
||||
|
||||
public void setUpReplaceNumFlag(int upReplaceNumFlag) {
|
||||
this.upReplaceNumFlag = upReplaceNumFlag;
|
||||
}
|
||||
|
||||
public int getUpNumFlag() {
|
||||
return upNumFlag;
|
||||
}
|
||||
|
||||
public void setUpNumFlag(int upNumFlag) {
|
||||
this.upNumFlag = upNumFlag;
|
||||
}
|
||||
|
||||
public String getApplyCountry() {
|
||||
return applyCountry;
|
||||
}
|
||||
|
||||
public void setApplyCountry(String applyCountry) {
|
||||
this.applyCountry = applyCountry;
|
||||
}
|
||||
|
||||
public String getStandNature() {
|
||||
return standNature;
|
||||
}
|
||||
|
||||
public void setStandNature(String standNature) {
|
||||
this.standNature = standNature;
|
||||
}
|
||||
|
||||
public String getStandSort() {
|
||||
return standSort;
|
||||
}
|
||||
|
||||
public void setStandSort(String standSort) {
|
||||
this.standSort = standSort;
|
||||
}
|
||||
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getStandYear() {
|
||||
return standYear;
|
||||
}
|
||||
|
||||
public void setStandYear(String standYear) {
|
||||
this.standYear = standYear;
|
||||
}
|
||||
|
||||
public Map<String, Object> getAttrInfoMap() {
|
||||
return attrInfoMap;
|
||||
}
|
||||
|
||||
public void setAttrInfoMap(Map<String, Object> attrInfoMap) {
|
||||
this.attrInfoMap = attrInfoMap;
|
||||
}
|
||||
|
||||
public String getSarStandAttrEOStr() {
|
||||
return sarStandAttrEOStr;
|
||||
}
|
||||
|
||||
public void setSarStandAttrEOStr(String sarStandAttrEOStr) {
|
||||
this.sarStandAttrEOStr = sarStandAttrEOStr;
|
||||
}
|
||||
|
||||
public String getFileIds() {
|
||||
return fileIds;
|
||||
}
|
||||
|
||||
public void setFileIds(String fileIds) {
|
||||
this.fileIds = fileIds;
|
||||
}
|
||||
|
||||
public List<SarStandAttrDetailsEO> getAttrInfoList() {
|
||||
return attrInfoList;
|
||||
}
|
||||
|
||||
public void setAttrInfoList(List<SarStandAttrDetailsEO> attrInfoList) {
|
||||
this.attrInfoList = attrInfoList;
|
||||
}
|
||||
}
|
||||
+60
@@ -0,0 +1,60 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author 刘凌枫羽
|
||||
* @Date 2020/12/10 15:07
|
||||
* @Version 1.0
|
||||
*/
|
||||
public class SarBussionessStandStateEO{
|
||||
|
||||
private String id;
|
||||
private String standName;
|
||||
private String standCode;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date reviewTime;
|
||||
private Integer reviewResults;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getStandName() {
|
||||
return standName;
|
||||
}
|
||||
|
||||
public void setStandName(String standName) {
|
||||
this.standName = standName;
|
||||
}
|
||||
|
||||
public String getStandCode() {
|
||||
return standCode;
|
||||
}
|
||||
|
||||
public void setStandCode(String standCode) {
|
||||
this.standCode = standCode;
|
||||
}
|
||||
|
||||
public Date getReviewTime() {
|
||||
return reviewTime;
|
||||
}
|
||||
|
||||
public void setReviewTime(Date reviewTime) {
|
||||
this.reviewTime = reviewTime;
|
||||
}
|
||||
|
||||
public Integer getReviewResults() {
|
||||
return reviewResults;
|
||||
}
|
||||
|
||||
public void setReviewResults(Integer reviewResults) {
|
||||
this.reviewResults = reviewResults;
|
||||
}
|
||||
}
|
||||
+285
@@ -0,0 +1,285 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STAND_ATTR_DETAILS SarStandAttrDetailsEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-08-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarStandAttrDetailsEO{
|
||||
|
||||
private String id;
|
||||
private String attrField;
|
||||
private String attrName;
|
||||
private String attrType;
|
||||
private Long orderNum;
|
||||
private String isEdit;
|
||||
private String creationUser;
|
||||
private String validFlag;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date creationTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date modifyTime;
|
||||
private Long attrLen;
|
||||
private String attrValue;
|
||||
private String isMust;
|
||||
private String isShowImp;
|
||||
private String showRegionId;
|
||||
private String selVal;
|
||||
private String sarType;
|
||||
private String isSearch;
|
||||
private String isWarn;
|
||||
private String areaName;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>attrField -> attr_field</li>
|
||||
* <li>attrName -> attr_name</li>
|
||||
* <li>attrType -> attr_type</li>
|
||||
* <li>orderNum -> order_num</li>
|
||||
* <li>isEdit -> is_edit</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>attrLen -> attr_len</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "attrField": return "attr_field";
|
||||
case "attrName": return "attr_name";
|
||||
case "attrType": return "attr_type";
|
||||
case "orderNum": return "order_num";
|
||||
case "isEdit": return "is_edit";
|
||||
case "creationUser": return "creation_user";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "attrLen": return "attr_len";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>attr_field -> attrField</li>
|
||||
* <li>attr_name -> attrName</li>
|
||||
* <li>attr_type -> attrType</li>
|
||||
* <li>order_num -> orderNum</li>
|
||||
* <li>is_edit -> isEdit</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>attr_len -> attrLen</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "attr_field": return "attrField";
|
||||
case "attr_name": return "attrName";
|
||||
case "attr_type": return "attrType";
|
||||
case "order_num": return "orderNum";
|
||||
case "is_edit": return "isEdit";
|
||||
case "creation_user": return "creationUser";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "attr_len": return "attrLen";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttrField() {
|
||||
return this.attrField;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttrField(String attrField) {
|
||||
this.attrField = attrField;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttrName() {
|
||||
return this.attrName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttrName(String attrName) {
|
||||
this.attrName = attrName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttrType() {
|
||||
return this.attrType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttrType(String attrType) {
|
||||
this.attrType = attrType;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Long getOrderNum() {
|
||||
return this.orderNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setOrderNum(Long orderNum) {
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getIsEdit() {
|
||||
return this.isEdit;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setIsEdit(String isEdit) {
|
||||
this.isEdit = isEdit;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Long getAttrLen() {
|
||||
return this.attrLen;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttrLen(Long attrLen) {
|
||||
this.attrLen = attrLen;
|
||||
}
|
||||
|
||||
public String getAttrValue() {
|
||||
return attrValue;
|
||||
}
|
||||
|
||||
public void setAttrValue(String attrValue) {
|
||||
this.attrValue = attrValue;
|
||||
}
|
||||
|
||||
public String getIsMust() {
|
||||
return isMust;
|
||||
}
|
||||
|
||||
public void setIsMust(String isMust) {
|
||||
this.isMust = isMust;
|
||||
}
|
||||
|
||||
public String getIsShowImp() {
|
||||
return isShowImp;
|
||||
}
|
||||
|
||||
public void setIsShowImp(String isShowImp) {
|
||||
this.isShowImp = isShowImp;
|
||||
}
|
||||
|
||||
public String getShowRegionId() {
|
||||
return showRegionId;
|
||||
}
|
||||
|
||||
public void setShowRegionId(String showRegionId) {
|
||||
this.showRegionId = showRegionId;
|
||||
}
|
||||
|
||||
public String getSelVal() {
|
||||
return selVal;
|
||||
}
|
||||
|
||||
public void setSelVal(String selVal) {
|
||||
this.selVal = selVal;
|
||||
}
|
||||
|
||||
public String getSarType() {
|
||||
return sarType;
|
||||
}
|
||||
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
public String getIsSearch() {
|
||||
return isSearch;
|
||||
}
|
||||
|
||||
public void setIsSearch(String isSearch) {
|
||||
this.isSearch = isSearch;
|
||||
}
|
||||
|
||||
public String getIsWarn() {
|
||||
return isWarn;
|
||||
}
|
||||
|
||||
public void setIsWarn(String isWarn) {
|
||||
this.isWarn = isWarn;
|
||||
}
|
||||
|
||||
public String getAreaName() {
|
||||
return areaName;
|
||||
}
|
||||
|
||||
public void setAreaName(String areaName) {
|
||||
this.areaName = areaName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,329 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class UserVO {
|
||||
|
||||
private Integer validFlag;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
private String operUser;
|
||||
private String extInfo;
|
||||
private String workNum;
|
||||
private String email;
|
||||
private String userSource;
|
||||
private String uname;
|
||||
private String password;
|
||||
private String account;
|
||||
private String usid;
|
||||
// 扩展字段
|
||||
private List<String> rolesstr = new ArrayList<>();
|
||||
private List<RoleEO> roles = new ArrayList<>();
|
||||
private List<String> orgsstr = new ArrayList<>();
|
||||
private List<OrgEO> orgs = new ArrayList<>();
|
||||
private List<String> roleIdList = new ArrayList<>();
|
||||
private List<String> roleNameList = new ArrayList<>();
|
||||
private String orgId;
|
||||
private String orgName;
|
||||
private String rname;
|
||||
private String roleId;
|
||||
private String roleName;
|
||||
private Integer disableFlag;
|
||||
private Integer unlockFlag;
|
||||
private String userType;
|
||||
private String mobilePhone;
|
||||
private String officePhone;
|
||||
private String address;
|
||||
private String faxAddress;
|
||||
private String userInfoId;
|
||||
private List<RoleEO> roleEOList = new ArrayList<>();
|
||||
private List<String> orgIdList = new ArrayList<>();
|
||||
private List<OrgEO> orgEOList = new ArrayList<>();
|
||||
private String orgType;
|
||||
|
||||
public String getUserInfoId() {
|
||||
return userInfoId;
|
||||
}
|
||||
|
||||
public void setUserInfoId(String userInfoId) {
|
||||
this.userInfoId = userInfoId;
|
||||
}
|
||||
|
||||
public Integer getValidFlag() {
|
||||
return validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public Date getModifyTime() {
|
||||
return modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public Date getCreationTime() {
|
||||
return creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getOperUser() {
|
||||
return operUser;
|
||||
}
|
||||
|
||||
public void setOperUser(String operUser) {
|
||||
this.operUser = operUser;
|
||||
}
|
||||
|
||||
public String getExtInfo() {
|
||||
return extInfo;
|
||||
}
|
||||
|
||||
public void setExtInfo(String extInfo) {
|
||||
this.extInfo = extInfo;
|
||||
}
|
||||
|
||||
public String getWorkNum() {
|
||||
return workNum;
|
||||
}
|
||||
|
||||
public void setWorkNum(String workNum) {
|
||||
this.workNum = workNum;
|
||||
}
|
||||
|
||||
public List<String> getRolesstr() {
|
||||
return rolesstr;
|
||||
}
|
||||
|
||||
public void setRolesstr(List<String> rolesstr) {
|
||||
this.rolesstr = rolesstr;
|
||||
}
|
||||
|
||||
public List<String> getOrgsstr() {
|
||||
return orgsstr;
|
||||
}
|
||||
|
||||
public void setOrgsstr(List<String> orgsstr) {
|
||||
this.orgsstr = orgsstr;
|
||||
}
|
||||
|
||||
public List<OrgEO> getOrgs() {
|
||||
return orgs;
|
||||
}
|
||||
|
||||
public void setOrgs(List<OrgEO> orgs) {
|
||||
this.orgs = orgs;
|
||||
}
|
||||
|
||||
public String getRname() {
|
||||
return rname;
|
||||
}
|
||||
|
||||
public void setRname(String rname) {
|
||||
this.rname = rname;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
public String getUserSource() {
|
||||
return userSource;
|
||||
}
|
||||
|
||||
public void setUserSource(String userSource) {
|
||||
this.userSource = userSource;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getUsid() {
|
||||
return usid;
|
||||
}
|
||||
|
||||
public void setUsid(String usid) {
|
||||
this.usid = usid;
|
||||
}
|
||||
|
||||
public List<RoleEO> getRoles() {
|
||||
return roles;
|
||||
}
|
||||
|
||||
public void setRoles(List<RoleEO> roles) {
|
||||
this.roles = roles;
|
||||
if(roles!=null &&roles.size()>0){
|
||||
List<String> roleNameList=new ArrayList<String>();
|
||||
for(RoleEO role:roles){
|
||||
roleNameList.add(role.getName());
|
||||
}
|
||||
this.rolesstr=roleNameList;
|
||||
}
|
||||
}
|
||||
|
||||
public void setDisableFlag(Integer disableFlag){
|
||||
this.disableFlag=disableFlag;
|
||||
}
|
||||
|
||||
public Integer getDisableFlag(){
|
||||
return this.disableFlag;
|
||||
}
|
||||
|
||||
public void setUnlockFlag(Integer unlockFlag){
|
||||
this.unlockFlag=unlockFlag;
|
||||
}
|
||||
|
||||
public Integer getUnlockFlag(){
|
||||
return this.unlockFlag;
|
||||
}
|
||||
|
||||
public void setUserType(String userType){
|
||||
this.userType=userType;
|
||||
}
|
||||
|
||||
public String getUserType(){
|
||||
return this.userType;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId){
|
||||
this.orgId=orgId;
|
||||
}
|
||||
|
||||
public String getOrgId(){
|
||||
return this.orgId;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName){
|
||||
this.orgName=orgName;
|
||||
}
|
||||
|
||||
public String getOrgName(){
|
||||
return this.orgName;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId){ this.roleId=roleId;}
|
||||
|
||||
public String getRoleId(){return this.roleId;}
|
||||
|
||||
public String getRoleName(){return this.roleName;}
|
||||
|
||||
public void setRoleName(String roleName){this.roleName=roleName;}
|
||||
|
||||
public String getMobilePhone() {
|
||||
return mobilePhone;
|
||||
}
|
||||
|
||||
public void setMobilePhone(String mobilePhone) {
|
||||
this.mobilePhone = mobilePhone;
|
||||
}
|
||||
|
||||
public String getOfficePhone() {
|
||||
return officePhone;
|
||||
}
|
||||
|
||||
public void setOfficePhone(String officePhone) {
|
||||
this.officePhone = officePhone;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getFaxAddress() {
|
||||
return faxAddress;
|
||||
}
|
||||
|
||||
public void setFaxAddress(String faxAddress) {
|
||||
this.faxAddress = faxAddress;
|
||||
}
|
||||
|
||||
public List<String> getRoleIdList() {
|
||||
return roleIdList;
|
||||
}
|
||||
|
||||
public void setRoleIdList(List<String> roleIdList) {
|
||||
this.roleIdList = roleIdList;
|
||||
}
|
||||
|
||||
public List<String> getRoleNameList() {
|
||||
return roleNameList;
|
||||
}
|
||||
|
||||
public void setRoleNameList(List<String> roleNameList) {
|
||||
this.roleNameList = roleNameList;
|
||||
}
|
||||
|
||||
|
||||
public String getOrgType() {
|
||||
return orgType;
|
||||
}
|
||||
|
||||
public void setOrgType(String orgType) {
|
||||
this.orgType = orgType;
|
||||
}
|
||||
|
||||
public List<RoleEO> getRoleEOList() {
|
||||
return roleEOList;
|
||||
}
|
||||
|
||||
public void setRoleEOList(List<RoleEO> roleEOList) {
|
||||
this.roleEOList = roleEOList;
|
||||
}
|
||||
|
||||
public List<String> getOrgIdList() {
|
||||
return orgIdList;
|
||||
}
|
||||
|
||||
public void setOrgIdList(List<String> orgIdList) {
|
||||
this.orgIdList = orgIdList;
|
||||
}
|
||||
|
||||
public List<OrgEO> getOrgEOList() {
|
||||
return orgEOList;
|
||||
}
|
||||
|
||||
public void setOrgEOList(List<OrgEO> orgEOList) {
|
||||
this.orgEOList = orgEOList;
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.mapper;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessEntrust;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-12-11
|
||||
*/
|
||||
public interface BusProcessEntrustMapper extends BaseMapper<BusProcessEntrust> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.mapper;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcess;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-05
|
||||
*/
|
||||
public interface BusProcessMapper extends BaseMapper<BusProcess> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.mapper;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-11
|
||||
*/
|
||||
public interface BusProcessNameMapper extends BaseMapper<BusProcessName> {
|
||||
|
||||
//查询符合要求的 name 信息
|
||||
List<BusProcessName> findBusProcessNameForEnd(String taskId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.mapper;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessNew;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-10
|
||||
*/
|
||||
public interface BusProcessNewMapper extends BaseMapper<BusProcessNew> {
|
||||
|
||||
/**
|
||||
* 根据taskIds查询未完成的任务数据
|
||||
* @param taskIds
|
||||
* @return
|
||||
*/
|
||||
List<BusProcessNew> findNoExecuteBusProcessNew(@Param("taskIds")List<String> taskIds);
|
||||
|
||||
List<BusProcessNew> findNoExecuteBusProcessNewForEnd(@Param("taskIds")List<String> taskIds);
|
||||
// String queryTaskName(@Param("id")String id);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.Datas;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
public interface DatasMapper extends BaseMapper<Datas> {
|
||||
|
||||
List<Map<String, Object>> selectOverTimeUndoPids(@Param(Constants.WRAPPER) Wrapper<Datas> queryWrapper);
|
||||
|
||||
List<Map<String, Object>> selectCreateTimeList(String dataFormat, @Param(Constants.WRAPPER) Wrapper<Datas> queryWrapper);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.HiDatas;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-23
|
||||
*/
|
||||
public interface HiDatasMapper extends BaseMapper<HiDatas> {
|
||||
|
||||
void deleteHiDatas(String processInstanceId);
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessEntrust;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-12-11
|
||||
*/
|
||||
public interface IBusProcessEntrustService extends IService<BusProcessEntrust> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-11
|
||||
*/
|
||||
public interface IBusProcessNameService extends IService<BusProcessName> {
|
||||
|
||||
List<BusProcessName> findBusProcessNameForEnd(String prcNum);
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessNew;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.activiti.engine.task.Task;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-10
|
||||
*/
|
||||
public interface IBusProcessNewService extends IService<BusProcessNew> {
|
||||
|
||||
List<BusProcessNew> findtodotask(String userId, String pId);
|
||||
|
||||
List<Task> QueryTask(String userId, String pId);
|
||||
|
||||
/**
|
||||
* 根据taskId集合查下任务
|
||||
* @param taskIdList
|
||||
* @return
|
||||
*/
|
||||
List<BusProcessNew> findTaskDetailByTaskIds(List<String> taskIdList);
|
||||
|
||||
List<BusProcessNew> findNoExecuteBusProcessNewForEnd(List<String> taskIdList);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcess;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-05
|
||||
*/
|
||||
public interface IBusProcessService extends IService<BusProcess> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.Datas;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
public interface IDatasService extends IService<Datas> {
|
||||
|
||||
void deleteOverTimeTasks();
|
||||
|
||||
void rollBack(Datas datas);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.HiDatas;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-23
|
||||
*/
|
||||
public interface IHiDatasService extends IService<HiDatas> {
|
||||
|
||||
HiDatas createHistoryActivitTablesDatas(String objectId, String pId);
|
||||
|
||||
void rollBack(HiDatas hiDatas, String pId);
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service.impl;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessEntrust;
|
||||
import com.ydw.bat.wkflow.business_main.datas.mapper.BusProcessEntrustMapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessEntrustService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-12-11
|
||||
*/
|
||||
@Service
|
||||
public class BusProcessEntrustServiceImpl extends ServiceImpl<BusProcessEntrustMapper, BusProcessEntrust> implements IBusProcessEntrustService {
|
||||
|
||||
}
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service.impl;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessName;
|
||||
import com.ydw.bat.wkflow.business_main.datas.mapper.BusProcessNameMapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNameService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-11
|
||||
*/
|
||||
@Service
|
||||
public class BusProcessNameServiceImpl extends ServiceImpl<BusProcessNameMapper, BusProcessName> implements IBusProcessNameService {
|
||||
|
||||
@Autowired
|
||||
BusProcessNameMapper busProcessNameMapper;
|
||||
|
||||
public List<BusProcessName> findBusProcessNameForEnd(String taskId){
|
||||
//该接口中,CREATE_USER_NAME 存放 BusProcessNew 中的 userId
|
||||
return busProcessNameMapper.findBusProcessNameForEnd(taskId);
|
||||
}
|
||||
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcessNew;
|
||||
import com.ydw.bat.wkflow.business_main.datas.mapper.BusProcessNewMapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessNewService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.activiti.engine.TaskService;
|
||||
import org.activiti.engine.task.Task;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import java.util.TreeSet;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-10
|
||||
*/
|
||||
@Service
|
||||
public class BusProcessNewServiceImpl extends ServiceImpl<BusProcessNewMapper, BusProcessNew> implements IBusProcessNewService {
|
||||
|
||||
private TaskService taskService;
|
||||
|
||||
/*
|
||||
* @Author yuzhong
|
||||
* @Description
|
||||
* @Date 2020/11/11
|
||||
* 返回待办信息详情
|
||||
*/
|
||||
@Override
|
||||
public List<BusProcessNew> findtodotask(String userId,String pId) {
|
||||
QueryWrapper<BusProcessNew> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("FINISH_FLAG","0");
|
||||
queryWrapper.eq("P_ID",pId);
|
||||
queryWrapper.eq("USER_ID",userId);
|
||||
List<BusProcessNew> taskList = this.list(queryWrapper);
|
||||
return taskList;
|
||||
}
|
||||
|
||||
/*
|
||||
* @Author yuzhong
|
||||
* @Description
|
||||
* @Date 2020/11/11
|
||||
* 返回待办任务列表
|
||||
*/
|
||||
public List<Task> QueryTask(String userId,String pId){
|
||||
List<Task> list = taskService.createTaskQuery().processInstanceId(pId).taskCandidateUser(userId).list();
|
||||
//list根据人员去重
|
||||
list = list.stream().collect( Collectors.collectingAndThen(Collectors.toCollection(() ->
|
||||
new TreeSet<>(Comparator.comparing(o -> o.getAssignee()))),
|
||||
ArrayList::new));
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BusProcessNew> findTaskDetailByTaskIds(List<String> taskIdList) {
|
||||
return baseMapper.findNoExecuteBusProcessNew(taskIdList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<BusProcessNew> findNoExecuteBusProcessNewForEnd(List<String> taskIdList) {
|
||||
return baseMapper.findNoExecuteBusProcessNewForEnd(taskIdList);
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service.impl;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.BusProcess;
|
||||
import com.ydw.bat.wkflow.business_main.datas.mapper.BusProcessMapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IBusProcessService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-11-05
|
||||
*/
|
||||
@Service
|
||||
public class BusProcessServiceImpl extends ServiceImpl<BusProcessMapper, BusProcess> implements IBusProcessService {
|
||||
|
||||
}
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service.impl;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.activiti.engine.HistoryService;
|
||||
import org.activiti.engine.RuntimeService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.Datas;
|
||||
import com.ydw.bat.wkflow.business_main.datas.mapper.DatasMapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IDatasService;
|
||||
import com.ydw.bat.wkflow.util.date.DateTools;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Service
|
||||
public class DatasServiceImpl extends ServiceImpl<DatasMapper, Datas> implements IDatasService {
|
||||
|
||||
@Autowired
|
||||
private DatasMapper datasMapper;
|
||||
@Autowired
|
||||
private RuntimeService runtimeService;
|
||||
@Autowired
|
||||
private HistoryService historyService;
|
||||
|
||||
@Transactional
|
||||
@Override
|
||||
public void deleteOverTimeTasks() {
|
||||
// TODO 删除超过24小时的未做任务
|
||||
// 查找超时未处理的流程实例
|
||||
QueryWrapper<Datas> queryWrapper = new QueryWrapper<>();
|
||||
Timestamp now = new Timestamp(System.currentTimeMillis());
|
||||
queryWrapper.isNull("ahp.END_TIME_");
|
||||
queryWrapper.between("ahp.START_TIME_", DateTools.addDay(now, -2), DateTools.addDay(now, -1));
|
||||
queryWrapper.isNull("td.OBJECT_ID");
|
||||
List<Map<String, Object>> list = datasMapper.selectOverTimeUndoPids(queryWrapper);
|
||||
for (Map<String, Object> map : list) {
|
||||
String processInstanceId = map.get("processInstanceId") + "";
|
||||
// 删除流程
|
||||
runtimeService.deleteProcessInstance(processInstanceId, "用户撤销");
|
||||
// 删除历史审批
|
||||
historyService.deleteHistoricProcessInstance(processInstanceId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Transactional
|
||||
@Override
|
||||
public void rollBack(Datas datas) {
|
||||
// TODO 删除任务记录数据
|
||||
QueryWrapper<Datas> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("ACTI_PROC_INST_ID", datas.getActiProcInstId());
|
||||
queryWrapper.ge("CREATE_TIME", datas.getCreateTime());
|
||||
this.remove(queryWrapper);
|
||||
}
|
||||
|
||||
}
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
package com.ydw.bat.wkflow.business_main.datas.service.impl;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
import com.tmsps.fk.common.util.JsonUtil;
|
||||
import com.ydw.bat.wkflow.business_main.datas.entity.HiDatas;
|
||||
import com.ydw.bat.wkflow.business_main.datas.mapper.HiDatasMapper;
|
||||
import com.ydw.bat.wkflow.business_main.datas.service.IHiDatasService;
|
||||
import com.ydw.bat.wkflow.util.date.DateTools;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-23
|
||||
*/
|
||||
@Service
|
||||
public class HiDatasServiceImpl extends ServiceImpl<HiDatasMapper, HiDatas> implements IHiDatasService {
|
||||
|
||||
@Autowired
|
||||
private JdbcTemplate jt;
|
||||
|
||||
@Override
|
||||
public HiDatas createHistoryActivitTablesDatas(String objectId, String pId) {
|
||||
// TODO 生成工作流当前相关数据记录
|
||||
HiDatas hiDatas = new HiDatas();
|
||||
hiDatas.setDatasId(objectId);
|
||||
// 保存工作流表结构的数据
|
||||
Field[] fields = HiDatas.class.getDeclaredFields();
|
||||
for (Field field : fields) {
|
||||
String name = field.getName();
|
||||
if ("objectId".equals(name) || "isDeleted".equals(name) || "createTime".equals(name)
|
||||
|| "datasId".equals(name) || "serialVersionUID".equals(name) || "actRuJob".equals(name)) {
|
||||
continue;
|
||||
}
|
||||
field.setAccessible(true);
|
||||
TableField tableField = field.getAnnotation(TableField.class);
|
||||
String actTable = tableField.value();
|
||||
List<Map<String, Object>> list = this.selectFieldDatas(actTable, pId);
|
||||
String value = "";
|
||||
if (!list.isEmpty()) {
|
||||
value = JsonUtil.toJson(list);
|
||||
}
|
||||
try {
|
||||
field.set(hiDatas, value);
|
||||
} catch (IllegalArgumentException e) {
|
||||
e.printStackTrace();
|
||||
} catch (IllegalAccessException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
this.save(hiDatas);
|
||||
return hiDatas;
|
||||
}
|
||||
|
||||
private List<Map<String, Object>> selectFieldDatas(String actTable, String pId) {
|
||||
// TODO 获取工作流数据
|
||||
String sql = "select * from @table where PROC_INST_ID_=? ";
|
||||
sql = sql.replace("@table", actTable);
|
||||
List<Map<String, Object>> list = jt.queryForList(sql, pId);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Transactional
|
||||
@Override
|
||||
public void rollBack(HiDatas hiDatas, String pId) {
|
||||
// TODO 回退
|
||||
if (ChkUtil.isNull(hiDatas)) {
|
||||
return;
|
||||
}
|
||||
// 删除工作流原有数据
|
||||
this.deleteFieldDatas("ACT_HI_ACTINST", pId);
|
||||
this.deleteFieldDatas("ACT_HI_ATTACHMENT", pId);
|
||||
this.deleteFieldDatas("ACT_HI_COMMENT", pId);
|
||||
this.deleteFieldDatas("ACT_HI_DETAIL", pId);
|
||||
this.deleteFieldDatas("ACT_HI_IDENTITYLINK", pId);
|
||||
this.deleteFieldDatas("ACT_HI_PROCINST", pId);
|
||||
this.deleteFieldDatas("ACT_HI_TASKINST", pId);
|
||||
this.deleteFieldDatas("ACT_HI_VARINST", pId);
|
||||
this.deleteFieldDatas("ACT_RU_EVENT_SUBSCR", pId);
|
||||
this.deleteFieldDatas("ACT_RU_IDENTITYLINK", pId);
|
||||
this.deleteFieldDatas("ACT_RU_TASK", pId);
|
||||
this.deleteFieldDatas("ACT_RU_VARIABLE", pId);
|
||||
this.deleteFieldDatas("ACT_RU_EXECUTION", pId);
|
||||
// 创建目标任务的相关数据
|
||||
this.createFieldDatas("ACT_RU_EXECUTION", hiDatas.getActRuExecution());
|
||||
this.createFieldDatas("ACT_RU_VARIABLE", hiDatas.getActRuVariable());
|
||||
this.createFieldDatas("ACT_RU_TASK", hiDatas.getActRuTask());
|
||||
this.createFieldDatas("ACT_RU_IDENTITYLINK", hiDatas.getActRuIdentitylink());
|
||||
this.createFieldDatas("ACT_RU_EVENT_SUBSCR", hiDatas.getActRuEventSubscr());
|
||||
this.createFieldDatas("ACT_HI_VARINST", hiDatas.getActHiVarinst());
|
||||
this.createFieldDatas("ACT_HI_TASKINST", hiDatas.getActHiTaskinst());
|
||||
this.createFieldDatas("ACT_HI_PROCINST", hiDatas.getActHiProcinst());
|
||||
this.createFieldDatas("ACT_HI_IDENTITYLINK", hiDatas.getActHiIdentitylink());
|
||||
this.createFieldDatas("ACT_HI_DETAIL", hiDatas.getActHiDetail());
|
||||
this.createFieldDatas("ACT_HI_COMMENT", hiDatas.getActHiComment());
|
||||
this.createFieldDatas("ACT_HI_ATTACHMENT", hiDatas.getActHiAttachment());
|
||||
this.createFieldDatas("ACT_HI_ACTINST", hiDatas.getActHiActinst());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Transactional
|
||||
private void createFieldDatas(String table, String data) {
|
||||
// TODO 还原工作流相关数据
|
||||
if (ChkUtil.isNull(data)) {
|
||||
return;
|
||||
}
|
||||
JSONArray array = JSONArray.parseArray(data);
|
||||
for (Object object : array) {
|
||||
String sql = "insert into @table ";
|
||||
String fields = "(";
|
||||
String values = "(";
|
||||
Map<String, Object> map = (Map<String, Object>) object;
|
||||
for (String key : map.keySet()) {
|
||||
fields += "," + key;
|
||||
Object val = map.get(key);
|
||||
if (key.indexOf("TIME_") > 0) {
|
||||
val = DateTools.formatDateTime(new Date(Long.parseLong(val + "")));
|
||||
}
|
||||
if(ChkUtil.isNull(val)) {
|
||||
val = "";
|
||||
}
|
||||
values += ",'" + val + "'";
|
||||
}
|
||||
fields += ")";
|
||||
values += ")";
|
||||
fields = fields.replaceFirst(",", "");
|
||||
values = values.replaceFirst(",", "");
|
||||
sql = sql + fields + " values " + values;
|
||||
sql = sql.replace("@table", table);
|
||||
jt.execute(sql);
|
||||
}
|
||||
}
|
||||
|
||||
@Transactional
|
||||
private void deleteFieldDatas(String actTable, String pId) {
|
||||
// TODO 删除工作流相关数据
|
||||
if("ACT_RU_EXECUTION".equals(actTable)) {
|
||||
String sql = "delete from @table where PROC_INST_ID_=? and IS_ACTIVE_=1 ";
|
||||
sql = sql.replace("@table", actTable);
|
||||
jt.update(sql, pId);
|
||||
|
||||
sql = sql.replace("IS_ACTIVE_=1", "IS_ACTIVE_=0");
|
||||
jt.update(sql, pId);
|
||||
|
||||
return;
|
||||
}
|
||||
String sql = "delete from @table where PROC_INST_ID_=? ";
|
||||
sql = sql.replace("@table", actTable);
|
||||
jt.update(sql, pId);
|
||||
}
|
||||
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate.controller;
|
||||
|
||||
import java.util.Map;
|
||||
import javax.validation.Valid;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.tmsps.fk.common.wrapper.WrapMapper;
|
||||
import com.tmsps.fk.common.wrapper.Wrapper;
|
||||
import com.ydw.bat.wkflow.business_main.delegate.dto.DelegateQuery;
|
||||
import com.ydw.bat.wkflow.business_main.delegate.entity.Delegate;
|
||||
import com.ydw.bat.wkflow.business_main.delegate.service.IDelegateService;
|
||||
import com.ydw.bat.wkflow.business_main.delegate_business.entity.DelegateBusiness;
|
||||
import com.ydw.bat.wkflow.business_main.delegate_business.service.IDelegateBusinessService;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Api(description = "委托管理")
|
||||
@RestController
|
||||
@RequestMapping("/delegate/delegate")
|
||||
public class DelegateController {
|
||||
|
||||
@Autowired
|
||||
private IDelegateService iDelegateService;
|
||||
|
||||
@Autowired
|
||||
private IDelegateBusinessService iDelegateBusinessService;
|
||||
|
||||
@ApiOperation(value = "委托管理列表")
|
||||
@PostMapping("/list")
|
||||
public Wrapper<IPage<Delegate>> list(@RequestBody DelegateQuery<Delegate> delegateQuery) {
|
||||
IPage<Delegate> list = iDelegateService.page(delegateQuery, delegateQuery.makeQueryWrapper());
|
||||
|
||||
return WrapMapper.ok(list);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "添加委托")
|
||||
@PostMapping("/add")
|
||||
public Wrapper<String> add(@ApiParam @Valid @RequestBody Delegate delegate) {
|
||||
iDelegateService.save(delegate);
|
||||
|
||||
JSONArray array = JSON.parseArray(delegate.getBusiness());
|
||||
for (int i = 0; i < array.size(); i++) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Object> map = (Map<String, Object>) array.get(i);
|
||||
String id = map.get("id").toString();
|
||||
String name = map.get("name").toString();
|
||||
DelegateBusiness db = new DelegateBusiness();
|
||||
db.setBusinessKey(id);
|
||||
db.setBusinessName(name);
|
||||
db.setDelegateId(delegate.getObjectId());
|
||||
iDelegateBusinessService.save(db);
|
||||
}
|
||||
|
||||
return WrapMapper.ok("保存成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除委托")
|
||||
@ApiImplicitParam(name = "objectId", value = "主键id")
|
||||
@GetMapping("/delete")
|
||||
public Wrapper<String> delete(String objectId) {
|
||||
iDelegateService.removeById(objectId);
|
||||
return WrapMapper.ok("删除成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "编辑获取委托")
|
||||
@ApiImplicitParam(name = "objectId", value = "主键id")
|
||||
@GetMapping("/edit_form")
|
||||
public Wrapper<Delegate> editForm(String objectId) {
|
||||
Delegate opFunc = iDelegateService.getById(objectId);
|
||||
return WrapMapper.ok(opFunc);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "编辑委托")
|
||||
@PostMapping("/edit")
|
||||
public Wrapper<String> edit(@Valid @RequestBody Delegate delegate) {
|
||||
Delegate delegateDb = iDelegateService.getById(delegate.getObjectId());
|
||||
delegateDb.setBusiness(delegate.getBusiness());
|
||||
delegateDb.setEnd(delegate.getEnd());
|
||||
delegateDb.setStart(delegate.getStart());
|
||||
delegateDb.setReason(delegate.getReason());
|
||||
delegateDb.setUserdName(delegate.getUserdName());
|
||||
delegateDb.setUserName(delegate.getUserName());
|
||||
delegateDb.setStatuz(delegate.getStatuz());
|
||||
delegateDb.setTitle(delegate.getTitle());
|
||||
delegateDb.setUser(delegate.getUser());
|
||||
delegateDb.setUserd(delegate.getUserd());
|
||||
iDelegateService.saveOrUpdate(delegateDb);
|
||||
|
||||
QueryWrapper<DelegateBusiness> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("DELEGATE_ID", delegate.getObjectId());
|
||||
iDelegateBusinessService.remove(queryWrapper);
|
||||
JSONArray array = JSON.parseArray(delegate.getBusiness());
|
||||
for (int i = 0; i < array.size(); i++) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Map<String, Object> map = (Map<String, Object>) array.get(i);
|
||||
String id = map.get("id").toString();
|
||||
String name = map.get("name").toString();
|
||||
DelegateBusiness db = new DelegateBusiness();
|
||||
db.setBusinessKey(id);
|
||||
db.setBusinessName(name);
|
||||
db.setDelegateId(delegate.getObjectId());
|
||||
iDelegateBusinessService.save(db);
|
||||
}
|
||||
|
||||
return WrapMapper.ok("保存成功");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate.dto;
|
||||
|
||||
import com.tmsps.fk.common.base.dto.BaseVueQuery;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "DelegateQuery对象", description = "")
|
||||
public class DelegateQuery<T> extends BaseVueQuery<T> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "委托业务")
|
||||
private String business;
|
||||
@ApiModelProperty(value = "委托事项")
|
||||
private String title;
|
||||
@ApiModelProperty(value = "委托人")
|
||||
private String user;
|
||||
@ApiModelProperty(value = "被委托人")
|
||||
private String userd;
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
private long start;
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
private long end;
|
||||
@ApiModelProperty(value = "委托状态 : 启用 or 停用")
|
||||
private String statuz;
|
||||
@ApiModelProperty(value = "委托原因")
|
||||
private String reason;
|
||||
|
||||
public Wrapper<T> makeQueryWrapper() {
|
||||
|
||||
QueryWrapper<T> queryWrapper = new QueryWrapper<>();
|
||||
if (ChkUtil.isNotNull(business)) {
|
||||
queryWrapper.like("BUSINESS", business);
|
||||
}
|
||||
if (ChkUtil.isNotNull(title)) {
|
||||
queryWrapper.like("TITLE", title);
|
||||
}
|
||||
if (ChkUtil.isNotNull(user)) {
|
||||
queryWrapper.like("USER_NAME", user);
|
||||
}
|
||||
if (ChkUtil.isNotNull(userd)) {
|
||||
queryWrapper.like("USERD_NAME", userd);
|
||||
}
|
||||
if (ChkUtil.isNotNull(start)&&start!=0) {
|
||||
queryWrapper.ge("START", start);
|
||||
}
|
||||
if (ChkUtil.isNotNull(end)&&end!=0) {
|
||||
queryWrapper.le("END", end);
|
||||
}
|
||||
if (ChkUtil.isNotNull(statuz)) {
|
||||
queryWrapper.like("STATUZ", statuz);
|
||||
}
|
||||
if (ChkUtil.isNotNull(reason)) {
|
||||
queryWrapper.like("REASON", reason);
|
||||
}
|
||||
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("t_delegate")
|
||||
@ApiModel(value = "Delegate对象", description = "")
|
||||
public class Delegate implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@TableId(value = "OBJECT_ID", type = IdType.UUID)
|
||||
private String objectId;
|
||||
|
||||
@ApiModelProperty(value = "是否被删除(0:否;1:是)")
|
||||
@TableLogic(value = "0", delval = "1")
|
||||
@TableField("IS_DELETED")
|
||||
private int isDeleted;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATE_TIME")
|
||||
private Date createTime = new Date(System.currentTimeMillis());
|
||||
|
||||
@ApiModelProperty(value = "委托事项")
|
||||
@TableField("TITLE")
|
||||
private String title;
|
||||
|
||||
@ApiModelProperty(value = "委托业务")
|
||||
@TableField("BUSINESS")
|
||||
private String business;
|
||||
|
||||
@ApiModelProperty(value = "开始时间")
|
||||
@TableField("START")
|
||||
private long start;
|
||||
|
||||
@ApiModelProperty(value = "结束时间")
|
||||
@TableField("END")
|
||||
private long end;
|
||||
|
||||
@ApiModelProperty(value = "委托原因")
|
||||
@TableField("REASON")
|
||||
private String reason;
|
||||
|
||||
@ApiModelProperty(value = "委托状态 : 启用 or 停用")
|
||||
@TableField("STATUZ")
|
||||
private String statuz;
|
||||
|
||||
@ApiModelProperty(value = "委托人id")
|
||||
@TableField("USER")
|
||||
private String user;
|
||||
|
||||
@ApiModelProperty(value = "委托人")
|
||||
@TableField("USER_NAME")
|
||||
private String userName;
|
||||
|
||||
@ApiModelProperty(value = "被委托人id")
|
||||
@TableField("USERD")
|
||||
private String userd;
|
||||
|
||||
@ApiModelProperty(value = "被委托人")
|
||||
@TableField("USERD_NAME")
|
||||
private String userdName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate.mapper;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.delegate.entity.Delegate;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
public interface DelegateMapper extends BaseMapper<Delegate> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.delegate.entity.Delegate;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
public interface IDelegateService extends IService<Delegate> {
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate.service.impl;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.delegate.entity.Delegate;
|
||||
import com.ydw.bat.wkflow.business_main.delegate.mapper.DelegateMapper;
|
||||
import com.ydw.bat.wkflow.business_main.delegate.service.IDelegateService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-10
|
||||
*/
|
||||
@Service
|
||||
public class DelegateServiceImpl extends ServiceImpl<DelegateMapper, Delegate> implements IDelegateService {
|
||||
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate_business.controller;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-13
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/delegate_business/delegate-business")
|
||||
public class DelegateBusinessController {
|
||||
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate_business.dto;
|
||||
|
||||
import com.tmsps.fk.common.base.dto.BaseVueQuery;
|
||||
import com.tmsps.fk.common.util.ChkUtil;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "DelegateBusinessQuery对象", description = "")
|
||||
public class DelegateBusinessQuery<T> extends BaseVueQuery<T> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "委托ID")
|
||||
private String delegate_id;
|
||||
|
||||
public Wrapper<T> makeQueryWrapper() {
|
||||
QueryWrapper<T> queryWrapper = new QueryWrapper<>();
|
||||
if (ChkUtil.isNotNull(delegate_id)) {
|
||||
queryWrapper.eq("DELEGATE_ID", delegate_id);
|
||||
}
|
||||
|
||||
return queryWrapper;
|
||||
}
|
||||
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate_business.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-13
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Accessors(chain = true)
|
||||
@TableName("t_delegate_business")
|
||||
@ApiModel(value = "DelegateBusiness对象", description = "")
|
||||
public class DelegateBusiness implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@TableId(value = "OBJECT_ID", type = IdType.UUID)
|
||||
private String objectId;
|
||||
|
||||
@ApiModelProperty(value = "是否被删除(0:否;1:是)")
|
||||
@TableLogic(value = "0", delval = "1")
|
||||
@TableField("IS_DELETED")
|
||||
private int isDeleted;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@TableField("CREATE_TIME")
|
||||
private Date createTime = new Date(System.currentTimeMillis());
|
||||
|
||||
@ApiModelProperty(value = "委托业务key")
|
||||
@TableField("BUSINESS_KEY")
|
||||
private String businessKey;
|
||||
|
||||
@ApiModelProperty(value = "委托ID")
|
||||
@TableField("DELEGATE_ID")
|
||||
private String delegateId;
|
||||
|
||||
@ApiModelProperty(value = "委托业务")
|
||||
@TableField("BUSINESS_NAME")
|
||||
private String businessName;
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate_business.mapper;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.delegate_business.entity.DelegateBusiness;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-13
|
||||
*/
|
||||
public interface DelegateBusinessMapper extends BaseMapper<DelegateBusiness> {
|
||||
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package com.ydw.bat.wkflow.business_main.delegate_business.service;
|
||||
|
||||
import com.ydw.bat.wkflow.business_main.delegate_business.entity.DelegateBusiness;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author 冯晓东
|
||||
* @since 2020-03-13
|
||||
*/
|
||||
public interface IDelegateBusinessService extends IService<DelegateBusiness> {
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user