Commit 66e11a01 by 陶光胜

Merge branch 'developer' into 'master'

Developer

See merge request !28
parents fa0010c1 4d3ee58b
......@@ -36,6 +36,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
......@@ -371,12 +372,19 @@ public class AuditLogApiServiceImpl implements AuditLogApiService {
String url;
if (AuditTypeEnum.HAOBAN.getCode().equals(auditLogDTO.getAuditType())) {
url = String.format("%s%s?auditLogId=%d&openid=%s", config.getHost(), auditLogDTO.getAuditUrl(), auditLogDTO.getAuditLogId(), auditorDTO.getOpenid());
if (StringUtils.isNotBlank(auditLogDTO.getExtraInfo())) {
JSONObject jsonObject = JSON.parseObject(auditLogDTO.getExtraInfo());
StringBuilder sb = new StringBuilder();
for (Map.Entry<String, Object> entry : jsonObject.entrySet()) {
sb.append("&").append(entry.getKey()).append("=").append(entry.getValue());
}
url += sb.toString();
}
} else {
url = String.format("%s/damo-system/wechat-approve.html?auditLogId=%d&openid=%s", config.getHost(), auditLogDTO.getAuditLogId(), auditorDTO.getOpenid());
}
logger.info("微信跳转 url:{}", url);
ServiceResponse<String> serviceResponse = this.wxTemplateRouterApiService.sendForDownloadData(auditorDTO.getOpenid(), url, keyWord);
logger.info("微信跳转结果:{},{}", serviceResponse.getResult(), serviceResponse.getMessage());
logger.info("微信跳转结果:{},{}", serviceResponse.isSuccess(), serviceResponse.getMessage());
}
}
......@@ -215,6 +215,9 @@
<include refid="Base_Column_List" />
from tab_download_log
where status = 1
<if test="enterpriseId != null ">
and enterprise_id = #{enterpriseId}
</if>
<if test="startTime != null and startTime != '' ">
and create_time &gt; #{startTime}
</if>
......
......@@ -416,12 +416,16 @@ public class IndexModuleController {
Integer enterpriseId = UserDetailUtils.getUserDetail().getEnterpriseId();
List<Integer> authStoreIdList = new ArrayList<>();
if(UserDetailUtils.getUserDetail().getUserInfo().getSuperAdmin() != 1){
ServiceResponse<List<Integer>> authResponse = this.storeWidgetApiService.listStoreIdByStoreWidgetId(enterpriseId, UserDetailUtils.getUserDetail().getUserResourceInfo().getStoreResource().intValue());
if(authResponse.isSuccess()){
authStoreIdList = authResponse.getResult();
}
if(CollectionUtils.isEmpty(authStoreIdList)){
if (UserDetailUtils.getUserDetail().getUserResourceInfo().getStoreResource() == null) {
authStoreIdList.add(-1);
} else {
ServiceResponse<List<Integer>> authResponse = this.storeWidgetApiService.listStoreIdByStoreWidgetId(enterpriseId, UserDetailUtils.getUserDetail().getUserResourceInfo().getStoreResource().intValue());
if(authResponse.isSuccess()){
authStoreIdList = authResponse.getResult();
}
if(CollectionUtils.isEmpty(authStoreIdList)){
authStoreIdList.add(-1);
}
}
}
return authStoreIdList;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment