package entity; import com.et.ar.ActiveRecordBase; import com.et.ar.annotations.Column; import com.et.ar.annotations.Id; import com.et.ar.annotations.Table; @Table(name="m_course") public class Course extends ActiveRecordBase { @Id private Integer id; @Column private String c_code; @Column private String c_name; @Column private String c_descr; @Column private String c_state; @Column private String c_cate; public String getC_cate() { return c_cate; } public void setC_cate(String c_cate) { this.c_cate = c_cate; } public String getC_state() throws Exception{ long total=Byrow.count(Byrow.class,"course_id=?",new Object[]{this.getId()}); if(total>0){ return "已开课"; }else{ return "未开课"; } } public void setC_state(String c_state) { this.c_state = c_state; } public String getC_descr() { return c_descr; } public void setC_descr(String c_descr) { this.c_descr = c_descr; } public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getC_name() { return c_name; } public void setC_name(String c_name) { this.c_name = c_name; } public String getC_code() { return c_code; } public void setC_code(String c_code) { this.c_code = c_code; } }
最近下载更多
2036495585 LV9
2023年9月26日
卢本伟不开挂 LV4
2023年9月3日
lovezyp LV1
2023年4月20日
weilaizhisheng LV21
2022年11月19日
心悦君兮君不知258 LV5
2022年8月30日
梦奇渊 LV7
2022年6月24日
14445555 LV2
2022年5月31日
最代码-宋家辉 LV61
2022年5月26日
testuser1234567 LV24
2022年5月23日
3305787467 LV12
2022年5月22日
最近浏览更多
ll时空幻境 LV1
4月22日
提灯寻白鹿 LV2
3月27日
忧麦紫 LV18
3月15日
lasttimeapp
2023年11月27日
暂无贡献等级
1203061608
2023年10月9日
暂无贡献等级
2036495585 LV9
2023年9月26日
wersdfs LV1
2023年9月22日
卢本伟不开挂 LV4
2023年9月3日
1911321
2023年8月13日
暂无贡献等级
philwan LV2
2023年7月18日