增加扣缴义务人搜索核算列表
This commit is contained in:
parent
da6364a511
commit
d01c9bf06f
|
|
@ -7,6 +7,7 @@ import lombok.Data;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import java.time.YearMonth;
|
import java.time.YearMonth;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 薪资核算列表查询参数
|
* 薪资核算列表查询参数
|
||||||
|
|
@ -31,6 +32,11 @@ public class SalaryAcctRecordQueryParam extends BaseQueryParam {
|
||||||
//账套名称")
|
//账套名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 扣缴义务人id集合
|
||||||
|
*/
|
||||||
|
private List<Long> taxAgentIds;
|
||||||
|
|
||||||
private String startMonthStr;
|
private String startMonthStr;
|
||||||
private String endMonthStr;
|
private String endMonthStr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.engine.salary.service.impl;
|
package com.engine.salary.service.impl;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import com.api.formmode.mybatis.util.SqlProxyHandle;
|
import com.api.formmode.mybatis.util.SqlProxyHandle;
|
||||||
import com.engine.common.util.ServiceUtil;
|
import com.engine.common.util.ServiceUtil;
|
||||||
import com.engine.core.impl.Service;
|
import com.engine.core.impl.Service;
|
||||||
|
|
@ -177,6 +178,21 @@ public class SalaryAcctRecordServiceImpl extends Service implements SalaryAcctRe
|
||||||
Set<Long> salarySobIds = SalaryEntityUtil.properties(salarySobPOS, SalarySobPO::getId);
|
Set<Long> salarySobIds = SalaryEntityUtil.properties(salarySobPOS, SalarySobPO::getId);
|
||||||
po.setSalarySobIds(salarySobIds);
|
po.setSalarySobIds(salarySobIds);
|
||||||
}
|
}
|
||||||
|
if (CollUtil.isNotEmpty(queryParam.getTaxAgentIds())) {
|
||||||
|
List<SalarySobPO> salarySobPOS = getSalarySobService(user).listByTaxAgentIds(queryParam.getTaxAgentIds());
|
||||||
|
if (CollectionUtils.isEmpty(salarySobPOS)) {
|
||||||
|
return page;
|
||||||
|
}
|
||||||
|
Set<Long> salarySobIds = SalaryEntityUtil.properties(salarySobPOS, SalarySobPO::getId);
|
||||||
|
|
||||||
|
Collection<Long> existIds = po.getSalarySobIds();
|
||||||
|
if (CollectionUtils.isNotEmpty(existIds)) {
|
||||||
|
existIds = SalaryEntityUtil.intersectionForList(existIds, salarySobIds);
|
||||||
|
po.setSalarySobIds(existIds);
|
||||||
|
} else {
|
||||||
|
po.setSalarySobIds(salarySobIds);
|
||||||
|
}
|
||||||
|
}
|
||||||
LocalDateRange localDateRange = new LocalDateRange();
|
LocalDateRange localDateRange = new LocalDateRange();
|
||||||
if (Objects.nonNull(queryParam.getStartMonth())) {
|
if (Objects.nonNull(queryParam.getStartMonth())) {
|
||||||
localDateRange.setFromDate(SalaryDateUtil.localDateToDate(queryParam.getStartMonth().atDay(1)));
|
localDateRange.setFromDate(SalaryDateUtil.localDateToDate(queryParam.getStartMonth().atDay(1)));
|
||||||
|
|
@ -827,6 +843,6 @@ public class SalaryAcctRecordServiceImpl extends Service implements SalaryAcctRe
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateDate(Long id, Date updateTime) {
|
public void updateDate(Long id, Date updateTime) {
|
||||||
getSalaryAcctRecordMapper().updateDate(id,updateTime);
|
getSalaryAcctRecordMapper().updateDate(id, updateTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue