| | |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.mdm.commons.service.OssFileCommonService; |
| | | import org.springblade.mdm.gkw.task.service.MachineBackTaskService; |
| | | import org.springblade.mdm.gkw.task.vo.MachineBackTaskQueryVO; |
| | |
| | | import org.springblade.mdm.machinefile.vo.FileSendRecordVO; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | |
| | | } |
| | | return R.data(machineBackTaskService.pageQuery(query)); |
| | | } |
| | | |
| | | @Operation(summary = "删除", description = "删除") |
| | | @PostMapping("/remove") |
| | | public R<Void> remove(@RequestParam String ids) { |
| | | try { |
| | | machineBackTaskService.removeBatchByIds(Func.toLongList(ids)); |
| | | } catch (Exception e) { |
| | | log.error("删除异常",e); |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | return R.success(); |
| | | } |
| | | } |