图片单独上传相关接口 - 文件名分隔后缀判空,默认PNG
parent
6bc2d02cae
commit
692140c131
|
@ -1282,7 +1282,12 @@ public class AppGFBlindBoardController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
MultipartFile file = files[i];
|
MultipartFile file = files[i];
|
||||||
String ffile = DateUtil.getDays();
|
String ffile = DateUtil.getDays();
|
||||||
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
String fileName;
|
||||||
|
if (file.getOriginalFilename() == null) {
|
||||||
|
fileName = ".PNG";
|
||||||
|
}else {
|
||||||
|
fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
}
|
||||||
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
||||||
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
||||||
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
||||||
|
|
|
@ -293,7 +293,12 @@ public class AppGFBreakGroundController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
MultipartFile file = files[i];
|
MultipartFile file = files[i];
|
||||||
String ffile = DateUtil.getDays();
|
String ffile = DateUtil.getDays();
|
||||||
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
String fileName;
|
||||||
|
if (file.getOriginalFilename() == null) {
|
||||||
|
fileName = ".PNG";
|
||||||
|
}else {
|
||||||
|
fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
}
|
||||||
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
||||||
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
||||||
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
||||||
|
|
|
@ -773,7 +773,12 @@ public class AppGFConfinedSpaceController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
MultipartFile file = files[i];
|
MultipartFile file = files[i];
|
||||||
String ffile = DateUtil.getDays();
|
String ffile = DateUtil.getDays();
|
||||||
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
String fileName;
|
||||||
|
if (file.getOriginalFilename() == null) {
|
||||||
|
fileName = ".PNG";
|
||||||
|
} else {
|
||||||
|
fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
}
|
||||||
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
||||||
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
||||||
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
||||||
|
|
|
@ -649,7 +649,12 @@ public class AppGFCutRoadController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
MultipartFile file = files[i];
|
MultipartFile file = files[i];
|
||||||
String ffile = DateUtil.getDays();
|
String ffile = DateUtil.getDays();
|
||||||
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
String fileName;
|
||||||
|
if (file.getOriginalFilename() == null) {
|
||||||
|
fileName = ".PNG";
|
||||||
|
}else {
|
||||||
|
fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
}
|
||||||
Smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
Smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
||||||
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
||||||
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
||||||
|
|
|
@ -590,7 +590,12 @@ public class AppGFElectricityController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
MultipartFile file = files[i];
|
MultipartFile file = files[i];
|
||||||
String ffile = DateUtil.getDays();
|
String ffile = DateUtil.getDays();
|
||||||
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
String fileName;
|
||||||
|
if (file.getOriginalFilename() == null) {
|
||||||
|
fileName = ".PNG";
|
||||||
|
}else {
|
||||||
|
fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
}
|
||||||
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
||||||
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
||||||
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
||||||
|
|
|
@ -574,7 +574,12 @@ public class AppGFHighWorkController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
MultipartFile file = files[i];
|
MultipartFile file = files[i];
|
||||||
String ffile = DateUtil.getDays();
|
String ffile = DateUtil.getDays();
|
||||||
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
String fileName;
|
||||||
|
if (file.getOriginalFilename() == null) {
|
||||||
|
fileName = ".PNG";
|
||||||
|
}else {
|
||||||
|
fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
}
|
||||||
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
||||||
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
||||||
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
||||||
|
|
|
@ -555,7 +555,12 @@ public class AppGFHoistingController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
MultipartFile file = files[i];
|
MultipartFile file = files[i];
|
||||||
String ffile = DateUtil.getDays();
|
String ffile = DateUtil.getDays();
|
||||||
String fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
String fileName;
|
||||||
|
if (file.getOriginalFilename() == null) {
|
||||||
|
fileName = ".PNG";
|
||||||
|
}else {
|
||||||
|
fileName = this.get32UUID()+file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
}
|
||||||
Smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
Smb.sshSftp(file, fileName,Const.FILEPATHFILE + CORPINFO_ID + "/" + ffile);
|
||||||
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
pd.put("ACCEPT_CONFESS_USER_SIGNER_TIME", signertime);
|
||||||
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
pd.put("ACCEPT_CONFESS_ID", this.get32UUID());
|
||||||
|
|
Loading…
Reference in New Issue