推送消息url改动,消息推送几个查询关联表sql语句补充sts=‘Y’
This commit is contained in:
parent
55d5d4399d
commit
7409f90e2f
|
@ -566,7 +566,8 @@ where id = #{id}
|
||||||
a.status AS status,
|
a.status AS status,
|
||||||
a.remark AS remark,
|
a.remark AS remark,
|
||||||
a.create_time AS createTime,
|
a.create_time AS createTime,
|
||||||
a.modify_time AS modifyTime
|
a.modify_time AS modifyTime,
|
||||||
|
receiveApi.api_name AS receiveApiName
|
||||||
FROM
|
FROM
|
||||||
<choose>
|
<choose>
|
||||||
<when test=" status != null and status.trim() != '' and status == 3">
|
<when test=" status != null and status.trim() != '' and status == 3">
|
||||||
|
@ -577,6 +578,7 @@ where id = #{id}
|
||||||
</otherwise>
|
</otherwise>
|
||||||
</choose>
|
</choose>
|
||||||
LEFT JOIN sys_application sendApp ON a.send_app = sendApp.id AND sendApp.sts = 'Y'
|
LEFT JOIN sys_application sendApp ON a.send_app = sendApp.id AND sendApp.sts = 'Y'
|
||||||
|
LEFT JOIN sys_application_api receiveApi ON a.receive_code = receiveApi.api_code AND receiveApi.sts = 'Y'
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="ids != null and ids.size>0">
|
<if test="ids != null and ids.size>0">
|
||||||
AND a.id in
|
AND a.id in
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
from sys_send_message_log log
|
from sys_send_message_log log
|
||||||
LEFT JOIN sys_person p1 ON p1.id = log.recipients_person_id
|
LEFT JOIN sys_person p1 ON p1.id = log.recipients_person_id
|
||||||
LEFT JOIN sys_person p2 ON p2.id = log.send_person_id
|
LEFT JOIN sys_person p2 ON p2.id = log.send_person_id
|
||||||
where log.id = #{ id } and log.sts='Y'
|
where log.id = #{ id } and log.sts='Y' and p1.sts='Y' and p2.sts='Y'
|
||||||
</select>
|
</select>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-SysSendMessageLogEntity-result" parameterType = "com.hzya.frame.sysnew.sendMessageLog.entity.SysSendMessageLogEntity">
|
<select id="entity_list_base" resultMap="get-SysSendMessageLogEntity-result" parameterType = "com.hzya.frame.sysnew.sendMessageLog.entity.SysSendMessageLogEntity">
|
||||||
|
@ -96,6 +96,9 @@
|
||||||
<if test="resultMessage != null and resultMessage != ''"> and log.result_message = #{resultMessage} </if>
|
<if test="resultMessage != null and resultMessage != ''"> and log.result_message = #{resultMessage} </if>
|
||||||
<if test="appId != null and appId != ''" > and app_id = #{appId} </if>
|
<if test="appId != null and appId != ''" > and app_id = #{appId} </if>
|
||||||
and log.sts='Y'
|
and log.sts='Y'
|
||||||
|
and p1.sts='Y'
|
||||||
|
and p2.sts='Y'
|
||||||
|
and i.sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
|
@ -168,6 +171,12 @@
|
||||||
<if test="resultMessage != null and resultMessage != ''"> and log.result_message like concat('%',#{resultMessage},'%') </if>
|
<if test="resultMessage != null and resultMessage != ''"> and log.result_message like concat('%',#{resultMessage},'%') </if>
|
||||||
<if test="appId != null and appId != ''">and i.app_id like concat('%',#{appId},'%') </if>
|
<if test="appId != null and appId != ''">and i.app_id like concat('%',#{appId},'%') </if>
|
||||||
and log.sts='Y'
|
and log.sts='Y'
|
||||||
|
and i.sts='Y'
|
||||||
|
and config.sts='Y'
|
||||||
|
and template.sts='Y'
|
||||||
|
and p1.sts='Y'
|
||||||
|
and p2.sts='Y'
|
||||||
|
and app.sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by log.sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
|
|
|
@ -291,7 +291,7 @@ public class SysSendMessageLogServiceImpl extends BaseService<SysSendMessageLogE
|
||||||
logger.error("未找到该应用类型");
|
logger.error("未找到该应用类型");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
String result = HttpRequest.post("http://127.0.0.1:9999/kangarooDataCenterV3/entranceController/externalCallInterface").
|
String result = HttpRequest.post("http://ufidahz.com.cn:9067/kangarooDataCenterV3/entranceController/externalCallInterface").
|
||||||
header("appId", warningAppCode.toString()).
|
header("appId", warningAppCode.toString()).
|
||||||
header("apiCode", warningApiCode.toString()).
|
header("apiCode", warningApiCode.toString()).
|
||||||
header("publicKey", "ZJYA7v6DubGMm8EdBPGo+Jj9wCpUeCGJEpfBRLiInq4dvDlCe7eDIk+3zDUT+v578prj").
|
header("publicKey", "ZJYA7v6DubGMm8EdBPGo+Jj9wCpUeCGJEpfBRLiInq4dvDlCe7eDIk+3zDUT+v578prj").
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
,template.template_name
|
,template.template_name
|
||||||
from sys_warning_config config
|
from sys_warning_config config
|
||||||
LEFT JOIN sys_message_template template ON template.id = config.message_template_id
|
LEFT JOIN sys_message_template template ON template.id = config.message_template_id
|
||||||
where config.id = #{ id } and config.sts='Y'
|
where config.id = #{ id } AND config.sts='Y' AND template.sts='Y'
|
||||||
</select>
|
</select>
|
||||||
<!-- 查询 采用==查询 -->
|
<!-- 查询 采用==查询 -->
|
||||||
<select id="entity_list_base" resultMap="get-SysWarningConfigEntity-result" parameterType = "com.hzya.frame.sysnew.warningConfig.entity.SysWarningConfigEntity">
|
<select id="entity_list_base" resultMap="get-SysWarningConfigEntity-result" parameterType = "com.hzya.frame.sysnew.warningConfig.entity.SysWarningConfigEntity">
|
||||||
|
@ -129,6 +129,7 @@
|
||||||
<if test="status != null and status != ''"> and config.status like concat('%',#{status},'%') </if>
|
<if test="status != null and status != ''"> and config.status like concat('%',#{status},'%') </if>
|
||||||
<if test="recipientIdList != null and recipientIdList != ''"> and config.recipient_id_list like concat('%',#{recipientIdList},'%') </if>
|
<if test="recipientIdList != null and recipientIdList != ''"> and config.recipient_id_list like concat('%',#{recipientIdList},'%') </if>
|
||||||
and config.sts='Y'
|
and config.sts='Y'
|
||||||
|
and template.sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by config.sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by config.sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
|
|
|
@ -130,6 +130,7 @@
|
||||||
<if test="status != null and status != ''"> and i.status like concat('%',#{status},'%') </if>
|
<if test="status != null and status != ''"> and i.status like concat('%',#{status},'%') </if>
|
||||||
<if test="warningConfigId != null and warningConfigId != ''"> and i.warning_config_id like concat('%',#{warningConfigId},'%') </if>
|
<if test="warningConfigId != null and warningConfigId != ''"> and i.warning_config_id like concat('%',#{warningConfigId},'%') </if>
|
||||||
and i.sts='Y'
|
and i.sts='Y'
|
||||||
|
and app.sts='Y'
|
||||||
</trim>
|
</trim>
|
||||||
<if test=" sort == null or sort == ''.toString() "> order by i.sorts asc</if>
|
<if test=" sort == null or sort == ''.toString() "> order by i.sorts asc</if>
|
||||||
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
<if test=" sort !='' and sort!=null and order !='' and order!=null ">order by ${sort} ${order}</if>
|
||||||
|
|
Loading…
Reference in New Issue