|
@@ -308,6 +308,7 @@
|
|
|
LEFT JOIN customer_company cc1 ON cc1.id = m.clientele_id
|
|
|
LEFT JOIN customer_company cc2 ON cc2.id = m.clientele_sub_id
|
|
|
<where>
|
|
|
+ and mp.repertory_out_time>'2024-01-01 00:00:00'
|
|
|
<if test="overdueVO!=null and overdueVO.overdueMin!=null">
|
|
|
AND DATEDIFF(CURDATE(),DATE( mp.repertory_out_time )) >= #{overdueVO.overdueMin}
|
|
|
</if>
|
|
@@ -1127,6 +1128,7 @@
|
|
|
LEFT JOIN `user` u2 ON u2.id = p.inward_staff
|
|
|
LEFT JOIN `user` u3 ON u3.id = p.pricing_staff
|
|
|
<where>
|
|
|
+ pp.rot>'2024-01-01 00:00:00'
|
|
|
<if test="overdueVO!=null and overdueVO.overdueMin!=null">
|
|
|
AND DATEDIFF(CURDATE(),DATE ( pp.rot )) >= #{overdueVO.overdueMin}
|
|
|
</if>
|
|
@@ -1706,6 +1708,7 @@
|
|
|
WHERE
|
|
|
ap.productionType != 'STATEMENT'
|
|
|
AND ( pf.production_no IS NULL OR pf.real_amount IS NULL )
|
|
|
+ and ap.repertory_out_time>'2024-01-01 00:00:00'
|
|
|
<if test="overdueVO!=null and overdueVO.overdueMin!=null">
|
|
|
AND DATEDIFF(CURDATE(),DATE( ap.repertory_out_time )) >= #{overdueVO.overdueMin}
|
|
|
</if>
|