|
|
|
@@ -6,12 +6,12 @@ |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type" /> |
|
|
|
<result column="ip" jdbcType="VARCHAR" property="ip" /> |
|
|
|
<result column="desc" jdbcType="VARCHAR" property="desc" /> |
|
|
|
<result column="action_desc" jdbcType="VARCHAR" property="actionDesc" /> |
|
|
|
<result column="action_time" jdbcType="TIMESTAMP" property="actionTime" /> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`user_id`,`type`,`ip`,`desc`,`action_time` |
|
|
|
`id`,`user_id`,`type`,`ip`,`action_desc`,`action_time` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -28,8 +28,8 @@ |
|
|
|
<if test=" null != ip "> |
|
|
|
and `ip` like concat('%', #{ip},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != desc "> |
|
|
|
and `desc` like concat('%', #{desc},'%') |
|
|
|
<if test=" null != actionDesc "> |
|
|
|
and `action_desc` like concat('%', #{actionDesc},'%') |
|
|
|
</if> |
|
|
|
<if test=" null != actionTime "> |
|
|
|
and `action_time` = #{actionTime} |
|
|
|
|