fix: 调整日志保留天数展示内容

This commit is contained in:
niushuai233 2022-10-28 08:55:48 +08:00
parent 0b815f783a
commit b3823d01a4
3 changed files with 52 additions and 4 deletions

View File

@ -0,0 +1,48 @@
package cc.niushuai.project.devcontrol.db.entity;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import java.io.Serializable;
/**
* 设备日志
*
* @author niushuai233
* @date 2022/10/26 11:56
*/
//@Entity(nameInDb = "tb_dc_device_log")
public class DeviceLog implements Serializable {
private static final long serialVersionUID = 1175396508635274219L;
@Id
private Long id;
/**
* 设备id
*/
@Index
private Long deviceId;
/**
* key
*/
private String typeKey;
/**
* key
*/
private String typeName;
/**
* 内容
*/
private String content;
/**
* 创建时间
*/
private String createTime;
}

View File

@ -134,8 +134,8 @@
<TextView
android:id="@+id/setup_log_keep_day_display"
style="@style/SetupExt"
android:text="7"
/>
android:layout_marginRight="10dp"
android:text="7" />
</LinearLayout>
</RelativeLayout>

View File

@ -52,8 +52,8 @@
<item name="android:layout_width">128dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:textSize">12dp</item>
<item name="android:textSize">16dp</item>
<item name="android:textColor">@color/gray</item>
<item name="android:gravity">center_vertical</item>
<item name="android:gravity">center_vertical|right</item>
</style>
</resources>