xiao547607 преди 5 години
родител
ревизия
df1e2801fa

+ 5 - 1
common/src/main/java/com/jpsoft/smart/modules/base/entity/PersonDeviceLog.java

@@ -137,7 +137,11 @@ public class PersonDeviceLog {
     @ApiModelProperty(value = "更新时间")
     private Date updateTime;
 
-
+    /**
+     * 关联用户是否状态
+     */
+    @ApiModelProperty(value = "关联用户是否删除")
+    private Boolean personFlag;
 
 
 }

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

@@ -45,6 +45,7 @@
         <result property="matchFaceId" column="match_face_id" />
         <result property="faceImage" column="face_image" />
         <result property="recordTime" column="record_time" />
+        <result property="personFlag" column="person_flag" />
     </resultMap>
     <resultMap id="PersonDeviceLogMap" extends="SimpleMap" type="com.jpsoft.smart.modules.base.entity.PersonDeviceLog">
         <association property="device" column="device_no"
@@ -113,7 +114,7 @@
 
     <select id="search" parameterType="hashmap" resultMap="PersonDeviceLogMap">
         <![CDATA[
-			select a.* from base_person_device_log a left join base_device_info b
+			select a.*,b.del_flag as person_flag  from base_person_device_log a left join base_device_info b
 			on  a.device_no = b.device_no left join base_person_info c
 			on a.person_id = c.id_
 		]]>