浏览代码

我的学习按资料名类型查询

lamphua 2 个月前
父节点
当前提交
f67edef9a9
共有 1 个文件被更改,包括 20 次插入1 次删除
  1. 20
    1
      oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcStudy.java

+ 20
- 1
oa-back/ruoyi-system/src/main/java/com/ruoyi/oa/domain/CmcStudy.java 查看文件

27
     @Excel(name = "学习资料标题")
27
     @Excel(name = "学习资料标题")
28
     private String title;
28
     private String title;
29
     private CmcResource resource;
29
     private CmcResource resource;
30
+    @Excel(name = "学习资料类型")
31
+    private String type;
30
 
32
 
31
     /** 用户id */
33
     /** 用户id */
32
     private Long userId;
34
     private Long userId;
88
     {
90
     {
89
         return lastPoint;
91
         return lastPoint;
90
     }
92
     }
93
+    public void setTitle(String title)
94
+    {
95
+        this.title = title;
96
+    }
97
+
98
+    public String getTitle()
99
+    {
100
+        return title;
101
+    }
102
+    public void setType(String type)
103
+    {
104
+        this.type = type;
105
+    }
106
+
107
+    public String getType()
108
+    {
109
+        return type;
110
+    }
91
     public void setLastTime(Date lastTime) 
111
     public void setLastTime(Date lastTime) 
92
     {
112
     {
93
         this.lastTime = lastTime;
113
         this.lastTime = lastTime;
109
     public void setResource(CmcResource resource)
129
     public void setResource(CmcResource resource)
110
     {
130
     {
111
         this.resource = resource;
131
         this.resource = resource;
112
-        this.title = resource == null ? "" : resource.getTitle();
113
     }
132
     }
114
 
133
 
115
     public CmcResource getResource()
134
     public CmcResource getResource()

正在加载...
取消
保存