| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.mdm.basesetting.machine.entity.Machine; |
| | | import org.springblade.mdm.gkw.programnode.entity.MachineFile; |
| | | import org.springblade.mdm.program.entity.NcNode; |
| | | import org.springblade.mdm.program.service.NcNodeService; |
| | | import org.springblade.mdm.task.MachineFileScanTask; |
| | |
| | | @Operation(summary = "test扫描", description = "test扫描") |
| | | public R<Void> scan() throws IOException { |
| | | Machine machine = new Machine(); |
| | | machine.setProgReceiveDir("d:/mdm"); |
| | | machineFileScanTask.scanReceiveDir(machine); |
| | | machine.setCode("M_01_FN"); |
| | | machine.setProgReceiveDir("d:/data/machine1/rec"); |
| | | machineFileScanTask.scanDir(machine, MachineFile.DIR_TYPE_REC); |
| | | return R.success(); |
| | | } |
| | | |