添加功能
This commit is contained in:
parent
72b6364a89
commit
1b934a4a4f
|
@ -44,18 +44,18 @@ public class KcJieciServiceImpl extends ServiceImpl<KcJieciMapper, KcJieci> impl
|
|||
calendar.add(Calendar.DAY_OF_MONTH, -1); //当前时间减去一天,即一天前的时间
|
||||
//如果当前时间小于第一节开始时间则当前时间赋值为昨天,节次为最后一节
|
||||
dqkssj = simpleDateFormat.format(calendar.getTime());
|
||||
dqjc = list.get(5).getJieci();
|
||||
dqjc = "";
|
||||
//下一节赋值为当天第一节
|
||||
xyjkssj = DateUtils.getDate("yyyy-MM-dd");
|
||||
xyjjc = list.get(0).getJieci();
|
||||
}else{
|
||||
if(Integer.parseInt(dqsj)<Integer.parseInt(maxDate)){
|
||||
if(Integer.parseInt(dqsj)>Integer.parseInt(maxDate)){
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");//设置格式
|
||||
Calendar calendar = Calendar.getInstance(); //创建Calendar 的实例
|
||||
calendar.add(Calendar.DAY_OF_MONTH, +1); //当前时间减去一天,即一天前的时间
|
||||
//如果当前时间大于最后一节课则赋值给最后一节课
|
||||
dqkssj = DateUtils.getDate("yyyy-MM-dd");
|
||||
dqjc = list.get(5).getJieci();
|
||||
dqjc = "";
|
||||
//下一节课赋值给明天第一节
|
||||
xyjkssj = simpleDateFormat.format(calendar.getTime());
|
||||
xyjjc = list.get(0).getJieci();
|
||||
|
|
|
@ -8,8 +8,8 @@ import javax.servlet.http.HttpServletResponse;
|
|||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.kc.pktj.entity.KcEvaluation;
|
||||
import org.jeecg.modules.kc.pktj.service.IKcEvaluationService;
|
||||
import org.jeecg.modules.kc.qa.entity.KcEvaluation;
|
||||
import org.jeecg.modules.kc.qa.service.IKcEvaluationService;
|
||||
import org.jeecg.modules.kc.tktj.entity.KcTingke;
|
||||
import org.jeecg.modules.kc.tktj.service.IKcTingkeService;
|
||||
|
||||
|
|
Loading…
Reference in New Issue