|
|
|
@ -155,8 +155,35 @@ public class AccountCloseServiceImpl implements AccountCloseService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<AccountRatioDetail> ratioDetail(int settingId) { |
|
|
|
return accountRatioDetailMapper.getAccRatioDetailBySettingId(settingId); |
|
|
|
public List ratioDetail(int arid) { |
|
|
|
List retlist =new ArrayList(); |
|
|
|
List<AccountRatioDetail> acrdlist = accountRatioDetailMapper.getAccRatioDetailBySettingId(arid); |
|
|
|
if(acrdlist==null){ |
|
|
|
return null; |
|
|
|
}else { |
|
|
|
// 调整与前台对应的字段
|
|
|
|
for (AccountRatioDetail acrd : acrdlist) { |
|
|
|
Map retmap = new HashMap(); |
|
|
|
retmap.put("role_type", acrd.getRoleType()); |
|
|
|
retmap.put("setting_id", acrd.getSettingId()); |
|
|
|
retmap.put("cost_type", acrd.getCostType()); |
|
|
|
retmap.put("calculate", acrd.getCalculate()); |
|
|
|
retmap.put("amount", acrd.getAmount()); |
|
|
|
retmap.put("ratio", acrd.getRatio()); |
|
|
|
retmap.put("id",acrd.getId()); |
|
|
|
/** |
|
|
|
* "id": 7, |
|
|
|
* "setting_id": 2, |
|
|
|
* "role_type": 2, |
|
|
|
* "cost_type": 1, |
|
|
|
* "calculate": 1, |
|
|
|
* "amount": "0.00", |
|
|
|
* "ratio": "0.00" |
|
|
|
*/ |
|
|
|
retlist.add(retmap); |
|
|
|
} |
|
|
|
} |
|
|
|
return retlist; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|