yangys
2025-09-25 31ecdb8c700529a59dd762f0c47f0ed9c66d5092
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
 
package org.springblade.mdm.gkw.task.controller;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.excel.util.ExcelUtil;
import org.springblade.core.tenant.annotation.NonDS;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.DateUtil;
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.gkw.task.vo.MachineBackTaskVO;
import org.springblade.mdm.machinefile.entity.FileSendRecord;
import org.springblade.mdm.machinefile.service.FileSendRecordService;
import org.springblade.mdm.machinefile.vo.FileSendRecordExcelVO;
import org.springblade.mdm.machinefile.vo.FileSendRecordQueryVO;
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 java.io.IOException;
import java.util.ArrayList;
import java.util.List;
 
/**
 * 机床回传任务
 *
 * @author yangys
 */
@NonDS
@RestController
@RequestMapping("/gkw/machinebacktask")
@Tag(name = "机床回传任务", description = "机床回传任务")
@Slf4j
public class MachineBackTaskController {
    @Autowired
    private MachineBackTaskService machineBackTaskService;
 
    @GetMapping("/page")
    @Operation(summary = "机床回传任务列表", description = "机床回传任务列表")
    public R<IPage<MachineBackTaskVO>> page(MachineBackTaskQueryVO query) {
        if(query.getCreateTimeEnd()!=null){
            query.setCreateTimeEnd(query.getCreateTimeEnd().plusDays(1));
        }
        return R.data(machineBackTaskService.pageQuery(query));
    }
}