refactor(perf): 将ID字段从String类型改为Long类型
- 修改所有实体类中的ID字段类型从String改为Long - 更新所有服务接口和实现类的方法参数类型 - 调整控制器中的路径变量类型以匹配新的ID类型 - 修正查询条件判断逻辑,从字符串非空检查改为数值非空检查 - 更新数据传输对象中的ID字段类型保持一致性
This commit is contained in:
@@ -61,7 +61,7 @@ public class PerfAppraisalController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfAppraisalVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfAppraisalService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfAppraisalController extends BaseController {
|
||||
@Log(title = "月度绩效考核记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfAppraisalService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfAppraisalDetailController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfAppraisalDetailVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfAppraisalDetailService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfAppraisalDetailController extends BaseController {
|
||||
@Log(title = "考核维度评分明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfAppraisalDetailService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfCoeffRangeController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfCoeffRangeVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfCoeffRangeService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfCoeffRangeController extends BaseController {
|
||||
@Log(title = "绩效系数换算", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfCoeffRangeService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfDeptConfigController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfDeptConfigVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfDeptConfigService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfDeptConfigController extends BaseController {
|
||||
@Log(title = "车间考核参数配置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfDeptConfigService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfDeptController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfDeptVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfDeptService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfDeptController extends BaseController {
|
||||
@Log(title = "绩效系统部门", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfDeptService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfDeptItemConfigController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfDeptItemConfigVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfDeptItemConfigService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfDeptItemConfigController extends BaseController {
|
||||
@Log(title = "车间扣款/奖励项目配置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfDeptItemConfigService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfDeptSummaryController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfDeptSummaryVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfDeptSummaryService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfDeptSummaryController extends BaseController {
|
||||
@Log(title = "车间月度汇总", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfDeptSummaryService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfEmployeeInfoController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfEmployeeInfoVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfEmployeeInfoService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfEmployeeInfoController extends BaseController {
|
||||
@Log(title = "员工绩效薪资基本信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfEmployeeInfoService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfPositionTemplateController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfPositionTemplateVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfPositionTemplateService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfPositionTemplateController extends BaseController {
|
||||
@Log(title = "岗位绩效考核模板", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfPositionTemplateService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfSalaryController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfSalaryVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfSalaryService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfSalaryController extends BaseController {
|
||||
@Log(title = "月度薪资计算记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfSalaryService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PerfTemplateDimensionController extends BaseController {
|
||||
*/
|
||||
@GetMapping("/{id}")
|
||||
public R<PerfTemplateDimensionVo> getInfo(@NotNull(message = "主键不能为空")
|
||||
@PathVariable String id) {
|
||||
@PathVariable Long id) {
|
||||
return R.ok(iPerfTemplateDimensionService.queryById(id));
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PerfTemplateDimensionController extends BaseController {
|
||||
@Log(title = "考核维度明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R<Void> remove(@NotEmpty(message = "主键不能为空")
|
||||
@PathVariable String[] ids) {
|
||||
@PathVariable Long[] ids) {
|
||||
return toAjax(iPerfTemplateDimensionService.deleteWithValidByIds(Arrays.asList(ids), true));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user