|
|
|
|
|
package com.anjiplus.template.gaea.business.modules.reportshare.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.anji.plus.gaea.constant.BaseOperationEnum;
|
|
|
import com.anji.plus.gaea.curd.mapper.GaeaBaseMapper;
|
|
|
import com.anji.plus.gaea.exception.BusinessException;
|
...
|
...
|
@@ -23,10 +24,10 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
|
* @desc ReportShare 报表分享服务实现
|
|
|
* @author Raod
|
|
|
* @date 2021-08-18 13:37:26.663
|
|
|
**/
|
|
|
* @desc ReportShare 报表分享服务实现
|
|
|
* @author Raod
|
|
|
* @date 2021-08-18 13:37:26.663
|
|
|
**/
|
|
|
@Service
|
|
|
public class ReportShareServiceImpl implements ReportShareService {
|
|
|
|
...
|
...
|
@@ -70,6 +71,21 @@ public class ReportShareServiceImpl implements ReportShareService { |
|
|
|
|
|
@Override
|
|
|
public ReportShare detailByCode(String shareCode) {
|
|
|
|
|
|
JSONObject params = new JSONObject();
|
|
|
if(shareCode.indexOf("&") != -1){
|
|
|
String[] split = shareCode.split("&");
|
|
|
shareCode = split[0];
|
|
|
|
|
|
if(split.length > 0){
|
|
|
for (int i = 1; i < split.length; i++) {
|
|
|
String[] param = split[i].split("=");
|
|
|
params.put(param[0],param[1]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
LambdaQueryWrapper<ReportShare> wrapper = Wrappers.lambdaQuery();
|
|
|
wrapper.eq(ReportShare::getShareCode, shareCode);
|
|
|
wrapper.eq(ReportShare::getEnableFlag, EnableFlagEnum.ENABLE.getCodeValue());
|
...
|
...
|
@@ -83,6 +99,7 @@ public class ReportShareServiceImpl implements ReportShareService { |
|
|
//md5加密返回
|
|
|
reportShare.setSharePassword(MD5Util.encrypt(password));
|
|
|
}
|
|
|
reportShare.setParams(params);
|
|
|
return reportShare;
|
|
|
}
|
|
|
|
...
|
...
|
|