|
|
@@ -114,4 +114,23 @@
|
|
|
createtime = #{createtime,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="QueryCondition" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from regist_log
|
|
|
+ <where>
|
|
|
+ <if test="mac != null">
|
|
|
+ and mac = #{mac,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="status != null">
|
|
|
+ and status = #{status,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ <if test="createtime != null">
|
|
|
+ and createtime = #{createtime,jdbcType=VARCHAR}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ ORDER BY createtime DESC
|
|
|
+ </select>
|
|
|
</mapper>
|