|
@@ -116,7 +116,8 @@ public class BizHousingFundDeclareController extends BaseController {
|
|
detailConditions.setYear(conditions.getYear());
|
|
detailConditions.setYear(conditions.getYear());
|
|
detailConditions.setMonth(conditions.getMonth());
|
|
detailConditions.setMonth(conditions.getMonth());
|
|
detailConditions.setMainIds(list.stream().map(BizHousingFundDeclare::getId).collect(Collectors.toList()));
|
|
detailConditions.setMainIds(list.stream().map(BizHousingFundDeclare::getId).collect(Collectors.toList()));
|
|
- List<BizHousingFundDeclareDetail> details = housingFundDeclareDetailService.getListByBean(detailConditions);
|
|
|
|
|
|
+// List<BizHousingFundDeclareDetail> details = housingFundDeclareDetailService.getListByBean(detailConditions);
|
|
|
|
+ List<BizHousingFundDeclareDetail> details = housingFundDeclareDetailService.getListByBean2(detailConditions);
|
|
list.forEach(l -> {
|
|
list.forEach(l -> {
|
|
List<BizHousingFundDeclareDetail> lDetail = details.stream().filter(v -> v.getHousingFundDeclareId().equals(l.getId())).collect(Collectors.toList());
|
|
List<BizHousingFundDeclareDetail> lDetail = details.stream().filter(v -> v.getHousingFundDeclareId().equals(l.getId())).collect(Collectors.toList());
|
|
l.setDetail(lDetail.isEmpty() ? null : lDetail.get(0));
|
|
l.setDetail(lDetail.isEmpty() ? null : lDetail.get(0));
|
|
@@ -289,14 +290,31 @@ public class BizHousingFundDeclareController extends BaseController {
|
|
public AjaxResult getMembers(@RequestBody BizHousingFundConfirmDetail detail) {
|
|
public AjaxResult getMembers(@RequestBody BizHousingFundConfirmDetail detail) {
|
|
BizHousingFundConfirmDetail housingFundConfirmDetail = housingFundConfirmDetailService.query().eq("company_id", detail.getCompanyId()).eq("year", detail.getYear()).eq("month", detail.getMonth()).one();
|
|
BizHousingFundConfirmDetail housingFundConfirmDetail = housingFundConfirmDetailService.query().eq("company_id", detail.getCompanyId()).eq("year", detail.getYear()).eq("month", detail.getMonth()).one();
|
|
if (housingFundConfirmDetail != null) {
|
|
if (housingFundConfirmDetail != null) {
|
|
- List<BizHousingFundConfirmDetailEmployee> employees = housingFundConfirmDetailEmployeeService.query().eq("housing_fund_confirm_detail_id", housingFundConfirmDetail.getId()).list();
|
|
|
|
|
|
+ List<BizHousingFundConfirmDetailEmployee> employees = housingFundConfirmDetailEmployeeService.query()
|
|
|
|
+ .eq("housing_fund_confirm_detail_id", housingFundConfirmDetail.getId())
|
|
|
|
+ .list();
|
|
return success(employees);
|
|
return success(employees);
|
|
} else {
|
|
} else {
|
|
return success(new ArrayList<>());
|
|
return success(new ArrayList<>());
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+ @ApiOperation("获取公积金人员信息")
|
|
|
|
+ @PostMapping("/getMembersNoDelete")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ public AjaxResult getMembersNoDelete(@RequestBody BizHousingFundConfirmDetail detail) {
|
|
|
|
+ BizHousingFundConfirmDetail housingFundConfirmDetail = housingFundConfirmDetailService.query().eq("company_id", detail.getCompanyId()).eq("year", detail.getYear()).eq("month", detail.getMonth()).one();
|
|
|
|
+ if (housingFundConfirmDetail != null) {
|
|
|
|
+ List<BizHousingFundConfirmDetailEmployee> employees = housingFundConfirmDetailEmployeeService.query()
|
|
|
|
+ .eq("housing_fund_confirm_detail_id", housingFundConfirmDetail.getId())
|
|
|
|
+ .ne("change_status", 2)
|
|
|
|
+ .list();
|
|
|
|
+ return success(employees);
|
|
|
|
+ } else {
|
|
|
|
+ return success(new ArrayList<>());
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ }
|
|
private Boolean checkDeduction(BizHousingFundDeclareDetail detail) {
|
|
private Boolean checkDeduction(BizHousingFundDeclareDetail detail) {
|
|
BizHousingFundDeclare main = housingFundDeclareService.getById(detail.getHousingFundDeclareId());
|
|
BizHousingFundDeclare main = housingFundDeclareService.getById(detail.getHousingFundDeclareId());
|
|
if (detail.getAmount() != null && detail.getAmount().compareTo(BigDecimal.ZERO) > 0 && detail.getStatus().equals(3)) {
|
|
if (detail.getAmount() != null && detail.getAmount().compareTo(BigDecimal.ZERO) > 0 && detail.getStatus().equals(3)) {
|