Commit 6e4dca66 by Future

添加日志打印

parent 3567499d
......@@ -41,4 +41,7 @@ public class ImHistoryMessagePageParam extends BasePageOrderParam {
* 当前操作人client主键id
*/
private Long currentFkClientId;
@ApiModelProperty("是否获取最后一条 0-否 1-是")
private Integer getLast;
}
......@@ -111,9 +111,15 @@
<if test="param.msgIdStart != null">
AND im_message.id > #{param.msgIdStart}
</if>
<if test="param.msgIdEnd != null">
<if test="param.getLast != null and param.getLast == 1">
AND im_message.id <![CDATA[ < ]]> #{param.msgIdEnd}
</if>
<if test="param.getLast != null and param.getLast == 0">
AND im_message.id <![CDATA[ <= ]]> #{param.msgIdEnd}
</if>
<if test="param.getLast == null">
AND im_message.id <![CDATA[ < ]]> #{param.msgIdEnd}
</if>
ORDER BY `im_message`.`create_time` DESC
</select>
......
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