|
|
@@ -243,7 +243,78 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="delFlag != null and delFlag != ''"> and a.del_flag = #{delFlag}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
-
|
|
|
+ <select id="selectAllInvestmentOpportunityList" resultMap="TProjectPoolVoResult">
|
|
|
+ select a.id,a.proc_inst_id,a.project_name, d.channel_group project_group, a.record_date, a.project_code, a.channel, a.contact_date, a.project_date, a.decision_date, a.industry, a.company, a.description, a.project_contacts,
|
|
|
+ a.invest_head, a.previous_financing, a.financing_stage, a.financing_condition, a.financing_money, a.financing_date, a.invest_sparkle, a.invest_valuation, a.invest_money, a.invest_type, a.invest_ploy, a.invest_worth, a.shareholding,
|
|
|
+ a.project_stage, a.project_state, a.mark, a.approval_flag, a.investigate_flag, a.decision_flag, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.status,
|
|
|
+ b.id companyId, b.company_name, b.project_pool_id, b.filing_time, b.company_code, b.start_time, b.end_time, b.registered_capital, b.registered_address, b.paid_capital, b.business_address, b.actual_bod, b.phone, b.type,
|
|
|
+ c.id, c.name, c.position, c.contact,
|
|
|
+ d.channel_name, d.channel_code, d.channel_type, d.channel_group, d.channel_blurb, d.contacts, d.telephone, d.address, d.channel_head,
|
|
|
+ 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_pool a
|
|
|
+ left join t_project_company b ON a.id = b.project_pool_id
|
|
|
+ left join t_project_contacts c ON a.project_contacts = c.id
|
|
|
+ left join t_project_channel d ON a.channel = d.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>
|
|
|
+ </select>
|
|
|
+ <select id="selectAllApprovedList" resultMap="TProjectPoolVoResult">
|
|
|
+ select a.id,a.proc_inst_id,a.project_name, d.channel_group project_group, a.record_date, a.project_code, a.channel, a.contact_date, a.project_date, a.decision_date, a.industry, a.company, a.description, a.project_contacts,
|
|
|
+ a.invest_head, a.previous_financing, a.financing_stage, a.financing_condition, a.financing_money, a.financing_date, a.invest_sparkle, a.invest_valuation, a.invest_money, a.invest_type, a.invest_ploy, a.invest_worth, a.shareholding,
|
|
|
+ a.project_stage, a.project_state, a.mark, a.approval_flag, a.investigate_flag, a.decision_flag, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.status,
|
|
|
+ b.id companyId, b.company_name, b.project_pool_id, b.filing_time, b.company_code, b.start_time, b.end_time, b.registered_capital, b.registered_address, b.paid_capital, b.business_address, b.actual_bod, b.phone, b.type,
|
|
|
+ c.id, c.name, c.position, c.contact,
|
|
|
+ d.channel_name, d.channel_code, d.channel_type, d.channel_group, d.channel_blurb, d.contacts, d.telephone, d.address, d.channel_head,
|
|
|
+ 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_pool a
|
|
|
+ left join t_project_company b ON a.id = b.project_pool_id
|
|
|
+ left join t_project_contacts c ON a.project_contacts = c.id
|
|
|
+ left join t_project_channel d ON a.channel = d.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" and a.status=3
|
|
|
+ <include refid="where_sql"></include>
|
|
|
+ </select>
|
|
|
<select id="getMyTaskList" resultMap="TProjectPoolVoResult">
|
|
|
select a.id,a.proc_inst_id,a.project_name, d.channel_group project_group, a.record_date, a.project_code, a.channel, a.contact_date, a.project_date, a.decision_date, a.industry, a.company, a.description, a.project_contacts,
|
|
|
a.invest_head, a.previous_financing, a.financing_stage, a.financing_condition, a.financing_money, a.financing_date, a.invest_sparkle, a.invest_valuation, a.invest_money, a.invest_type, a.invest_ploy, a.invest_worth, a.shareholding,
|