|
|
@@ -27,6 +27,7 @@ import org.sky.scientific.service.ITechnicianService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -97,6 +98,15 @@ public class TechnicianController extends KdController {
|
|
|
technicianService.exportTechnician(response,technician);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @GetMapping("export-template")
|
|
|
+ @ApiOperationSupport(order = 8)
|
|
|
+ @Operation(summary = "导出模板")
|
|
|
+ public void exportTechnicianTemplate(HttpServletResponse response) {
|
|
|
+ List<TechnicianExcel> list = new ArrayList<>();
|
|
|
+ ExcelUtil.export(response, "技术人员花名册模板", "用户数据表", list, TechnicianExcel.class);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/fetchLastMonthData")
|
|
|
@ApiOperationSupport(order = 10)
|
|
|
@Operation(summary = "读取上个月人员名单", description = "传入选中的年月,比如2025-06,则读取2025-05的数据到06月")
|
|
|
@@ -174,6 +184,4 @@ public class TechnicianController extends KdController {
|
|
|
public R<IPage<XmSalaryVO>> meiyueyanfaxiangmurengongfenpeihuizongbiao(XmSalaryDto dto, Query query){
|
|
|
return R.data(technicianService.meiyueyanfaxiangmurengongfenpeihuizongbiao(Condition.getPage(query), dto));
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|