| | |
| | | import com.ruoyi.staff.pojo.StaffOnJob; |
| | | import com.ruoyi.staff.service.IStaffJoinLeaveRecordService; |
| | | import com.ruoyi.staff.service.IStaffOnJobService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/staff/staffOnJob") |
| | | @Api(tags = "员工台账/合同管理") |
| | | public class StaffOnJobController { |
| | | |
| | | @Resource |
| | |
| | | * @param staffOnJob |
| | | */ |
| | | @PostMapping("/exportCopy") |
| | | public String exportCopy(HttpServletResponse response,StaffOnJob staffOnJob) throws Exception{ |
| | | return staffOnJobService.exportCopy(response, staffOnJob); |
| | | @ApiOperation("word模板合同在职员工导出") |
| | | public AjaxResult exportCopy(HttpServletResponse response, StaffOnJob staffOnJob) throws Exception{ |
| | | return AjaxResult.success(staffOnJobService.exportCopy(response, staffOnJob)); |
| | | } |
| | | |
| | | |