|
@@ -83,6 +83,39 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="projectInvestigate.investigateName != null and projectInvestigate.investigateName != ''"> and a.investigate_name like concat('%', #{projectInvestigate.investigateName}, '%')</if>
|
|
<if test="projectInvestigate.investigateName != null and projectInvestigate.investigateName != ''"> and a.investigate_name like concat('%', #{projectInvestigate.investigateName}, '%')</if>
|
|
|
<if test="projectInvestigate.investigatePlace != null and projectInvestigate.investigatePlace != ''"> and a.investigate_place like concat('%', #{projectInvestigate.investigatePlace}, '%')</if>
|
|
<if test="projectInvestigate.investigatePlace != null and projectInvestigate.investigatePlace != ''"> and a.investigate_place like concat('%', #{projectInvestigate.investigatePlace}, '%')</if>
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
+ <select id="selectAllInvestigateList" resultMap="ProjectInvestigateVoResult">
|
|
|
|
|
+ select a.id,a.proc_inst_id, a.project_pool_id,tp.project_name, tp.industry,tp.project_stage,tp.project_state,tp.invest_head,
|
|
|
|
|
+ a.investigate_name, a.investigate_code,a.investigate_place, a.start_time, a.end_time, a.readiness, a.third_party, a.dead_date,
|
|
|
|
|
+ a.investigate_person, a.investigate_person_id, a.investigate_cost, a.describe_,
|
|
|
|
|
+ a.remark, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time ,a.status,
|
|
|
|
|
+ p.PROC_INST_ID_ as 'procInsId',
|
|
|
|
|
+ p.PROC_DEF_ID_ as 'procDefId',
|
|
|
|
|
+ date_format(p.START_TIME_, '%Y-%m-%d %H:%i:%s') as 'applyTime',
|
|
|
|
|
+ date_format(p.END_TIME_, '%Y-%m-%d %H:%i:%s') as 'endTime',
|
|
|
|
|
+ p.START_USER_ID_ AS 'startUserId',
|
|
|
|
|
+ uu.nick_name AS 'startUserName',
|
|
|
|
|
+ dd.dept_name AS 'startDeptName',
|
|
|
|
|
+ t.NAME_ as 'taskName',
|
|
|
|
|
+ t.TASK_DEF_KEY_ as 'taskDefKey',
|
|
|
|
|
+ DATE_FORMAT(t.CREATE_TIME_ ,'%Y-%m-%d %H:%i') as 'taskCreateTiem',
|
|
|
|
|
+ t.ASSIGNEE_ AS 'assignee',
|
|
|
|
|
+ ui.nick_name AS 'assigneeName',
|
|
|
|
|
+ t.ID_ as 'taskId',
|
|
|
|
|
+ t.EXECUTION_ID_ AS 'executionId',
|
|
|
|
|
+ rp.DEPLOYMENT_ID_ AS 'deployId'
|
|
|
|
|
+ from t_project_investigate a
|
|
|
|
|
+ left join t_project_pool tp on tp.id=a.project_pool_id
|
|
|
|
|
+ left join ACT_HI_PROCINST p on a.proc_inst_id = p.PROC_INST_ID_
|
|
|
|
|
+ LEFT JOIN (SELECT * FROM sys_user LIMIT 100000) uu ON p.START_USER_ID_ = uu.user_id
|
|
|
|
|
+ LEFT JOIN (SELECT * FROM sys_dept LIMIT 100000) dd ON uu.dept_id = dd.dept_id
|
|
|
|
|
+ left join ACT_RU_TASK t on a.proc_inst_id = t.PROC_INST_ID_
|
|
|
|
|
+ left join (select * from sys_user limit 100000) ui on t.ASSIGNEE_ = ui.user_id
|
|
|
|
|
+ left join ACT_RU_IDENTITYLINK ru on ru.TASK_ID_ = t.ID_
|
|
|
|
|
+ LEFT JOIN act_re_procdef rp ON t.PROC_DEF_ID_ = rp.ID_
|
|
|
|
|
+ where a.del_flag="0"
|
|
|
|
|
+ <include refid="where_sql"></include>
|
|
|
|
|
+ order by a.create_time desc
|
|
|
|
|
+ </select>
|
|
|
<select id="getMyTaskList" resultMap="ProjectInvestigateVoResult">
|
|
<select id="getMyTaskList" resultMap="ProjectInvestigateVoResult">
|
|
|
select a.id,a.proc_inst_id, a.project_pool_id,tp.project_name, tp.industry,tp.project_stage,tp.project_state,tp.invest_head,
|
|
select a.id,a.proc_inst_id, a.project_pool_id,tp.project_name, tp.industry,tp.project_stage,tp.project_state,tp.invest_head,
|
|
|
a.investigate_name, a.investigate_code,a.investigate_place, a.start_time, a.end_time, a.readiness, a.third_party, a.dead_date,
|
|
a.investigate_name, a.investigate_code,a.investigate_place, a.start_time, a.end_time, a.readiness, a.third_party, a.dead_date,
|