From f81581ea11ab6ca883ed2437376350e3f9b3922b Mon Sep 17 00:00:00 2001
From: jinqiming <45981669@qq.com>
Date: Mon, 23 Nov 2020 18:37:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BA=8F=E5=88=97=E5=8F=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../flowable/FlowModelerController.java | 15 +--
.../system/SysOaLeaveController.java | 29 +++-
.../system/SysSequenceController.java | 126 ++++++++++++++++++
snow-admin/src/main/resources/logback.xml | 1 +
.../resources/templates/flow/deployment.html | 21 ++-
.../src/main/resources/templates/main_v1.html | 89 +++----------
.../resources/templates/system/leave/add.html | 8 +-
.../templates/system/leave/edit.html | 8 +-
.../templates/system/leave/leave.html | 2 +-
.../templates/system/sequence/add.html | 37 +++++
.../templates/system/sequence/edit.html | 38 ++++++
.../templates/system/sequence/sequence.html | 94 +++++++++++++
.../common/constant/SequenceContants.java | 14 ++
.../snow/flowable/config/FlowableConfig.java | 8 +-
.../snow/flowable/domain/DeploymentVO.java | 3 +-
.../java/com/snow/flowable/domain/TaskVO.java | 64 +++++++++
.../flowable/service/FlowableService.java | 2 +-
.../service/impl/FlowableServiceImpl.java | 55 ++++++--
.../src/main/resources/generator.yml | 2 +-
.../main/resources/vm/java/controller.java.vm | 1 +
.../src/main/resources/vm/java/domain.java.vm | 5 +
.../main/resources/vm/java/sub-domain.java.vm | 3 +-
.../com/snow/system/domain/SysOaLeave.java | 14 ++
.../com/snow/system/domain/SysSequence.java | 65 +++++++++
.../snow/system/mapper/SysSequenceMapper.java | 68 ++++++++++
.../system/service/ISysSequenceService.java | 68 ++++++++++
.../service/impl/SysSequenceServiceImpl.java | 118 ++++++++++++++++
.../mapper/system/SysOaLeaveMapper.xml | 10 +-
.../mapper/system/SysSequenceMapper.xml | 69 ++++++++++
29 files changed, 920 insertions(+), 117 deletions(-)
create mode 100644 snow-admin/src/main/java/com/snow/web/controller/system/SysSequenceController.java
create mode 100644 snow-admin/src/main/resources/templates/system/sequence/add.html
create mode 100644 snow-admin/src/main/resources/templates/system/sequence/edit.html
create mode 100644 snow-admin/src/main/resources/templates/system/sequence/sequence.html
create mode 100644 snow-common/src/main/java/com/snow/common/constant/SequenceContants.java
create mode 100644 snow-flowable/src/main/java/com/snow/flowable/domain/TaskVO.java
create mode 100644 snow-system/src/main/java/com/snow/system/domain/SysSequence.java
create mode 100644 snow-system/src/main/java/com/snow/system/mapper/SysSequenceMapper.java
create mode 100644 snow-system/src/main/java/com/snow/system/service/ISysSequenceService.java
create mode 100644 snow-system/src/main/java/com/snow/system/service/impl/SysSequenceServiceImpl.java
create mode 100644 snow-system/src/main/resources/mapper/system/SysSequenceMapper.xml
diff --git a/snow-admin/src/main/java/com/snow/web/controller/flowable/FlowModelerController.java b/snow-admin/src/main/java/com/snow/web/controller/flowable/FlowModelerController.java
index f97a1a3..ebf6aee 100644
--- a/snow-admin/src/main/java/com/snow/web/controller/flowable/FlowModelerController.java
+++ b/snow-admin/src/main/java/com/snow/web/controller/flowable/FlowModelerController.java
@@ -1,28 +1,17 @@
package com.snow.web.controller.flowable;
-import com.alibaba.excel.EasyExcel;
-import com.alibaba.excel.ExcelReader;
-import com.alibaba.excel.read.metadata.ReadSheet;
import com.snow.common.annotation.Log;
import com.snow.common.core.controller.BaseController;
import com.snow.common.core.domain.AjaxResult;
import com.snow.common.core.page.TableDataInfo;
import com.snow.common.enums.BusinessType;
-import com.snow.common.utils.poi.ExcelUtil;
-import com.snow.flowable.domain.DeploymentDTO;
-import com.snow.flowable.domain.DeploymentQueryDTO;
-import com.snow.flowable.domain.DeploymentVO;
-import com.snow.flowable.domain.TaskBaseDTO;
+import com.snow.flowable.domain.*;
import com.snow.flowable.service.impl.FlowablePublishServiceImpl;
import com.snow.flowable.service.impl.FlowableServiceImpl;
-import com.snow.framework.excel.FinanceAlipayFlowListener;
import com.snow.framework.util.ShiroUtils;
import com.snow.system.domain.FinanceAlipayFlow;
-import com.snow.system.domain.FinanceAlipayFlowImport;
-import com.snow.system.domain.SysUser;
import com.snow.system.service.IFinanceAlipayFlowService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
-import org.flowable.engine.repository.DeploymentQuery;
import org.flowable.task.api.Task;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
@@ -95,7 +84,7 @@ public class FlowModelerController extends BaseController
{
startPage();
Long userId = ShiroUtils.getUserId();
- List
diff --git a/snow-admin/src/main/resources/templates/main_v1.html b/snow-admin/src/main/resources/templates/main_v1.html index e94736a..fb0c1ed 100644 --- a/snow-admin/src/main/resources/templates/main_v1.html +++ b/snow-admin/src/main/resources/templates/main_v1.html @@ -112,11 +112,11 @@ var incomeExpenditureTypeDatas = [[${@dict.getType('income_expenditure_type')}]]; var capitalStatusDatas = [[${@dict.getType('capital_status')}]]; var billTypeDatas = [[${@dict.getType('bill_type')}]]; - var prefix = ctx + "system/flow"; + var prefix = ctx + "modeler"; $(function() { var options = { - url: prefix + "/list", + url: prefix + "/findTasksByUserId", createUrl: prefix + "/add", updateUrl: prefix + "/edit/{id}", removeUrl: prefix + "/remove", @@ -128,89 +128,42 @@ checkbox: false }, { - field: 'id', - title: 'ID', + field: 'taskId', + title: 'taskId', visible: false }, { - field: 'tradeNo', - title: '交易号', - formatter: function(value, row, index) { - if(value==null||value==''){ - return ''; - }else { - return value.substr(0,8); - } - } + field: 'processDefinitionName', + title: '流程名称' + }, + { + field: 'taskName', + title: '任务名称' + }, + { + field: 'businessKey', + title: '单号' }, { - field: 'orderNo', - title: '商家订单号', - formatter: function(value, row, index) { - if(value==null||value==''){ - return ''; - }else { - return value.substr(0,8); - } - } + field: 'startUserId', + title: '流程发起人' }, { - field: 'goodsName', - title: '商品' + field: 'startTime', + title: '流程发起时间' }, { - field: 'tradePrice', - title: '交易金额' - }, - { - field: 'payTime', - title: '交易支付时间' - }, - { - field: 'billType', - title: '账单类型', - formatter: function(value, row, index) { - return $.table.selectDictLabel(billTypeDatas, value); - } - }, - { - field: 'tradeType', - title: '交易类型', - formatter: function(value, row, index) { - return $.table.selectDictLabel(tradeTypeDatas, value); - } - }, - { - field: 'counterparty', - title: '交易对方' + field: 'createDate', + title: '任务创建时间' }, - { - field: 'tradeStatus', - title: '交易状态', - formatter: function(value, row, index) { - return $.table.selectDictLabel(tradeStatusDatas, value); - } - }, - { - field: 'incomeExpenditureType', - title: '收支类型', - formatter: function(value, row, index) { - return $.table.selectDictLabel(incomeExpenditureTypeDatas, value); - } - }, - - { - field: 'belongUserName', - title: '所属人' - }, { title: '操作', align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('编辑 '); + actions.push('处理 '); actions.push('删除'); return actions.join(''); } diff --git a/snow-admin/src/main/resources/templates/system/leave/add.html b/snow-admin/src/main/resources/templates/system/leave/add.html index 9387a80..60b4c12 100644 --- a/snow-admin/src/main/resources/templates/system/leave/add.html +++ b/snow-admin/src/main/resources/templates/system/leave/add.html @@ -71,14 +71,14 @@ } $("input[name='startTime']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", + format: "yyyy-mm-dd hh:ii:ss", + minView: "hour", autoclose: true }); $("input[name='endTime']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", + format: "yyyy-mm-dd hh:ii:ss", + minView: "hour", autoclose: true }); diff --git a/snow-admin/src/main/resources/templates/system/leave/edit.html b/snow-admin/src/main/resources/templates/system/leave/edit.html index 530d341..fa715d7 100644 --- a/snow-admin/src/main/resources/templates/system/leave/edit.html +++ b/snow-admin/src/main/resources/templates/system/leave/edit.html @@ -87,14 +87,14 @@ } $("input[name='startTime']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", + format: "yyyy-mm-dd hh:ii:ss", + minView: "hour", autoclose: true }); $("input[name='endTime']").datetimepicker({ - format: "yyyy-mm-dd", - minView: "month", + format: "yyyy-mm-dd hh:ii:ss", + minView: "hour", autoclose: true }); diff --git a/snow-admin/src/main/resources/templates/system/leave/leave.html b/snow-admin/src/main/resources/templates/system/leave/leave.html index 1052320..91c09c2 100644 --- a/snow-admin/src/main/resources/templates/system/leave/leave.html +++ b/snow-admin/src/main/resources/templates/system/leave/leave.html @@ -137,7 +137,7 @@ align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('编辑 '); + actions.push('发起申请 '); actions.push('删除'); return actions.join(''); } diff --git a/snow-admin/src/main/resources/templates/system/sequence/add.html b/snow-admin/src/main/resources/templates/system/sequence/add.html new file mode 100644 index 0000000..209ed9e --- /dev/null +++ b/snow-admin/src/main/resources/templates/system/sequence/add.html @@ -0,0 +1,37 @@ + + +
+
+