| | |
| | | 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; |
| | |
| | | public Machine getByCode(String machineCode) { |
| | | return this.lambdaQuery().eq(Machine::getCode, machineCode).one(); |
| | | } |
| | | |
| | | @Transactional |
| | | public String importMachines(MultipartFile file) { |
| | | return "";//导入成功,给空串,部分不成功给提示 |
| | | } |
| | | } |