@@ -222,6 +222,12 @@
<if test="done!=null and done.endDate!=null and done.endDate!=''">
and mp.save_file_date <= #{done.endDate}
</if>
+ <if test="done!=null and done.hasCommission == true">
+ and pf.real_amount > 0
+ </if>
+ <if test="done!=null and done.hasCommission == false">
+ and (pf.real_amount IS NULL OR pf.real_amount = 0)
order by mp.save_file_date desc
</select>
@@ -77,4 +77,9 @@ public class MajorProductionSaveDoneVO {
private String startDate;
private String endDate;
+
+ /**
+ * 是否提成
+ */
+ private Boolean hasCommission;
}