Commit d643d0f1 authored by 雍欢's avatar 雍欢

Merge remote-tracking branch 'origin/develop' into workflow

parents 97ef469a c049c68c
This diff is collapsed.
...@@ -91,6 +91,19 @@ SET default_tablespace = ''; ...@@ -91,6 +91,19 @@ SET default_tablespace = '';
SET default_with_oids = false; SET default_with_oids = false;
create table tmp_sa_i18nproperties
( tmp_id varchar(32 ) not null,
batch_number varchar(64 ),
status varchar(64 ),
message varchar(512 ),
code varchar(128 ),
value1 varchar(512 ),
value2 varchar(512 ),
value3 varchar(512 ),
value4 varchar(512 ),
value5 varchar(512 )
)
-- --
-- Name: act_ge_bytearray; Type: TABLE; Schema: public; Owner: postgres -- Name: act_ge_bytearray; Type: TABLE; Schema: public; Owner: postgres
-- --
This diff is collapsed.
...@@ -378,6 +378,7 @@ public class ActApplicationImpl extends BaseApplication implements ActApplicatio ...@@ -378,6 +378,7 @@ public class ActApplicationImpl extends BaseApplication implements ActApplicatio
QueryModel queryModel = new QueryModel(); QueryModel queryModel = new QueryModel();
queryModel.setSql(this.getQuerySqlByName("queryProcUnitHandlersByBizId")); queryModel.setSql(this.getQuerySqlByName("queryProcUnitHandlersByBizId"));
queryModel.putParam("businessKey", bizId); queryModel.putParam("businessKey", bizId);
queryModel.setDefaultOrderBy("startTime");
Map<String, Object> result = this.sqlExecutorDao.executeQuery(queryModel); Map<String, Object> result = this.sqlExecutorDao.executeQuery(queryModel);
boolean supportManuscript = Boolean.valueOf(SystemCache.getParameter("wf.approval.supportManuscript", String.class)); boolean supportManuscript = Boolean.valueOf(SystemCache.getParameter("wf.approval.supportManuscript", String.class));
List<ProcUnitHandlerManuscript> procUnitHandlerManuscripts = null; List<ProcUnitHandlerManuscript> procUnitHandlerManuscripts = null;
...@@ -416,6 +417,7 @@ public class ActApplicationImpl extends BaseApplication implements ActApplicatio ...@@ -416,6 +417,7 @@ public class ActApplicationImpl extends BaseApplication implements ActApplicatio
QueryModel queryModel = new QueryModel(); QueryModel queryModel = new QueryModel();
queryModel.setSql(this.getQuerySqlByName("queryApprovalHistoryByProcInstId")); queryModel.setSql(this.getQuerySqlByName("queryApprovalHistoryByProcInstId"));
queryModel.putParam("procInstId", processInstanceId); queryModel.putParam("procInstId", processInstanceId);
queryModel.setDefaultOrderBy("id");
return this.sqlExecutorDao.executeQuery(queryModel); return this.sqlExecutorDao.executeQuery(queryModel);
} }
...@@ -542,6 +544,7 @@ public class ActApplicationImpl extends BaseApplication implements ActApplicatio ...@@ -542,6 +544,7 @@ public class ActApplicationImpl extends BaseApplication implements ActApplicatio
QueryModel queryModel = new QueryModel(); QueryModel queryModel = new QueryModel();
queryModel.setSql(this.getQuerySqlByName("queryHiTaskInstByBizCode")); queryModel.setSql(this.getQuerySqlByName("queryHiTaskInstByBizCode"));
queryModel.putParam("bizCode", bizCode); queryModel.putParam("bizCode", bizCode);
queryModel.setDefaultOrderBy("startTime");
return this.sqlExecutorDao.executeQuery(queryModel); return this.sqlExecutorDao.executeQuery(queryModel);
} }
...@@ -554,7 +557,7 @@ public class ActApplicationImpl extends BaseApplication implements ActApplicatio ...@@ -554,7 +557,7 @@ public class ActApplicationImpl extends BaseApplication implements ActApplicatio
queryModel.setSql(this.getQuerySqlByName("queryHiTaskInstByBizCodeAndKindId")); queryModel.setSql(this.getQuerySqlByName("queryHiTaskInstByBizCodeAndKindId"));
queryModel.putParam("bizCode", bizCode); queryModel.putParam("bizCode", bizCode);
queryModel.putParam("kindId", kindId); queryModel.putParam("kindId", kindId);
queryModel.setDefaultOrderBy("startTime");
return this.sqlExecutorDao.executeQuery(queryModel); return this.sqlExecutorDao.executeQuery(queryModel);
} }
......
...@@ -296,6 +296,7 @@ public class ProcUnitHandlerApplicationImpl extends BaseApplication implements P ...@@ -296,6 +296,7 @@ public class ProcUnitHandlerApplicationImpl extends BaseApplication implements P
QueryModel queryModel = new QueryModel(); QueryModel queryModel = new QueryModel();
queryModel.setSql(this.getQuerySqlByName("queryProcunitHandlersByBizCode")); queryModel.setSql(this.getQuerySqlByName("queryProcunitHandlersByBizCode"));
queryModel.putParam("bizCode", bizCode); queryModel.putParam("bizCode", bizCode);
queryModel.setDefaultOrderBy("procUnitId,groupId");
return this.sqlExecutorDao.executeQuery(queryModel); return this.sqlExecutorDao.executeQuery(queryModel);
} }
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
from act_hi_taskinst_extension te from act_hi_taskinst_extension te
left join wf_procunithandler uh on te.proc_unit_handler_id_ = uh.id left join wf_procunithandler uh on te.proc_unit_handler_id_ = uh.id
where te.proc_inst_id_ = :procInstId where te.proc_inst_id_ = :procInstId
order by te.id_ <!-- order by te.id_ -->
</sql> </sql>
<sql name="queryBackTasksByBizCode"> <sql name="queryBackTasksByBizCode">
select te.id_ id, te.task_def_key_ task_def_key, te.name_ as name, p.sub_proc_unit_name, select te.id_ id, te.task_def_key_ task_def_key, te.name_ as name, p.sub_proc_unit_name,
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
te.need_timing_ need_timing te.need_timing_ need_timing
from act_hi_taskinst_extension te from act_hi_taskinst_extension te
where te.business_code_ = :bizCode where te.business_code_ = :bizCode
order by te.start_time_ <!-- order by te.start_time_-->
</sql> </sql>
<sql name="queryHiTaskInstByBizCodeAndKindId"> <sql name="queryHiTaskInstByBizCodeAndKindId">
select te.id_ id, te.proc_def_id_ proc_def_id, te.task_def_key_ task_def_key, select te.id_ id, te.proc_def_id_ proc_def_id, te.task_def_key_ task_def_key,
...@@ -346,7 +346,7 @@ ...@@ -346,7 +346,7 @@
from act_hi_taskinst_extension te from act_hi_taskinst_extension te
where te.business_code_ = :bizCode where te.business_code_ = :bizCode
and te.kind_id_ = :kindId and te.kind_id_ = :kindId
order by te.start_time_ <!-- order by te.start_time_-->
</sql> </sql>
<sql name="taskInstRelationQuery"> <sql name="taskInstRelationQuery">
select r.task_id, r.related_task_id, te.proc_inst_id_ proc_inst_id, select r.task_id, r.related_task_id, te.proc_inst_id_ proc_inst_id,
...@@ -479,7 +479,7 @@ ...@@ -479,7 +479,7 @@
left join wf_approvalrule r left join wf_approvalrule r
on h.approval_rule_id = r.id on h.approval_rule_id = r.id
where biz_code = :bizCode where biz_code = :bizCode
order by h.proc_unit_id, group_id <!-- order by h.proc_unit_id, group_id -->
</sql> </sql>
<sql name="queryOneTaskByBizIdAndProcUnitHandlerId"> <sql name="queryOneTaskByBizIdAndProcUnitHandlerId">
select e.id_ as task_id, e.status_id_ as status_id select e.id_ as task_id, e.status_id_ as status_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment