@@ -50,5 +50,7 @@ public interface FaceDeviceDao extends TKMapper<FaceDevice> {
Integer update(@Param("sn") String sn, @Param("type") int type, @Param("adminId") Integer adminId);
List<FaceDevice> selectTypeFaceDev(@Param("type") int type);
+
+ Integer updateStatus(@Param("sn") String sn, @Param("type") int type, @Param("adminId") Integer adminId);
}
@@ -82,7 +82,7 @@ public class SystemLongTermDocumentsServiceImpl implements SystemLongTermDocumen
@Override
public Integer delete(String sn) {
- Integer update = faceDeviceDao.update(sn, 0, 0);
+ Integer update = faceDeviceDao.updateStatus(sn, 0, 0);
return update;
@@ -8,7 +8,13 @@
WHERE sn = #{sn}
</update>
-
+ <update id="updateStatus">
+ UPDATE face_device
+ SET type = #{type},
+ state = 0,
+ admin_id_of_staff_entrance = #{adminId}
+ WHERE sn = #{sn}
+ </update>
<select id="getIdBySn" resultType="java.lang.Integer">
SELECT id
FROM face_device