增加系统时间获取

beetlsql3-dev
Mlxa0324 2 years ago
parent 563b0226f6
commit 69296a2c1b

@ -1,5 +1,7 @@
package com.ibeetl.jlw.web.api; package com.ibeetl.jlw.web.api;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.jlw.Interceptor.SCoreUser; import cn.jlw.Interceptor.SCoreUser;
import cn.jlw.Interceptor.TStudent; import cn.jlw.Interceptor.TStudent;
import cn.jlw.Interceptor.TTeacher; import cn.jlw.Interceptor.TTeacher;
@ -17,6 +19,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.beetl.sql.core.engine.PageQuery; import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -70,4 +73,14 @@ public class IndexBaseController {
} }
return JsonResult.success(resourcesApplicationService.queryMyApplicationByConditionQuery(pageQuery)); return JsonResult.success(resourcesApplicationService.queryMyApplicationByConditionQuery(pageQuery));
} }
/**
*
*
* @return
*/
@GetMapping(API + "/dateTime.do")
public DateTime dateTime() {
return DateUtil.date();
}
} }

Loading…
Cancel
Save