This commit is contained in:
jing's 2024-01-16 08:13:16 +08:00
parent 9879005e2c
commit 8799ac54c2
1 changed files with 5 additions and 5 deletions

View File

@ -244,13 +244,13 @@ public class OptionalMbomMaterialService extends ServiceImpl<OptionalMbomMateria
},dto.getDatas()); },dto.getDatas());
List<OptionalMbomMaterialEntity> entityList2=entityList.stream().filter(item -> (Objects.nonNull(item.getRowId()) && item.getRowId() > 0)).collect(Collectors.toList()); entityList.forEach(item->{
entityList2.forEach(item->{
item.setParentRowId(dto.getRowId()); item.setParentRowId(dto.getRowId());
item.setRootRowId(parentRow.getRootRowId()); item.setRootRowId(parentRow.getRootRowId());
if(Objects.isNull(item.getRowId()) || item.getRowId().longValue() == 0){
item.setCreatedTime(DateUtil.now()); item.setCreatedTime(DateUtil.now());
}
item.setCreatedBy(SessionUtil.getUserCode()); item.setCreatedBy(SessionUtil.getUserCode());
item .setRealName(SessionUtil.getRealName()); item .setRealName(SessionUtil.getRealName());
item .setDeptName(SessionUtil.getDepartName()); item .setDeptName(SessionUtil.getDepartName());