Commit 1208720d authored by suhuiguang's avatar suhuiguang

Merge branch 'develop_tzs_register' of…

Merge branch 'develop_tzs_register' of http://36.40.66.175:5000/moa/amos-boot-biz into develop_tzs_register
parents d17c890d 91815ad5
...@@ -51,8 +51,8 @@ public class JgResumeInfoController extends BaseController { ...@@ -51,8 +51,8 @@ public class JgResumeInfoController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/saveBatchResume") @PostMapping(value = "/saveBatchResume")
@ApiOperation(httpMethod = "POST", value = "批量新增", notes = "批量新增") @ApiOperation(httpMethod = "POST", value = "批量新增", notes = "批量新增")
public boolean saveBatchResume(@RequestBody List<JgResumeInfoDto> jgResumeInfoDtoList) { public void saveBatchResume(@RequestBody List<JgResumeInfoDto> jgResumeInfoDtoList) {
return jgResumeInfoServiceImpl.saveBatchResume(jgResumeInfoDtoList); jgResumeInfoServiceImpl.saveBatchResume(jgResumeInfoDtoList);
} }
/** /**
......
...@@ -7,7 +7,6 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.JgResumeInfoMapper; ...@@ -7,7 +7,6 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.JgResumeInfoMapper;
import com.yeejoin.amos.boot.module.jg.api.service.IJgResumeInfoService; import com.yeejoin.amos.boot.module.jg.api.service.IJgResumeInfoService;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.core.rdbms.service.BaseService; import org.typroject.tyboot.core.rdbms.service.BaseService;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
...@@ -35,8 +34,7 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto,JgResum ...@@ -35,8 +34,7 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto,JgResum
return this.queryForList("" , false); return this.queryForList("" , false);
} }
@Transactional public void saveBatchResume(List<JgResumeInfoDto> jgResumeInfoDtoList) {
public boolean saveBatchResume(List<JgResumeInfoDto> jgResumeInfoDtoList) {
Collection<JgResumeInfo> jgResumeInfoCollection = jgResumeInfoDtoList.stream() Collection<JgResumeInfo> jgResumeInfoCollection = jgResumeInfoDtoList.stream()
.map(dto -> { .map(dto -> {
JgResumeInfo info = new JgResumeInfo(); JgResumeInfo info = new JgResumeInfo();
...@@ -44,6 +42,6 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto,JgResum ...@@ -44,6 +42,6 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto,JgResum
return info; return info;
}) })
.collect(Collectors.toList()); .collect(Collectors.toList());
return this.saveBatch(jgResumeInfoCollection); this.saveBatch(jgResumeInfoCollection);
} }
} }
\ No newline at end of file
...@@ -230,7 +230,7 @@ public class WordTemplateUtils { ...@@ -230,7 +230,7 @@ public class WordTemplateUtils {
/** /**
* 下载填充模板的字段,特殊符号转义 * 下载填充模板的字段,特殊符号转义
*/ */
private static Map<String, Object> escapeSpecialCharacters(Map<String, ?> inputMap) { public static Map<String, Object> escapeSpecialCharacters(Map<String, ?> inputMap) {
Map<String, Object> escapedMap = new HashMap<>(); Map<String, Object> escapedMap = new HashMap<>();
for (Map.Entry<String, ?> entry : inputMap.entrySet()) { for (Map.Entry<String, ?> entry : inputMap.entrySet()) {
String key = entry.getKey(); String key = entry.getKey();
......
...@@ -24,6 +24,6 @@ public interface JgFeignClient { ...@@ -24,6 +24,6 @@ public interface JgFeignClient {
* 设备注册信息分页查询 * 设备注册信息分页查询
* */ * */
@RequestMapping(value = "/jg-resume-info/saveBatchResume", method = RequestMethod.POST) @RequestMapping(value = "/jg-resume-info/saveBatchResume", method = RequestMethod.POST)
FeignClientResult<Boolean> saveBatchResume(@RequestBody List<JgResumeInfoDto> jgResumeInfoDtoList); FeignClientResult saveBatchResume(@RequestBody List<JgResumeInfoDto> jgResumeInfoDtoList);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment