| | |
| | | import com.ruoyi.basic.dto.SupplierManageDto; |
| | | import com.ruoyi.basic.pojo.SupplierManage; |
| | | import com.ruoyi.basic.service.ISupplierService; |
| | | import com.ruoyi.collaborativeApproval.pojo.SealApplicationManagementFile; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.staff.pojo.StaffJoinLeaveRecord; |
| | | import com.ruoyi.staff.pojo.StaffJoinLeaveRecordFile; |
| | | import com.ruoyi.staff.service.IStaffJoinLeaveRecordService; |
| | | import com.ruoyi.staff.service.StaffJoinLeaveRecordFileService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | @Resource |
| | | private IStaffJoinLeaveRecordService staffJoinLeaveRecordService; |
| | | |
| | | @Autowired |
| | | private StaffJoinLeaveRecordFileService staffJoinLeaveRecordFileService; |
| | | |
| | | /** |
| | | * 新增入职/离职 |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 新增入职/离职附件 |
| | | */ |
| | | @PostMapping("/addFile") |
| | | @ApiOperation("新增") |
| | | public AjaxResult addFile(@RequestBody StaffJoinLeaveRecordFile staffJoinLeaveRecordFile) { |
| | | return AjaxResult.success(staffJoinLeaveRecordFileService.save(staffJoinLeaveRecordFile)); |
| | | } |
| | | |
| | | /** |
| | | * 删除入职/离职附件 |
| | | */ |
| | | @DeleteMapping("/delFile") |
| | | @ApiOperation("删除") |
| | | public AjaxResult delFile(@RequestBody List<Integer> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | | return AjaxResult.error("请选择至少一条数据"); |
| | | } |
| | | //删除检验附件 |
| | | return AjaxResult.success(staffJoinLeaveRecordFileService.removeByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | *分页查询入职/离职附件 |
| | | */ |
| | | @GetMapping("/listPageFile") |
| | | @ApiOperation("分页查询") |
| | | public AjaxResult staffJoinLeaveRecordFileListPage(Page page, StaffJoinLeaveRecordFile staffJoinLeaveRecordFile) { |
| | | return AjaxResult.success(staffJoinLeaveRecordFileService.listPage(page, staffJoinLeaveRecordFile)); |
| | | } |
| | | } |