Example #1
0
 @Transient
 public String getUserName() {
   for (HumanSalaryItemMoney humanSalaryItemMoney : humanSalaryItemMoneyList) {
     return humanSalaryItemMoney.getUser().getName();
   }
   return null;
 }
Example #2
0
 @Transient
 public BigDecimal getMoney() {
   BigDecimal moneys = new BigDecimal(0);
   for (HumanSalaryItemMoney humanSalaryItemMoney : humanSalaryItemMoneyList) {
     BigDecimal money = humanSalaryItemMoney.getMoney();
     moneys = moneys.add(money);
   }
   return moneys;
 }