结算修改
This commit is contained in:
parent
45dba9ad51
commit
c68073d7bc
|
|
@ -1223,6 +1223,9 @@
|
|||
#{aid}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="info.unitId != null and info.unitId != 0">
|
||||
and bai.unit_id = #{info.unitId}
|
||||
</if>
|
||||
<if test="info.agreementCode != null and info.agreementCode != ''">
|
||||
and bai.agreement_code like concat('%',#{info.agreementCode},'%')
|
||||
</if>
|
||||
|
|
@ -1353,7 +1356,9 @@
|
|||
and mt.jiju_type in (1,2)
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<if test="info.unitId != null and info.unitId != 0">
|
||||
and bai.unit_id = #{info.unitId}
|
||||
</if>
|
||||
<if test="info.endTime != null and info.startTime != null">
|
||||
and tt.create_time between #{info.startTime} and #{info.endTime}
|
||||
</if>
|
||||
|
|
@ -1530,8 +1535,7 @@
|
|||
bp.actual_end_date as actualEndDate
|
||||
FROM
|
||||
bm_agreement_info bai
|
||||
LEFT JOIN slt_agreement_apply saa
|
||||
ON bai.agreement_id = saa.agreement_id AND saa.settlement_type = #{settlementType}
|
||||
LEFT JOIN slt_agreement_apply saa ON bai.agreement_id = saa.agreement_id AND saa.settlement_type = #{settlementType}
|
||||
LEFT JOIN slt_agreement_details sad ON saa.id = sad.apply_id AND sad.slt_type = '2'
|
||||
LEFT JOIN bm_project bp ON bp.pro_id = bai.project_id
|
||||
LEFT JOIN sys_dept sd ON sd.dept_id = bp.imp_unit
|
||||
|
|
@ -1539,6 +1543,9 @@
|
|||
left join ma_type mt on sad.type_id = mt.type_id
|
||||
left join ma_type mt1 on mt.parent_id = mt1.type_id
|
||||
<where>
|
||||
<if test="unitId != null and unitId != 0">
|
||||
and bai.unit_id = #{unitId}
|
||||
</if>
|
||||
<if test="companyId != null ">
|
||||
and bai.company_id = #{companyId}
|
||||
</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue