薪酬系统-福利台账,可调差人员列表功能返回格式增加target字段
This commit is contained in:
parent
a04f4a915f
commit
bea06f1d88
|
|
@ -20,4 +20,7 @@ public class HrmInfoDTO {
|
|||
|
||||
//姓名
|
||||
private String username;
|
||||
|
||||
|
||||
private Long target;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import com.engine.salary.entity.siaccount.po.InsuranceAccountDetailPO;
|
|||
import com.engine.salary.entity.siaccount.po.InsuranceCompensationConfigPO;
|
||||
import com.engine.salary.entity.siaccount.po.InsuranceCompensationPO;
|
||||
import com.engine.salary.entity.sicategory.po.ICategoryPO;
|
||||
import com.engine.salary.entity.taxagent.po.TaxAgentPO;
|
||||
import com.engine.salary.enums.siaccount.PaymentStatusEnum;
|
||||
import com.engine.salary.enums.sicategory.DeleteTypeEnum;
|
||||
import com.engine.salary.exception.SalaryRunTimeException;
|
||||
|
|
@ -92,6 +93,8 @@ public class SICompensationServiceImpl extends Service implements SICompensation
|
|||
//查询账单月份+个税扣缴义务人下的社保福利正常缴纳人员列表
|
||||
List<InsuranceAccountDetailPO> normalDataList = getInsuranceAccountDetailMapper().queryNormalListByBillMonth(param.getBillMonth(), param.getPaymentOrganization());
|
||||
List<Long> empIds = normalDataList.stream().map(InsuranceAccountDetailPO::getEmployeeId).collect(Collectors.toList());
|
||||
//生成人员id和bill_detail.id的对应map
|
||||
Map<Long, Long> empIdToTargetMap = SalaryEntityUtil.convert2Map(normalDataList, InsuranceAccountDetailPO::getEmployeeId, InsuranceAccountDetailPO::getId);
|
||||
|
||||
List<HrmInfoDTO> resultData = new ArrayList<>();
|
||||
if (empIds.size() > 0) {
|
||||
|
|
@ -102,8 +105,13 @@ public class SICompensationServiceImpl extends Service implements SICompensation
|
|||
});
|
||||
|
||||
}
|
||||
List<HrmInfoDTO> finalResultData = new ArrayList<>();
|
||||
for (HrmInfoDTO dto : resultData) {
|
||||
dto.setTarget(empIdToTargetMap.get(dto.getEmployeeId()));
|
||||
finalResultData.add(dto);
|
||||
}
|
||||
|
||||
return resultData;
|
||||
return finalResultData;
|
||||
}
|
||||
// public PageInfo<HrmInfoDTO> getEmployeeListToCompensation(HrmQueryParam param) {
|
||||
// // 当前登录人员
|
||||
|
|
|
|||
Loading…
Reference in New Issue