|
|
|
@ -3,6 +3,7 @@ package com.daqing.financial.hrms.controller; |
|
|
|
|
import com.daqing.financial.hrms.EmployeeControllerApi; |
|
|
|
|
import com.daqing.financial.hrms.service.EmployeeService; |
|
|
|
|
import com.daqing.framework.domain.hrms.EmployeeEntity; |
|
|
|
|
import com.daqing.framework.domain.hrms.ext.EmployeeTO; |
|
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
@ -82,7 +83,7 @@ public class EmployeeController implements EmployeeControllerApi{ |
|
|
|
|
@GetMapping("/getEmployeeAndDeptById/{ids}") |
|
|
|
|
@Override |
|
|
|
|
public ResponseResult getEmployeeAndDeptById(@PathVariable("ids") List<Long> ids) { |
|
|
|
|
|
|
|
|
|
return ResponseResult.SUCCESS(employeeService.getEmployeeAndDeptById(ids)); |
|
|
|
|
List<EmployeeTO> byId = employeeService.getEmployeeAndDeptById(ids); |
|
|
|
|
return new ResponseResult<List<EmployeeTO>>().SUCCESS(byId); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|