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;
	}
	
	

}
最近下载更多
微信网友_6778018359316480  LV1 2023年12月18日
jiawei007  LV2 2023年2月8日
2530652407  LV1 2022年5月11日
haotian95110  LV4 2021年12月24日
yyyyds  LV1 2021年12月4日
wanglinddad  LV54 2021年11月29日
wangdongtai  LV31 2021年11月24日
golden_kun  LV2 2021年11月19日
543666826  LV33 2021年11月19日
渊之魂  LV1 2021年11月14日
最近浏览更多
WBelong  LV7 3月6日
222dsff 1月5日
暂无贡献等级
微信网友_6778018359316480  LV1 2023年12月17日
category 37  LV1 2023年12月11日
lvllvl  LV4 2023年11月1日
五折也挺好的  LV13 2023年9月22日
李亮  LV19 2023年8月29日
1289755  LV3 2023年7月30日
20310203 2023年7月17日
暂无贡献等级
zdmzdm11 2023年7月13日
暂无贡献等级
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友