|
|
|
@ -19,6 +19,7 @@ import org.springframework.stereotype.Component; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 核查办理-保存 |
|
|
|
* 核查办理-保存 |
|
|
|
@ -74,8 +75,11 @@ public class SaveAction implements Action { |
|
|
|
List<NegativeBlame> negativeBlames = verifyData.getBlames().stream().map(item -> { |
|
|
|
List<NegativeBlame> negativeBlames = verifyData.getBlames().stream().map(item -> { |
|
|
|
NegativeBlame negativeBlame = new NegativeBlame(); |
|
|
|
NegativeBlame negativeBlame = new NegativeBlame(); |
|
|
|
BeanUtil.copyProperties(item, negativeBlame); |
|
|
|
BeanUtil.copyProperties(item, negativeBlame); |
|
|
|
VerifyData.BlameLeader blameLeader = verifyData.getBlameLeaders().stream().filter(leader -> leader.getBlameIdCodes().contains(item.getBlameIdCode())).findFirst().get(); |
|
|
|
VerifyData.BlameLeader blameLeader = verifyData.getBlameLeaders().stream() |
|
|
|
|
|
|
|
.filter(leader -> leader.getBlameIdCodes().contains(item.getBlameIdCode())).findFirst().orElse(null); |
|
|
|
|
|
|
|
if (Objects.nonNull(blameLeader)) { |
|
|
|
BeanUtil.copyProperties(blameLeader, negativeBlame); |
|
|
|
BeanUtil.copyProperties(blameLeader, negativeBlame); |
|
|
|
|
|
|
|
} |
|
|
|
negativeBlame.setNegativeId(negativeId) |
|
|
|
negativeBlame.setNegativeId(negativeId) |
|
|
|
.setBlameId(IdUtil.fastSimpleUUID()) |
|
|
|
.setBlameId(IdUtil.fastSimpleUUID()) |
|
|
|
.setCrtTime(LocalDateTime.now()) |
|
|
|
.setCrtTime(LocalDateTime.now()) |
|
|
|
|