派生自 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
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
package com.qxueyou.scc.org.model;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
 
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
 
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.qxueyou.scc.base.model.ITrace;
 
 
/**
 * 机构专业
 * @author ody.yuan
 *
 */
@Entity
@Table(name="ORG_COLLEGE_COURSE")
@NamedQuery(name="OrgCollegeCourse.findAll", query="SELECT o FROM OrgCollegeCourse o")
public class OrgCollegeCourse implements Serializable,ITrace {
    
    private static final long serialVersionUID = 1L;
    
    /** 层次(1学科 2 门类  3专业) */
    public static final short ORG_COLLEGE_COURSE_TYPE_SUBJECT = 1;
    
    public static final short ORG_COLLEGE_COURSE_TYPE_CATEGORY = 2;
    
    public static final short ORG_COLLEGE_COURSE_TYPE_MAJOR = 3;
    
    @Id
    @GeneratedValue(generator = "hibernate-uuid")
    @GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
    @Column(name="COLLEGE_COURSE_ID", unique=true, nullable=false, length=32)
    private String collegeCourseId;
    
    /** 编码 */
    @Column(name="CODE",length=64)
    private String code;
 
    /** 介绍 */
    @Column(name="CONTENT")
    private String content;
 
    /** 分类id */
    @Column(name="COURSE_CATEGORY_ID", length=32)
    private String courseCategoryId;
 
    /** 分类名 */
    @Column(name="COURSE_CATEGORY_NAME", length=150)
    private String courseCategoryName;
 
    @Column(name="CREATE_ID", nullable=false, length=32)
    @JsonIgnore
    private String createId;
 
    @Column(name="CREATE_TIME", nullable=false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date createTime;
 
    @Column(name="CREATOR", nullable=false, length=100)
    @JsonIgnore
    private String creator;
 
    @Column(name="DELETE_FLAG", nullable=false)
    @JsonIgnore
    private boolean deleteFlag;
 
    @Column(name="NAME", length=255)
    private String name;
 
    /**  机构ID  */
    @Column(name="ORGANIZATION_ID", length=32)
    private String organizationId;
    
    
    @Transient
    private String orgName;
    
    @Transient
    private String orgTel;
    
    @Column(name="PRICE", nullable=false, precision=16, scale=2)
    private BigDecimal price;
 
    @Column(name="TEACHER", length=255)
    private String teacher;
    
    @Column(name="IMG_PATH", length=255)
    private String imgPath;
 
    @Column(name="UPDATE_ID", length=32)
    @JsonIgnore
    private String updateId;
 
    @Column(name="UPDATE_TIME", nullable=false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date updateTime;
 
    @Column(name="UPDATOR", length=100)
    @JsonIgnore
    private String updator;
    
    @Column(name="RECOMMEND", nullable=false)
    private boolean recommend;
    
    /**  专业ID  */
    @Column(name="COURSE_ID", length=32)
    private String courseId;
    
    /**  院系ID  */
    @Column(name="COLLEGE_ID", length=32)
    private String collegeId;
    
    /**  层次(学科  门类  专业)  */
    @Column(name="LEVEL_")
    private short level;
    
    /**  类型:1本科  2专科 3硕士   4博士  */
    @Column(name="TYPE")
    private short type;
    
    @Column(name="TOP_ORG_ID", length=32)
    private String topOrgId;
    
    @Column(name="ORDER_NUM")
    private int orderNum;
 
    @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
    @JoinColumn(name = "ORGANIZATION_ID",referencedColumnName="ORGANIZATION_ID",updatable=false,insertable=false)
    @JsonIgnore
    private Organization org;
    
    @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
    @JoinColumn(name = "TOP_ORG_ID",referencedColumnName="ORGANIZATION_ID",updatable=false,insertable=false)
    @JsonIgnore
    private Organization topOrg;
    
    //新加映射 2017-11-1
    @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
    @JoinColumn(name = "COURSE_CATEGORY_ID",referencedColumnName="CATEGORY_LEVEL_ID",updatable=false,insertable=false)
    @JsonIgnore
    private OrgCategoryLevel category;
    
    public int getOrderNum() {
        return orderNum;
    }
 
    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }
    
    public OrgCategoryLevel getCategory() {
        return category;
    }
 
    public void setCategory(OrgCategoryLevel category) {
        this.category = category;
    }
 
    @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
    @JoinColumn(name = "COURSE_ID",referencedColumnName="COURSE_ID",updatable=false,insertable=false)
    @JsonIgnore
    private OrgCourse orgCourse;
    
    @Transient
    private String classCount;
    
    /** 视频数量*/
    @Transient
    private Integer videoCount;
    
    /** 讲义数量*/
    @Transient
    private Integer handoutCount;
    
    /** 练习数量*/
    @Transient
    private Integer groupCount;
    
    /** 文章数量*/
    @Transient
    private Integer articleCount;
    
    /*@Column(name="ORDER_NUM")
    private int orderNum;
 
    public int getOrderNum() {
        return orderNum;
    }
 
    public void setOrderNum(int orderNum) {
        this.orderNum = orderNum;
    }*/
 
    /**
     * @return the collegeCourseId
     */
    public String getCollegeCourseId() {
        return collegeCourseId;
    }
 
    /**
     * @param collegeCourseId the collegeCourseId to set
     */
    public void setCollegeCourseId(String collegeCourseId) {
        this.collegeCourseId = collegeCourseId;
    }
 
    /**
     * @return the code
     */
    public String getCode() {
        return code;
    }
 
    /**
     * @param code the code to set
     */
    public void setCode(String code) {
        this.code = code;
    }
 
    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }
 
