|
|
@@ -296,6 +296,9 @@ public class SysUserController extends BaseController
|
|
|
public AjaxResult importUserClock( @RequestParam("file") MultipartFile file) throws Exception{
|
|
|
ExcelUtil<Map> util = new ExcelUtil<>(Map.class);
|
|
|
List<Map<Integer, String>> maps = util.importMapExcel(file.getInputStream(), 0);
|
|
|
+ if (maps == null || maps.isEmpty()){
|
|
|
+ return error("您上传的文件格式不匹配,请重新上传!");
|
|
|
+ }
|
|
|
userService.pushUserClock(maps);
|
|
|
return success();
|
|
|
}
|