修改浏览记录报错
This commit is contained in:
@ -27,11 +27,9 @@ public interface LogMapper extends CoreMapper<Log> {
|
||||
|
||||
@Delete("delete from log where log_type = #{logType}")
|
||||
void deleteByLogType(@Param("logType") String logType);
|
||||
@Select("\"select l.id,l.create_time as createTime,l.description,\" +\n" +
|
||||
" \"l.request_ip as requestIp,l.address,\" +\n" +
|
||||
" \"u.nickname from log l left join yx_user u on u.uid=l.uid \" +\n" +
|
||||
" \" where l.type=1\" +\n" +
|
||||
" \" and if(#{nickname} !='',u.nickname LIKE CONCAT('%',#{nickname},'%'),1=1) order by l.id desc\"")
|
||||
@Select("<script>select l.id,l.create_time as createTime,l.description, l.request_ip as requestIp,l.address,u.nickname from log l " +
|
||||
" left join yx_user u on u.uid=l.uid where l.type=1 " +
|
||||
" <if test = \"nickname !=''\"> and u.nickname LIKE CONCAT('%',#{nickname},'%')</if> order by l.id desc</script>")
|
||||
List<Log> findAllByPageable(@Param("nickname") String nickname);
|
||||
@Select( "select count(*) FROM (select request_ip FROM log where create_time between #{date1} and #{date2} GROUP BY request_ip) as s")
|
||||
long findIp(@Param("date1") String date1, @Param("date2")String date2);
|
||||
|
Reference in New Issue
Block a user