|
@@ -87,6 +87,9 @@
|
|
|
<if test="project != null and project.id != null and project.id != ''">
|
|
|
AND wa.project_id = #{project.id}
|
|
|
</if>
|
|
|
+ <if test="project != null and project.projectName != null and project.projectName != ''">
|
|
|
+ AND p.project_name like concat('%',#{project.projectName},'%')
|
|
|
+ </if>
|
|
|
<if test="status != '' and status != null">
|
|
|
AND a.status = #{status}
|
|
|
</if>
|
|
@@ -99,6 +102,9 @@
|
|
|
#{officeId}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="officeId == '' and officeName!=null and officeName!=''">
|
|
|
+ AND sob.name like concat('%',#{officeName},'%')
|
|
|
+ </if>
|
|
|
<if test="submitterDate != '' and submitterDate != null">
|
|
|
AND a.submitter_date = #{submitterDate}
|
|
|
</if>
|
|
@@ -111,12 +117,21 @@
|
|
|
<if test="handleId != null and handleId != ''">
|
|
|
AND a.submitter_id = #{handleId}
|
|
|
</if>
|
|
|
+ <if test="handleId == '' and handleName != null and handleName != ''">
|
|
|
+ AND su.name like concat('%',#{handleName},'%')
|
|
|
+ </if>
|
|
|
<if test="submitterId != null and submitterId != ''">
|
|
|
AND wa.reimbursement_name = #{submitterId}
|
|
|
</if>
|
|
|
+ <if test="submitterId == '' and submitterName != null and submitterName != ''">
|
|
|
+ AND sub.name like concat('%',#{submitterName},'%')
|
|
|
+ </if>
|
|
|
<if test="businessType != null and businessType != ''">
|
|
|
AND (wa.type = #{businessType} or wa.type in (select id from work_reimbursement_type_info where parent_ids like concat('%',#{businessTypeParentIds},'%')))
|
|
|
</if>
|
|
|
+ <if test="businessType == '' and businessTypeName!=null and businessTypeName !=''">
|
|
|
+ AND wrt.standard_detail like concat('%',#{businessTypeName},'%')
|
|
|
+ </if>
|
|
|
<if test="projectName != null and projectName != ''">
|
|
|
AND pd.number like concat('%',#{projectName},'%')
|
|
|
</if>
|
|
@@ -148,6 +163,9 @@
|
|
|
left join rural_project_records p on p.id = wa.project_id
|
|
|
left join work_reimbursement_type_info wrt on wrt.id =wa.type
|
|
|
left join project_report_data pd on pd.project_id =wa.project_id
|
|
|
+ left join sys_user su on su.id = a.submitter_id
|
|
|
+ left join sys_user sub on sub.id = wa.reimbursement_name
|
|
|
+ left join sys_office sob on sub.office_id = sob.id
|
|
|
<where>
|
|
|
a.del_flag = #{DEL_FLAG_NORMAL}
|
|
|
<if test="id != null and id != ''">
|
|
@@ -156,6 +174,9 @@
|
|
|
<if test="project != null and project.id != null and project.id != ''">
|
|
|
AND wa.project_id = #{project.id}
|
|
|
</if>
|
|
|
+ <if test="project != null and project.projectName != null and project.projectName != ''">
|
|
|
+ AND p.project_name like concat('%',#{project.projectName},'%')
|
|
|
+ </if>
|
|
|
<if test="status != '' and status != null">
|
|
|
AND a.status = #{status}
|
|
|
</if>
|
|
@@ -168,6 +189,9 @@
|
|
|
#{officeId}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="officeId == '' and officeName!=null and officeName!=''">
|
|
|
+ AND sob.name like concat('%',#{officeName},'%')
|
|
|
+ </if>
|
|
|
<if test="submitterDate != '' and submitterDate != null">
|
|
|
AND a.submitter_date = #{submitterDate}
|
|
|
</if>
|
|
@@ -180,12 +204,21 @@
|
|
|
<if test="handleId != null and handleId != ''">
|
|
|
AND a.submitter_id = #{handleId}
|
|
|
</if>
|
|
|
+ <if test="handleId == '' and handleName != null and handleName != ''">
|
|
|
+ AND su.name like concat('%',#{handleName},'%')
|
|
|
+ </if>
|
|
|
<if test="submitterId != null and submitterId != ''">
|
|
|
AND wa.reimbursement_name = #{submitterId}
|
|
|
</if>
|
|
|
+ <if test="submitterId == '' and submitterName != null and submitterName != ''">
|
|
|
+ AND sub.name like concat('%',#{submitterName},'%')
|
|
|
+ </if>
|
|
|
<if test="businessType != null and businessType != ''">
|
|
|
AND (wa.type = #{businessType} or wa.type in (select id from work_reimbursement_type_info where parent_ids like concat('%',#{businessTypeParentIds},'%')))
|
|
|
</if>
|
|
|
+ <if test="businessType == '' and businessTypeName!=null and businessTypeName !=''">
|
|
|
+ AND wrt.standard_detail like concat('%',#{businessTypeName},'%')
|
|
|
+ </if>
|
|
|
<if test="projectName != null and projectName != ''">
|
|
|
AND pd.number like concat('%',#{projectName},'%')
|
|
|
</if>
|