Explorar el Código

add: 添加日志注册信息

Your Name hace 1 año
padre
commit
9b4c676a51

+ 8 - 0
src/main/java/com/tuoren/forward/mapper/RegistLogMapper.java

@@ -1,6 +1,10 @@
 package com.tuoren.forward.mapper;
 
 import com.tuoren.forward.entity.RegistLog;
+import com.tuoren.forward.entity.dto.RegistLogDto;
+import com.tuoren.forward.entity.req.RegistLogSearchReq;
+
+import java.util.List;
 
 public interface RegistLogMapper {
     int deleteByPrimaryKey(String id);
@@ -14,4 +18,8 @@ public interface RegistLogMapper {
     int updateByPrimaryKeySelective(RegistLog row);
 
     int updateByPrimaryKey(RegistLog row);
+
+    List<RegistLog> QueryCondition(RegistLogSearchReq req);
+
+
 }

+ 19 - 0
src/main/resources/mapper/RegistLogMapper.xml

@@ -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>