    /**
     * @param content the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }
 
    /**
     * @return the courseCategoryId
     */
    public String getCourseCategoryId() {
        return courseCategoryId;
    }
 
    /**
     * @param courseCategoryId the courseCategoryId to set
     */
    public void setCourseCategoryId(String courseCategoryId) {
        this.courseCategoryId = courseCategoryId;
    }
 
    /**
     * @return the courseCategoryName
     */
    public String getCourseCategoryName() {
        return courseCategoryName;
    }
 
    /**
     * @param courseCategoryName the courseCategoryName to set
     */
    public void setCourseCategoryName(String courseCategoryName) {
        this.courseCategoryName = courseCategoryName;
    }
 
    /**
     * @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 name
     */
    public String getName() {
        return name;
    }
 
    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
 
    /**
     * @return the organizationId
     */
    public String getOrganizationId() {
        return organizationId;
    }
 
    /**
     * @param organizationId the organizationId to set
     */
    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }
 
    /**
     * @return the orgName
     */
    public String getOrgName() {
        return orgName;
    }
 
    /**
     * @param orgName the orgName to set
     */
    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }
 
    /**
     * @return the orgTel
     */
    public String getOrgTel() {
        return orgTel;
    }
 
    /**
     * @param orgTel the orgTel to set
     */
    public void setOrgTel(String orgTel) {
        this.orgTel = orgTel;
    }
 
    /**
     * @return the price
     */
    public BigDecimal getPrice() {
        return price;
    }
 
    /**
     * @param price the price to set
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
 
    /**
     * @return the teacher
     */
    public String getTeacher() {
        return teacher;
    }
 
    /**
     * @param teacher the teacher to set
     */
    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }
 
    /**
     * @return the imgPath
     */
    public String getImgPath() {
        return imgPath;
    }
 
    /**
     * @param imgPath the imgPath to set
     */
    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }
 
    /**
     * @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 recommend
     */
    public boolean isRecommend() {
        return recommend;
    }
 
    /**
     * @param recommend the recommend to set
     */
    public void setRecommend(boolean recommend) {
        this.recommend = recommend;
    }
 
    /**
     * @return the courseId
     */
    public String getCourseId() {
        return courseId;
    }
 
    /**
     * @param courseId the courseId to set
     */
    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }
 
    /**
     * @return the collegeId
     */
    public String getCollegeId() {
        return collegeId;
    }
 
    /**
     * @param collegeId the collegeId to set
     */
    public void setCollegeId(String collegeId) {
        this.collegeId = collegeId;
    }
 
    /**
     * @return the level
     */
    public short getLevel() {
        return level;
    }
 
    /**
     * @param level the level to set
     */
    public void setLevel(short level) {
        this.level = level;
    }
 
    /**
     * @return the type
     */
    public short getType() {
        return type;
    }
 
    /**
     * @param type the type to set
     */
    public void setType(short type) {
        this.type = type;
    }
 
    /**
     * @return the topOrgId
     */
    public String getTopOrgId() {
        return topOrgId;
    }
 
    /**
     * @param topOrgId the topOrgId to set
     */
    public void setTopOrgId(String topOrgId) {
        this.topOrgId = topOrgId;
    }
 
    /**
     * @return the org
     */
    public Organization getOrg() {
        return org;
    }
 
    /**
     * @param org the org to set
     */
    public void setOrg(Organization org) {
        this.org = org;
    }
 
    /**
     * @return the topOrg
     */
    public Organization getTopOrg() {
        return topOrg;
    }
 
    /**
     * @param topOrg the topOrg to set
     */
    public void setTopOrg(Organization topOrg) {
        this.topOrg = topOrg;
    }
 
    /**
     * @return the orgCourse
     */
    public OrgCourse getOrgCourse() {
        return orgCourse;
    }
 
    /**
     * @param orgCourse the orgCourse to set
     */
    public void setOrgCourse(OrgCourse orgCourse) {
        this.orgCourse = orgCourse;
    }
 
    /**
     * @return the classCount
     */
    public String getClassCount() {
        return classCount;
    }
 
    /**
     * @param classCount the classCount to set
     */
    public void setClassCount(String classCount) {
        this.classCount = classCount;
    }
 
    /**
     * @return the videoCount
     */
    public Integer getVideoCount() {
        return videoCount;
    }
 
    /**
     * @param videoCount the videoCount to set
     */
    public void setVideoCount(Integer videoCount) {
        this.videoCount = videoCount;
    }
 
    /**
     * @return the handoutCount
     */
    public Integer getHandoutCount() {
        return handoutCount;
    }
 
    /**
     * @param handoutCount the handoutCount to set
     */
    public void setHandoutCount(Integer handoutCount) {
        this.handoutCount = handoutCount;
    }
 
    /**
     * @return the groupCount
     */
    public Integer getGroupCount() {
        return groupCount;
    }
 
    /**
     * @param groupCount the groupCount to set
     */
    public void setGroupCount(Integer groupCount) {
        this.groupCount = groupCount;
    }
 
    public Integer getArticleCount() {
        return articleCount;
    }
 
    public void setArticleCount(Integer articleCount) {
        this.articleCount = articleCount;
    }
    
 
    
}