Commit dfd95268 authored by 雍欢's avatar 雍欢

Merge branch 'mysql' into 'develop'

Mysql

See merge request topsunit/huigou!7
parents 2e55cbdc 5e8ba0ef
This source diff could not be displayed because it is too large. You can view the blob instead.
create or replace view `v_sa_oporg_exclude_pos` (`id`, `type_id`, `code`, `name`, `long_name`, `parent_id`, `full_id`, `full_code`, `full_name`, `org_kind_id`, `depth`, `person_id`, `node_kind_id`, `description`, `status`, `sequence`, `version`, `org_code`, `dept_code`, `position_code`, `person_member_code`, `is_center`, `center_code`, `org_id`, `dept_id`, `position_id`, `person_member_id`, `center_id`, `org_name`, `dept_name`, `position_name`, `person_member_name`, `center_name`, `full_sequence`, `full_org_kind_id`, `is_virtual`) as
select id, type_id, code, name, long_name,
(case org_kind_id when 'psm' then dept_id else parent_id end) parent_id,
full_id,
full_code, full_name, org_kind_id, depth, person_id, node_kind_id,
description, status, sequence, version, org_code, dept_code,
position_code, person_member_code, is_center, center_code, org_id,
dept_id, position_id, person_member_id, center_id, org_name,
dept_name, position_name, person_member_name, center_name,
full_sequence, full_org_kind_id, is_virtual
from sa_oporg
where org_kind_id != 'pos';
CREATE
OR REPLACE VIEW V_ACT_HI_PROCINST (
PROC_INST_ID_,
BUSINESS_KEY_,
PROC_DEF_ID_,
PROCESS_DEFINITION_KEY_,
PROC_FULL_ID,
PROC_FULL_NAME,
PROC_NAME,
PROC_SYS_NAME,
START_TIME_,
END_TIME_,
APPLICANT_PERSON_MEMBER_ID_,
APPLICANT_PERSON_MEMBER_NAME_,
APPLICANT_DEPT_NAME_,
APPLICANT_ORG_NAME_,
PROC_STATUS_ID_
) AS SELECT
pe.id_ AS proc_inst_id_,
pe.business_key_,
pe.proc_def_id_,
pe.key_ AS process_definition_key_,
pdf.full_id proc_full_id,
pdf.full_name proc_full_name,
pdf. NAME proc_name,
substr(
pdf.full_name,
2,
instr(substr(pdf.full_name,3), '/') - 2
) proc_sys_name,
pe.start_time_,
pe.end_time_,
pe.applicant_person_member_id_,
pe.applicant_person_member_name_,
pe.applicant_dept_name_,
pe.applicant_org_name_,
pe.status_id_ proc_status_id_
FROM
act_hi_procinst_extension pe
join act_re_procdef pd on pe.proc_def_id_ = pd.id_
left join wf_procdef pdf on pd.key_ = pdf.proc_id
WHERE
pdf.node_kind_id = 'proc';
\ No newline at end of file
...@@ -1060,7 +1060,7 @@ public class WorkflowApplicationImpl extends BaseApplication implements Workflow ...@@ -1060,7 +1060,7 @@ public class WorkflowApplicationImpl extends BaseApplication implements Workflow
case INITIATE: case INITIATE:
case TRACKING: case TRACKING:
sql = this.getHistoryTaskSql(); sql = this.getHistoryTaskSql();
sb.append(" and te.creator_person_member_id_ like :personId and te.task_def_key_ = :taskDefKey and te.previous_id_ is null"); sb.append(" and te.creator_person_member_id_ like :personId and te.task_def_key_ = :taskDefKey and (te.previous_id_ is null or te.previous_id_ ='')");
if (viewKind == ViewTaskKind.TRACKING) { if (viewKind == ViewTaskKind.TRACKING) {
sb.append(" and pi.end_time_ is null and te.status_id_ = 'completed' "); sb.append(" and pi.end_time_ is null and te.status_id_ = 'completed' ");
} }
...@@ -1209,7 +1209,7 @@ public class WorkflowApplicationImpl extends BaseApplication implements Workflow ...@@ -1209,7 +1209,7 @@ public class WorkflowApplicationImpl extends BaseApplication implements Workflow
} }
hasCondition = true; hasCondition = true;
if (!StringUtil.isBlank(administrativeOrgFullId)) { if (!StringUtil.isBlank(administrativeOrgFullId)) {
sb.append(" ( te.creator_full_id_ like :administrativeOrgFullId and te.task_def_key_ = 'Apply' and te.previous_id_ is null)"); sb.append(" ( te.creator_full_id_ like :administrativeOrgFullId and te.task_def_key_ = 'Apply' and (te.previous_id_ is null or te.previous_id_ =''))");
queryModel.putParam("administrativeOrgFullId", administrativeOrgFullId + "%"); queryModel.putParam("administrativeOrgFullId", administrativeOrgFullId + "%");
if (isSingleProcInstShowOneTask) { if (isSingleProcInstShowOneTask) {
orgCondition = " and tei.creator_full_id_ like :interalOrgId and i.task_def_key_ = 'Apply'"; orgCondition = " and tei.creator_full_id_ like :interalOrgId and i.task_def_key_ = 'Apply'";
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
from act_hi_taskinst_extension te from act_hi_taskinst_extension te
where te.proc_inst_id_ = ? where te.proc_inst_id_ = ?
and te.task_def_key_ = 'Apply' and te.task_def_key_ = 'Apply'
and te.previous_id_ is null and (te.previous_id_ is null or te.previous_id_ ='')
order by te.id_ desc order by te.id_ desc
</sql> </sql>
<sql name="queryApplicantByBizId"> <sql name="queryApplicantByBizId">
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
te.applicant_person_member_name_ as applicant_person_member_name te.applicant_person_member_name_ as applicant_person_member_name
from act_hi_taskinst_extension te from act_hi_taskinst_extension te
where te.business_key_ = ? where te.business_key_ = ?
and te.previous_id_ is null and (te.previous_id_ is null or te.previous_id_ ='')
order by te.id_ desc order by te.id_ desc
</sql> </sql>
<sql name="loadRuntimeTaskById"> <sql name="loadRuntimeTaskById">
...@@ -377,7 +377,7 @@ ...@@ -377,7 +377,7 @@
where te.proc_inst_id_ = p.proc_inst_id_ where te.proc_inst_id_ = p.proc_inst_id_
and te.task_def_key_ = 'Apply' and te.task_def_key_ = 'Apply'
and p.end_time_ is null and p.end_time_ is null
and te.previous_id_ is null and (te.previous_id_ is null or te.previous_id_ ='')
and te.status_id_ = 'completed' and te.status_id_ = 'completed'
and te.creator_person_member_id_ like :personId and te.creator_person_member_id_ like :personId
</sql> </sql>
......
...@@ -90,11 +90,6 @@ ...@@ -90,11 +90,6 @@
<artifactId>huigou-uasp</artifactId> <artifactId>huigou-uasp</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.huigou</groupId>
<artifactId>huigou-demo</artifactId>
<version>${project.version}</version>
</dependency>
<!-- 公用的组件包 --> <!-- 公用的组件包 -->
<dependency> <dependency>
<groupId>commons-lang</groupId> <groupId>commons-lang</groupId>
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
<module>huigou-uasp</module> <module>huigou-uasp</module>
<module>huigou-loader</module> <module>huigou-loader</module>
<module>huigou-xt</module> <module>huigou-xt</module>
<module>huigou-demo</module>
</modules> </modules>
<properties> <properties>
......
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