|
@@ -1,5 +1,6 @@
|
|
|
package com.dayou.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
@@ -13,6 +14,7 @@ import com.dayou.service.IPersonalService;
|
|
|
import com.dayou.service.IPersonalTargetService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.dayou.vo.*;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -31,8 +33,11 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.sql.Struct;
|
|
|
+import java.util.Collections;
|
|
|
import java.util.List;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.stream.Collectors;
|
|
|
+
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import com.dayou.enums.BatchTaskTypeEnum;
|
|
|
|
|
@@ -51,6 +56,8 @@ public class PersonalTargetServiceImpl extends ServiceImpl<PersonalTargetMapper,
|
|
|
|
|
|
@Autowired
|
|
|
private IPersonalService personalService;
|
|
|
+ @Autowired
|
|
|
+ private PersonalTargetMapper personalTargetMapper;
|
|
|
|
|
|
@Override
|
|
|
@SuppressWarnings("unchecked")
|
|
@@ -159,4 +166,15 @@ public class PersonalTargetServiceImpl extends ServiceImpl<PersonalTargetMapper,
|
|
|
PersonalTarget taskData = taskRecordDTO.getTaskData();
|
|
|
return this.update(new LambdaUpdateWrapper<PersonalTarget>().eq(BaseEntity::getId,taskData.getId()).set(PersonalTarget::getFeedback,taskData.getFeedback()));
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<PersonalBackgroundInfo> fuzzyBackgroundList(String location) {
|
|
|
+ List<String> list = personalTargetMapper.fuzzyBackgroundList(location);
|
|
|
+ List<PersonalBackgroundInfo> result = list.stream().map(x -> {
|
|
|
+ PersonalBackgroundInfo personalBackgroundInfo = JSON.parseObject(x, PersonalBackgroundInfo.class);
|
|
|
+ personalBackgroundInfo.setId(null);
|
|
|
+ return personalBackgroundInfo;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ return result;
|
|
|
+ }
|
|
|
}
|