|
|
@@ -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));
|
|
|
}
|