refactor(perf): 将ID字段从String类型改为Long类型
- 修改所有实体类中的ID字段类型从String改为Long - 更新所有服务接口和实现类的方法参数类型 - 调整控制器中的路径变量类型以匹配新的ID类型 - 修正查询条件判断逻辑,从字符串非空检查改为数值非空检查 - 更新数据传输对象中的ID字段类型保持一致性
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user