| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package com.zksy.controller.info;
- import com.zksy.info.domain.EEmployeeInfo;
- import com.zksy.info.service.EEmployeeInfoService;
- import com.zksy.property.domain.AHouseType;
- import com.zksy.property.service.AHouseTypeService;
- import com.zksy.utils.AjaxResult;
- import io.swagger.annotations.Api;
- import io.swagger.annotations.ApiOperation;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import org.springframework.web.multipart.MultipartFile;
- /**
- * @author Administrator
- * @version 1.0
- * @project enterprise-assets-service
- * @description 员工基本信息控制层
- * @date 2025/6/24 14:33:13
- */
- @RestController
- @RequestMapping("/eemployeeInfo")
- @Api(tags = "员工基本信息控制层",description = "员工基本信息控制层desc")
- public class EEmployeeInfoController {
- @Autowired
- private EEmployeeInfoService service;
- @GetMapping("/getById/{borrowId}")
- @ApiOperation(value = "员工基本信息查询")
- public AjaxResult getById(@PathVariable String borrowId) {
- return AjaxResult.success(service.getById(borrowId));
- }
- @GetMapping("/getList")
- @ApiOperation(value = "员工基本信息查询所有")
- public AjaxResult getList(String workNumber,String fullName) {
- return AjaxResult.success(service.getEEmployeeInfoList(workNumber, fullName));
- }
- @GetMapping("/findByPage")
- @ApiOperation(value = "员工基本信息查询分页")
- public AjaxResult findByPage(long pageNum, long pageSize, String workNumber,String fullName){
- return AjaxResult.success(service.findByPage(pageNum, pageSize, workNumber, fullName));
- }
- @PostMapping("/save")
- @ApiOperation(value = "员工基本信息保存")
- public AjaxResult save(@RequestBody EEmployeeInfo eemployeeInfo, MultipartFile multipartFile) {
- return service.saveEEmployeeInfo(eemployeeInfo, multipartFile)? AjaxResult.success(eemployeeInfo): AjaxResult.error("保存失败");
- }
- @PostMapping("/update")
- @ApiOperation(value = "员工基本信息修改")
- public AjaxResult update(@RequestBody EEmployeeInfo eemployeeInfo, MultipartFile multipartFile) {
- return service.updateEEmployeeInfo(eemployeeInfo, multipartFile)? AjaxResult.success(eemployeeInfo): AjaxResult.error("修改失败");
- }
- @PostMapping("/deleteBatch")
- @ApiOperation(value = "员工基本信息删除")
- public AjaxResult delete(@RequestBody String[] ids) {
- return service.removeBatchEEmployeeInfo(ids)? AjaxResult.success(): AjaxResult.error("删除失败");
- }
- }
|