Merge branch 'master' into docker_package
This commit is contained in:
commit
2f6c020f05
|
@ -327,7 +327,7 @@
|
||||||
<excludes>
|
<excludes>
|
||||||
<!-- 排除生产环境配置 -->
|
<!-- 排除生产环境配置 -->
|
||||||
<exclude>application-bt.yml</exclude>
|
<exclude>application-bt.yml</exclude>
|
||||||
<exclude>application-dev.yml</exclude>
|
<!-- <exclude>application-dev.yml</exclude> -->
|
||||||
<exclude>application-hwx.yml</exclude>
|
<exclude>application-hwx.yml</exclude>
|
||||||
<exclude>application-my.yml</exclude>
|
<exclude>application-my.yml</exclude>
|
||||||
<exclude>application-prod.yml</exclude>
|
<exclude>application-prod.yml</exclude>
|
||||||
|
|
|
@ -23,12 +23,11 @@ import io.renren.modules.resource.videoPreview.AbstractVideoPreviewService;
|
||||||
import io.renren.modules.resource.videoPreview.VideoPreviewFactory;
|
import io.renren.modules.resource.videoPreview.VideoPreviewFactory;
|
||||||
import io.renren.modules.security.user.SecurityUser;
|
import io.renren.modules.security.user.SecurityUser;
|
||||||
import io.renren.modules.security.user.UserDetail;
|
import io.renren.modules.security.user.UserDetail;
|
||||||
import io.renren.modules.security.user.SecurityUser;
|
|
||||||
import io.renren.modules.sys.dao.SysUserDao;
|
import io.renren.modules.sys.dao.SysUserDao;
|
||||||
import io.renren.modules.sys.dto.SysDeptDTO;
|
import io.renren.modules.sys.dto.SysDeptDTO;
|
||||||
import io.renren.modules.sys.enums.SuperAdminEnum;
|
|
||||||
import io.renren.modules.sys.dto.SysUserDTO;
|
import io.renren.modules.sys.dto.SysUserDTO;
|
||||||
import io.renren.modules.sys.entity.SysUserEntity;
|
import io.renren.modules.sys.entity.SysUserEntity;
|
||||||
|
import io.renren.modules.sys.enums.SuperAdminEnum;
|
||||||
import io.renren.modules.sys.service.SysDeptService;
|
import io.renren.modules.sys.service.SysDeptService;
|
||||||
import io.renren.modules.sys.service.SysUserService;
|
import io.renren.modules.sys.service.SysUserService;
|
||||||
import io.swagger.annotations.*;
|
import io.swagger.annotations.*;
|
||||||
|
@ -339,7 +338,7 @@ public class ResourceController {
|
||||||
@ApiOperation("查询部门企业列表及汇聚能力数量")
|
@ApiOperation("查询部门企业列表及汇聚能力数量")
|
||||||
@LogOperation("查询部门企业列表及汇聚能力数量")
|
@LogOperation("查询部门企业列表及汇聚能力数量")
|
||||||
public Result selectDeptList(@RequestBody JSONObject jsonObject) {
|
public Result selectDeptList(@RequestBody JSONObject jsonObject) {
|
||||||
return new Result().ok(resourceService.selectDeptList(jsonObject, jsonObject.getString("type")));
|
return new Result().ok(resourceService.selectDeptList(jsonObject, jsonObject.containsKey("type") ? (jsonObject.getString("type") == null ? "" : jsonObject.getString("type")) : ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/updateVisits")
|
@GetMapping("/updateVisits")
|
||||||
|
@ -564,7 +563,7 @@ public class ResourceController {
|
||||||
String.format(" <userguid>%s</userguid>", sysUser.getGuid()) +
|
String.format(" <userguid>%s</userguid>", sysUser.getGuid()) +
|
||||||
String.format(" <pagenum>%d</pagenum>\n", page) +
|
String.format(" <pagenum>%d</pagenum>\n", page) +
|
||||||
String.format(" <pagesize>%d</pagesize>\n", size) +
|
String.format(" <pagesize>%d</pagesize>\n", size) +
|
||||||
String.format(" <title>%s</title>\n", title==null ? "" : title) +
|
String.format(" <title>%s</title>\n", title == null ? "" : title) +
|
||||||
" </ZySPPort>\n" +
|
" </ZySPPort>\n" +
|
||||||
" </soap:Body>\n" +
|
" </soap:Body>\n" +
|
||||||
"</soap:Envelope>";
|
"</soap:Envelope>";
|
||||||
|
@ -589,14 +588,26 @@ public class ResourceController {
|
||||||
@GetMapping("ZywMessage/yaweiApproveDetails")
|
@GetMapping("ZywMessage/yaweiApproveDetails")
|
||||||
@ApiOperation("数据资源审批详情转发")
|
@ApiOperation("数据资源审批详情转发")
|
||||||
@LogOperation("数据资源审批详情转发")
|
@LogOperation("数据资源审批详情转发")
|
||||||
public Result yaweiApproveDetails(@ApiParam("申请guid") String applyGuid, @ApiParam("部门guid") String deptGuid) {
|
public Result yaweiApproveDetails(@ApiParam("申请guid") String applyGuid
|
||||||
|
// , @ApiParam("部门guid") String deptGuid
|
||||||
|
) {
|
||||||
|
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=ZyShowrecord";
|
String url = "http://15.72.158.81/zyjk/ZywMessage.asmx?op=ZyShowrecord";
|
||||||
String parame = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" +
|
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: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" +
|
" <soap:Body>\n" +
|
||||||
" <ZyShowrecord xmlns=\"http://tempuri.org/\">\n" +
|
" <ZyShowrecord xmlns=\"http://tempuri.org/\">\n" +
|
||||||
String.format(" <guid>%s</guid>\n", applyGuid) +
|
String.format(" <guid>%s</guid>\n", applyGuid) +
|
||||||
String.format(" <bmguid>%s</bmguid>\n", deptGuid) +
|
String.format(" <userguid>%s</userguid>", sysUser.getGuid()) +
|
||||||
|
// String.format(" <bmguid>%s</bmguid>\n", deptGuid) +
|
||||||
" </ZyShowrecord>\n" +
|
" </ZyShowrecord>\n" +
|
||||||
" </soap:Body>\n" +
|
" </soap:Body>\n" +
|
||||||
"</soap:Envelope>";
|
"</soap:Envelope>";
|
||||||
|
@ -876,7 +887,7 @@ public class ResourceController {
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
resourceService.delResBySuAd(id);
|
resourceService.delResBySuAd(id);
|
||||||
}catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return new Result().error("清除能力及相关数据失败!");
|
return new Result().error("清除能力及相关数据失败!");
|
||||||
}
|
}
|
||||||
return new Result().ok("能力及相关数据已清除。");
|
return new Result().ok("能力及相关数据已清除。");
|
||||||
|
@ -894,7 +905,7 @@ public class ResourceController {
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
resourceService.delProcinstBySuAd(id, type, resourceId);
|
resourceService.delProcinstBySuAd(id, type, resourceId);
|
||||||
}catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return new Result().error("清除流程及相关数据失败!");
|
return new Result().error("清除流程及相关数据失败!");
|
||||||
}
|
}
|
||||||
return new Result().ok("流程及相关数据已清除。");
|
return new Result().ok("流程及相关数据已清除。");
|
||||||
|
|
Loading…
Reference in New Issue