|
|
@@ -81,12 +81,15 @@ public class SalaryItemController extends BladeController {
|
|
|
@GetMapping("/list")
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
@ApiOperation(value = "分页", notes = "传入salaryItem")
|
|
|
- public R<IPage<SalaryItem>> list(SalaryItem salaryItem, Query query) {
|
|
|
+ public R<IPage<SalaryItem>> list(SalaryItemVO salaryItem, Query query) {
|
|
|
LambdaQueryWrapper<SalaryItem> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
lambdaQueryWrapper.eq(SalaryItem::getIsDeleted,0);
|
|
|
lambdaQueryWrapper.eq(SalaryItem::getTenantId,SecureUtil.getTenantId());
|
|
|
lambdaQueryWrapper.eq(Func.isNotEmpty(salaryItem.getPid()),SalaryItem::getPid,salaryItem.getPid());
|
|
|
lambdaQueryWrapper.eq(Func.isNotEmpty(salaryItem.getCname()),SalaryItem::getCname,salaryItem.getCname());
|
|
|
+ lambdaQueryWrapper.eq(Func.isNotEmpty(salaryItem.getIdNumber()),SalaryItem::getIdNumber,salaryItem.getIdNumber());
|
|
|
+ lambdaQueryWrapper.ge(Func.isNotEmpty(salaryItem.getPositiveTimeStart()), SalaryItem::getPositiveTime, salaryItem.getPositiveTimeStart());//校龄开始时间开始
|
|
|
+ lambdaQueryWrapper.le(Func.isNotEmpty(salaryItem.getPositiveTimeEnd()), SalaryItem::getPositiveTime, salaryItem.getPositiveTimeEnd());//校龄开始时间结束
|
|
|
lambdaQueryWrapper.orderByAsc(SalaryItem::getId);
|
|
|
IPage<SalaryItem> pages = salaryItemService.page(Condition.getPage(query), lambdaQueryWrapper);
|
|
|
return R.data(pages);
|
|
|
@@ -239,7 +242,7 @@ public class SalaryItemController extends BladeController {
|
|
|
@ApiOperation(value = "导入模板-工资管理-小学部-职级模板")
|
|
|
public void exportPosition(HttpServletResponse response) {
|
|
|
List<PositionExcel> list = new ArrayList<PositionExcel>();
|
|
|
- ExcelUtil.export(response, "职级", "职级", list, PositionExcel.class);
|
|
|
+ ExcelUtil.export(response, "职级等级", "职级等级", list, PositionExcel.class);
|
|
|
}
|
|
|
/**
|
|
|
* 导入-工资管理-小学部-职级导入
|
|
|
@@ -269,14 +272,14 @@ public class SalaryItemController extends BladeController {
|
|
|
return salaryItemService.importPosition(excelList,false,id,file);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入学习强国扣费模板
|
|
|
+ * 导入学习强国模板
|
|
|
*/
|
|
|
@GetMapping("/export/power")
|
|
|
@ApiOperationSupport(order = 15)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-学习强国扣费模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-学习强国模板")
|
|
|
public void exportPower(HttpServletResponse response) {
|
|
|
List<LearningPower> list = new ArrayList<LearningPower>();
|
|
|
- ExcelUtil.export(response, "学习强国扣费", "学习强国扣费", list, LearningPower.class);
|
|
|
+ ExcelUtil.export(response, "学习强国", "学习强国", list, LearningPower.class);
|
|
|
}
|
|
|
/**
|
|
|
* 导入-工资管理-小学部-学习强国扣费导入
|
|
|
@@ -284,7 +287,7 @@ public class SalaryItemController extends BladeController {
|
|
|
* */
|
|
|
@PostMapping("/import/power")
|
|
|
@ApiOperationSupport(order = 16)
|
|
|
- @ApiOperation(value = "导入-工资管理-小学部-学习强国扣费导入", notes = "传入excel")
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-学习强国导入", notes = "传入excel")
|
|
|
public R importPower(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
{
|
|
|
//校验模板
|
|
|
@@ -343,14 +346,14 @@ public class SalaryItemController extends BladeController {
|
|
|
return salaryItemService.importWeChat(excelList,false,id,file);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入班主任补贴模板
|
|
|
+ * 导入班主任津贴模板
|
|
|
*/
|
|
|
@GetMapping("/export/teacherSubsidy")
|
|
|
@ApiOperationSupport(order = 19)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-班主任补贴模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-班主任津贴模板")
|
|
|
public void exportTeacherSubsidy(HttpServletResponse response) {
|
|
|
List<TeacherSubsidy> list = new ArrayList<TeacherSubsidy>();
|
|
|
- ExcelUtil.export(response, "班主任补贴", "班主任补贴", list, TeacherSubsidy.class);
|
|
|
+ ExcelUtil.export(response, "班主任津贴", "班主任津贴", list, TeacherSubsidy.class);
|
|
|
}
|
|
|
/**
|
|
|
* 导入-工资管理-小学部-班主任补贴导入
|
|
|
@@ -358,7 +361,7 @@ public class SalaryItemController extends BladeController {
|
|
|
* */
|
|
|
@PostMapping("/import/teacherSubsidy")
|
|
|
@ApiOperationSupport(order = 20)
|
|
|
- @ApiOperation(value = "导入-工资管理-小学部-班主任补贴导入", notes = "传入excel")
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-班主任津贴导入", notes = "传入excel")
|
|
|
public R importTeacherSubsidy(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
{
|
|
|
//校验模板
|
|
|
@@ -380,14 +383,14 @@ public class SalaryItemController extends BladeController {
|
|
|
return salaryItemService.importTeacherSubsidy(excelList,false,id,file);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入周末加班模板
|
|
|
+ * 导入周末工作量模板
|
|
|
*/
|
|
|
@GetMapping("/export/overtime")
|
|
|
@ApiOperationSupport(order = 21)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-周末加班模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-周末工作量模板")
|
|
|
public void exportOvertime(HttpServletResponse response) {
|
|
|
List<OvertimeExcel> list = new ArrayList<OvertimeExcel>();
|
|
|
- ExcelUtil.export(response, "周末加班", "周末加班", list, OvertimeExcel.class);
|
|
|
+ ExcelUtil.export(response, "周末工作量", "周末工作量", list, OvertimeExcel.class);
|
|
|
}
|
|
|
/**
|
|
|
* 导入-工资管理-小学部-周末加班导入
|
|
|
@@ -395,7 +398,7 @@ public class SalaryItemController extends BladeController {
|
|
|
* */
|
|
|
@PostMapping("/import/overtime")
|
|
|
@ApiOperationSupport(order = 22)
|
|
|
- @ApiOperation(value = "导入-工资管理-小学部-周末加班导入", notes = "传入excel")
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-周末工作量导入", notes = "传入excel")
|
|
|
public R importOvertime(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
{
|
|
|
//校验模板
|
|
|
@@ -417,14 +420,14 @@ public class SalaryItemController extends BladeController {
|
|
|
return salaryItemService.importOvertime(excelList,false,id,file);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入电话费、罚款模板
|
|
|
+ * 导入电话费模板
|
|
|
*/
|
|
|
@GetMapping("/export/phoneFine")
|
|
|
@ApiOperationSupport(order = 23)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-电话费、罚款模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-电话费模板")
|
|
|
public void exportPhoneFine(HttpServletResponse response) {
|
|
|
List<PhoneFineExcel> list = new ArrayList<PhoneFineExcel>();
|
|
|
- ExcelUtil.export(response, "电话费、罚款", "电话费、罚款", list, PhoneFineExcel.class);
|
|
|
+ ExcelUtil.export(response, "电话费", "电话费", list, PhoneFineExcel.class);
|
|
|
}
|
|
|
/**
|
|
|
* 导入-工资管理-小学部-电话费、罚款导入
|
|
|
@@ -432,7 +435,7 @@ public class SalaryItemController extends BladeController {
|
|
|
* */
|
|
|
@PostMapping("/import/phoneFine")
|
|
|
@ApiOperationSupport(order = 24)
|
|
|
- @ApiOperation(value = "导入-工资管理-小学部-电话费、罚款导入", notes = "传入excel")
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-电话费导入", notes = "传入excel")
|
|
|
public R importPhoneFine(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
{
|
|
|
//校验模板
|
|
|
@@ -454,22 +457,22 @@ public class SalaryItemController extends BladeController {
|
|
|
return salaryItemService.importPhoneFine(excelList,false,id,file);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入卫生费模板
|
|
|
+ * 导入宿舍管理费模板
|
|
|
*/
|
|
|
@GetMapping("/export/sanitationFee")
|
|
|
@ApiOperationSupport(order = 25)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-卫生费模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-宿舍管理费模板")
|
|
|
public void exportSanitationFee(HttpServletResponse response) {
|
|
|
List<SanitationFee> list = new ArrayList<SanitationFee>();
|
|
|
- ExcelUtil.export(response, "卫生费", "卫生费", list, SanitationFee.class);
|
|
|
+ ExcelUtil.export(response, "宿舍管理费", "宿舍管理费", list, SanitationFee.class);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入-工资管理-小学部-卫生费导入
|
|
|
+ * 导入-工资管理-小学部-宿舍管理费导入
|
|
|
*
|
|
|
* */
|
|
|
@PostMapping("/import/sanitationFee")
|
|
|
@ApiOperationSupport(order = 26)
|
|
|
- @ApiOperation(value = "导入-工资管理-小学部-卫生费导入", notes = "传入excel")
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-宿舍管理费导入", notes = "传入excel")
|
|
|
public R importSanitationFee(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
{
|
|
|
//校验模板
|
|
|
@@ -602,22 +605,22 @@ public class SalaryItemController extends BladeController {
|
|
|
return salaryItemService.importReservedFunds(excelList,false,id,file);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入个税模板
|
|
|
+ * 导入个人所得税模板
|
|
|
*/
|
|
|
@GetMapping("/export/payTaxes")
|
|
|
@ApiOperationSupport(order = 33)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-个税模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-个人所得税模板")
|
|
|
public void exportPayTaxes(HttpServletResponse response) {
|
|
|
List<PayTaxes> list = new ArrayList<PayTaxes>();
|
|
|
- ExcelUtil.export(response, "个税", "个税", list, PayTaxes.class);
|
|
|
+ ExcelUtil.export(response, "个人所得税", "个人所得税", list, PayTaxes.class);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入-工资管理-小学部-个税导入
|
|
|
+ * 导入-工资管理-小学部-个人所得税导入
|
|
|
*
|
|
|
* */
|
|
|
@PostMapping("/import/payTaxes")
|
|
|
@ApiOperationSupport(order = 34)
|
|
|
- @ApiOperation(value = "导入-工资管理-小学部-个税导入", notes = "传入excel")
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-个人所得税导入", notes = "传入excel")
|
|
|
public R importPayTaxes(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
{
|
|
|
//校验模板
|
|
|
@@ -861,22 +864,22 @@ public class SalaryItemController extends BladeController {
|
|
|
return salaryItemService.importWorkloadExcel(excelList,false,id,file);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入查评模板
|
|
|
+ * 导入日常考核等级模板
|
|
|
*/
|
|
|
@GetMapping("/export/zhaPingExcel")
|
|
|
@ApiOperationSupport(order = 47)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-查评模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-日常考核等级模板")
|
|
|
public void exportZhaPingExcel(HttpServletResponse response) {
|
|
|
List<ZhaPingExcel> list = new ArrayList<ZhaPingExcel>();
|
|
|
- ExcelUtil.export(response, "查评", "查评", list, ZhaPingExcel.class);
|
|
|
+ ExcelUtil.export(response, "日常考核等级", "日常考核等级", list, ZhaPingExcel.class);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入-工资管理-小学部-查评导入
|
|
|
+ * 导入-工资管理-小学部-日常考核等级导入
|
|
|
*
|
|
|
* */
|
|
|
@PostMapping("/import/zhaPingExcel")
|
|
|
@ApiOperationSupport(order = 48)
|
|
|
- @ApiOperation(value = "导入-工资管理-小学部-查评导入", notes = "传入excel")
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-日常考核等级导入", notes = "传入excel")
|
|
|
public R importZhaPingExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
{
|
|
|
//校验模板
|
|
|
@@ -935,22 +938,22 @@ public class SalaryItemController extends BladeController {
|
|
|
return salaryItemService.importInsuranceExcel(excelList,false,id,file);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入月底人数模板
|
|
|
+ * 导入班额模板
|
|
|
*/
|
|
|
@GetMapping("/export/eomNumberExcel")
|
|
|
@ApiOperationSupport(order = 51)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-月底人数模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-班额模板")
|
|
|
public void exportEomNumberExcel(HttpServletResponse response) {
|
|
|
List<EomNumberExcel> list = new ArrayList<EomNumberExcel>();
|
|
|
- ExcelUtil.export(response, "月底人数", "月底人数", list, EomNumberExcel.class);
|
|
|
+ ExcelUtil.export(response, "班额", "班额", list, EomNumberExcel.class);
|
|
|
}
|
|
|
/**
|
|
|
- * 导入-工资管理-小学部-月底人数导入
|
|
|
+ * 导入-工资管理-小学部-班额导入
|
|
|
*
|
|
|
* */
|
|
|
@PostMapping("/import/eomNumberExcel")
|
|
|
@ApiOperationSupport(order = 52)
|
|
|
- @ApiOperation(value = "导入-工资管理-小学部-月底人数导入", notes = "传入excel")
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-班额导入", notes = "传入excel")
|
|
|
public R importEomNumberExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
{
|
|
|
//校验模板
|
|
|
@@ -979,7 +982,7 @@ public class SalaryItemController extends BladeController {
|
|
|
@ApiOperation(value = "导入模板-工资管理-小学部-教研组长模板")
|
|
|
public void exportTeamLeaderExcel(HttpServletResponse response) {
|
|
|
List<TeamLeaderExcel> list = new ArrayList<TeamLeaderExcel>();
|
|
|
- ExcelUtil.export(response, "教研组长", "教研组长", list, TeamLeaderExcel.class);
|
|
|
+ ExcelUtil.export(response, "教研组长补贴", "教研组长补贴", list, TeamLeaderExcel.class);
|
|
|
}
|
|
|
/**
|
|
|
* 导入-工资管理-小学部-教研组长导入
|
|
|
@@ -1016,7 +1019,7 @@ public class SalaryItemController extends BladeController {
|
|
|
@ApiOperation(value = "导入模板-工资管理-小学部-备课组长模板")
|
|
|
public void exportPrepareLessonsExcel(HttpServletResponse response) {
|
|
|
List<PrepareLessonsExcel> list = new ArrayList<PrepareLessonsExcel>();
|
|
|
- ExcelUtil.export(response, "备课组长", "备课组长", list, PrepareLessonsExcel.class);
|
|
|
+ ExcelUtil.export(response, "备课组长补贴", "备课组长补贴", list, PrepareLessonsExcel.class);
|
|
|
}
|
|
|
/**
|
|
|
* 导入-工资管理-小学部-备课组长导入
|
|
|
@@ -1053,7 +1056,7 @@ public class SalaryItemController extends BladeController {
|
|
|
@ApiOperation(value = "导入模板-工资管理-小学部-领导干部模板")
|
|
|
public void exportLeadExcel(HttpServletResponse response) {
|
|
|
List<LeadExcel> list = new ArrayList<LeadExcel>();
|
|
|
- ExcelUtil.export(response, "领导干部", "领导干部", list, LeadExcel.class);
|
|
|
+ ExcelUtil.export(response, "领导干部补贴", "领导干部补贴", list, LeadExcel.class);
|
|
|
}
|
|
|
/**
|
|
|
* 导入-工资管理-小学部-领导干部导入
|
|
|
@@ -1087,7 +1090,7 @@ public class SalaryItemController extends BladeController {
|
|
|
*/
|
|
|
@GetMapping("/export/teachingExcel")
|
|
|
@ApiOperationSupport(order = 59)
|
|
|
- @ApiOperation(value = "导入模板-工资管理-小学部-下学期绩效模板")
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-学期绩效模板")
|
|
|
public void exportTeachingExcel(HttpServletResponse response) {
|
|
|
List<TeachingExcel> list = new ArrayList<TeachingExcel>();
|
|
|
ExcelUtil.export(response, "学期绩效", "学期绩效", list, TeachingExcel.class);
|
|
|
@@ -1192,5 +1195,286 @@ public class SalaryItemController extends BladeController {
|
|
|
}
|
|
|
return salaryItemService.importDoubleWorkloadExcel(excelList,false,id,file);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 导入代课工作量模板
|
|
|
+ */
|
|
|
+ @GetMapping("/export/probationExcel")
|
|
|
+ @ApiOperationSupport(order = 66)
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-代课工作量模板")
|
|
|
+ public void exportProbationExcel(HttpServletResponse response) {
|
|
|
+ List<ProbationExcel> list = new ArrayList<ProbationExcel>();
|
|
|
+ ExcelUtil.export(response, "代课工作量", "代课工作量", list, ProbationExcel.class);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入-工资管理-小学部-代课工作量导入
|
|
|
+ *
|
|
|
+ * */
|
|
|
+ @PostMapping("/import/probationExcel")
|
|
|
+ @ApiOperationSupport(order = 67)
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-代课工作量导入", notes = "传入excel")
|
|
|
+ public R importProbationExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
+ {
|
|
|
+ //校验模板
|
|
|
+ String excelPattern = null;
|
|
|
+ try {
|
|
|
+ excelPattern = ExcelCheck.checkExcelPattern(file, new ProbationExcel());
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new SecurityException("校验Excel失败");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(excelPattern)){
|
|
|
+ throw new SecurityException(excelPattern);
|
|
|
+ }
|
|
|
+ //导入数据
|
|
|
+ List<ProbationExcel> excelList = ExcelUtil.read(file, ProbationExcel.class);
|
|
|
+ if(CollectionUtils.isEmpty(excelList))
|
|
|
+ {
|
|
|
+ throw new SecurityException("数据不能为空");
|
|
|
+ }
|
|
|
+ return salaryItemService.importProbationExcel(excelList,false,id,file);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入罚款模板
|
|
|
+ */
|
|
|
+ @GetMapping("/export/fineExcel")
|
|
|
+ @ApiOperationSupport(order = 68)
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-罚款模板")
|
|
|
+ public void exportFineExcel(HttpServletResponse response) {
|
|
|
+ List<FineExcel> list = new ArrayList<FineExcel>();
|
|
|
+ ExcelUtil.export(response, "罚款", "罚款", list, FineExcel.class);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入-工资管理-小学部-罚款导入
|
|
|
+ *
|
|
|
+ * */
|
|
|
+ @PostMapping("/import/fineExcel")
|
|
|
+ @ApiOperationSupport(order = 69)
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-罚款导入", notes = "传入excel")
|
|
|
+ public R importFineExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
+ {
|
|
|
+ //校验模板
|
|
|
+ String excelPattern = null;
|
|
|
+ try {
|
|
|
+ excelPattern = ExcelCheck.checkExcelPattern(file, new FineExcel());
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new SecurityException("校验Excel失败");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(excelPattern)){
|
|
|
+ throw new SecurityException(excelPattern);
|
|
|
+ }
|
|
|
+ //导入数据
|
|
|
+ List<FineExcel> excelList = ExcelUtil.read(file, FineExcel.class);
|
|
|
+ if(CollectionUtils.isEmpty(excelList))
|
|
|
+ {
|
|
|
+ throw new SecurityException("数据不能为空");
|
|
|
+ }
|
|
|
+ return salaryItemService.importFineExcel(excelList,false,id,file);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入补贴模板
|
|
|
+ */
|
|
|
+ @GetMapping("/export/subsidyExcel")
|
|
|
+ @ApiOperationSupport(order = 70)
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-补贴模板")
|
|
|
+ public void exportSubsidyExcel(HttpServletResponse response) {
|
|
|
+ List<SubsidyExcel> list = new ArrayList<SubsidyExcel>();
|
|
|
+ ExcelUtil.export(response, "补贴", "补贴", list, SubsidyExcel.class);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入-工资管理-小学部-补贴导入
|
|
|
+ *
|
|
|
+ * */
|
|
|
+ @PostMapping("/import/subsidyExcel")
|
|
|
+ @ApiOperationSupport(order = 71)
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-补贴导入", notes = "传入excel")
|
|
|
+ public R importSubsidyExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
+ {
|
|
|
+ //校验模板
|
|
|
+ String excelPattern = null;
|
|
|
+ try {
|
|
|
+ excelPattern = ExcelCheck.checkExcelPattern(file, new FineExcel());
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new SecurityException("校验Excel失败");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(excelPattern)){
|
|
|
+ throw new SecurityException(excelPattern);
|
|
|
+ }
|
|
|
+ //导入数据
|
|
|
+ List<SubsidyExcel> excelList = ExcelUtil.read(file, SubsidyExcel.class);
|
|
|
+ if(CollectionUtils.isEmpty(excelList))
|
|
|
+ {
|
|
|
+ throw new SecurityException("数据不能为空");
|
|
|
+ }
|
|
|
+ return salaryItemService.importSubsidyExcel(excelList,false,id,file);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入扣除模板
|
|
|
+ */
|
|
|
+ @GetMapping("/export/deductExcel")
|
|
|
+ @ApiOperationSupport(order = 72)
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-扣除模板")
|
|
|
+ public void exportDeductExcel(HttpServletResponse response) {
|
|
|
+ List<DeductExcel> list = new ArrayList<DeductExcel>();
|
|
|
+ ExcelUtil.export(response, "扣除", "扣除", list, DeductExcel.class);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入-工资管理-小学部-扣除导入
|
|
|
+ *
|
|
|
+ * */
|
|
|
+ @PostMapping("/import/deductExcel")
|
|
|
+ @ApiOperationSupport(order = 73)
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-扣除导入", notes = "传入excel")
|
|
|
+ public R importDeductExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
+ {
|
|
|
+ //校验模板
|
|
|
+ String excelPattern = null;
|
|
|
+ try {
|
|
|
+ excelPattern = ExcelCheck.checkExcelPattern(file, new DeductExcel());
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new SecurityException("校验Excel失败");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(excelPattern)){
|
|
|
+ throw new SecurityException(excelPattern);
|
|
|
+ }
|
|
|
+ //导入数据
|
|
|
+ List<DeductExcel> excelList = ExcelUtil.read(file, DeductExcel.class);
|
|
|
+ if(CollectionUtils.isEmpty(excelList))
|
|
|
+ {
|
|
|
+ throw new SecurityException("数据不能为空");
|
|
|
+ }
|
|
|
+ return salaryItemService.importDeductExcel(excelList,false,id,file);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入校车考核模板
|
|
|
+ */
|
|
|
+ @GetMapping("/export/schoolBusExcel")
|
|
|
+ @ApiOperationSupport(order = 74)
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-校车考核模板")
|
|
|
+ public void exportSchoolBusExcel(HttpServletResponse response) {
|
|
|
+ List<SchoolBusExcel> list = new ArrayList<SchoolBusExcel>();
|
|
|
+ ExcelUtil.export(response, "校车考核", "校车考核", list, SchoolBusExcel.class);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入-工资管理-小学部-校车考核导入
|
|
|
+ *
|
|
|
+ * */
|
|
|
+ @PostMapping("/import/schoolBusExcel")
|
|
|
+ @ApiOperationSupport(order = 75)
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-校车考核导入", notes = "传入excel")
|
|
|
+ public R importSchoolBusExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
+ {
|
|
|
+ //校验模板
|
|
|
+ String excelPattern = null;
|
|
|
+ try {
|
|
|
+ excelPattern = ExcelCheck.checkExcelPattern(file, new SchoolBusExcel());
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new SecurityException("校验Excel失败");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(excelPattern)){
|
|
|
+ throw new SecurityException(excelPattern);
|
|
|
+ }
|
|
|
+ //导入数据
|
|
|
+ List<SchoolBusExcel> excelList = ExcelUtil.read(file, SchoolBusExcel.class);
|
|
|
+ if(CollectionUtils.isEmpty(excelList))
|
|
|
+ {
|
|
|
+ throw new SecurityException("数据不能为空");
|
|
|
+ }
|
|
|
+ return salaryItemService.importSchoolBusExcel(excelList,false,id,file);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入班级微信考核模板
|
|
|
+ */
|
|
|
+ @GetMapping("/export/classWeChatExcel")
|
|
|
+ @ApiOperationSupport(order = 76)
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-班级微信考核模板")
|
|
|
+ public void exportClassWeChatExcel(HttpServletResponse response) {
|
|
|
+ List<ClassWeChatExcel> list = new ArrayList<ClassWeChatExcel>();
|
|
|
+ ExcelUtil.export(response, "班级微信考核", "班级微信考核", list, ClassWeChatExcel.class);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入-工资管理-小学部-班级微信考核导入
|
|
|
+ *
|
|
|
+ * */
|
|
|
+ @PostMapping("/import/classWeChatExcel")
|
|
|
+ @ApiOperationSupport(order = 77)
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-班级微信考核导入", notes = "传入excel")
|
|
|
+ public R importClassWeChatExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
+ {
|
|
|
+ //校验模板
|
|
|
+ String excelPattern = null;
|
|
|
+ try {
|
|
|
+ excelPattern = ExcelCheck.checkExcelPattern(file, new ClassWeChatExcel());
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new SecurityException("校验Excel失败");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(excelPattern)){
|
|
|
+ throw new SecurityException(excelPattern);
|
|
|
+ }
|
|
|
+ //导入数据
|
|
|
+ List<ClassWeChatExcel> excelList = ExcelUtil.read(file, ClassWeChatExcel.class);
|
|
|
+ if(CollectionUtils.isEmpty(excelList))
|
|
|
+ {
|
|
|
+ throw new SecurityException("数据不能为空");
|
|
|
+ }
|
|
|
+ return salaryItemService.importClassWeChatExcel(excelList,false,id,file);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入财务考核模板
|
|
|
+ */
|
|
|
+ @GetMapping("/export/fnanceExcel")
|
|
|
+ @ApiOperationSupport(order = 78)
|
|
|
+ @ApiOperation(value = "导入模板-工资管理-小学部-财务考核模板")
|
|
|
+ public void exportFinanceExcel(HttpServletResponse response) {
|
|
|
+ List<FinanceExcel> list = new ArrayList<FinanceExcel>();
|
|
|
+ ExcelUtil.export(response, "财务考核", "财务考核", list, FinanceExcel.class);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 导入-工资管理-小学部-财务考核导入
|
|
|
+ *
|
|
|
+ * */
|
|
|
+ @PostMapping("/import/financeExcel")
|
|
|
+ @ApiOperationSupport(order = 79)
|
|
|
+ @ApiOperation(value = "导入-工资管理-小学部-财务考核导入", notes = "传入excel")
|
|
|
+ public R importFinanceExcel(@RequestParam("file") MultipartFile file,@RequestParam("id") Long id)
|
|
|
+ {
|
|
|
+ //校验模板
|
|
|
+ String excelPattern = null;
|
|
|
+ try {
|
|
|
+ excelPattern = ExcelCheck.checkExcelPattern(file, new FinanceExcel());
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new SecurityException("校验Excel失败");
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotBlank(excelPattern)){
|
|
|
+ throw new SecurityException(excelPattern);
|
|
|
+ }
|
|
|
+ //导入数据
|
|
|
+ List<FinanceExcel> excelList = ExcelUtil.read(file, FinanceExcel.class);
|
|
|
+ if(CollectionUtils.isEmpty(excelList))
|
|
|
+ {
|
|
|
+ throw new SecurityException("数据不能为空");
|
|
|
+ }
|
|
|
+ return salaryItemService.importFinanceExcel(excelList,false,id,file);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 自定义分页 通济学校-工资管理明细表
|
|
|
+ */
|
|
|
+ @GetMapping("/salaryStatements")
|
|
|
+ @ApiOperationSupport(order = 80)
|
|
|
+ @ApiOperation(value = "分页", notes = "传入salaryItem")
|
|
|
+ public R<IPage<SalaryItem>> salaryStatements(SalaryItemVO salaryItem, Query query) {
|
|
|
+ salaryItem.setTenantId(SecureUtil.getTenantId());
|
|
|
+ IPage<SalaryItem> pages = salaryItemService.salaryStatements(Condition.getPage(query), salaryItem);
|
|
|
+ return R.data(pages);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 自定义分页 通济学校-工资管理明细表
|
|
|
+ */
|
|
|
+ @GetMapping("/export/salaryStatements")
|
|
|
+ @ApiOperationSupport(order = 81)
|
|
|
+ @ApiOperation(value = "分页", notes = "传入salaryItem")
|
|
|
+ public void exportSalaryStatements(SalaryItemVO salaryItem,HttpServletResponse response) {
|
|
|
+ salaryItem.setTenantId(SecureUtil.getTenantId());
|
|
|
+ List<WageExcel> list = salaryItemService.exportSalaryStatements(salaryItem);
|
|
|
+ ExcelUtil.export(response, "工资表", "工资表", list, WageExcel.class);
|
|
|
+ }
|
|
|
|
|
|
}
|