派生自 projectDept/qhighschool

EricsHu
2022-12-05 068fc7f2e81178e55fa191a13709af64b1a163f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
package com.qxueyou.scc.school.model;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;
 
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;
 
import com.qxueyou.scc.base.model.ITrace;
import com.fasterxml.jackson.annotation.JsonIgnore;
 
/**
 * 讲义实体类
 * 
 * @author ody.yuan
 *
 */
@Entity
@Table(name = "sch_handout")
@NamedQuery(name = "SchHandout.findAll", query = "SELECT s FROM SchHandout s")
public class SchHandout implements Serializable, ITrace {
    private static final long serialVersionUID = 1L;
 
    /** 讲义ID */
    @Id
    @GeneratedValue(generator = "hibernate-uuid")
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @Column(name = "HANDOUT_ID", unique = true, nullable = false, length = 32)
    private String handoutId;
 
    @Column(name = "CREATE_ID", nullable = false, length = 32)
    @JsonIgnore
    private String createId;
 
    /** 注意:此处的createTime需要返回前台app 不能用@JsonIgnore */
    @Column(name = "CREATE_TIME", nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
 
    @Column(name = "CREATOR", nullable = false, length = 100)
    @JsonIgnore
    private String creator;
 
    /** 文件原始路径 */
    @Column(name = "ORIG_PATH")
    @JsonIgnore
    private String origPath;
 
    @Column(name = "DELETE_FLAG", nullable = false)
    @JsonIgnore
    private boolean deleteFlag;
 
    /** 班级课表ID */
    @Column(name = "CLASS_SCHEDULE_ID", length = 32)
    private String classScheduleId;
 
    /** 班级课表 */
    @Column(name = "CLASS_SCHEDULE", length = 150)
    private String classSchedule;
 
    /** 班级ID */
    @Column(name = "CLASS_ID", length = 32)
    private String classId;
 
    /** 讲义名称 */
    @Column(name = "NAME", length = 150)
    private String name;
 
    /** 讲义观看数量 */
    @Column(name = "PLAY_COUNT", length = 11)
    private Integer playCount;
 
    /** 讲义页码数量,总共多少页 */
    @Column(name = "PAGE_COUNT")
    private Integer pageCount;
 
    /** 原始讲义ID */
    @Column(name = "ORIGIN_HANDOUT_ID", length = 32)
    private String originHandoutId;
 
    /** 机构ID */
    @Column(name = "ORG_ID", length = 32)
    private String orgId;
 
    /** 讲义收藏列表:表明当前收藏的讲义 页码总数,非收藏的页码数 */
    @Transient
    private int totalCount;
 
    @Column(name = "UPDATE_ID", length = 32)
    @JsonIgnore
    private String updateId;
 
    @Column(name = "UPDATE_TIME", nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
 
    @Column(name = "UPDATOR", length = 100)
    @JsonIgnore
    private String updator;
 
    /** 讲义状态 0 草稿;1已发布;2已废弃;3处理中;4处理失败 */
    @Column(name = "STATUS")
    private short status;
 
    /** 课程ID */
    @Column(name = "SUBJECT_ID", length = 32)
    private String subjectId;
 
    /** 课程名字 */
    @Column(name = "SUBJECT_NAME", length = 255)
    private String subjectName;
 
    /** 科目ID */
    @Column(name = "COLLEGE_COURSE_ID", length = 32)
    private String collegeCourseId;
 
    /** 详情介绍 */
    @Column(name = "remark", length = 4000)
    private String remark;
 
    /** 封面图片URL */
    @Column(name = "COVER_PAGE_URL", length = 256)
    private String coverPageUrl;
 
    /** 下载路径URL */
    @Column(name = "FULL_PATH", length = 256)
    @JsonIgnore
    private String fullPath;
 
    /** 讲义大小 */
    @Column(name = "FULL_LENGTH")
    private Integer fullLength;
 
    /** 讲义完成度 */
    @Transient
    private BigDecimal compDegree;
 
    /** 草稿 */
    public final static short STATUS_DRAFT = 0;
 
    /** 已发布 */
    public final static short STATUS_ISSUED = 1;
 
    /** 已废弃 */
    public final static short STATUS_DISCARD = 2;
 
    /** 处理中 */
    public final static short STATUS_PROCESSING = 3;
 
    /** 处理失败 */
    public final static short STATUS_FAILURE = 4;
 
    @OneToMany(fetch = FetchType.LAZY, mappedBy = "handout")
    @JsonIgnore
    private List<SchHandoutPage> handoutPages;
 
    /** 讲义管理排序,班主任排序 */
    @Column(name = "ORDER_NUM")
    private Integer orderNum;
 
    @Column(name = "CHAPTER_ID")
    private String chapterId;
 
    public String getChapterId() {
        return chapterId;
    }
 
    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }
 
    /**
     * @return the handoutId
     */
    public String getHandoutId() {
        return handoutId;
    }
 
    /**
     * @param handoutId
     *            the handoutId to set
     */
    public void setHandoutId(String handoutId) {
        this.handoutId = handoutId;
    }
 
    /**
     * @return the createId
     */
    public String getCreateId() {
        return createId;
    }
 
    /**
     * @param createId
     *            the createId to set
     */
    public void setCreateId(String createId) {
        this.createId = createId;
    }
 
    /**
     * @return the createTime
     */
    public Date getCreateTime() {
        return createTime;
    }
 
    /**
     * @param createTime
     *            the createTime to set
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    /**
     * @return the creator
     */
    public String getCreator() {
        return creator;
    }
 
    /**
     * @param creator
     *            the creator to set
     */
    public void setCreator(String creator) {
        this.creator = creator;
    }
 
    /**
     * @return the deleteFlag
     */
    public boolean getDeleteFlag() {
        return deleteFlag;
    }
 
    /**
     * @param deleteFlag
     *            the deleteFlag to set
     */
    public void setDeleteFlag(boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
 
    /**
     * @return the classScheduleId
     */
    public String getClassScheduleId() {
        return classScheduleId;
    }
 
    /**
     * @param classScheduleId
     *            the classScheduleId to set
     */
    public void setClassScheduleId(String classScheduleId) {
        this.classScheduleId = classScheduleId;
    }
 
    /**
     * @return the classSchedule
     */
    public String getClassSchedule() {
        return classSchedule;
    }
 
    /**
     * @param classSchedule
     *            the classSchedule to set
     */
    public void setClassSchedule(String classSchedule) {
        this.classSchedule = classSchedule;
    }
 
    /**
     * @return the classId
     */
    public String getClassId() {
        return classId;
    }
 
    /**
     * @param classId
     *            the classId to set
     */
    public void setClassId(String classId) {
        this.classId = classId;
    }
 
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }
 
    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
 
    /**
     * @return the playCount
     */
    public Integer getPlayCount() {
        return playCount;
    }
 
    /**
     * @param playCount
     *            the playCount to set
     */
    public void setPlayCount(Integer playCount) {
        this.playCount = playCount;
    }
 
    /**
     * @return the pageCount
     */
    public Integer getPageCount() {
        return pageCount;
    }
 
    /**
     * @param pageCount
     *            the pageCount to set
     */
    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }
 
