Compare commits

..

No commits in common. "88915f7dcc0a822bfbf0f32ba133e9ef5622dbfe" and "292ec95d3c02d247ee84b3438db8bb801446b5c8" have entirely different histories.

1 changed files with 5 additions and 22 deletions

View File

@ -21,11 +21,8 @@ import io.renren.modules.resource.excel.census.config.CustomCellWriteWeightConfi
import io.renren.modules.resource.service.ResourceService;
import io.renren.modules.resource.videoPreview.AbstractVideoPreviewService;
import io.renren.modules.resource.videoPreview.VideoPreviewFactory;
import io.renren.modules.security.user.SecurityUser;
import io.renren.modules.sys.dao.SysUserDao;
import io.renren.modules.sys.dto.SysDeptDTO;
import io.renren.modules.sys.dto.SysUserDTO;
import io.renren.modules.sys.entity.SysUserEntity;
import io.renren.modules.sys.service.SysDeptService;
import io.renren.modules.sys.service.SysUserService;
import io.swagger.annotations.*;
@ -118,9 +115,6 @@ public class ResourceController {
@Autowired
private SysDeptService sysDeptService;
@Autowired
private SysUserDao sysUserDao;
@Autowired
private SysUserService sysUserService;
@ -541,26 +535,15 @@ public class ResourceController {
if (page == null) page = 1;
if (size == null) size = 10;
Long userId = SecurityUser.getUserId();
if (userId == null){
return new Result<>().error("请登录");
}
SysUserEntity sysUser = sysUserDao.getById(userId);
if (sysUser == null || sysUser.getGuid() == null) {
return new Result<>().error("该账号没有权限");
}
String url = "http://15.72.158.81/zyjk/ZywMessage.asmx?op=ZySPPort";
String url = "http://15.72.158.81/zyjk/ZywMessage.asmx";
String parame = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
"<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">\n" +
" <soap:Body>\n" +
" <ZySPPort xmlns=\"http://tempuri.org/\">\n" +
// " <userguid>e8d2fb43-f512-4918-ab47-1141b925af10</userguid>\n" +
String.format("<userguid>%s</userguid>", sysUser.getGuid()) +
String.format("<pagenum>%d</pagenum>", page) +
String.format("<pagesize>%d</pagesize>", size) +
title != null ? String.format("<title>%s</title>", title) : "" +
" <userguid>e8d2fb43-f512-4918-ab47-1141b925af10</userguid>\n" +
" <pagenum>1</pagenum>\n" +
" <pagesize>10</pagesize>\n" +
" <title></title>\n" +
" </ZySPPort>\n" +
" </soap:Body>\n" +
"</soap:Envelope>";