Ver Fonte

增加新的字段‘是否有效数据’

yanliming há 5 anos atrás
pai
commit
8c6d8998a8

+ 6 - 0
common/src/main/java/com/jpsoft/smart/modules/base/entity/PersonDeviceLog.java

@@ -84,6 +84,12 @@ public class PersonDeviceLog {
     @ApiModelProperty(value = "记录时间")
     private Date recordTime;
 
+    /**
+     * 是否有效数据
+     */
+    @ApiModelProperty(value = "是否有效数据")
+    private Boolean isEffective;
+
     /**
      * 是否删除
      */

+ 3 - 1
common/src/main/resources/mapper/base/PersonDeviceLog.xml

@@ -9,6 +9,7 @@
         <result property="createTime" column="create_time" />
         <result property="updateBy" column="update_by" />
         <result property="updateTime" column="update_time" />
+        <result property="isEffective" column="is_effective" />
         <result property="delFlag" column="del_flag" />
         <result property="deviceNo" column="device_no" />
         <result property="personId" column="person_id" />
@@ -31,7 +32,7 @@
         -->
         <![CDATA[
 		insert into base_person_device_log
-	    (id_,create_by,create_time,update_by,update_time,del_flag,device_no,person_id,temperature_,match_status,match_msg,match_face_id,face_image,record_time)
+	    (id_,create_by,create_time,update_by,update_time,is_effective,del_flag,device_no,person_id,temperature_,match_status,match_msg,match_face_id,face_image,record_time)
 		values
 		(
 #{id,jdbcType=VARCHAR}
@@ -39,6 +40,7 @@
 ,#{createTime,jdbcType= TIMESTAMP }
 ,#{updateBy,jdbcType=VARCHAR}
 ,#{updateTime,jdbcType= TIMESTAMP }
+,#{isEffective,jdbcType= NUMERIC }
 ,#{delFlag,jdbcType= NUMERIC }
 ,#{deviceNo,jdbcType=VARCHAR}
 ,#{personId,jdbcType=VARCHAR}