薪酬系统-福利台账,退差数据单条查看v1
This commit is contained in:
parent
002de586d5
commit
ad0b89b91a
|
|
@ -2140,5 +2140,112 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
return excelInsuranceDetailPO;
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public InsuranceSupplementListFoldDTO getPaymentById(Long id) {
|
||||
// InsuranceSupplementListFoldDTO result = new InsuranceSupplementListFoldDTO();
|
||||
// WeaTable<InsuranceSupplementListDTO> weaTable = new WeaTable<>();
|
||||
// EditableTable<InsuranceSupplementListDTO> editableTable = new EditableTable<>(weaTable);
|
||||
// editableTable.setColumns(InsuranceArchivesBO.buildCompensationEditTableColumns(employeeId, tenantKey));
|
||||
// editableTable.setComProps(InsuranceArchivesBO.buildSupplementEditTableItemMap());
|
||||
// editableTable.setShowCheck(false);
|
||||
// editableTable.setEllipsis(true);
|
||||
// result.setEditableTable(editableTable);
|
||||
// InsuranceAccountDetailPO insuranceAccountDetailPO = new LambdaQueryChainWrapper<>(siAccountDetailMapper)
|
||||
// .eq(InsuranceAccountDetailPO::getId, id)
|
||||
// .one();
|
||||
// SalaryAssert.notNull(insuranceAccountDetailPO, SalaryI18nUtil.getI18nLabel(tenantKey, employeeId, 139811, "人员不存在"));
|
||||
// insuranceAccountDetailPO = (InsuranceAccountDetailPO) dataSecurityService.decrypt(insuranceAccountDetailPO, InsuranceAccountDetailPO.class, tenantKey);
|
||||
// Map<String, List<InsuranceSupplementListDTO>> group = new HashMap<>();
|
||||
// //组装社保数据
|
||||
// Set<String> socialInsuranceIds = new HashSet<>();
|
||||
// String socialPerJson = insuranceAccountDetailPO.getSocialPerJson();
|
||||
// HashMap<String, String> socialPerMap = new HashMap<>();
|
||||
// if (StringUtils.isNotBlank(socialPerJson)) {
|
||||
// socialPerMap = JSON.parseObject(socialPerJson, new HashMap<String, String>().getClass());
|
||||
// socialPerMap.forEach((k, v) -> socialInsuranceIds.add(k));
|
||||
// }
|
||||
// String socialComJson = insuranceAccountDetailPO.getSocialComJson();
|
||||
// HashMap<String, String> socialComMap = new HashMap<>();
|
||||
// if (StringUtils.isNotBlank(socialComJson)) {
|
||||
// socialComMap = JSON.parseObject(socialComJson, new HashMap<String, String>().getClass());
|
||||
// socialComMap.forEach((k, v) -> socialInsuranceIds.add(k));
|
||||
// }
|
||||
// List<InsuranceSupplementListDTO> socialSupplementList = new ArrayList<>();
|
||||
// for (String insuranceId : socialInsuranceIds) {
|
||||
// InsuranceSupplementListDTO dto = new InsuranceSupplementListDTO();
|
||||
// dto.setItem(siCategoryService.getCategoryNameById(Long.valueOf(insuranceId), tenantKey));
|
||||
// dto.setPaymentPer(socialPerMap.get(insuranceId));
|
||||
// dto.setPaymentCom(socialComMap.get(insuranceId));
|
||||
// dto.setId(insuranceId);
|
||||
// socialSupplementList.add(dto);
|
||||
// }
|
||||
// group.put("social", socialSupplementList);
|
||||
//
|
||||
// //组装公积金数据
|
||||
// Set<String> fundInsuranceIds = new HashSet<>();
|
||||
// String fundPerJson = insuranceAccountDetailPO.getFundPerJson();
|
||||
// HashMap<String, String> fundperMap = new HashMap<>();
|
||||
// if (StringUtils.isNotBlank(fundPerJson)) {
|
||||
// fundperMap = JSON.parseObject(fundPerJson, new HashMap<String, String>().getClass());
|
||||
// fundperMap.forEach((k, v) -> fundInsuranceIds.add(k));
|
||||
// }
|
||||
// String fundComJson = insuranceAccountDetailPO.getFundComJson();
|
||||
// HashMap<String, String> fundComMap = new HashMap<>();
|
||||
// if (StringUtils.isNotBlank(fundComJson)) {
|
||||
// fundComMap = JSON.parseObject(fundComJson, new HashMap<String, String>().getClass());
|
||||
// fundComMap.forEach((k, v) -> fundInsuranceIds.add(k));
|
||||
// }
|
||||
// List<InsuranceSupplementListDTO> fundSupplementList = new ArrayList<>();
|
||||
// for (String insuranceId : fundInsuranceIds) {
|
||||
// InsuranceSupplementListDTO dto = new InsuranceSupplementListDTO();
|
||||
// dto.setItem(siCategoryService.getCategoryNameById(Long.valueOf(insuranceId), tenantKey));
|
||||
// dto.setPaymentPer(fundperMap.get(insuranceId));
|
||||
// dto.setPaymentCom(fundComMap.get(insuranceId));
|
||||
// dto.setId(insuranceId);
|
||||
// fundSupplementList.add(dto);
|
||||
// }
|
||||
// group.put("fund", fundSupplementList);
|
||||
//
|
||||
// //组装其他福利数据
|
||||
// Set<String> otherInsuranceIds = new HashSet<>();
|
||||
// String otherPerJson = insuranceAccountDetailPO.getOtherPerJson();
|
||||
// HashMap<String, String> otherPerMap = new HashMap<>();
|
||||
// if (StringUtils.isNotBlank(otherPerJson)) {
|
||||
// otherPerMap = JSON.parseObject(otherPerJson, new HashMap<String, String>().getClass());
|
||||
// otherPerMap.forEach((k, v) -> otherInsuranceIds.add(k));
|
||||
// }
|
||||
// String otherComJson = insuranceAccountDetailPO.getOtherComJson();
|
||||
// HashMap<String, String> otherComMap = new HashMap<>();
|
||||
// if (StringUtils.isNotBlank(otherComJson)) {
|
||||
// otherComMap = JSON.parseObject(otherComJson, new HashMap<String, String>().getClass());
|
||||
// otherComMap.forEach((k, v) -> otherInsuranceIds.add(k));
|
||||
// }
|
||||
// List<InsuranceSupplementListDTO> otherSupplementList = new ArrayList<>();
|
||||
// for (String insuranceId : otherInsuranceIds) {
|
||||
// InsuranceSupplementListDTO dto = new InsuranceSupplementListDTO();
|
||||
// dto.setItem(siCategoryService.getCategoryNameById(Long.valueOf(insuranceId), tenantKey));
|
||||
// dto.setPaymentPer(otherPerMap.get(insuranceId));
|
||||
// dto.setPaymentCom(otherComMap.get(insuranceId));
|
||||
// dto.setId(insuranceId);
|
||||
// otherSupplementList.add(dto);
|
||||
// }
|
||||
// group.put("other", otherSupplementList);
|
||||
// Map<String, Map<String, String>> items = new HashMap<>();
|
||||
// Map<String, String> socialItem = new HashMap<>();
|
||||
// socialItem.put("index", "0");
|
||||
// socialItem.put("groupName", SalaryI18nUtil.getI18nLabel(tenantKey, employeeId, 86568, "社保"));
|
||||
// items.put("social", socialItem);
|
||||
// Map<String, String> fundItem = new HashMap<>();
|
||||
// fundItem.put("index", "1");
|
||||
// fundItem.put("groupName", SalaryI18nUtil.getI18nLabel(tenantKey, employeeId, 86569, "公积金"));
|
||||
// items.put("fund", fundItem);
|
||||
// Map<String, String> otherItem = new HashMap<>();
|
||||
// otherItem.put("index", "2");
|
||||
// otherItem.put("groupName", SalaryI18nUtil.getI18nLabel(tenantKey, employeeId, 93112, "企业年金及其他福利"));
|
||||
// items.put("other", otherItem);
|
||||
// result.setItems(items);
|
||||
// result.setGroup(group);
|
||||
// return result;
|
||||
// }
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue