|
@@ -35,7 +35,7 @@ public class TCommonfileController extends BaseController
|
|
|
/**
|
|
|
* 通用附件上传
|
|
|
*/
|
|
|
- @Log(title = "通用附件上传", businessType = BusinessType.UPDATE)
|
|
|
+// @Log(title = "通用附件上传", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/uploadFile")
|
|
|
public AjaxResult uploadFile(@RequestParam("file") MultipartFile file, String pType, String pId) throws IOException
|
|
|
{
|
|
@@ -64,7 +64,11 @@ public class TCommonfileController extends BaseController
|
|
|
TCommonfile tCommonfile = new TCommonfile();
|
|
|
tCommonfile.setFileUrl(url);
|
|
|
tCommonfile.setFileName(file.getOriginalFilename());
|
|
|
- tCommonfile.setCreaterCode(String.valueOf(getUserId()));
|
|
|
+ try {
|
|
|
+ tCommonfile.setCreaterCode(String.valueOf(getUserId()));
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.info("无用户");
|
|
|
+ }
|
|
|
tCommonfile.setpId(Long.parseLong(pId));
|
|
|
tCommonfile.setpType(pType);
|
|
|
tCommonfile.setFileSize(String.valueOf(size));
|