修改商户导入接口异步
This commit is contained in:
parent
cece6186cf
commit
a7bd8a00bd
|
|
@ -78,7 +78,8 @@ public class StoreImportController {
|
|||
@RequiresPermissions("store:import:save")
|
||||
public AjaxResult importStore(@RequestBody List<StoreImportDTO> lists)
|
||||
{
|
||||
return AjaxResult.success(storeImportService.saveList(lists));
|
||||
storeImportService.saveList(lists);
|
||||
return AjaxResult.success();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -23,6 +23,6 @@ public interface StoreImportService extends IService<StoreImport> {
|
|||
|
||||
int confimImport(Long[] ids);
|
||||
|
||||
int saveList(List<StoreImportDTO> dtoList);
|
||||
void saveList(List<StoreImportDTO> dtoList);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ public class StoreImportServiceImpl extends ServiceImpl<StoreImportMapper, Store
|
|||
|
||||
@Override
|
||||
@Async
|
||||
public int saveList(List<StoreImportDTO> dtoList) {
|
||||
public void saveList(List<StoreImportDTO> dtoList) {
|
||||
for (StoreImportDTO storeImportDTO : dtoList) {
|
||||
StoreImport copy = BeanCopyUtils.copy(storeImportDTO, StoreImport.class);
|
||||
copy.setDeptId(SecurityUtils.getDeptId());
|
||||
|
|
@ -108,7 +108,6 @@ public class StoreImportServiceImpl extends ServiceImpl<StoreImportMapper, Store
|
|||
log.error("商户导入异常:{}", copy.getStoreName());
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue