|
|
@@ -139,21 +139,13 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
vo.setType("专业");
|
|
|
vo.setMajor("网络班");
|
|
|
vo.setClassHours(goodsVo.getClassHours()+"");
|
|
|
+ vo.setDateY(DateUtils.getDate().substring(0, 4));
|
|
|
+ vo.setDateM(DateUtils.getDate().substring(5, 2));
|
|
|
+ vo.setDateD(DateUtils.getDate().substring(7, 2));
|
|
|
+ List<String> chapterListTxt = changeChapterList(chapterList);
|
|
|
|
|
|
- vo.setDateY(date.substring(0, 4));
|
|
|
- vo.setDateM(date.substring(5, 2));
|
|
|
- vo.setDateD(date.substring(7, 2));
|
|
|
- /* List<String> chapterList = new ArrayList<>();
|
|
|
- chapterList.add("①.绿色施工");
|
|
|
- chapterList.add("②.绿色施工");
|
|
|
- chapterList.add("③.绿色施工");
|
|
|
- chapterList.add("④.绿色施工");
|
|
|
- chapterList.add("⑤.绿色施工");
|
|
|
- chapterList.add("⑥.绿色施工");
|
|
|
- chapterList.add("⑦.绿色施工");
|
|
|
- chapterList.add("⑧.绿色施工");
|
|
|
- vo.setChapterList(chapterList);
|
|
|
- drawPic(vo);*/
|
|
|
+ vo.setChapterList(chapterListTxt);
|
|
|
+ drawPic(vo);
|
|
|
|
|
|
}
|
|
|
}
|
|
|
@@ -161,6 +153,41 @@ public class CertificateTpServiceImpl extends ServiceImpl<CertificateTpMapper, C
|
|
|
}
|
|
|
return null;
|
|
|
}
|
|
|
+ private String getCertificateCode(List<CourseChapterVo> chapterList){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ private List<String> changeChapterList(List<CourseChapterVo> chapterList){
|
|
|
+ List<String> chapterListTxt = new ArrayList<>();
|
|
|
+ for(int i =0; i<chapterList.size(); i++){
|
|
|
+ String numTag = "";
|
|
|
+ if(i==0){
|
|
|
+ numTag = "①.";
|
|
|
+ }
|
|
|
+ else if(i==1){
|
|
|
+ numTag = "②.";
|
|
|
+ }
|
|
|
+ else if(i==2){
|
|
|
+ numTag = "③.";
|
|
|
+ }
|
|
|
+ else if(i==3){
|
|
|
+ numTag = "④.";
|
|
|
+ }
|
|
|
+ else if(i==4){
|
|
|
+ numTag = "⑤.";
|
|
|
+ }
|
|
|
+ else if(i==5){
|
|
|
+ numTag = "⑥.";
|
|
|
+ }
|
|
|
+ else if(i==6){
|
|
|
+ numTag = "⑦.";
|
|
|
+ }
|
|
|
+ else if(i==7){
|
|
|
+ numTag = "⑧.";
|
|
|
+ }
|
|
|
+ chapterListTxt.add(numTag+chapterList.get(i).getName());
|
|
|
+ }
|
|
|
+ return chapterListTxt;
|
|
|
+ }
|
|
|
|
|
|
private String drawPic(CertificatePhotoVo entity){
|
|
|
Font font = new Font("微软雅黑", Font.PLAIN, 45);// 添加字体的属性设置
|