parent
03f2e43e4d
commit
2a30f8fb5e
@ -0,0 +1,25 @@
|
||||
package com.ibeetl.jlw.dao;
|
||||
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseStudentSigninLog;
|
||||
import com.ibeetl.jlw.web.query.TeacherOpenCourseStudentSigninLogQuery;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.beetl.sql.mapper.BaseMapper;
|
||||
import org.beetl.sql.mapper.annotation.SqlResource;
|
||||
import org.beetl.sql.mapper.annotation.Update;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 学生签到记录 Dao
|
||||
*/
|
||||
@SqlResource("jlw.teacherOpenCourseStudentSigninLog")
|
||||
public interface TeacherOpenCourseStudentSigninLogDao extends BaseMapper<TeacherOpenCourseStudentSigninLog>{
|
||||
PageQuery<TeacherOpenCourseStudentSigninLog> queryByCondition(PageQuery query);
|
||||
PageQuery<TeacherOpenCourseStudentSigninLog> queryByConditionQuery(PageQuery query);
|
||||
@Update
|
||||
void deleteTeacherOpenCourseStudentSigninLogByIds(String ids);
|
||||
@Update
|
||||
int updateGivenByIds(TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery);
|
||||
List<TeacherOpenCourseStudentSigninLog> getByIds(String ids);
|
||||
List<TeacherOpenCourseStudentSigninLog> getValuesByQuery(TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery);
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package com.ibeetl.jlw.dao;
|
||||
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseStudentSigninSetting;
|
||||
import com.ibeetl.jlw.web.query.TeacherOpenCourseStudentSigninSettingQuery;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.beetl.sql.mapper.BaseMapper;
|
||||
import org.beetl.sql.mapper.annotation.SqlResource;
|
||||
import org.beetl.sql.mapper.annotation.Update;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 学生签到设置 Dao
|
||||
*/
|
||||
@SqlResource("jlw.teacherOpenCourseStudentSigninSetting")
|
||||
public interface TeacherOpenCourseStudentSigninSettingDao extends BaseMapper<TeacherOpenCourseStudentSigninSetting>{
|
||||
PageQuery<TeacherOpenCourseStudentSigninSetting> queryByCondition(PageQuery query);
|
||||
PageQuery<TeacherOpenCourseStudentSigninSetting> queryByConditionQuery(PageQuery query);
|
||||
@Update
|
||||
void deleteTeacherOpenCourseStudentSigninSettingByIds(String ids);
|
||||
@Update
|
||||
int updateGivenByIds(TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery);
|
||||
List<TeacherOpenCourseStudentSigninSetting> getByIds(String ids);
|
||||
List<TeacherOpenCourseStudentSigninSetting> getValuesByQuery(TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery);
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
package com.ibeetl.jlw.service;
|
||||
|
||||
import cn.jlw.util.ToolUtils;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.ibeetl.admin.core.service.CoreBaseService;
|
||||
import com.ibeetl.admin.core.util.PlatformException;
|
||||
import com.ibeetl.admin.core.web.JsonResult;
|
||||
import com.ibeetl.admin.core.web.JsonReturnCode;
|
||||
import com.ibeetl.jlw.dao.TeacherOpenCourseStudentSigninLogDao;
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseStudentSigninLog;
|
||||
import com.ibeetl.jlw.web.query.TeacherOpenCourseStudentSigninLogQuery;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.beetl.sql.core.SqlId;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 学生签到记录 Service
|
||||
* 当分布式ID开启后请勿使用insert(*,true)
|
||||
*/
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
public class TeacherOpenCourseStudentSigninLogService extends CoreBaseService<TeacherOpenCourseStudentSigninLog>{
|
||||
|
||||
@Resource private TeacherOpenCourseStudentSigninLogDao teacherOpenCourseStudentSigninLogDao;
|
||||
|
||||
public PageQuery<TeacherOpenCourseStudentSigninLog>queryByCondition(PageQuery query){
|
||||
PageQuery ret = teacherOpenCourseStudentSigninLogDao.queryByCondition(query);
|
||||
queryListAfter(ret.getList());
|
||||
return ret;
|
||||
}
|
||||
|
||||
public PageQuery<TeacherOpenCourseStudentSigninLog>queryByConditionQuery(PageQuery query){
|
||||
PageQuery ret = teacherOpenCourseStudentSigninLogDao.queryByConditionQuery(query);
|
||||
queryListAfter(ret.getList());
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void deleteByList(List list){
|
||||
String ids = "";
|
||||
ToolUtils.deleteNullList(list);
|
||||
for(int i=0;null != list && i<list.size();i++){
|
||||
ids += list.get(i).toString()+(i==list.size()-1?"":",");
|
||||
}
|
||||
if(StringUtils.isNotBlank(ids)){
|
||||
teacherOpenCourseStudentSigninLogDao.deleteTeacherOpenCourseStudentSigninLogByIds(ids);
|
||||
}
|
||||
}
|
||||
|
||||
public void deleteTeacherOpenCourseStudentSigninLog(String ids){
|
||||
try {
|
||||
teacherOpenCourseStudentSigninLogDao.deleteTeacherOpenCourseStudentSigninLogByIds(ids);
|
||||
} catch (Exception e) {
|
||||
throw new PlatformException("批量删除学生签到记录失败", e);
|
||||
}
|
||||
}
|
||||
|
||||
public String addAll(TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery){
|
||||
String msg = "";
|
||||
List<TeacherOpenCourseStudentSigninLog> teacherOpenCourseStudentSigninLogList = new ArrayList<>();
|
||||
try {
|
||||
teacherOpenCourseStudentSigninLogList = JSON.parseArray(teacherOpenCourseStudentSigninLogQuery.getTeacherOpenCourseStudentSigninLogJsonStr(), TeacherOpenCourseStudentSigninLog.class);
|
||||
} catch (Exception e) {
|
||||
try {
|
||||
teacherOpenCourseStudentSigninLogList.add(JSONObject.parseObject(teacherOpenCourseStudentSigninLogQuery.getTeacherOpenCourseStudentSigninLogJsonStr(), TeacherOpenCourseStudentSigninLog.class));
|
||||
} catch (Exception e1) {}
|
||||
}
|
||||
ToolUtils.deleteNullList(teacherOpenCourseStudentSigninLogList);
|
||||
if(null != teacherOpenCourseStudentSigninLogList && teacherOpenCourseStudentSigninLogList.size()>0){
|
||||
for(int i=0;i<teacherOpenCourseStudentSigninLogList.size();i++){
|
||||
TeacherOpenCourseStudentSigninLog teacherOpenCourseStudentSigninLog = teacherOpenCourseStudentSigninLogList.get(i);
|
||||
teacherOpenCourseStudentSigninLog.setUserId(teacherOpenCourseStudentSigninLogQuery.getUserId());
|
||||
teacherOpenCourseStudentSigninLog.setOrgId(teacherOpenCourseStudentSigninLogQuery.getOrgId());
|
||||
}
|
||||
insertBatch(teacherOpenCourseStudentSigninLogList);
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
public JsonResult add(TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery){
|
||||
String msg = "";
|
||||
TeacherOpenCourseStudentSigninLog teacherOpenCourseStudentSigninLog = teacherOpenCourseStudentSigninLogQuery.pojo();
|
||||
teacherOpenCourseStudentSigninLogDao.insert(teacherOpenCourseStudentSigninLog);
|
||||
teacherOpenCourseStudentSigninLogQuery.setTeacherOpenCourseStudentSigninId(teacherOpenCourseStudentSigninLog.getTeacherOpenCourseStudentSigninId());
|
||||
JsonResult jsonResult = new JsonResult();
|
||||
jsonResult.setData(teacherOpenCourseStudentSigninLog.getTeacherOpenCourseStudentSigninId());//自增的ID丢进去
|
||||
jsonResult.setCode(JsonReturnCode.SUCCESS.getCode());
|
||||
jsonResult.setMsg(msg);
|
||||
return jsonResult;
|
||||
}
|
||||
|
||||
public String edit(TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery){
|
||||
String msg = "";
|
||||
TeacherOpenCourseStudentSigninLog teacherOpenCourseStudentSigninLog = teacherOpenCourseStudentSigninLogQuery.pojo();
|
||||
teacherOpenCourseStudentSigninLogDao.updateTemplateById(teacherOpenCourseStudentSigninLog);
|
||||
return msg;
|
||||
}
|
||||
|
||||
public String updateGivenByIds(TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery){
|
||||
String msg = "";
|
||||
if(StringUtils.isNotBlank(teacherOpenCourseStudentSigninLogQuery.get_given())){
|
||||
boolean flag = teacherOpenCourseStudentSigninLogDao.updateGivenByIds(teacherOpenCourseStudentSigninLogQuery) > 0;
|
||||
if(!flag){
|
||||
msg = "更新指定参数失败";
|
||||
}
|
||||
}else{
|
||||
msg = "指定参数为空";
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
public List<TeacherOpenCourseStudentSigninLog> getValues (Object paras){
|
||||
return sqlManager.select(SqlId.of("jlw.teacherOpenCourseStudentSigninLog.getTeacherOpenCourseStudentSigninLogValues"), TeacherOpenCourseStudentSigninLog.class, paras);
|
||||
}
|
||||
|
||||
public List<TeacherOpenCourseStudentSigninLog> getValuesByQuery (TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery){
|
||||
return teacherOpenCourseStudentSigninLogDao.getValuesByQuery(teacherOpenCourseStudentSigninLogQuery);
|
||||
}
|
||||
|
||||
public TeacherOpenCourseStudentSigninLog getInfo (Long teacherOpenCourseStudentSigninId){
|
||||
TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery = new TeacherOpenCourseStudentSigninLogQuery();
|
||||
teacherOpenCourseStudentSigninLogQuery.setTeacherOpenCourseStudentSigninId(teacherOpenCourseStudentSigninId);
|
||||
List<TeacherOpenCourseStudentSigninLog> list = teacherOpenCourseStudentSigninLogDao.getValuesByQuery(teacherOpenCourseStudentSigninLogQuery);
|
||||
if(null != list && list.size()>0){
|
||||
return list.get(0);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public TeacherOpenCourseStudentSigninLog getInfo (TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery){
|
||||
List<TeacherOpenCourseStudentSigninLog> list = teacherOpenCourseStudentSigninLogDao.getValuesByQuery(teacherOpenCourseStudentSigninLogQuery);
|
||||
if(null != list && list.size()>0){
|
||||
return list.get(0);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,147 @@
|
||||
package com.ibeetl.jlw.service;
|
||||
|
||||
import cn.jlw.util.ToolUtils;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.ibeetl.admin.core.service.CoreBaseService;
|
||||
import com.ibeetl.admin.core.util.PlatformException;
|
||||
import com.ibeetl.admin.core.web.JsonResult;
|
||||
import com.ibeetl.admin.core.web.JsonReturnCode;
|
||||
import com.ibeetl.jlw.dao.TeacherOpenCourseStudentSigninSettingDao;
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseStudentSigninSetting;
|
||||
import com.ibeetl.jlw.web.query.TeacherOpenCourseStudentSigninSettingQuery;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.beetl.sql.core.SqlId;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 学生签到设置 Service
|
||||
* 当分布式ID开启后请勿使用insert(*,true)
|
||||
*/
|
||||
|
||||
@Service
|
||||
@Transactional
|
||||
public class TeacherOpenCourseStudentSigninSettingService extends CoreBaseService<TeacherOpenCourseStudentSigninSetting>{
|
||||
|
||||
@Resource private TeacherOpenCourseStudentSigninSettingDao teacherOpenCourseStudentSigninSettingDao;
|
||||
|
||||
public PageQuery<TeacherOpenCourseStudentSigninSetting>queryByCondition(PageQuery query){
|
||||
PageQuery ret = teacherOpenCourseStudentSigninSettingDao.queryByCondition(query);
|
||||
queryListAfter(ret.getList());
|
||||
return ret;
|
||||
}
|
||||
|
||||
public PageQuery<TeacherOpenCourseStudentSigninSetting>queryByConditionQuery(PageQuery query){
|
||||
PageQuery ret = teacherOpenCourseStudentSigninSettingDao.queryByConditionQuery(query);
|
||||
queryListAfter(ret.getList());
|
||||
return ret;
|
||||
}
|
||||
|
||||
public void deleteByList(List list){
|
||||
String ids = "";
|
||||
ToolUtils.deleteNullList(list);
|
||||
for(int i=0;null != list && i<list.size();i++){
|
||||
ids += list.get(i).toString()+(i==list.size()-1?"":",");
|
||||
}
|
||||
if(StringUtils.isNotBlank(ids)){
|
||||
teacherOpenCourseStudentSigninSettingDao.deleteTeacherOpenCourseStudentSigninSettingByIds(ids);
|
||||
}
|
||||
}
|
||||
|
||||
public void deleteTeacherOpenCourseStudentSigninSetting(String ids){
|
||||
try {
|
||||
teacherOpenCourseStudentSigninSettingDao.deleteTeacherOpenCourseStudentSigninSettingByIds(ids);
|
||||
} catch (Exception e) {
|
||||
throw new PlatformException("批量删除学生签到设置失败", e);
|
||||
}
|
||||
}
|
||||
|
||||
public String addAll(TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery){
|
||||
String msg = "";
|
||||
List<TeacherOpenCourseStudentSigninSetting> teacherOpenCourseStudentSigninSettingList = new ArrayList<>();
|
||||
try {
|
||||
teacherOpenCourseStudentSigninSettingList = JSON.parseArray(teacherOpenCourseStudentSigninSettingQuery.getTeacherOpenCourseStudentSigninSettingJsonStr(), TeacherOpenCourseStudentSigninSetting.class);
|
||||
} catch (Exception e) {
|
||||
try {
|
||||
teacherOpenCourseStudentSigninSettingList.add(JSONObject.parseObject(teacherOpenCourseStudentSigninSettingQuery.getTeacherOpenCourseStudentSigninSettingJsonStr(), TeacherOpenCourseStudentSigninSetting.class));
|
||||
} catch (Exception e1) {}
|
||||
}
|
||||
ToolUtils.deleteNullList(teacherOpenCourseStudentSigninSettingList);
|
||||
if(null != teacherOpenCourseStudentSigninSettingList && teacherOpenCourseStudentSigninSettingList.size()>0){
|
||||
for(int i=0;i<teacherOpenCourseStudentSigninSettingList.size();i++){
|
||||
TeacherOpenCourseStudentSigninSetting teacherOpenCourseStudentSigninSetting = teacherOpenCourseStudentSigninSettingList.get(i);
|
||||
teacherOpenCourseStudentSigninSetting.setUserId(teacherOpenCourseStudentSigninSettingQuery.getUserId());
|
||||
teacherOpenCourseStudentSigninSetting.setOrgId(teacherOpenCourseStudentSigninSettingQuery.getOrgId());
|
||||
}
|
||||
insertBatch(teacherOpenCourseStudentSigninSettingList);
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
public JsonResult add(TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery){
|
||||
String msg = "";
|
||||
TeacherOpenCourseStudentSigninSetting teacherOpenCourseStudentSigninSetting = teacherOpenCourseStudentSigninSettingQuery.pojo();
|
||||
teacherOpenCourseStudentSigninSettingDao.insert(teacherOpenCourseStudentSigninSetting);
|
||||
teacherOpenCourseStudentSigninSettingQuery.setTeacherOpenCourseStudentSigninSettingId(teacherOpenCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingId());
|
||||
JsonResult jsonResult = new JsonResult();
|
||||
jsonResult.setData(teacherOpenCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingId());//自增的ID丢进去
|
||||
jsonResult.setCode(JsonReturnCode.SUCCESS.getCode());
|
||||
jsonResult.setMsg(msg);
|
||||
return jsonResult;
|
||||
}
|
||||
|
||||
public String edit(TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery){
|
||||
String msg = "";
|
||||
TeacherOpenCourseStudentSigninSetting teacherOpenCourseStudentSigninSetting = teacherOpenCourseStudentSigninSettingQuery.pojo();
|
||||
teacherOpenCourseStudentSigninSettingDao.updateTemplateById(teacherOpenCourseStudentSigninSetting);
|
||||
return msg;
|
||||
}
|
||||
|
||||
public String updateGivenByIds(TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery){
|
||||
String msg = "";
|
||||
if(StringUtils.isNotBlank(teacherOpenCourseStudentSigninSettingQuery.get_given())){
|
||||
boolean flag = teacherOpenCourseStudentSigninSettingDao.updateGivenByIds(teacherOpenCourseStudentSigninSettingQuery) > 0;
|
||||
if(!flag){
|
||||
msg = "更新指定参数失败";
|
||||
}
|
||||
}else{
|
||||
msg = "指定参数为空";
|
||||
}
|
||||
return msg;
|
||||
}
|
||||
|
||||
public List<TeacherOpenCourseStudentSigninSetting> getValues (Object paras){
|
||||
return sqlManager.select(SqlId.of("jlw.teacherOpenCourseStudentSigninSetting.getTeacherOpenCourseStudentSigninSettingValues"), TeacherOpenCourseStudentSigninSetting.class, paras);
|
||||
}
|
||||
|
||||
public List<TeacherOpenCourseStudentSigninSetting> getValuesByQuery (TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery){
|
||||
return teacherOpenCourseStudentSigninSettingDao.getValuesByQuery(teacherOpenCourseStudentSigninSettingQuery);
|
||||
}
|
||||
|
||||
public TeacherOpenCourseStudentSigninSetting getInfo (Long teacherOpenCourseStudentSigninSettingId){
|
||||
TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery = new TeacherOpenCourseStudentSigninSettingQuery();
|
||||
teacherOpenCourseStudentSigninSettingQuery.setTeacherOpenCourseStudentSigninSettingId(teacherOpenCourseStudentSigninSettingId);
|
||||
List<TeacherOpenCourseStudentSigninSetting> list = teacherOpenCourseStudentSigninSettingDao.getValuesByQuery(teacherOpenCourseStudentSigninSettingQuery);
|
||||
if(null != list && list.size()>0){
|
||||
return list.get(0);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public TeacherOpenCourseStudentSigninSetting getInfo (TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery){
|
||||
List<TeacherOpenCourseStudentSigninSetting> list = teacherOpenCourseStudentSigninSettingDao.getValuesByQuery(teacherOpenCourseStudentSigninSettingQuery);
|
||||
if(null != list && list.size()>0){
|
||||
return list.get(0);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,193 @@
|
||||
package com.ibeetl.jlw.web;
|
||||
|
||||
import cn.jlw.Interceptor.SCoreUser;
|
||||
import cn.jlw.validate.ValidateConfig;
|
||||
import com.ibeetl.admin.core.annotation.Function;
|
||||
import com.ibeetl.admin.core.entity.CoreUser;
|
||||
import com.ibeetl.admin.core.file.FileService;
|
||||
import com.ibeetl.admin.core.web.JsonResult;
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseStudentSigninLog;
|
||||
import com.ibeetl.jlw.service.TeacherOpenCourseStudentSigninLogService;
|
||||
import com.ibeetl.jlw.web.query.TeacherOpenCourseStudentSigninLogQuery;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 学生签到记录 教师-我的课程-开课-学生签到记录 接口
|
||||
* 切记不要对非线程安全的静态变量进行写操作
|
||||
*/
|
||||
|
||||
@RestController
|
||||
public class TeacherOpenCourseStudentSigninLogController{
|
||||
|
||||
private final Log log = LogFactory.getLog(this.getClass());
|
||||
private static final String MODEL = "/jlw/teacherOpenCourseStudentSigninLog";
|
||||
private static final String API = "/api/teacherOpenCourseStudentSigninLog";
|
||||
|
||||
|
||||
@Resource private TeacherOpenCourseStudentSigninLogService teacherOpenCourseStudentSigninLogService;
|
||||
|
||||
@Resource FileService fileService;
|
||||
|
||||
/* 前端接口 */
|
||||
|
||||
@PostMapping(API + "/getPageList.do")
|
||||
public JsonResult<PageQuery> getPageList(TeacherOpenCourseStudentSigninLogQuery condition,@SCoreUser CoreUser coreUser){
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
PageQuery page = condition.getPageQuery();
|
||||
teacherOpenCourseStudentSigninLogService.queryByConditionQuery(page);
|
||||
return JsonResult.success(page);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(API + "/getInfo.do")
|
||||
public JsonResult<TeacherOpenCourseStudentSigninLog>getInfo(TeacherOpenCourseStudentSigninLogQuery param,@SCoreUser CoreUser coreUser) {
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
TeacherOpenCourseStudentSigninLog teacherOpenCourseStudentSigninLog = teacherOpenCourseStudentSigninLogService.getInfo(param);
|
||||
return JsonResult.success(teacherOpenCourseStudentSigninLog);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(API + "/getList.do")
|
||||
public JsonResult<List<TeacherOpenCourseStudentSigninLog>>getList(TeacherOpenCourseStudentSigninLogQuery param,@SCoreUser CoreUser coreUser) {
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
List<TeacherOpenCourseStudentSigninLog>list = teacherOpenCourseStudentSigninLogService.getValuesByQuery(param);
|
||||
return JsonResult.success(list);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 后台页面 */
|
||||
|
||||
@GetMapping(MODEL + "/index.do")
|
||||
@Function("teacherOpenCourseStudentSigninLog.query")
|
||||
public ModelAndView index() {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseStudentSigninLog/index.html") ;
|
||||
view.addObject("search", TeacherOpenCourseStudentSigninLogQuery.class.getName());
|
||||
return view;
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/edit.do")
|
||||
@Function("teacherOpenCourseStudentSigninLog.edit")
|
||||
public ModelAndView edit(Long teacherOpenCourseStudentSigninId) {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseStudentSigninLog/edit.html");
|
||||
TeacherOpenCourseStudentSigninLog teacherOpenCourseStudentSigninLog = teacherOpenCourseStudentSigninLogService.queryById(teacherOpenCourseStudentSigninId);
|
||||
view.addObject("teacherOpenCourseStudentSigninLog", teacherOpenCourseStudentSigninLog);
|
||||
return view;
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/add.do")
|
||||
@Function("teacherOpenCourseStudentSigninLog.add")
|
||||
public ModelAndView add(Long teacherOpenCourseStudentSigninId) {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseStudentSigninLog/add.html");
|
||||
if(null != teacherOpenCourseStudentSigninId){
|
||||
TeacherOpenCourseStudentSigninLog teacherOpenCourseStudentSigninLog = teacherOpenCourseStudentSigninLogService.queryById(teacherOpenCourseStudentSigninId);
|
||||
view.addObject("teacherOpenCourseStudentSigninLog", teacherOpenCourseStudentSigninLog);
|
||||
}else {
|
||||
view.addObject("teacherOpenCourseStudentSigninLog", new TeacherOpenCourseStudentSigninLog());
|
||||
}
|
||||
return view;
|
||||
}
|
||||
|
||||
/* 后台接口 */
|
||||
|
||||
@PostMapping(MODEL + "/list.json")
|
||||
@Function("teacherOpenCourseStudentSigninLog.query")
|
||||
public JsonResult<PageQuery> list(TeacherOpenCourseStudentSigninLogQuery condition){
|
||||
PageQuery page = condition.getPageQuery();
|
||||
teacherOpenCourseStudentSigninLogService.queryByCondition(page);
|
||||
return JsonResult.success(page);
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/addAll.json")
|
||||
@Function("teacherOpenCourseStudentSigninLog.add")
|
||||
public JsonResult addAll(TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery,@SCoreUser CoreUser coreUser){
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
teacherOpenCourseStudentSigninLogQuery.setUserId(coreUser.getId());
|
||||
teacherOpenCourseStudentSigninLogQuery.setOrgId(coreUser.getOrgId());
|
||||
String msg = teacherOpenCourseStudentSigninLogService.addAll(teacherOpenCourseStudentSigninLogQuery);
|
||||
if (StringUtils.isBlank(msg)) {
|
||||
return JsonResult.success();
|
||||
} else {
|
||||
return JsonResult.failMessage("新增失败,"+msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/add.json")
|
||||
@Function("teacherOpenCourseStudentSigninLog.add")
|
||||
public JsonResult add(@Validated(ValidateConfig.ADD.class) TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery, BindingResult result,@SCoreUser CoreUser coreUser){
|
||||
if(result.hasErrors()){
|
||||
return JsonResult.failMessage(result);
|
||||
}else{
|
||||
teacherOpenCourseStudentSigninLogQuery.setUserId(coreUser.getId());
|
||||
teacherOpenCourseStudentSigninLogQuery.setOrgId(coreUser.getOrgId());
|
||||
return teacherOpenCourseStudentSigninLogService.add(teacherOpenCourseStudentSigninLogQuery);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/edit.json")
|
||||
@Function("teacherOpenCourseStudentSigninLog.edit")
|
||||
public JsonResult<String> update(@Validated(ValidateConfig.UPDATE.class) TeacherOpenCourseStudentSigninLogQuery teacherOpenCourseStudentSigninLogQuery, BindingResult result) {
|
||||
if(result.hasErrors()){
|
||||
return JsonResult.failMessage(result);
|
||||
}else {
|
||||
teacherOpenCourseStudentSigninLogQuery.setUserId(null);
|
||||
teacherOpenCourseStudentSigninLogQuery.setOrgId(null);
|
||||
String msg = teacherOpenCourseStudentSigninLogService.edit(teacherOpenCourseStudentSigninLogQuery);
|
||||
if (StringUtils.isBlank(msg)) {
|
||||
return JsonResult.success();
|
||||
} else {
|
||||
return JsonResult.failMessage("更新失败,"+msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(MODEL + "/view.json")
|
||||
@Function("teacherOpenCourseStudentSigninLog.query")
|
||||
public JsonResult<TeacherOpenCourseStudentSigninLog>queryInfo(Long teacherOpenCourseStudentSigninId) {
|
||||
TeacherOpenCourseStudentSigninLog teacherOpenCourseStudentSigninLog = teacherOpenCourseStudentSigninLogService.queryById( teacherOpenCourseStudentSigninId);
|
||||
return JsonResult.success(teacherOpenCourseStudentSigninLog);
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/getValues.json")
|
||||
@Function("teacherOpenCourseStudentSigninLog.query")
|
||||
public JsonResult<List<TeacherOpenCourseStudentSigninLog>>getValues(TeacherOpenCourseStudentSigninLogQuery param) {
|
||||
List<TeacherOpenCourseStudentSigninLog>list = teacherOpenCourseStudentSigninLogService.getValuesByQuery(param);
|
||||
return JsonResult.success(list);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping(MODEL + "/delete.json")
|
||||
@Function("teacherOpenCourseStudentSigninLog.delete")
|
||||
@ResponseBody
|
||||
public JsonResult delete(String ids) {
|
||||
teacherOpenCourseStudentSigninLogService.deleteTeacherOpenCourseStudentSigninLog(ids);
|
||||
return JsonResult.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,193 @@
|
||||
package com.ibeetl.jlw.web;
|
||||
|
||||
import cn.jlw.Interceptor.SCoreUser;
|
||||
import cn.jlw.validate.ValidateConfig;
|
||||
import com.ibeetl.admin.core.annotation.Function;
|
||||
import com.ibeetl.admin.core.entity.CoreUser;
|
||||
import com.ibeetl.admin.core.file.FileService;
|
||||
import com.ibeetl.admin.core.web.JsonResult;
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseStudentSigninSetting;
|
||||
import com.ibeetl.jlw.service.TeacherOpenCourseStudentSigninSettingService;
|
||||
import com.ibeetl.jlw.web.query.TeacherOpenCourseStudentSigninSettingQuery;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.beetl.sql.core.engine.PageQuery;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 学生签到设置 教师-我的课程-开课-学生签到-配置 接口
|
||||
* 切记不要对非线程安全的静态变量进行写操作
|
||||
*/
|
||||
|
||||
@RestController
|
||||
public class TeacherOpenCourseStudentSigninSettingController{
|
||||
|
||||
private final Log log = LogFactory.getLog(this.getClass());
|
||||
private static final String MODEL = "/jlw/teacherOpenCourseStudentSigninSetting";
|
||||
private static final String API = "/api/teacherOpenCourseStudentSigninSetting";
|
||||
|
||||
|
||||
@Resource private TeacherOpenCourseStudentSigninSettingService teacherOpenCourseStudentSigninSettingService;
|
||||
|
||||
@Resource FileService fileService;
|
||||
|
||||
/* 前端接口 */
|
||||
|
||||
@PostMapping(API + "/getPageList.do")
|
||||
public JsonResult<PageQuery> getPageList(TeacherOpenCourseStudentSigninSettingQuery condition,@SCoreUser CoreUser coreUser){
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
PageQuery page = condition.getPageQuery();
|
||||
teacherOpenCourseStudentSigninSettingService.queryByConditionQuery(page);
|
||||
return JsonResult.success(page);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(API + "/getInfo.do")
|
||||
public JsonResult<TeacherOpenCourseStudentSigninSetting>getInfo(TeacherOpenCourseStudentSigninSettingQuery param,@SCoreUser CoreUser coreUser) {
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
TeacherOpenCourseStudentSigninSetting teacherOpenCourseStudentSigninSetting = teacherOpenCourseStudentSigninSettingService.getInfo(param);
|
||||
return JsonResult.success(teacherOpenCourseStudentSigninSetting);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(API + "/getList.do")
|
||||
public JsonResult<List<TeacherOpenCourseStudentSigninSetting>>getList(TeacherOpenCourseStudentSigninSettingQuery param,@SCoreUser CoreUser coreUser) {
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
List<TeacherOpenCourseStudentSigninSetting>list = teacherOpenCourseStudentSigninSettingService.getValuesByQuery(param);
|
||||
return JsonResult.success(list);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 后台页面 */
|
||||
|
||||
@GetMapping(MODEL + "/index.do")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.query")
|
||||
public ModelAndView index() {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseStudentSigninSetting/index.html") ;
|
||||
view.addObject("search", TeacherOpenCourseStudentSigninSettingQuery.class.getName());
|
||||
return view;
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/edit.do")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.edit")
|
||||
public ModelAndView edit(Long teacherOpenCourseStudentSigninSettingId) {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseStudentSigninSetting/edit.html");
|
||||
TeacherOpenCourseStudentSigninSetting teacherOpenCourseStudentSigninSetting = teacherOpenCourseStudentSigninSettingService.queryById(teacherOpenCourseStudentSigninSettingId);
|
||||
view.addObject("teacherOpenCourseStudentSigninSetting", teacherOpenCourseStudentSigninSetting);
|
||||
return view;
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/add.do")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.add")
|
||||
public ModelAndView add(Long teacherOpenCourseStudentSigninSettingId) {
|
||||
ModelAndView view = new ModelAndView("/jlw/teacherOpenCourseStudentSigninSetting/add.html");
|
||||
if(null != teacherOpenCourseStudentSigninSettingId){
|
||||
TeacherOpenCourseStudentSigninSetting teacherOpenCourseStudentSigninSetting = teacherOpenCourseStudentSigninSettingService.queryById(teacherOpenCourseStudentSigninSettingId);
|
||||
view.addObject("teacherOpenCourseStudentSigninSetting", teacherOpenCourseStudentSigninSetting);
|
||||
}else {
|
||||
view.addObject("teacherOpenCourseStudentSigninSetting", new TeacherOpenCourseStudentSigninSetting());
|
||||
}
|
||||
return view;
|
||||
}
|
||||
|
||||
/* 后台接口 */
|
||||
|
||||
@PostMapping(MODEL + "/list.json")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.query")
|
||||
public JsonResult<PageQuery> list(TeacherOpenCourseStudentSigninSettingQuery condition){
|
||||
PageQuery page = condition.getPageQuery();
|
||||
teacherOpenCourseStudentSigninSettingService.queryByCondition(page);
|
||||
return JsonResult.success(page);
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/addAll.json")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.add")
|
||||
public JsonResult addAll(TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery,@SCoreUser CoreUser coreUser){
|
||||
if(null == coreUser){
|
||||
return JsonResult.failMessage("请登录后再操作");
|
||||
}else{
|
||||
teacherOpenCourseStudentSigninSettingQuery.setUserId(coreUser.getId());
|
||||
teacherOpenCourseStudentSigninSettingQuery.setOrgId(coreUser.getOrgId());
|
||||
String msg = teacherOpenCourseStudentSigninSettingService.addAll(teacherOpenCourseStudentSigninSettingQuery);
|
||||
if (StringUtils.isBlank(msg)) {
|
||||
return JsonResult.success();
|
||||
} else {
|
||||
return JsonResult.failMessage("新增失败,"+msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/add.json")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.add")
|
||||
public JsonResult add(@Validated(ValidateConfig.ADD.class) TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery, BindingResult result,@SCoreUser CoreUser coreUser){
|
||||
if(result.hasErrors()){
|
||||
return JsonResult.failMessage(result);
|
||||
}else{
|
||||
teacherOpenCourseStudentSigninSettingQuery.setUserId(coreUser.getId());
|
||||
teacherOpenCourseStudentSigninSettingQuery.setOrgId(coreUser.getOrgId());
|
||||
return teacherOpenCourseStudentSigninSettingService.add(teacherOpenCourseStudentSigninSettingQuery);
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(MODEL + "/edit.json")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.edit")
|
||||
public JsonResult<String> update(@Validated(ValidateConfig.UPDATE.class) TeacherOpenCourseStudentSigninSettingQuery teacherOpenCourseStudentSigninSettingQuery, BindingResult result) {
|
||||
if(result.hasErrors()){
|
||||
return JsonResult.failMessage(result);
|
||||
}else {
|
||||
teacherOpenCourseStudentSigninSettingQuery.setUserId(null);
|
||||
teacherOpenCourseStudentSigninSettingQuery.setOrgId(null);
|
||||
String msg = teacherOpenCourseStudentSigninSettingService.edit(teacherOpenCourseStudentSigninSettingQuery);
|
||||
if (StringUtils.isBlank(msg)) {
|
||||
return JsonResult.success();
|
||||
} else {
|
||||
return JsonResult.failMessage("更新失败,"+msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@GetMapping(MODEL + "/view.json")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.query")
|
||||
public JsonResult<TeacherOpenCourseStudentSigninSetting>queryInfo(Long teacherOpenCourseStudentSigninSettingId) {
|
||||
TeacherOpenCourseStudentSigninSetting teacherOpenCourseStudentSigninSetting = teacherOpenCourseStudentSigninSettingService.queryById( teacherOpenCourseStudentSigninSettingId);
|
||||
return JsonResult.success(teacherOpenCourseStudentSigninSetting);
|
||||
}
|
||||
|
||||
@GetMapping(MODEL + "/getValues.json")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.query")
|
||||
public JsonResult<List<TeacherOpenCourseStudentSigninSetting>>getValues(TeacherOpenCourseStudentSigninSettingQuery param) {
|
||||
List<TeacherOpenCourseStudentSigninSetting>list = teacherOpenCourseStudentSigninSettingService.getValuesByQuery(param);
|
||||
return JsonResult.success(list);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping(MODEL + "/delete.json")
|
||||
@Function("teacherOpenCourseStudentSigninSetting.delete")
|
||||
@ResponseBody
|
||||
public JsonResult delete(String ids) {
|
||||
teacherOpenCourseStudentSigninSettingService.deleteTeacherOpenCourseStudentSigninSetting(ids);
|
||||
return JsonResult.success();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,156 @@
|
||||
package com.ibeetl.jlw.web.query;
|
||||
|
||||
import cn.jlw.validate.ValidateConfig;
|
||||
import com.ibeetl.admin.core.annotation.Query;
|
||||
import com.ibeetl.admin.core.web.query.PageParam;
|
||||
import com.ibeetl.jlw.entity.TeacherOpenCourseStudentSigninLog;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*学生签到记录查询
|
||||
*/
|
||||
public class TeacherOpenCourseStudentSigninLogQuery extends PageParam {
|
||||
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
||||
@Query(name = "ID", display = false)
|
||||
private Long teacherOpenCourseStudentSigninId;
|
||||
@Query(name = "学生ID", display = true,type=Query.TYPE_DICT,dict="student.student_name.student_status=1")
|
||||
private Long studentId;
|
||||
@Query(name = "开课ID", display = true,type=Query.TYPE_DICT,dict="teacher_open_course.teacher_open_course_title.teacher_open_course_status=1")
|
||||
private Long openCourseId;
|
||||
@Query(name = "班级ID", display = true,type=Query.TYPE_DICT,dict="school_class.class_name.class_status=1")
|
||||
private String schoolClassId;
|
||||
@Query(name = "签到日期", display = false)
|
||||
private Date addTime;
|
||||
@Query(name = "签到方式 (数据字典 student_signin_type)", display = true,type=Query.TYPE_DICT,dict="student_signin_type")
|
||||
private String type;
|
||||
@Query(name = "备注(缺勤理由)", display = false)
|
||||
private String remark;
|
||||
@Query(name = "组织ID", display = false)
|
||||
private Long orgId;
|
||||
@Query(name = "用户ID", display = false)
|
||||
private Long userId;
|
||||
|
||||
private String teacherOpenCourseStudentSigninIdPlural;
|
||||
private String studentIdPlural;
|
||||
private String openCourseIdPlural;
|
||||
private String orgIdPlural;
|
||||
private String userIdPlural;
|
||||
|
||||
private String teacherOpenCourseStudentSigninLogJsonStr;//json格式
|
||||
|
||||
private String _given;//指定更新的特定字段,多个逗号隔开
|
||||
|
||||
public Long getTeacherOpenCourseStudentSigninId(){
|
||||
return teacherOpenCourseStudentSigninId;
|
||||
}
|
||||
public void setTeacherOpenCourseStudentSigninId(Long teacherOpenCourseStudentSigninId ){
|
||||
this.teacherOpenCourseStudentSigninId = teacherOpenCourseStudentSigninId;
|
||||
}
|
||||
public Long getStudentId(){
|
||||
return studentId;
|
||||
}
|
||||
public void setStudentId(Long studentId ){
|
||||
this.studentId = studentId;
|
||||
}
|
||||
public Long getOpenCourseId(){
|
||||
return openCourseId;
|
||||
}
|
||||
public void setOpenCourseId(Long openCourseId ){
|
||||
this.openCourseId = openCourseId;
|
||||
}
|
||||
public String getSchoolClassId(){
|
||||
return schoolClassId;
|
||||
}
|
||||
public void setSchoolClassId(String schoolClassId ){
|
||||
this.schoolClassId = schoolClassId;
|
||||
}
|
||||
public Date getAddTime(){
|
||||
return addTime;
|
||||
}
|
||||
public void setAddTime(Date addTime ){
|
||||
this.addTime = addTime;
|
||||
}
|
||||
public String getType(){
|
||||
return type;
|
||||
}
|
||||
public void setType(String type ){
|
||||
this.type = type;
|
||||
}
|
||||
public String getRemark(){
|
||||
return remark;
|
||||
}
|
||||
public void setRemark(String remark ){
|
||||
this.remark = remark;
|
||||
}
|
||||
public Long getOrgId(){
|
||||
return orgId;
|
||||
}
|
||||
public void setOrgId(Long orgId ){
|
||||
this.orgId = orgId;
|
||||
}
|
||||
public Long getUserId(){
|
||||
return userId;
|
||||
}
|
||||
public void setUserId(Long userId ){
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public TeacherOpenCourseStudentSigninLog pojo(){
|
||||
TeacherOpenCourseStudentSigninLog pojo = new TeacherOpenCourseStudentSigninLog();
|
||||
pojo.setTeacherOpenCourseStudentSigninId(this.getTeacherOpenCourseStudentSigninId());
|
||||
pojo.setStudentId(this.getStudentId());
|
||||
pojo.setOpenCourseId(this.getOpenCourseId());
|
||||
pojo.setSchoolClassId(this.getSchoolClassId());
|
||||
pojo.setAddTime(this.getAddTime());
|
||||
pojo.setType(this.getType());
|
||||
pojo.setRemark(this.getRemark());
|
||||
pojo.setOrgId(this.getOrgId());
|
||||
pojo.setUserId(this.getUserId());
|
||||
return pojo;
|
||||
}
|
||||
|
||||
public String getTeacherOpenCourseStudentSigninIdPlural(){
|
||||
return teacherOpenCourseStudentSigninIdPlural;
|
||||
}
|
||||
public void setTeacherOpenCourseStudentSigninIdPlural(String teacherOpenCourseStudentSigninIdPlural){
|
||||
this.teacherOpenCourseStudentSigninIdPlural = teacherOpenCourseStudentSigninIdPlural;
|
||||
}
|
||||
public String getStudentIdPlural(){
|
||||
return studentIdPlural;
|
||||
}
|
||||
public void setStudentIdPlural(String studentIdPlural){
|
||||
this.studentIdPlural = studentIdPlural;
|
||||
}
|
||||
public String getOpenCourseIdPlural(){
|
||||
return openCourseIdPlural;
|
||||
}
|
||||
public void setOpenCourseIdPlural(String openCourseIdPlural){
|
||||
this.openCourseIdPlural = openCourseIdPlural;
|
||||
}
|
||||
public String getOrgIdPlural(){
|
||||
return orgIdPlural;
|
||||
}
|
||||
public void setOrgIdPlural(String orgIdPlural){
|
||||
this.orgIdPlural = orgIdPlural;
|
||||
}
|
||||
public String getUserIdPlural(){
|
||||
return userIdPlural;
|
||||
}
|
||||
public void setUserIdPlural(String userIdPlural){
|
||||
this.userIdPlural = userIdPlural;
|
||||
}
|
||||
public String getTeacherOpenCourseStudentSigninLogJsonStr(){
|
||||
return teacherOpenCourseStudentSigninLogJsonStr;
|
||||
}
|
||||
public void setTeacherOpenCourseStudentSigninLogJsonStr(String teacherOpenCourseStudentSigninLogJsonStr ){
|
||||
this.teacherOpenCourseStudentSigninLogJsonStr = teacherOpenCourseStudentSigninLogJsonStr;
|
||||
}
|
||||
public String get_given() {
|
||||
return _given;
|
||||
}
|
||||
public void set_given(String _given) {
|
||||
this._given = _given;
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
layui.define([ 'form', 'laydate', 'table','teacherOpenCourseStudentSigninLogApi'], function(exports) {
|
||||
var form = layui.form;
|
||||
var teacherOpenCourseStudentSigninLogApi = layui.teacherOpenCourseStudentSigninLogApi;
|
||||
var index = layui.index;
|
||||
var view = {
|
||||
init:function(){
|
||||
Lib.initGenrealForm($("#addForm"),form);
|
||||
this.initSubmit();
|
||||
},
|
||||
initSubmit:function(){
|
||||
$("#addButton").click(function(){
|
||||
form.on('submit(form)', function(){
|
||||
var teacherOpenCourseStudentSigninId = $("#addForm input[name='teacherOpenCourseStudentSigninId']").val();
|
||||
if(!$.isEmpty(teacherOpenCourseStudentSigninId)){
|
||||
teacherOpenCourseStudentSigninLogApi.updateTeacherOpenCourseStudentSigninLog($('#addForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("更新成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}else{
|
||||
teacherOpenCourseStudentSigninLogApi.addTeacherOpenCourseStudentSigninLog($('#addForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("添加成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$("#addButton-cancel").click(function(){
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
exports('add',view);
|
||||
});
|
@ -0,0 +1,23 @@
|
||||
layui.define(['table', 'teacherOpenCourseStudentSigninLogApi'], function(exports) {
|
||||
var teacherOpenCourseStudentSigninLogApi = layui.teacherOpenCourseStudentSigninLogApi;
|
||||
var table=layui.table;
|
||||
var view = {
|
||||
init:function(){
|
||||
},
|
||||
delBatch:function(){
|
||||
var data = Common.getMoreDataFromTable(table,"teacherOpenCourseStudentSigninLogTable");
|
||||
if(data==null){
|
||||
return ;
|
||||
}
|
||||
Common.openConfirm("确认要删除这些学生签到记录?",function(){
|
||||
var ids =Common.concatBatchId(data,"teacherOpenCourseStudentSigninId");
|
||||
teacherOpenCourseStudentSigninLogApi.del(ids,function(){
|
||||
Common.info("删除成功");
|
||||
dataReload();
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
exports('del',view);
|
||||
|
||||
});
|
@ -0,0 +1,28 @@
|
||||
layui.define([ 'form', 'laydate', 'table','teacherOpenCourseStudentSigninLogApi'], function(exports) {
|
||||
var form = layui.form;
|
||||
var teacherOpenCourseStudentSigninLogApi = layui.teacherOpenCourseStudentSigninLogApi;
|
||||
var index = layui.index;
|
||||
var view = {
|
||||
init:function(){
|
||||
Lib.initGenrealForm($("#updateForm"),form);
|
||||
this.initSubmit();
|
||||
},
|
||||
initSubmit:function(){
|
||||
$("#updateButton").click(function(){
|
||||
form.on('submit(form)', function(){
|
||||
teacherOpenCourseStudentSigninLogApi.updateTeacherOpenCourseStudentSigninLog($('#updateForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("更新成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
});
|
||||
});
|
||||
$("#updateButton-cancel").click(function(){
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
exports('edit',view);
|
||||
|
||||
});
|
@ -0,0 +1,18 @@
|
||||
/*访问后台的代码*/
|
||||
layui.define([], function(exports) {
|
||||
var api={
|
||||
updateTeacherOpenCourseStudentSigninLog:function(form,callback){
|
||||
Lib.submitForm("/jlw/teacherOpenCourseStudentSigninLog/edit.json",form,{},callback)
|
||||
},
|
||||
addTeacherOpenCourseStudentSigninLog:function(form,callback){
|
||||
Lib.submitForm("/jlw/teacherOpenCourseStudentSigninLog/add.json",form,{},callback)
|
||||
},
|
||||
del:function(ids,callback){
|
||||
Common.post("/jlw/teacherOpenCourseStudentSigninLog/delete.json",{"ids":ids},function(){
|
||||
callback();
|
||||
})
|
||||
}
|
||||
|
||||
};
|
||||
exports('teacherOpenCourseStudentSigninLogApi',api);
|
||||
});
|
@ -0,0 +1,38 @@
|
||||
layui.define([ 'form', 'laydate', 'table','teacherOpenCourseStudentSigninSettingApi'], function(exports) {
|
||||
var form = layui.form;
|
||||
var teacherOpenCourseStudentSigninSettingApi = layui.teacherOpenCourseStudentSigninSettingApi;
|
||||
var index = layui.index;
|
||||
var view = {
|
||||
init:function(){
|
||||
Lib.initGenrealForm($("#addForm"),form);
|
||||
this.initSubmit();
|
||||
},
|
||||
initSubmit:function(){
|
||||
$("#addButton").click(function(){
|
||||
form.on('submit(form)', function(){
|
||||
var teacherOpenCourseStudentSigninSettingId = $("#addForm input[name='teacherOpenCourseStudentSigninSettingId']").val();
|
||||
if(!$.isEmpty(teacherOpenCourseStudentSigninSettingId)){
|
||||
teacherOpenCourseStudentSigninSettingApi.updateTeacherOpenCourseStudentSigninSetting($('#addForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("更新成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}else{
|
||||
teacherOpenCourseStudentSigninSettingApi.addTeacherOpenCourseStudentSigninSetting($('#addForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("添加成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$("#addButton-cancel").click(function(){
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
exports('add',view);
|
||||
});
|
@ -0,0 +1,23 @@
|
||||
layui.define(['table', 'teacherOpenCourseStudentSigninSettingApi'], function(exports) {
|
||||
var teacherOpenCourseStudentSigninSettingApi = layui.teacherOpenCourseStudentSigninSettingApi;
|
||||
var table=layui.table;
|
||||
var view = {
|
||||
init:function(){
|
||||
},
|
||||
delBatch:function(){
|
||||
var data = Common.getMoreDataFromTable(table,"teacherOpenCourseStudentSigninSettingTable");
|
||||
if(data==null){
|
||||
return ;
|
||||
}
|
||||
Common.openConfirm("确认要删除这些学生签到设置?",function(){
|
||||
var ids =Common.concatBatchId(data,"teacherOpenCourseStudentSigninSettingId");
|
||||
teacherOpenCourseStudentSigninSettingApi.del(ids,function(){
|
||||
Common.info("删除成功");
|
||||
dataReload();
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
exports('del',view);
|
||||
|
||||
});
|
@ -0,0 +1,28 @@
|
||||
layui.define([ 'form', 'laydate', 'table','teacherOpenCourseStudentSigninSettingApi'], function(exports) {
|
||||
var form = layui.form;
|
||||
var teacherOpenCourseStudentSigninSettingApi = layui.teacherOpenCourseStudentSigninSettingApi;
|
||||
var index = layui.index;
|
||||
var view = {
|
||||
init:function(){
|
||||
Lib.initGenrealForm($("#updateForm"),form);
|
||||
this.initSubmit();
|
||||
},
|
||||
initSubmit:function(){
|
||||
$("#updateButton").click(function(){
|
||||
form.on('submit(form)', function(){
|
||||
teacherOpenCourseStudentSigninSettingApi.updateTeacherOpenCourseStudentSigninSetting($('#updateForm'),function(){
|
||||
parent.window.dataReload();
|
||||
Common.info("更新成功");
|
||||
Lib.closeFrame();
|
||||
});
|
||||
});
|
||||
});
|
||||
$("#updateButton-cancel").click(function(){
|
||||
Lib.closeFrame();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
exports('edit',view);
|
||||
|
||||
});
|
@ -0,0 +1,18 @@
|
||||
/*访问后台的代码*/
|
||||
layui.define([], function(exports) {
|
||||
var api={
|
||||
updateTeacherOpenCourseStudentSigninSetting:function(form,callback){
|
||||
Lib.submitForm("/jlw/teacherOpenCourseStudentSigninSetting/edit.json",form,{},callback)
|
||||
},
|
||||
addTeacherOpenCourseStudentSigninSetting:function(form,callback){
|
||||
Lib.submitForm("/jlw/teacherOpenCourseStudentSigninSetting/add.json",form,{},callback)
|
||||
},
|
||||
del:function(ids,callback){
|
||||
Common.post("/jlw/teacherOpenCourseStudentSigninSetting/delete.json",{"ids":ids},function(){
|
||||
callback();
|
||||
})
|
||||
}
|
||||
|
||||
};
|
||||
exports('teacherOpenCourseStudentSigninSettingApi',api);
|
||||
});
|
@ -0,0 +1,29 @@
|
||||
<!--#layout("/common/layout.html",{"jsBase":"/js/jlw/teacherOpenCourseStudentSigninLog/"}){ -->
|
||||
<layui:searchForm formId="searchForm" searchList="" condition="${search}">
|
||||
</layui:searchForm>
|
||||
<table id="teacherOpenCourseStudentSigninLogTable" lay-filter="teacherOpenCourseStudentSigninLogTable"></table>
|
||||
<!--#} -->
|
||||
|
||||
<script type="text/html" id="toolbar_teacherOpenCourseStudentSigninLog">
|
||||
<div class="layui-btn-container">
|
||||
<div class="layui-btn-group" >
|
||||
<!--# if(!isEmpty(search)) {-->
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninLog.query" id="searchFormSearch" action="search"><i class="layui-icon"></i>搜索</layui:accessButton>
|
||||
<!--# }-->
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninLog.add" action="add">添加</layui:accessButton>
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninLog.edit" action="edit">修改</layui:accessButton>
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninLog.del" action="del">删除</layui:accessButton>
|
||||
<!--# if(!isEmpty(search)) {-->
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninLog.query" action="refresh"><i class="layui-icon"></i>刷新</layui:accessButton>
|
||||
<!--# }-->
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
<script>
|
||||
|
||||
layui.use(['index'], function(){
|
||||
var index = layui.index;
|
||||
index.init();
|
||||
});
|
||||
|
||||
</script>
|
@ -0,0 +1,29 @@
|
||||
<!--#layout("/common/layout.html",{"jsBase":"/js/jlw/teacherOpenCourseStudentSigninSetting/"}){ -->
|
||||
<layui:searchForm formId="searchForm" searchList="" condition="${search}">
|
||||
</layui:searchForm>
|
||||
<table id="teacherOpenCourseStudentSigninSettingTable" lay-filter="teacherOpenCourseStudentSigninSettingTable"></table>
|
||||
<!--#} -->
|
||||
|
||||
<script type="text/html" id="toolbar_teacherOpenCourseStudentSigninSetting">
|
||||
<div class="layui-btn-container">
|
||||
<div class="layui-btn-group" >
|
||||
<!--# if(!isEmpty(search)) {-->
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninSetting.query" id="searchFormSearch" action="search"><i class="layui-icon"></i>搜索</layui:accessButton>
|
||||
<!--# }-->
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninSetting.add" action="add">添加</layui:accessButton>
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninSetting.edit" action="edit">修改</layui:accessButton>
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninSetting.del" action="del">删除</layui:accessButton>
|
||||
<!--# if(!isEmpty(search)) {-->
|
||||
<layui:accessButton function="teacherOpenCourseStudentSigninSetting.query" action="refresh"><i class="layui-icon"></i>刷新</layui:accessButton>
|
||||
<!--# }-->
|
||||
</div>
|
||||
</div>
|
||||
</script>
|
||||
<script>
|
||||
|
||||
layui.use(['index'], function(){
|
||||
var index = layui.index;
|
||||
index.init();
|
||||
});
|
||||
|
||||
</script>
|
Loading…
Reference in New Issue