|
@@ -2,9 +2,12 @@ package com.ruoyi.demo.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
|
+import com.ruoyi.demo.entity.vo.SystemSetterVo;
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
|
|
|
@Data
|
|
@Data
|
|
|
|
+@NoArgsConstructor
|
|
@TableName("dl_system_setter")
|
|
@TableName("dl_system_setter")
|
|
public class SystemSetter {
|
|
public class SystemSetter {
|
|
@TableField("interval_carousel")
|
|
@TableField("interval_carousel")
|
|
@@ -13,4 +16,10 @@ public class SystemSetter {
|
|
private Integer intervalRequest;
|
|
private Integer intervalRequest;
|
|
@TableField("interval_submit")
|
|
@TableField("interval_submit")
|
|
private Integer intervalSubmit;
|
|
private Integer intervalSubmit;
|
|
|
|
+
|
|
|
|
+ public SystemSetter(SystemSetterVo systemSetterVo) {
|
|
|
|
+ this.intervalCarousel = systemSetterVo.getIntervalCarousel();
|
|
|
|
+ this.intervalRequest = systemSetterVo.getIntervalRequest();
|
|
|
|
+ this.intervalSubmit = systemSetterVo.getIntervalSubmit();
|
|
|
|
+ }
|
|
}
|
|
}
|