| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.io.IOException; |
| | | import java.nio.file.Files; |
| | |
| | | machine.setPollingHours(vo.getPollingHours()); |
| | | machine.setProgSendDir(vo.getProgSendDir()); |
| | | machine.setProgReceiveDir(vo.getProgReceiveDir()); |
| | | machine.setProgTempDir(vo.getProgTempDir()); |
| | | machine.setStatus(vo.getStatus()); |
| | | machine.setRemark(vo.getRemark()); |
| | | |
| | |
| | | public Machine getByCode(String machineCode) { |
| | | return this.lambdaQuery().eq(Machine::getCode, machineCode).one(); |
| | | } |
| | | |
| | | @Transactional |
| | | public String importMachines(MultipartFile file) { |
| | | return "";//导入成功,给空串,部分不成功给提示 |
| | | } |
| | | } |