fix(linkzo): SQL修复

This commit is contained in:
zhansihu 2023-08-22 17:09:41 +08:00
parent 02242b0232
commit c53dacc54d

View File

@ -199,8 +199,8 @@
record.router_params as routerParam,
record.relation_id as relationId,
record.old_type_id as oldTypeId
from message_record
where to_id={req.toId}
from message_record AS record
where to_id=#{req.toId}
<if test="req.msgType != null and req.msgType > 0">
type = #{req.msgType}
</if>
@ -231,8 +231,8 @@
record.router_params as routerParam,
record.relation_id as relationId,
record.old_type_id as oldTypeId
from message_record
where to_id={req.toId}
from message_record AS record
where to_id=#{req.toId}
<if test="req.msgType != null and req.msgType > 0">
type = #{req.msgType}
</if>