10 changed files with 132 additions and 14 deletions
@ -0,0 +1,63 @@
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.project.domain; |
||||
|
||||
import com.ruoyi.common.annotation.Excel; |
||||
|
||||
/** |
||||
* @version 1.0 |
||||
* @ClassName AchievementsExcel |
||||
* @Author yzj |
||||
* @Description //TODO 成果表格信息
|
||||
* @Date 2022/6/27 21:55 |
||||
**/ |
||||
public class AchievementsExcel { |
||||
@Excel(name = "项目编号*") |
||||
private String code; |
||||
@Excel(name = "标题*") |
||||
private String title; |
||||
@Excel(name = "文件名称*") |
||||
private String fileName; |
||||
@Excel(name = "详情*") |
||||
private String info; |
||||
@Excel(name = "密集*") |
||||
private String secrecylevel; |
||||
|
||||
public String getCode() { |
||||
return code; |
||||
} |
||||
|
||||
public void setCode(String code) { |
||||
this.code = code; |
||||
} |
||||
|
||||
public String getTitle() { |
||||
return title; |
||||
} |
||||
|
||||
public void setTitle(String title) { |
||||
this.title = title; |
||||
} |
||||
|
||||
public String getFileName() { |
||||
return fileName; |
||||
} |
||||
|
||||
public void setFileName(String fileName) { |
||||
this.fileName = fileName; |
||||
} |
||||
|
||||
public String getInfo() { |
||||
return info; |
||||
} |
||||
|
||||
public void setInfo(String info) { |
||||
this.info = info; |
||||
} |
||||
|
||||
public String getSecrecylevel() { |
||||
return secrecylevel; |
||||
} |
||||
|
||||
public void setSecrecylevel(String secrecylevel) { |
||||
this.secrecylevel = secrecylevel; |
||||
} |
||||
} |
@ -0,0 +1,54 @@
@@ -0,0 +1,54 @@
|
||||
package com.ruoyi.project.service.impl.export; |
||||
|
||||
import com.ruoyi.common.config.RuoYiConfig; |
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.utils.poi.ExcelUtilPL; |
||||
import com.ruoyi.project.domain.AchievementsExcel; |
||||
import com.ruoyi.project.domain.AttachmentExcel; |
||||
import com.ruoyi.project.mapper.PaProjectInfoMapper; |
||||
import com.ruoyi.project.service.BaseExport; |
||||
import org.springframework.stereotype.Service; |
||||
import org.springframework.web.multipart.MultipartFile; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.io.IOException; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @version 1.0 |
||||
* @ClassName AchievementsExport |
||||
* @Author yzj |
||||
* @Description //TODO 成果导入
|
||||
* @Date 2022/6/27 22:29 |
||||
**/ |
||||
@Service |
||||
public class AchievementsExport extends BaseExport { |
||||
@Resource |
||||
private PaProjectInfoMapper paProjectInfoMapper; |
||||
@Override |
||||
public AjaxResult addData(MultipartFile file, boolean updateSupport) { |
||||
|
||||
try { |
||||
ExcelUtilPL<AchievementsExcel> achievementsExcel = null; |
||||
List<AchievementsExcel> reportSheet = achievementsExcel.importExcel("成果信息", AchievementsExcel.class); |
||||
achievementsExcel = new ExcelUtilPL<AchievementsExcel>(file.getInputStream()); |
||||
String uploadPath = RuoYiConfig.getUploadPath()+"/complementReportExport"; |
||||
} catch (IOException e) { |
||||
e.printStackTrace(); |
||||
} catch (Exception e){ |
||||
|
||||
} |
||||
|
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public AjaxResult modifyData(MultipartFile file, boolean updateSupport) { |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
public AjaxResult getTemplate() { |
||||
return null; |
||||
} |
||||
} |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.project.service.impl; |
||||
package com.ruoyi.project.service.impl.export; |
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.utils.poi.ExcelUtil; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.project.service.impl; |
||||
package com.ruoyi.project.service.impl.export; |
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.utils.poi.ExcelUtil; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.project.service.impl; |
||||
package com.ruoyi.project.service.impl.export; |
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.utils.poi.ExcelUtil; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.project.service.impl; |
||||
package com.ruoyi.project.service.impl.export; |
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.utils.StringUtils; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.project.service.impl; |
||||
package com.ruoyi.project.service.impl.export; |
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.utils.poi.ExcelUtil; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.project.service.impl; |
||||
package com.ruoyi.project.service.impl.export; |
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.utils.StringUtils; |
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.project.service.impl; |
||||
package com.ruoyi.project.service.impl.export; |
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult; |
||||
import com.ruoyi.common.utils.StringUtils; |
Loading…
Reference in new issue