批量核算
This commit is contained in:
parent
5c2ede9736
commit
0bd518f6e7
|
|
@ -29,7 +29,7 @@ public class SalaryAcctRecordBatchSaveParam {
|
|||
private String salaryMonthStr;
|
||||
|
||||
//薪资账套id
|
||||
private List<Long> salarySobIds;
|
||||
private List<String> salarySobIds;
|
||||
|
||||
//备注
|
||||
@DataCheck(max = 80, message = "备注不能超过80个字符")
|
||||
|
|
|
|||
|
|
@ -423,7 +423,8 @@ public class SalaryAcctRecordWrapper extends Service implements SalaryAcctRecord
|
|||
}
|
||||
|
||||
public List<Long> batSaveAndAcct(SalaryAcctRecordBatchSaveParam saveParam) {
|
||||
List<Long> ids = saveParam.getSalarySobIds().stream().map(salarySobId -> {
|
||||
List<Long> ids = saveParam.getSalarySobIds().stream().filter(NumberUtils::isCreatable)
|
||||
.map(Long::valueOf).map(salarySobId -> {
|
||||
SalaryAcctRecordSaveParam build = SalaryAcctRecordSaveParam.builder()
|
||||
.salarySobId(salarySobId)
|
||||
.salaryMonth(SalaryDateUtil.localDate2YearMonth(saveParam.getSalaryMonth()))
|
||||
|
|
|
|||
Loading…
Reference in New Issue