Commit 4d3ee58b by zhiwj

修改审批

parent ba903f98
......@@ -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>
......
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