| | |
| | | import org.ehcache.core.util.CollectionUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | examRecord.setCreateBy(SecurityUtils.getUsername()); |
| | | int row=baseMapper.insert(examRecord); |
| | | List<RecordFile> files = examRecord.getFiles(); |
| | | if (!files.isEmpty()){ |
| | | if (!CollectionUtils.isEmpty(files)){ |
| | | baseMapper.insertFile(files,examRecord.getId()); |
| | | } |
| | | if(row<1){ |