我需要使用TCC复杂投影来计算“报价”网格中的奖金。这很复杂。
Yearly CTC - 100000
Monthly CTC - Yearly CTC/12
Basic Salary - Monthly CTCx0.46 (If Yearly CTC is between 0 to 20000)
Basic Salary - Monthly CTCx0.44 (If Yearly CTC is between 20000 to 40000)
Basic Salary - Monthly CTCx0.40 (If Yearly CTC is between 40000 to 80000)
Bonus - (Basic Salary>21000) then 0 Else Basic Salaryx0.09 (If Yearly CTC is between 0 to 20000)
Bonus - (Basic Salary>21000) then 0 Else Basic Salaryx0.07 (If Yearly CTC is between 20000 to 40000)
Bonus - (Basic Salary>21000) then 0 Else Basic Salaryx0.05 (If Yearly CTC is between 40000 to 80000)
要计算基本工资,我正在使用以下逻辑,我可以添加更多的case语句来为其他平板计算
<quer:projection alias="Basic" xmlns:quer="http://www.taleo.com/ws/integration/query">
<quer:switchByCriterion>
<quer:cases>
<quer:case>
<quer:between>
<quer:field path="CurrentOffer,Salary"/>
<quer:integer>0</quer:integer>
<quer:integer>200000</quer:integer>
</quer:between>
<quer:round>
<quer:multiply>
<quer:round>
<quer:divide>
<quer:field path="CurrentOffer,Salary"/>
<quer:integer>12</quer:integer>
</quer:divide>
</quer:round>
<quer:double>0.46</quer:double>
</quer:multiply>
</quer:round>
</quer:case>
</quer:cases>
</quer:switchByCriterion>
</quer:projection>
但是关于如何实现奖金计算的任何建议吗?
谢谢, 湿婆