|
@@ -60,7 +60,7 @@ public class activity extends Controller {
|
|
|
String ftitle = content.getString("ftitle", "tactivity.ftitle", "活动名称");
|
|
String ftitle = content.getString("ftitle", "tactivity.ftitle", "活动名称");
|
|
|
String fnotes = content.getString("fnotes", "tactivity.fnotes", "活动介绍");
|
|
String fnotes = content.getString("fnotes", "tactivity.fnotes", "活动介绍");
|
|
|
String fshow_url = content.getString("fshow_url", "tactivity.fshow_url", "活动宣传页");
|
|
String fshow_url = content.getString("fshow_url", "tactivity.fshow_url", "活动宣传页");
|
|
|
- String fstatus = content.getString("fstatus");
|
|
|
|
|
|
|
+ // String fstatus = content.getString("fstatus");
|
|
|
Date fbegdate = content.getDate("fbegdate");//开始时间
|
|
Date fbegdate = content.getDate("fbegdate");//开始时间
|
|
|
Date fenddate = content.getDate("fenddate");//结束时间
|
|
Date fenddate = content.getDate("fenddate");//结束时间
|
|
|
|
|
|
|
@@ -74,6 +74,13 @@ public class activity extends Controller {
|
|
|
} else {
|
|
} else {
|
|
|
tactivity = tactivitySet.getPao(0);
|
|
tactivity = tactivitySet.getPao(0);
|
|
|
}
|
|
}
|
|
|
|
|
+ String fstatus = "活动中";
|
|
|
|
|
+ if (sysdate.after(fenddate)) {
|
|
|
|
|
+ fstatus = "已结束";
|
|
|
|
|
+ }
|
|
|
|
|
+ if (sysdate.before(fbegdate)) {
|
|
|
|
|
+ fstatus = "未开始";
|
|
|
|
|
+ }
|
|
|
tactivity.setValue("fstatus", fstatus, 11L);
|
|
tactivity.setValue("fstatus", fstatus, 11L);
|
|
|
tactivity.setValue("ftitle", ftitle, 11L);
|
|
tactivity.setValue("ftitle", ftitle, 11L);
|
|
|
tactivity.setValue("fnotes", fnotes, 11L);
|
|
tactivity.setValue("fnotes", fnotes, 11L);
|