|
@@ -7,7 +7,7 @@
|
|
a.process_instance_id AS "processInstanceId",
|
|
a.process_instance_id AS "processInstanceId",
|
|
a.number AS "number",
|
|
a.number AS "number",
|
|
a.business_type AS "businessType",
|
|
a.business_type AS "businessType",
|
|
- a.submitter_id AS "submitterId",
|
|
|
|
|
|
+ a.submitter_id AS "handleId",
|
|
a.submitter AS "submitter",
|
|
a.submitter AS "submitter",
|
|
a.submitter_date AS "submitterDate",
|
|
a.submitter_date AS "submitterDate",
|
|
a.project_id AS "project.id",
|
|
a.project_id AS "project.id",
|
|
@@ -28,7 +28,6 @@
|
|
a.bank AS "bank",
|
|
a.bank AS "bank",
|
|
a.bank_no AS "bankNo",
|
|
a.bank_no AS "bankNo",
|
|
a.company_id AS "companyId",
|
|
a.company_id AS "companyId",
|
|
- a.office_id AS "officeId",
|
|
|
|
p.project_name AS "project.projectName",
|
|
p.project_name AS "project.projectName",
|
|
a.project_name AS "projectName",
|
|
a.project_name AS "projectName",
|
|
a.bank_card AS "bankCard",
|
|
a.bank_card AS "bankCard",
|
|
@@ -56,6 +55,7 @@
|
|
<include refid="workReimbursementColumns"/>
|
|
<include refid="workReimbursementColumns"/>
|
|
,wa.reimbursement_name AS "submitterId"
|
|
,wa.reimbursement_name AS "submitterId"
|
|
,wa.money as "money"
|
|
,wa.money as "money"
|
|
|
|
+ ,(select office_id from sys_user where id = wa.reimbursement_name) AS "officeId"
|
|
FROM work_reimbursement a
|
|
FROM work_reimbursement a
|
|
left join work_account wa on wa.work_reimbursement_id =a.id
|
|
left join work_account wa on wa.work_reimbursement_id =a.id
|
|
left join rural_project_records p on p.id = wa.project_id
|
|
left join rural_project_records p on p.id = wa.project_id
|
|
@@ -71,7 +71,7 @@
|
|
AND a.status = #{status}
|
|
AND a.status = #{status}
|
|
</if>
|
|
</if>
|
|
<if test="officeId != '' and officeId != null">
|
|
<if test="officeId != '' and officeId != null">
|
|
- AND a.office_id = #{officeId}
|
|
|
|
|
|
+ AND wa.office_id = #{officeId}
|
|
</if>
|
|
</if>
|
|
<if test="submitterDate != '' and submitterDate != null">
|
|
<if test="submitterDate != '' and submitterDate != null">
|
|
AND a.submitter_date = #{submitterDate}
|
|
AND a.submitter_date = #{submitterDate}
|
|
@@ -82,8 +82,11 @@
|
|
<if test="endDate != null and endDate != ''">
|
|
<if test="endDate != null and endDate != ''">
|
|
AND a.submitter_date <= #{endDate}
|
|
AND a.submitter_date <= #{endDate}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="handleId != null and handleId != ''">
|
|
|
|
+ AND a.submitter_id = #{handleId}
|
|
|
|
+ </if>
|
|
<if test="submitterId != null and submitterId != ''">
|
|
<if test="submitterId != null and submitterId != ''">
|
|
- AND a.submitter_id = #{submitterId}
|
|
|
|
|
|
+ AND wa.reimbursement_name = #{submitterId}
|
|
</if>
|
|
</if>
|
|
${sqlMap.dsf}
|
|
${sqlMap.dsf}
|
|
</where>
|
|
</where>
|
|
@@ -125,8 +128,11 @@
|
|
<if test="endDate != null and endDate != ''">
|
|
<if test="endDate != null and endDate != ''">
|
|
AND a.submitter_date <= #{endDate}
|
|
AND a.submitter_date <= #{endDate}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="handleId != null and handleId != ''">
|
|
|
|
+ AND a.submitter_id = #{handleId}
|
|
|
|
+ </if>
|
|
<if test="submitterId != null and submitterId != ''">
|
|
<if test="submitterId != null and submitterId != ''">
|
|
- AND a.submitter_id = #{submitterId}
|
|
|
|
|
|
+ AND wa.reimbursement_name = #{submitterId}
|
|
</if>
|
|
</if>
|
|
${sqlMap.dsf}
|
|
${sqlMap.dsf}
|
|
</where>
|
|
</where>
|