feat: 国内外标准 多文档 操作 及 删除 国家属性字段
This commit is contained in:
-12
@@ -158,18 +158,6 @@ public class SarStandAttrInfo extends BaseEntity {
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private String ssrq;
|
||||
|
||||
@ApiModelProperty(value = "实施日期(国际)")
|
||||
@TableField("SSRQGJ")
|
||||
private String ssrqgj;
|
||||
|
||||
@ApiModelProperty(value = "新车型实施日期(国家)")
|
||||
@TableField("XCXSSRQGJ")
|
||||
private String xcxssrqgj;
|
||||
|
||||
@ApiModelProperty(value = "在产车实施日期(国家)")
|
||||
@TableField("ZCCSSRQGJ")
|
||||
private String zccssrqgj;
|
||||
|
||||
@ApiModelProperty(value = "修改单")
|
||||
@TableField("XGD")
|
||||
private String xgd;
|
||||
|
||||
+7
-2
@@ -608,8 +608,8 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
sarStandFileEO.setFileSuffix(fileInfo.getFileSuffix());
|
||||
sarStandFileEO.setOriAttId(fileInfo.getId());
|
||||
standFileList.add(sarStandFileEO);
|
||||
//文档转换
|
||||
if ("pdf".equals(fileInfo.getFileSuffix()) || "PDF".equals(fileInfo.getFileSuffix())) {
|
||||
//多文档转换 PPT|PPTX|ppt|pptx|PDF|pdf|DOC|doc|DOCX|docx
|
||||
if (verifyFileType(fileInfo.getFileSuffix())) {
|
||||
SarStandFile newFileEO = new SarStandFile();
|
||||
newFileEO.setCreationUser(LoginUserUtil.getUserId());
|
||||
newFileEO.setCreationTime(new Date());
|
||||
@@ -640,6 +640,11 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
||||
}
|
||||
}
|
||||
|
||||
private Boolean verifyFileType(String str){
|
||||
String verifyType = "^PPT|PPTX|ppt|pptx|PDF|pdf|DOC|doc|DOCX|docx*$";
|
||||
return Pattern.matches(verifyType,str);
|
||||
}
|
||||
|
||||
public void createStandPutTime(String standId, Map<String, String> multiTimeMap) throws Exception {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
if (multiTimeMap != null && multiTimeMap.size() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user