|
@@ -1,15 +1,19 @@
|
|
package com.zhongzheng.controller.user;
|
|
package com.zhongzheng.controller.user;
|
|
|
|
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
import com.zhongzheng.common.annotation.Log;
|
|
import com.zhongzheng.common.annotation.Log;
|
|
import com.zhongzheng.common.core.controller.BaseController;
|
|
import com.zhongzheng.common.core.controller.BaseController;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
|
+import com.zhongzheng.common.exception.CustomException;
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
|
+import com.zhongzheng.common.utils.poi.EasyPoiUtil;
|
|
import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
import com.zhongzheng.modules.alisms.service.IAliSmsService;
|
|
import com.zhongzheng.modules.alisms.service.IAliSmsService;
|
|
|
|
+import com.zhongzheng.modules.top.order.bo.TopOrderQuestionImportBo;
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
@@ -212,6 +216,16 @@ public class UserController extends BaseController {
|
|
return util.exportEasyExcel(util.exportEasyData(errorList), "导出失败导入用户"+timeStr);
|
|
return util.exportEasyExcel(util.exportEasyData(errorList), "导出失败导入用户"+timeStr);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("重置学员手机号码")
|
|
|
|
+ @PostMapping("/export/reset/tel")
|
|
|
|
+ public AjaxResult<Void> exporResetData(MultipartFile file){
|
|
|
|
+ List<UserTelImportExportBo> questionImportBos = EasyPoiUtil.importExcel(file,0,1,UserTelImportExportBo.class);
|
|
|
|
+ if (CollectionUtils.isEmpty(questionImportBos)){
|
|
|
|
+ throw new CustomException("导入文件格式不正确或文件为空,请检查文件!");
|
|
|
|
+ }
|
|
|
|
+ iUserService.exporResetData(questionImportBos);
|
|
|
|
+ return AjaxResult.success();
|
|
|
|
+ }
|
|
|
|
|
|
@ApiOperation("批量获取用户ID")
|
|
@ApiOperation("批量获取用户ID")
|
|
@Log(title = "批量获取用户ID", businessType = BusinessType.IMPORT)
|
|
@Log(title = "批量获取用户ID", businessType = BusinessType.IMPORT)
|