Commit 2a5950eb by wenyang Committed by jianan

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

parent 2a83b311
...@@ -139,7 +139,9 @@ ...@@ -139,7 +139,9 @@
</if> </if>
</if> </if>
<if test="item.commissionPayoutYearmonth != null"> <if test="item.commissionPayoutYearmonth != null">
and c.check_yearmonth = #{item.commissionPayoutYearmonth,jdbcType=VARCHAR} 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})))
</if> </if>
<if test="item.predictMonthPeriod != null"> <if test="item.predictMonthPeriod != null">
and DATE_FORMAT(t.predict_month_period, '%Y-%m') = #{item.predictMonthPeriod,jdbcType=VARCHAR} 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