SELECT
T.NAME_ AS NAME,
T.END_TIME_ AS BLTIME,
U.USERNAME AS USERNAME,
T.PROC_INST_ID_ AS procInstId,
C.MESSAGE_ AS clyj,
T.START_TIME_,
D.DeptName
FROM
ASSETSMETADATA.ACT_HI_TASKINST T
LEFT OUTER JOIN
(SELECT * FROM IPRIVILAGEMETADATA.USERS)U
ON T.ASSIGNEE_ = U.PKID
LEFT OUTER JOIN
(SELECT * FROM IPRIVILAGEMETADATA.DEPARTMENTS)D
ON D.Pkid = U.DeptId
LEFT OUTER JOIN
(SELECT * FROM ASSETSMETADATA.ACT_HI_COMMENT)C
ON T.ID_ = C.TASK_ID_
1.2 V_TASKLIST_WSB 未上报任务视图表
SELECT
cast('' as nvarchar2(255)) AS PROC_INST_ID_,
cast('' as nvarchar2(255)) AS END_ACT_ID_,
cast('未上报' as nvarchar2(255)) AS actName,
cast('未上报' as nvarchar2(255)) AS actName_T,
cast('' as nvarchar2(255)) AS assignee,
cast('' as nvarchar2(255)) AS candidate,
-1 AS taskstatus,
cast('' as DATE) AS bltime,
cast('' as nvarchar2(255)) AS prdekey,
cast('' as nvarchar2(255)) AS prdename FROM ASSETSMETADATA.ACT_ID_USER
1.3 V_TASKLIST_DB 待办任务视图表
SELECT
cast(A.PROC_INST_ID_ as nvarchar2(255)) PROC_INST_ID_,
cast('' as nvarchar2(255)) END_ACT_ID_,
cast(A.NAME_ as nvarchar2(255)) actName,
cast(A.NAME_ as nvarchar2(255)) actName_T,
cast(A.ASSIGNEE_ as nvarchar2(255)) assignee,
cast(R.UserID as nvarchar2(255)) candidate,
2 AS taskstatus,
cast('' as DATE) bltime,
cast(PRDE.KEY_ as nvarchar2(255)) prdekey,
cast(PRDE.NAME_ as nvarchar2(255)) prdename
FROM
ASSETSMETADATA.ACT_RU_TASK A
LEFT OUTER JOIN ASSETSMETADATA.ACT_RE_PROCDEF PRDE ON A.PROC_DEF_ID_ = PRDE.ID_
LEFT OUTER JOIN ASSETSMETADATA.ACT_RU_IDENTITYLINK IDEN ON IDEN.TASK_ID_ = A.ID_
LEFT OUTER JOIN IPRIVILAGEMETADATA.ROLEUSERREF R ON IDEN.GROUP_ID_ = R.ROLEID
1.4 V_TASKLIST_YB 已办任务视图表
SELECT DISTINCT
cast(H.PROC_INST_ID_ as nvarchar2(255)) PROC_INST_ID_,
cast(H.END_ACT_ID_ as nvarchar2(255)) END_ACT_ID_,
cast(A.NAME_ as nvarchar2(255)) actName,
cast(T.NAME_ as nvarchar2(255)) actName_T,
cast(T.ASSIGNEE_ as nvarchar2(255)) assignee,
cast('' as nvarchar2(255)) candidate,
2 AS taskstatus,
T.END_TIME_ bltime,
cast(PRDE.KEY_ as nvarchar2(255)) prdekey,
cast(PRDE.NAME_ as nvarchar2(255)) prdename
FROM
ASSETSMETADATA.ACT_HI_PROCINST H
LEFT OUTER JOIN ASSETSMETADATA.ACT_HI_TASKINST T ON H.PROC_INST_ID_ = T.PROC_INST_ID_
LEFT OUTER JOIN ASSETSMETADATA.ACT_RE_PROCDEF PRDE ON H .PROC_DEF_ID_ = PRDE.ID_
LEFT OUTER JOIN ASSETSMETADATA.ACT_RU_TASK A ON H.PROC_INST_ID_ = A.PROC_INST_ID_
WHERE
(H.END_TIME_ IS NULL)
AND (T.END_TIME_ IS NOT NULL)
1.5 V_TASKLIST_SYYB 所有已办任务视图表
SELECT DISTINCT
cast(H.PROC_INST_ID_ as nvarchar2(255)) PROC_INST_ID_,
cast(H.END_ACT_ID_ as nvarchar2(255)) END_ACT_ID_,
cast(NVL(A.NAME_,NVL2(H.END_ACT_ID_, '任务完结','撤销完结')) as nvarchar2(255)) AS actName,
cast(T.NAME_ as nvarchar2(255)) AS actName_T,
cast(T.ASSIGNEE_ as nvarchar2(255)) AS assignee,
cast('' as nvarchar2(255)) AS candidate,
2 AS taskstatus,
T.END_TIME_ AS bltime,
cast(PRDE.KEY_ as nvarchar2(255)) AS prdekey,
cast(PRDE.NAME_ as nvarchar2(255)) AS prdename
FROM
ASSETSMETADATA.ACT_HI_PROCINST H
LEFT OUTER JOIN ASSETSMETADATA.ACT_HI_TASKINST T ON H.PROC_INST_ID_ = T.PROC_INST_ID_
LEFT OUTER JOIN ASSETSMETADATA.ACT_RE_PROCDEF PRDE ON H.PROC_DEF_ID_ = PRDE.ID_
LEFT OUTER JOIN ASSETSMETADATA.ACT_RU_TASK A ON H.PROC_INST_ID_ = A.PROC_INST_ID_
WHERE
(T.END_TIME_ IS NOT NULL)
AND (
NOT EXISTS (
SELECT
PROC_INST_ID_
FROM
ASSETSMETADATA.V_TASKLIST_DB D
WHERE
(PROC_INST_ID_ = H.PROC_INST_ID_)
AND (candidate = T.ASSIGNEE_)
AND (actName_T = T.NAME_)
OR (
PROC_INST_ID_ = H.PROC_INST_ID_
)
AND (actName_T = T.NAME_)
AND (assignee = T.ASSIGNEE_)
OR (PROC_INST_ID_ = H.PROC_INST_ID_)
AND (candidate = T.ASSIGNEE_)
AND (actName LIKE '%上报%')
AND (T.NAME_ LIKE '%上报%')
OR (PROC_INST_ID_ = H.PROC_INST_ID_)
AND (assignee = T.ASSIGNEE_)
AND (actName LIKE '%上报%')
AND (T.NAME_ LIKE '%上报%')
)
)
ORDER BY
bltime DESC
1.5 V_TASKLIST_BJ 办结任务视图表
SELECT DISTINCT
cast(H.PROC_INST_ID_ as nvarchar2(255)) PROC_INST_ID_,
cast(H.END_ACT_ID_ as nvarchar2(255)) END_ACT_ID_,
cast('结束' as nvarchar2(255)) actName,
cast('结束' as nvarchar2(255)) actName_T,
cast(T.ASSIGNEE_ as nvarchar2(255)) assignee,
cast('' as nvarchar2(255)) candidate,
3 taskstatus,
T.END_TIME_ bltime,
cast(PRDE.KEY_ as nvarchar2(255)) prdekey,
cast(PRDE.NAME_ as nvarchar2(255)) prdename
FROM
ASSETSMETADATA.ACT_HI_PROCINST H
LEFT OUTER JOIN
(SELECT * FROM ASSETSMETADATA.ACT_HI_TASKINST)T
ON H.PROC_INST_ID_ = T.PROC_INST_ID_
LEFT OUTER JOIN
(SELECT * FROM ASSETSMETADATA.ACT_RE_PROCDEF)PRDE
ON H.PROC_DEF_ID_ = PRDE.ID_
WHERE
(H.END_TIME_ IS NOT NULL) AND (H.END_ACT_ID_ IS NOT NULL)
1.6 V_TASKLIST_CX 撤销任务视图表
SELECT DISTINCT
cast(H.PROC_INST_ID_ as nvarchar2(255)) PROC_INST_ID_,
cast(H.END_ACT_ID_ as nvarchar2(255)) END_ACT_ID_,
cast('结束' as nvarchar2(255)) AS actName,
cast('结束' as nvarchar2(255)) AS actName_T,
cast(T.ASSIGNEE_ as nvarchar2(255)) AS assignee,
cast('' as nvarchar2(255)) AS candidate,
5 AS taskstatus,
T.END_TIME_ AS bltime,
cast(PRDE.KEY_ as nvarchar2(255)) AS prdekey,
cast(PRDE.NAME_ as nvarchar2(255)) AS prdename
FROM
ASSETSMETADATA.ACT_HI_PROCINST H
LEFT OUTER JOIN ASSETSMETADATA.ACT_HI_TASKINST T ON H.PROC_INST_ID_ = T.PROC_INST_ID_
LEFT OUTER JOIN ASSETSMETADATA.ACT_RE_PROCDEF PRDE ON H.PROC_DEF_ID_ = PRDE.ID_
WHERE
(H.END_TIME_ IS NOT NULL)
AND (H.END_ACT_ID_ IS NULL)
2.后台代码逻辑
@Override
public ArrayList findActList(Integer rows,Integer page, HashMap paramMap) {
String sql = "";
if(paramMap.get("checkmessage")!=null&&StringUtils.isNotEmpty(paramMap.get("checkmessage").toString())){
// sql = "select * from ASSETSMETADATA.V_ACTLIST V where PROCINSTID= ? and clyj is not null and clyj <> '完成' ORDER BY START_TIME_";
sql = "select * from ASSETSMETADATA.V_ACTLIST V where PROCINSTID= ? and clyj is not null ORDER BY START_TIME_";
}else{
sql = "SELECT V.*" + " FROM ASSETSMETADATA.V_ACTLIST V WHERE procInstId = ? ORDER BY V.START_TIME_";
}
List
public class Power {
/**
*Q71-数值的整数次方
*实现函数double Power(double base, int exponent),求base的exponent次方。不需要考虑溢出。
*/
private static boolean InvalidInput=false;
public static void main(
实现两个WEB之间通过session 共享数据
查看tomcat 关于 HTTP Connector 中有个emptySessionPath 其解释如下:
If set to true, all paths for session cookies will be set to /. This can be useful for portlet specification impleme
Parses a raw HTTP request using yii\helpers\Json::decode()
To enable parsing for JSON requests you can configure yii\web\Request::$parsers using this class:
'request' =&g
Sort a linked list in O(n log n) time using constant space complexity.
====analysis=======
mergeSort for singly-linked list
====code======= /**
* Definition for sin
我使用的是ubuntu13.04系统,在安装nginx的时候遇到如下几个问题,然后找思路解决的,nginx 的下载与安装
wget http://nginx.org/download/nginx-1.0.11.tar.gz
tar zxvf nginx-1.0.11.tar.gz
./configure
make
make install
安装的时候出现
在系统开发过程中,总少不免要自己处理一些异常信息,然后将异常信息变成友好的提示返回到客户端的这样一个过程,之前都是new一个自定义的异常,当然这个所谓的自定义异常也是继承RuntimeException的,但这样往往会造成异常信息说明不一致的情况,所以就想到了用枚举来解决的办法。
1,先创建一个接口,里面有两个方法,一个是getCode, 一个是getMessage
public