Commit bcde779f by wenyang Committed by jianan

财务每月计提季度绩效需求(如果输入了‘来佣比对日期’,那需要查询出该季度计算的发佣数据)

parent 2a5950eb
......@@ -141,7 +141,7 @@
<if test="item.commissionPayoutYearmonth != null">
and (c.check_yearmonth = #{item.commissionPayoutYearmonth,jdbcType=VARCHAR}
or (t.drop_option_code in(select distinct t.commission_type FROM ag_settlement_rule_base t where t.calculation_method='3' and t.is_active=1)
and QUARTER(CONCAT(c.check_yearmonth,'-01'))=QUARTER(#{item.commissionPayoutYearmonth,jdbcType=VARCHAR})))
and QUARTER(CONCAT(c.check_yearmonth,'-01'))=QUARTER(CONCAT(#{item.commissionPayoutYearmonth,jdbcType=VARCHAR},'-01'))))
</if>
<if test="item.predictMonthPeriod != null">
and DATE_FORMAT(t.predict_month_period, '%Y-%m') = #{item.predictMonthPeriod,jdbcType=VARCHAR}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment