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