| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | 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.time.LocalDateTime; |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional |
| | | public ImportResult importStandingBooks(Long companyId, MultipartFile file) { |
| | | ImportResult result = new ImportResult(); |
| | | result.setSuccessCount(0); |
| | |
| | | case "外部设备": |
| | | standingBook.setDeviceType(3); |
| | | break; |
| | | case "生产设备": |
| | | standingBook.setDeviceType(5); |
| | | break; |
| | | default: |
| | | standingBook.setDeviceType(4); |
| | | break; |