|
|
|
@ -1332,9 +1332,11 @@ public class GyzjServiceImpl extends ServiceImpl implements IG |
|
|
|
LinkedList<GyzjTz> tzList = new LinkedList<>(); |
|
|
|
if (StringUtils.isNotEmpty(resource) && !StringUtils.equals("[]", resource)) { |
|
|
|
List<StudyFormFillResource> studyFormFillResourceList = JSONUtil.toList(resource, StudyFormFillResource.class); |
|
|
|
List<String> bhList = studyFormFillResourceList.stream().filter(p -> (p.getType() == null && mark) || p.getType().equals(StudyFormFillResourceTypeEnum.gyzj.getValue())).map(StudyFormFillResource::getBh).collect(Collectors.toList()); |
|
|
|
String ss="1"; |
|
|
|
List<StudyFormFillResource> tmp= studyFormFillResourceList.stream().filter(p -> (p.getType() == null && mark) ||(p.getType()!=null&&StudyFormFillResourceTypeEnum.gyzj.getValue()==p.getType())).collect(Collectors.toList()); |
|
|
|
// 根据编号获取需要处置的列表 |
|
|
|
if (bhList.size() > 0) { |
|
|
|
if (tmp.size() > 0) { |
|
|
|
List<String> bhList= tmp.stream().map(StudyFormFillResource::getBh).collect(Collectors.toList()); |
|
|
|
LambdaQueryWrapper<Gyzj> queryWrapper = new LambdaQueryWrapper<>(); |
|
|
|
queryWrapper.in(Gyzj::getBh, bhList); |
|
|
|
gyzjList = this.list(queryWrapper); |
|
|
|
|