anderx пре 1 година
родитељ
комит
66bc3c7419

+ 2 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ProjectTaskController.java

@@ -29,6 +29,7 @@ import org.springframework.web.multipart.MultipartFile;
 import javax.annotation.Resource;
 import javax.servlet.http.HttpServletResponse;
 import java.util.Date;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
@@ -491,7 +492,7 @@ public class ProjectTaskController extends BaseController {
     @ApiOperation("导入打卡数据")
     public AjaxResult importClockData(@RequestParam(value = "file") MultipartFile file) throws Exception
     {
-        ExcelUtil<Map> util = new ExcelUtil<>(Map.class);
+        ExcelUtil<HashMap> util = new ExcelUtil<>(HashMap.class);
         List<Map<Integer,String >>  list = util.importMapExcel(file.getInputStream(),0);
         return success(projectStaffRecordService.importClockData(list));
     }