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;
}
}
最近下载更多
xiao小果 LV13
2024年8月24日
微信网友_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 LV55
2021年11月29日
wangdongtai LV31
2021年11月24日
golden_kun LV2
2021年11月19日
543666826 LV34
2021年11月19日

最近浏览