Delete 'EmployeeKpiController.java'

main
pxqbzjk5c 1 month ago
parent 339159f9a1
commit 25ae2146b2

@ -1,76 +0,0 @@
package com.prj.controller;
import java.util.List;
import com.prj.common.core.controller.BaseController;
import com.prj.common.core.domain.AjaxResult;
import com.prj.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.prj.domain.EmployeeKpi;
import com.prj.service.IEmployeeKpiService;
@RestController
@RequestMapping("/employee_kpi")
public class EmployeeKpiController extends BaseController
{
@Autowired
private IEmployeeKpiService employeeKpiService;
/**
*
*/
@GetMapping("/list")
public TableDataInfo list(EmployeeKpi employeeKpi)
{
startPage();
List<EmployeeKpi> list = employeeKpiService.selectEmployeeKpiList(employeeKpi);
return getDataByPage(list);
}
/**
*
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(employeeKpiService.selectEmployeeKpiById(id));
}
/**
*
*/
@PostMapping
public AjaxResult add(@RequestBody EmployeeKpi employeeKpi)
{
return toAjax(employeeKpiService.insertEmployeeKpi(employeeKpi));
}
/**
*
*/
@PutMapping
public AjaxResult edit(@RequestBody EmployeeKpi employeeKpi)
{
return toAjax(employeeKpiService.updateEmployeeKpi(employeeKpi));
}
/**
*
*/
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(employeeKpiService.deleteEmployeeKpiByIds(ids));
}
}
Loading…
Cancel
Save