| | |
| | | import jakarta.xml.soap.SOAPException; |
| | | import jakarta.xml.ws.WebServiceContext; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.io.FileUtils; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.SpringUtil; |
| | | import org.springblade.mdm.basesetting.machine.entity.Machine; |
| | | import org.springblade.mdm.commons.service.InternalEmailService; |
| | | import org.springblade.mdm.commons.service.MachineDirTranslator; |
| | | import org.springblade.mdm.flow.entity.MesSync; |
| | | import org.springblade.mdm.flow.excution.events.CureFinishedEvent; |
| | | import org.springblade.mdm.flow.service.MesSyncService; |
| | |
| | | private NcNodeHisService nodeHisService; |
| | | @Autowired |
| | | private FileSendRecordService fileSendRecordService; |
| | | @Autowired |
| | | private MachineDirTranslator transDir; |
| | | |
| | | /** |
| | | * 新增 |
| | | */ |
| | |
| | | |
| | | return optFile.get(); |
| | | } |
| | | |
| | | @GetMapping("/transdir") |
| | | public Object transdir(String path){ |
| | | return transDir.trans(path); |
| | | } |
| | | |
| | | @GetMapping("/sendfile") |
| | | public Object sendfile() throws IOException { |
| | | FileUtils.copyFile(new java.io.File("d:/a.txt"),(new java.io.File("\\\\192.168.233.2\\Workshop\\testMachine\\at.txt"))); |
| | | return "OK"; |
| | | } |
| | | } |