Commit 67e73dc0 by duanhq

删除上传文件 by duanht 2019/1/28

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17947 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 0c450693
...@@ -78,6 +78,14 @@ public class CommonController { ...@@ -78,6 +78,14 @@ public class CommonController {
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), path); return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg(), path);
} }
@AuthCheck
@RequestMapping(value = "/deleteFile", method = RequestMethod.POST)
public ResultObject deleteFile(@RequestParam("file") String fileUrl, HttpServletRequest request) throws IOException {
logger.info("删除文件路径==" + fileUrl);
FastDFSClientWrapper.deleteFile(fileUrl);
return new ResultObject(ResultCodeEnum.SUCCESS.getCode(), ResultCodeEnum.SUCCESS.getMsg());
}
@RequestMapping(value = "/uploadQRImage", method = RequestMethod.POST) @RequestMapping(value = "/uploadQRImage", method = RequestMethod.POST)
public ResultObject uploadQRImage(@RequestBody byte[] bytes) throws IOException { public ResultObject uploadQRImage(@RequestBody byte[] bytes) throws IOException {
......
...@@ -222,10 +222,6 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -222,10 +222,6 @@ public class SysUserServiceImpl implements SysUserService {
BeanUtils.copyProperties(sysManager, sysUser); BeanUtils.copyProperties(sysManager, sysUser);
updateRole(userId, sysUser); updateRole(userId, sysUser);
updateData(userId, sysUser); updateData(userId, sysUser);
//服务商需要配置服务项
if (sysUser.getUserType() == Constants.USER_TYPE_SP) {
updateServiceItem(userId, sysUser);
}
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e.getMessage()); throw new RuntimeException(e.getMessage());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!