    /**
     * @return the originHandoutId
     */
    public String getOriginHandoutId() {
        return originHandoutId;
    }
 
    /**
     * @param originHandoutId
     *            the originHandoutId to set
     */
    public void setOriginHandoutId(String originHandoutId) {
        this.originHandoutId = originHandoutId;
    }
 
    /**
     * @return the orgId
     */
    public String getOrgId() {
        return orgId;
    }
 
    /**
     * @param orgId
     *            the orgId to set
     */
    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
 
    /**
     * @return the totalCount
     */
    public int getTotalCount() {
        return totalCount;
    }
 
    /**
     * @param totalCount
     *            the totalCount to set
     */
    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }
 
    /**
     * @return the updateId
     */
    public String getUpdateId() {
        return updateId;
    }
 
    /**
     * @param updateId
     *            the updateId to set
     */
    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }
 
    /**
     * @return the updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }
 
    /**
     * @param updateTime
     *            the updateTime to set
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
 
    /**
     * @return the updator
     */
    public String getUpdator() {
        return updator;
    }
 
    /**
     * @param updator
     *            the updator to set
     */
    public void setUpdator(String updator) {
        this.updator = updator;
    }
 
    /**
     * @return the status
     */
    public short getStatus() {
        return status;
    }
 
    /**
     * @param status
     *            the status to set
     */
    public void setStatus(short status) {
        this.status = status;
    }
 
    /**
     * @return the subjectId
     */
    public String getSubjectId() {
        return subjectId;
    }
 
    /**
     * @param subjectId
     *            the subjectId to set
     */
    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }
 
    /**
     * @return the subjectName
     */
    public String getSubjectName() {
        return subjectName;
    }
 
    /**
     * @param subjectName
     *            the subjectName to set
     */
    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }
 
    /**
     * @return the collegeCourseId
     */
    public String getCollegeCourseId() {
        return collegeCourseId;
    }
 
    /**
     * @param collegeCourseId
     *            the collegeCourseId to set
     */
    public void setCollegeCourseId(String collegeCourseId) {
        this.collegeCourseId = collegeCourseId;
    }
 
    /**
     * @return the compDegree
     */
    public BigDecimal getCompDegree() {
        return compDegree;
    }
 
    /**
     * @param compDegree
     *            the compDegree to set
     */
    public void setCompDegree(BigDecimal compDegree) {
        this.compDegree = compDegree;
    }
 
    /**
     * @return the handoutPages
     */
    public List<SchHandoutPage> getHandoutPages() {
        return handoutPages;
    }
 
    /**
     * @param handoutPages
     *            the handoutPages to set
     */
    public void setHandoutPages(List<SchHandoutPage> handoutPages) {
        this.handoutPages = handoutPages;
    }
 
    /**
     * @return the mainImg
     */
    public String getMainImg() {
        return coverPageUrl;
    }
 
    /**
     * @return the orderNum
     */
    public Integer getOrderNum() {
        return orderNum;
    }
 
    /**
     * @param orderNum
     *            the orderNum to set
     */
    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }
 
    public String getRemark() {
        return remark;
    }
 
    public void setRemark(String remark) {
        this.remark = remark;
    }
 
    /**
     * @return the coverPageUrl
     */
    public String getCoverPageUrl() {
        return coverPageUrl;
    }
 
    /**
     * @param coverPageUrl
     *            the coverPageUrl to set
     */
    public void setCoverPageUrl(String coverPageUrl) {
        this.coverPageUrl = coverPageUrl;
    }
 
    public String getFullPath() {
        return fullPath;
    }
 
    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }
 
    public Integer getFullLength() {
        return fullLength;
    }
 
    public void setFullLength(Integer fullLength) {
        this.fullLength = fullLength;
    }
 
    public String getOrigPath() {
        return origPath;
    }
 
    public void setOrigPath(String origPath) {
        this.origPath = origPath;
    }
 
}