公告结构化
This commit is contained in:
@ -273,12 +273,13 @@ public class WpsServiceImpl implements WpsService {
|
||||
|
||||
//fileId_yyyyMMddHHmmss_type_doc
|
||||
String[] value = val.split("_");
|
||||
CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("请求参数无效",value.length<4);
|
||||
CommonExceptionEnum.FRAME_EXCEPTION_COMMON_DATA_OTHER_ERROR.customValidName("请求参数无效",value.length<5);
|
||||
|
||||
String fileId = value[0];
|
||||
String time = value[1];
|
||||
String type = value[2];
|
||||
String extension = value[3];
|
||||
String fileName = value[4];
|
||||
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
long newDateLong = System.currentTimeMillis();
|
||||
@ -299,7 +300,7 @@ public class WpsServiceImpl implements WpsService {
|
||||
|
||||
WpsClientInVo in = new WpsClientInVo();
|
||||
in.setFileId(fileId);
|
||||
in.setFileName(fileId+"."+extension);
|
||||
in.setFileName(fileName+"."+extension);
|
||||
in.setType(type);
|
||||
|
||||
return in;
|
||||
|
Reference in New Issue
Block a user