|
@@ -24,6 +24,7 @@
|
|
<result property="processDefinitionId" column="process_definition_id" jdbcType="VARCHAR"/>
|
|
<result property="processDefinitionId" column="process_definition_id" jdbcType="VARCHAR"/>
|
|
<result property="createBy.name" column="create_name" jdbcType="VARCHAR"/>
|
|
<result property="createBy.name" column="create_name" jdbcType="VARCHAR"/>
|
|
<result property="finishDate" column="finish_date" jdbcType="TIMESTAMP"/>
|
|
<result property="finishDate" column="finish_date" jdbcType="TIMESTAMP"/>
|
|
|
|
+ <result property="projectType" column="project_type" jdbcType="VARCHAR"/>
|
|
<collection property="klgBaseDisposeDTOList" ofType="com.jeeplus.test.klgBase.question.service.dto.KlgBaseDisposeDTO" column="id" select="getDisposeList"></collection>
|
|
<collection property="klgBaseDisposeDTOList" ofType="com.jeeplus.test.klgBase.question.service.dto.KlgBaseDisposeDTO" column="id" select="getDisposeList"></collection>
|
|
<collection property="klgBaseReplyDTOList" ofType="com.jeeplus.test.klgBase.question.service.dto.KlgBaseReplyDTO" column="id" select="getReplyList"></collection>
|
|
<collection property="klgBaseReplyDTOList" ofType="com.jeeplus.test.klgBase.question.service.dto.KlgBaseReplyDTO" column="id" select="getReplyList"></collection>
|
|
<collection property="workAttachmentDtoList" ofType="com.jeeplus.test.workContract.service.dto.WorkAttachmentDto" column="id" select="getFileList"></collection>
|
|
<collection property="workAttachmentDtoList" ofType="com.jeeplus.test.workContract.service.dto.WorkAttachmentDto" column="id" select="getFileList"></collection>
|
|
@@ -66,7 +67,8 @@
|
|
kbq.status,
|
|
kbq.status,
|
|
kbq.proc_ins_id,
|
|
kbq.proc_ins_id,
|
|
kbq.process_definition_id,
|
|
kbq.process_definition_id,
|
|
- kbq.finish_date
|
|
|
|
|
|
+ kbq.finish_date,
|
|
|
|
+ kbq.project_type
|
|
</sql>
|
|
</sql>
|
|
<sql id="Kbr_Column_List">
|
|
<sql id="Kbr_Column_List">
|
|
kbr.id,
|
|
kbr.id,
|
|
@@ -140,10 +142,14 @@
|
|
<select id="findList" resultMap="BaseResultMap">
|
|
<select id="findList" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<include refid="Base_Column_List"></include>,
|
|
<include refid="Base_Column_List"></include>,
|
|
- ppli.name as program_name,
|
|
|
|
|
|
+ (CASE
|
|
|
|
+ WHEN kbq.project_type = '1' THEN ppli.name
|
|
|
|
+ WHEN kbq.project_type = '2' THEN cw_pr.project_name
|
|
|
|
+ ELSE '' END) AS program_name,
|
|
su.name as create_name
|
|
su.name as create_name
|
|
from klg_base_questions kbq
|
|
from klg_base_questions kbq
|
|
left join program_project_list_info ppli on ppli.id = kbq.program_id and ppli.del_flag = '0'
|
|
left join program_project_list_info ppli on ppli.id = kbq.program_id and ppli.del_flag = '0'
|
|
|
|
+ left join cw_project_records cw_pr on cw_pr.id = kbq.program_id and cw_pr.del_flag = '0'
|
|
left join sys_user su on su.id = kbq.create_by and su.del_flag = '0'
|
|
left join sys_user su on su.id = kbq.create_by and su.del_flag = '0'
|
|
${ew.customSqlSegment}
|
|
${ew.customSqlSegment}
|
|
</select>
|
|
</select>
|
|
@@ -163,10 +169,14 @@
|
|
<select id="queryById" resultMap="BaseResultMap">
|
|
<select id="queryById" resultMap="BaseResultMap">
|
|
select
|
|
select
|
|
<include refid="Base_Column_List"></include>,
|
|
<include refid="Base_Column_List"></include>,
|
|
- ppli.name as program_name,
|
|
|
|
|
|
+ (CASE
|
|
|
|
+ WHEN kbq.project_type = '1' THEN ppli.name
|
|
|
|
+ WHEN kbq.project_type = '2' THEN cw_pr.project_name
|
|
|
|
+ ELSE '' END) AS program_name,
|
|
su.name as create_name
|
|
su.name as create_name
|
|
from klg_base_questions kbq
|
|
from klg_base_questions kbq
|
|
left join program_project_list_info ppli on ppli.id = kbq.program_id and ppli.del_flag = '0'
|
|
left join program_project_list_info ppli on ppli.id = kbq.program_id and ppli.del_flag = '0'
|
|
|
|
+ left join cw_project_records cw_pr on cw_pr.id = kbq.program_id and cw_pr.del_flag = '0'
|
|
left join sys_user su on su.id = kbq.create_by and su.del_flag = '0'
|
|
left join sys_user su on su.id = kbq.create_by and su.del_flag = '0'
|
|
where kbq.del_flag = '0' and kbq.id = ${id}
|
|
where kbq.del_flag = '0' and kbq.id = ${id}
|
|
</select>
|
|
</select>
|