This commit is contained in:
parent
1dd83e714b
commit
fcc00e5177
|
|
@ -24,7 +24,6 @@
|
|||
<artifactId>spring-boot-devtools</artifactId>
|
||||
<optional>true</optional> <!-- 表示依赖不会传递 -->
|
||||
</dependency>
|
||||
|
||||
<!-- swagger2-->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import tk.mybatis.spring.annotation.MapperScan;
|
|||
* @author ruoyi
|
||||
*/
|
||||
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
|
||||
@MapperScan("com.ruoyi.*.mapper")
|
||||
@MapperScan("com.ruoyi.**.mapper")
|
||||
public class RuoYiApplication
|
||||
{
|
||||
public static void main(String[] args)
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ gen:
|
|||
# 作者
|
||||
author: zhujj
|
||||
# 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
|
||||
packageName: com.ruoyi.exam
|
||||
packageName: com.ruoyi.courseware
|
||||
# 自动去除表前缀,默认是true
|
||||
autoRemovePre: false
|
||||
# 表前缀(类名不会包含表前缀)
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@
|
|||
手机号码:<input type="text" name="phonenumber"/>
|
||||
</li>
|
||||
<li>
|
||||
用户状态: <select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
|
||||
用户状态:
|
||||
<select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
|
||||
<option value="">所有</option>
|
||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||
</select>
|
||||
|
|
|
|||
|
|
@ -1,126 +0,0 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.exam.domain.TrainCourse;
|
||||
import com.ruoyi.exam.service.ITrainCourseService;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.utils.ExcelUtil;
|
||||
|
||||
/**
|
||||
* 课程 信息操作处理
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/trainCourse")
|
||||
public class TrainCourseController extends BaseController
|
||||
{
|
||||
private String prefix = "exam/trainCourse";
|
||||
|
||||
@Autowired
|
||||
private ITrainCourseService trainCourseService;
|
||||
|
||||
@RequiresPermissions("exam:trainCourse:view")
|
||||
@GetMapping()
|
||||
public String trainCourse()
|
||||
{
|
||||
return prefix + "/trainCourse";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询课程列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourse:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TrainCourse trainCourse)
|
||||
{
|
||||
List<TrainCourse> list = trainCourseService.selectTrainCoursePage(trainCourse);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出课程列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourse:export")
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TrainCourse trainCourse)
|
||||
{
|
||||
List<TrainCourse> list = trainCourseService.selectTrainCourseList(trainCourse);
|
||||
ExcelUtil<TrainCourse> util = new ExcelUtil<TrainCourse>(TrainCourse.class);
|
||||
return util.exportExcel(list, "trainCourse");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增课程
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存课程
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourse:add")
|
||||
@Log(title = "课程", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TrainCourse trainCourse)
|
||||
{
|
||||
return toAjax(trainCourseService.insert(trainCourse));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改课程
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Integer id, ModelMap mmap)
|
||||
{
|
||||
TrainCourse trainCourse = trainCourseService.selectById(id);
|
||||
mmap.put("trainCourse", trainCourse);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存课程
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourse:edit")
|
||||
@Log(title = "课程", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TrainCourse trainCourse)
|
||||
{
|
||||
return toAjax(trainCourseService.updateById(trainCourse));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除课程
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourse:remove")
|
||||
@Log(title = "课程", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(trainCourseService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.exam.domain.TrainCourseSection;
|
||||
import com.ruoyi.exam.service.ITrainCourseSectionService;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.utils.ExcelUtil;
|
||||
|
||||
/**
|
||||
* 课程章节 信息操作处理
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/trainCourseSection")
|
||||
public class TrainCourseSectionController extends BaseController
|
||||
{
|
||||
private String prefix = "exam/trainCourseSection";
|
||||
|
||||
@Autowired
|
||||
private ITrainCourseSectionService trainCourseSectionService;
|
||||
|
||||
@RequiresPermissions("exam:trainCourseSection:view")
|
||||
@GetMapping()
|
||||
public String trainCourseSection()
|
||||
{
|
||||
return prefix + "/trainCourseSection";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询课程章节列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSection:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TrainCourseSection trainCourseSection)
|
||||
{
|
||||
List<TrainCourseSection> list = trainCourseSectionService.selectTrainCourseSectionPage(trainCourseSection);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出课程章节列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSection:export")
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TrainCourseSection trainCourseSection)
|
||||
{
|
||||
List<TrainCourseSection> list = trainCourseSectionService.selectTrainCourseSectionList(trainCourseSection);
|
||||
ExcelUtil<TrainCourseSection> util = new ExcelUtil<TrainCourseSection>(TrainCourseSection.class);
|
||||
return util.exportExcel(list, "trainCourseSection");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增课程章节
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存课程章节
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSection:add")
|
||||
@Log(title = "课程章节", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TrainCourseSection trainCourseSection)
|
||||
{
|
||||
return toAjax(trainCourseSectionService.insert(trainCourseSection));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改课程章节
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Integer id, ModelMap mmap)
|
||||
{
|
||||
TrainCourseSection trainCourseSection = trainCourseSectionService.selectById(id);
|
||||
mmap.put("trainCourseSection", trainCourseSection);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存课程章节
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSection:edit")
|
||||
@Log(title = "课程章节", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TrainCourseSection trainCourseSection)
|
||||
{
|
||||
return toAjax(trainCourseSectionService.updateById(trainCourseSection));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除课程章节
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSection:remove")
|
||||
@Log(title = "课程章节", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(trainCourseSectionService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.exam.domain.TrainCourseSectionCourseware;
|
||||
import com.ruoyi.exam.service.ITrainCourseSectionCoursewareService;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.utils.ExcelUtil;
|
||||
|
||||
/**
|
||||
* 章节课件 信息操作处理
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/trainCourseSectionCourseware")
|
||||
public class TrainCourseSectionCoursewareController extends BaseController
|
||||
{
|
||||
private String prefix = "exam/trainCourseSectionCourseware";
|
||||
|
||||
@Autowired
|
||||
private ITrainCourseSectionCoursewareService trainCourseSectionCoursewareService;
|
||||
|
||||
@RequiresPermissions("exam:trainCourseSectionCourseware:view")
|
||||
@GetMapping()
|
||||
public String trainCourseSectionCourseware()
|
||||
{
|
||||
return prefix + "/trainCourseSectionCourseware";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询章节课件列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSectionCourseware:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TrainCourseSectionCourseware trainCourseSectionCourseware)
|
||||
{
|
||||
List<TrainCourseSectionCourseware> list = trainCourseSectionCoursewareService.selectTrainCourseSectionCoursewarePage(trainCourseSectionCourseware);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出章节课件列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSectionCourseware:export")
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TrainCourseSectionCourseware trainCourseSectionCourseware)
|
||||
{
|
||||
List<TrainCourseSectionCourseware> list = trainCourseSectionCoursewareService.selectTrainCourseSectionCoursewareList(trainCourseSectionCourseware);
|
||||
ExcelUtil<TrainCourseSectionCourseware> util = new ExcelUtil<TrainCourseSectionCourseware>(TrainCourseSectionCourseware.class);
|
||||
return util.exportExcel(list, "trainCourseSectionCourseware");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增章节课件
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存章节课件
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSectionCourseware:add")
|
||||
@Log(title = "章节课件", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TrainCourseSectionCourseware trainCourseSectionCourseware)
|
||||
{
|
||||
return toAjax(trainCourseSectionCoursewareService.insert(trainCourseSectionCourseware));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改章节课件
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Integer id, ModelMap mmap)
|
||||
{
|
||||
TrainCourseSectionCourseware trainCourseSectionCourseware = trainCourseSectionCoursewareService.selectById(id);
|
||||
mmap.put("trainCourseSectionCourseware", trainCourseSectionCourseware);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存章节课件
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSectionCourseware:edit")
|
||||
@Log(title = "章节课件", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TrainCourseSectionCourseware trainCourseSectionCourseware)
|
||||
{
|
||||
return toAjax(trainCourseSectionCoursewareService.updateById(trainCourseSectionCourseware));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除章节课件
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseSectionCourseware:remove")
|
||||
@Log(title = "章节课件", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(trainCourseSectionCoursewareService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.exam.domain.TrainCourseUser;
|
||||
import com.ruoyi.exam.service.ITrainCourseUserService;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.utils.ExcelUtil;
|
||||
|
||||
/**
|
||||
* 课程使用对象 信息操作处理
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/trainCourseUser")
|
||||
public class TrainCourseUserController extends BaseController
|
||||
{
|
||||
private String prefix = "exam/trainCourseUser";
|
||||
|
||||
@Autowired
|
||||
private ITrainCourseUserService trainCourseUserService;
|
||||
|
||||
@RequiresPermissions("exam:trainCourseUser:view")
|
||||
@GetMapping()
|
||||
public String trainCourseUser()
|
||||
{
|
||||
return prefix + "/trainCourseUser";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询课程使用对象列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseUser:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TrainCourseUser trainCourseUser)
|
||||
{
|
||||
List<TrainCourseUser> list = trainCourseUserService.selectTrainCourseUserPage(trainCourseUser);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出课程使用对象列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseUser:export")
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TrainCourseUser trainCourseUser)
|
||||
{
|
||||
List<TrainCourseUser> list = trainCourseUserService.selectTrainCourseUserList(trainCourseUser);
|
||||
ExcelUtil<TrainCourseUser> util = new ExcelUtil<TrainCourseUser>(TrainCourseUser.class);
|
||||
return util.exportExcel(list, "trainCourseUser");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增课程使用对象
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存课程使用对象
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseUser:add")
|
||||
@Log(title = "课程使用对象", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TrainCourseUser trainCourseUser)
|
||||
{
|
||||
return toAjax(trainCourseUserService.insert(trainCourseUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改课程使用对象
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Integer id, ModelMap mmap)
|
||||
{
|
||||
TrainCourseUser trainCourseUser = trainCourseUserService.selectById(id);
|
||||
mmap.put("trainCourseUser", trainCourseUser);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存课程使用对象
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseUser:edit")
|
||||
@Log(title = "课程使用对象", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TrainCourseUser trainCourseUser)
|
||||
{
|
||||
return toAjax(trainCourseUserService.updateById(trainCourseUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除课程使用对象
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseUser:remove")
|
||||
@Log(title = "课程使用对象", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(trainCourseUserService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
package com.ruoyi.web.controller.exam;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.exam.domain.TrainCourseware;
|
||||
import com.ruoyi.exam.service.ITrainCoursewareService;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.page.TableDataInfo;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.utils.ExcelUtil;
|
||||
|
||||
/**
|
||||
* 课件 信息操作处理
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/exam/trainCourseware")
|
||||
public class TrainCoursewareController extends BaseController
|
||||
{
|
||||
private String prefix = "exam/trainCourseware";
|
||||
|
||||
@Autowired
|
||||
private ITrainCoursewareService trainCoursewareService;
|
||||
|
||||
@RequiresPermissions("exam:trainCourseware:view")
|
||||
@GetMapping()
|
||||
public String trainCourseware()
|
||||
{
|
||||
return prefix + "/trainCourseware";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询课件列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseware:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(TrainCourseware trainCourseware)
|
||||
{
|
||||
List<TrainCourseware> list = trainCoursewareService.selectTrainCoursewarePage(trainCourseware);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 导出课件列表
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseware:export")
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(TrainCourseware trainCourseware)
|
||||
{
|
||||
List<TrainCourseware> list = trainCoursewareService.selectTrainCoursewareList(trainCourseware);
|
||||
ExcelUtil<TrainCourseware> util = new ExcelUtil<TrainCourseware>(TrainCourseware.class);
|
||||
return util.exportExcel(list, "trainCourseware");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增课件
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存课件
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseware:add")
|
||||
@Log(title = "课件", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(TrainCourseware trainCourseware)
|
||||
{
|
||||
return toAjax(trainCoursewareService.insert(trainCourseware));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改课件
|
||||
*/
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Integer id, ModelMap mmap)
|
||||
{
|
||||
TrainCourseware trainCourseware = trainCoursewareService.selectById(id);
|
||||
mmap.put("trainCourseware", trainCourseware);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存课件
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseware:edit")
|
||||
@Log(title = "课件", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(TrainCourseware trainCourseware)
|
||||
{
|
||||
return toAjax(trainCoursewareService.updateById(trainCourseware));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除课件
|
||||
*/
|
||||
@RequiresPermissions("exam:trainCourseware:remove")
|
||||
@Log(title = "课件", businessType = BusinessType.DELETE)
|
||||
@PostMapping( "/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids)
|
||||
{
|
||||
return toAjax(trainCoursewareService.deleteByIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,208 +0,0 @@
|
|||
package com.ruoyi.exam.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import javax.persistence.Id;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 课程表 train_course
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public class TrainCourse
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 课程ID */
|
||||
@Id
|
||||
private Integer id;
|
||||
/** 部门ID */
|
||||
private Integer deptId;
|
||||
/** 课程分类 */
|
||||
private Integer trainCourseCategoryId;
|
||||
/** 课程名称 */
|
||||
private String name;
|
||||
/** 课程封面 */
|
||||
private String cover;
|
||||
/** */
|
||||
private String description;
|
||||
/** 是否公开(默认 1-公开,2-不公开) */
|
||||
private String state;
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
/** 创建者 */
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
/** 更新者 */
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
private Date updateTime;
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
|
||||
/** 设置课程ID */
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 获取课程ID */
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
/** 设置部门ID */
|
||||
public void setDeptId(Integer deptId)
|
||||
{
|
||||
this.deptId = deptId;
|
||||
}
|
||||
|
||||
/** 获取部门ID */
|
||||
public Integer getDeptId()
|
||||
{
|
||||
return deptId;
|
||||
}
|
||||
/** 设置课程分类 */
|
||||
public void setTrainCourseCategoryId(Integer trainCourseCategoryId)
|
||||
{
|
||||
this.trainCourseCategoryId = trainCourseCategoryId;
|
||||
}
|
||||
|
||||
/** 获取课程分类 */
|
||||
public Integer getTrainCourseCategoryId()
|
||||
{
|
||||
return trainCourseCategoryId;
|
||||
}
|
||||
/** 设置课程名称 */
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/** 获取课程名称 */
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
/** 设置课程封面 */
|
||||
public void setCover(String cover)
|
||||
{
|
||||
this.cover = cover;
|
||||
}
|
||||
|
||||
/** 获取课程封面 */
|
||||
public String getCover()
|
||||
{
|
||||
return cover;
|
||||
}
|
||||
/** 设置 */
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
/** 获取 */
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
/** 设置是否公开(默认 1-公开,2-不公开) */
|
||||
public void setState(String state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
/** 获取是否公开(默认 1-公开,2-不公开) */
|
||||
public String getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
/** 设置删除标志(0代表存在 2代表删除) */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标志(0代表存在 2代表删除) */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateTime(Date updateTime)
|
||||
{
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateTime()
|
||||
{
|
||||
return updateTime;
|
||||
}
|
||||
/** 设置备注 */
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
/** 获取备注 */
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("deptId", getDeptId())
|
||||
.append("trainCourseCategoryId", getTrainCourseCategoryId())
|
||||
.append("name", getName())
|
||||
.append("cover", getCover())
|
||||
.append("description", getDescription())
|
||||
.append("state", getState())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,166 +0,0 @@
|
|||
package com.ruoyi.exam.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import javax.persistence.Id;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 课程章节表 train_course_section
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public class TrainCourseSection
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 章节id */
|
||||
@Id
|
||||
private Integer id;
|
||||
/** 课程ID */
|
||||
private Integer trainCourseId;
|
||||
/** 章节名称 */
|
||||
private String name;
|
||||
/** 显示顺序 */
|
||||
private Integer orderNum;
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
/** 创建者 */
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
/** 更新者 */
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
private Date updateTime;
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
|
||||
/** 设置章节id */
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 获取章节id */
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
/** 设置课程ID */
|
||||
public void setTrainCourseId(Integer trainCourseId)
|
||||
{
|
||||
this.trainCourseId = trainCourseId;
|
||||
}
|
||||
|
||||
/** 获取课程ID */
|
||||
public Integer getTrainCourseId()
|
||||
{
|
||||
return trainCourseId;
|
||||
}
|
||||
/** 设置章节名称 */
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/** 获取章节名称 */
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
/** 设置显示顺序 */
|
||||
public void setOrderNum(Integer orderNum)
|
||||
{
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
/** 获取显示顺序 */
|
||||
public Integer getOrderNum()
|
||||
{
|
||||
return orderNum;
|
||||
}
|
||||
/** 设置删除标志(0代表存在 2代表删除) */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标志(0代表存在 2代表删除) */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateTime(Date updateTime)
|
||||
{
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateTime()
|
||||
{
|
||||
return updateTime;
|
||||
}
|
||||
/** 设置备注 */
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
/** 获取备注 */
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("trainCourseId", getTrainCourseId())
|
||||
.append("name", getName())
|
||||
.append("orderNum", getOrderNum())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,166 +0,0 @@
|
|||
package com.ruoyi.exam.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import javax.persistence.Id;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 章节课件表 train_course_section_courseware
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public class TrainCourseSectionCourseware
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 章节课件id */
|
||||
@Id
|
||||
private Integer id;
|
||||
/** 课程章节ID */
|
||||
private Integer trainCourseSectionId;
|
||||
/** 课件ID */
|
||||
private Integer trainCoursewareId;
|
||||
/** 显示顺序 */
|
||||
private Integer orderNum;
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
/** 创建者 */
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
/** 更新者 */
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
private Date updateTime;
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
|
||||
/** 设置章节课件id */
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 获取章节课件id */
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
/** 设置课程章节ID */
|
||||
public void setTrainCourseSectionId(Integer trainCourseSectionId)
|
||||
{
|
||||
this.trainCourseSectionId = trainCourseSectionId;
|
||||
}
|
||||
|
||||
/** 获取课程章节ID */
|
||||
public Integer getTrainCourseSectionId()
|
||||
{
|
||||
return trainCourseSectionId;
|
||||
}
|
||||
/** 设置课件ID */
|
||||
public void setTrainCoursewareId(Integer trainCoursewareId)
|
||||
{
|
||||
this.trainCoursewareId = trainCoursewareId;
|
||||
}
|
||||
|
||||
/** 获取课件ID */
|
||||
public Integer getTrainCoursewareId()
|
||||
{
|
||||
return trainCoursewareId;
|
||||
}
|
||||
/** 设置显示顺序 */
|
||||
public void setOrderNum(Integer orderNum)
|
||||
{
|
||||
this.orderNum = orderNum;
|
||||
}
|
||||
|
||||
/** 获取显示顺序 */
|
||||
public Integer getOrderNum()
|
||||
{
|
||||
return orderNum;
|
||||
}
|
||||
/** 设置删除标志(0代表存在 2代表删除) */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标志(0代表存在 2代表删除) */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateTime(Date updateTime)
|
||||
{
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateTime()
|
||||
{
|
||||
return updateTime;
|
||||
}
|
||||
/** 设置备注 */
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
/** 获取备注 */
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("trainCourseSectionId", getTrainCourseSectionId())
|
||||
.append("trainCoursewareId", getTrainCoursewareId())
|
||||
.append("orderNum", getOrderNum())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,152 +0,0 @@
|
|||
package com.ruoyi.exam.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import javax.persistence.Id;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 课程使用对象表 train_course_user
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public class TrainCourseUser
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 考试对象 */
|
||||
@Id
|
||||
private Integer id;
|
||||
/** 考试代码 */
|
||||
private Integer trainCourseId;
|
||||
/** 会员代码 */
|
||||
private Integer vipUserId;
|
||||
/** 创建者 */
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
private Date createDate;
|
||||
/** 更新者 */
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
private Date updateDate;
|
||||
/** 备注信息 */
|
||||
private String remarks;
|
||||
/** 删除标记 */
|
||||
private String delFlag;
|
||||
|
||||
/** 设置考试对象 */
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 获取考试对象 */
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
/** 设置考试代码 */
|
||||
public void setTrainCourseId(Integer trainCourseId)
|
||||
{
|
||||
this.trainCourseId = trainCourseId;
|
||||
}
|
||||
|
||||
/** 获取考试代码 */
|
||||
public Integer getTrainCourseId()
|
||||
{
|
||||
return trainCourseId;
|
||||
}
|
||||
/** 设置会员代码 */
|
||||
public void setVipUserId(Integer vipUserId)
|
||||
{
|
||||
this.vipUserId = vipUserId;
|
||||
}
|
||||
|
||||
/** 获取会员代码 */
|
||||
public Integer getVipUserId()
|
||||
{
|
||||
return vipUserId;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateDate(Date createDate)
|
||||
{
|
||||
this.createDate = createDate;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateDate()
|
||||
{
|
||||
return createDate;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateDate(Date updateDate)
|
||||
{
|
||||
this.updateDate = updateDate;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateDate()
|
||||
{
|
||||
return updateDate;
|
||||
}
|
||||
/** 设置备注信息 */
|
||||
public void setRemarks(String remarks)
|
||||
{
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** 获取备注信息 */
|
||||
public String getRemarks()
|
||||
{
|
||||
return remarks;
|
||||
}
|
||||
/** 设置删除标记 */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标记 */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("trainCourseId", getTrainCourseId())
|
||||
.append("vipUserId", getVipUserId())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createDate", getCreateDate())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateDate", getUpdateDate())
|
||||
.append("remarks", getRemarks())
|
||||
.append("delFlag", getDelFlag())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,222 +0,0 @@
|
|||
package com.ruoyi.exam.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import javax.persistence.Id;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 课件表 train_courseware
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public class TrainCourseware
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** */
|
||||
@Id
|
||||
private Integer id;
|
||||
/** 课件分类ID */
|
||||
private Integer trainCoursewareCategoryId;
|
||||
/** 部门名称 */
|
||||
private String name;
|
||||
/** 课件类型(1-文档,2-图文,3-视频,4-音频,5-图片,6-外部链接) */
|
||||
private String type;
|
||||
/** 学习时常(分钟) */
|
||||
private Integer learnTime;
|
||||
/** 是否公开(1-是,0-不是) */
|
||||
private String state;
|
||||
/** 地址 */
|
||||
private String url;
|
||||
/** 正文 */
|
||||
private String content;
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
/** 创建者 */
|
||||
private String createBy;
|
||||
/** 创建时间 */
|
||||
private Date createTime;
|
||||
/** 更新者 */
|
||||
private String updateBy;
|
||||
/** 更新时间 */
|
||||
private Date updateTime;
|
||||
/** 备注 */
|
||||
private String remark;
|
||||
|
||||
/** 设置 */
|
||||
public void setId(Integer id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** 获取 */
|
||||
public Integer getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
/** 设置课件分类ID */
|
||||
public void setTrainCoursewareCategoryId(Integer trainCoursewareCategoryId)
|
||||
{
|
||||
this.trainCoursewareCategoryId = trainCoursewareCategoryId;
|
||||
}
|
||||
|
||||
/** 获取课件分类ID */
|
||||
public Integer getTrainCoursewareCategoryId()
|
||||
{
|
||||
return trainCoursewareCategoryId;
|
||||
}
|
||||
/** 设置部门名称 */
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/** 获取部门名称 */
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
/** 设置课件类型(1-文档,2-图文,3-视频,4-音频,5-图片,6-外部链接) */
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/** 获取课件类型(1-文档,2-图文,3-视频,4-音频,5-图片,6-外部链接) */
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
/** 设置学习时常(分钟) */
|
||||
public void setLearnTime(Integer learnTime)
|
||||
{
|
||||
this.learnTime = learnTime;
|
||||
}
|
||||
|
||||
/** 获取学习时常(分钟) */
|
||||
public Integer getLearnTime()
|
||||
{
|
||||
return learnTime;
|
||||
}
|
||||
/** 设置是否公开(1-是,0-不是) */
|
||||
public void setState(String state)
|
||||
{
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
/** 获取是否公开(1-是,0-不是) */
|
||||
public String getState()
|
||||
{
|
||||
return state;
|
||||
}
|
||||
/** 设置地址 */
|
||||
public void setUrl(String url)
|
||||
{
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
/** 获取地址 */
|
||||
public String getUrl()
|
||||
{
|
||||
return url;
|
||||
}
|
||||
/** 设置正文 */
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/** 获取正文 */
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
/** 设置删除标志(0代表存在 2代表删除) */
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
/** 获取删除标志(0代表存在 2代表删除) */
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
/** 设置创建者 */
|
||||
public void setCreateBy(String createBy)
|
||||
{
|
||||
this.createBy = createBy;
|
||||
}
|
||||
|
||||
/** 获取创建者 */
|
||||
public String getCreateBy()
|
||||
{
|
||||
return createBy;
|
||||
}
|
||||
/** 设置创建时间 */
|
||||
public void setCreateTime(Date createTime)
|
||||
{
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
/** 获取创建时间 */
|
||||
public Date getCreateTime()
|
||||
{
|
||||
return createTime;
|
||||
}
|
||||
/** 设置更新者 */
|
||||
public void setUpdateBy(String updateBy)
|
||||
{
|
||||
this.updateBy = updateBy;
|
||||
}
|
||||
|
||||
/** 获取更新者 */
|
||||
public String getUpdateBy()
|
||||
{
|
||||
return updateBy;
|
||||
}
|
||||
/** 设置更新时间 */
|
||||
public void setUpdateTime(Date updateTime)
|
||||
{
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
/** 获取更新时间 */
|
||||
public Date getUpdateTime()
|
||||
{
|
||||
return updateTime;
|
||||
}
|
||||
/** 设置备注 */
|
||||
public void setRemark(String remark)
|
||||
{
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
/** 获取备注 */
|
||||
public String getRemark()
|
||||
{
|
||||
return remark;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("trainCoursewareCategoryId", getTrainCoursewareCategoryId())
|
||||
.append("name", getName())
|
||||
.append("type", getType())
|
||||
.append("learnTime", getLearnTime())
|
||||
.append("state", getState())
|
||||
.append("url", getUrl())
|
||||
.append("content", getContent())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.ruoyi.exam.mapper;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourse;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.MyMapper;
|
||||
|
||||
/**
|
||||
* 课程 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface TrainCourseMapper extends MyMapper<TrainCourse>
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询课程列表
|
||||
*
|
||||
* @param trainCourse 课程信息
|
||||
* @return 课程集合
|
||||
*/
|
||||
public List<TrainCourse> selectTrainCourseList(TrainCourse trainCourse);
|
||||
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.ruoyi.exam.mapper;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourseSectionCourseware;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.MyMapper;
|
||||
|
||||
/**
|
||||
* 章节课件 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface TrainCourseSectionCoursewareMapper extends MyMapper<TrainCourseSectionCourseware>
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询章节课件列表
|
||||
*
|
||||
* @param trainCourseSectionCourseware 章节课件信息
|
||||
* @return 章节课件集合
|
||||
*/
|
||||
public List<TrainCourseSectionCourseware> selectTrainCourseSectionCoursewareList(TrainCourseSectionCourseware trainCourseSectionCourseware);
|
||||
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.ruoyi.exam.mapper;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourseSection;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.MyMapper;
|
||||
|
||||
/**
|
||||
* 课程章节 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface TrainCourseSectionMapper extends MyMapper<TrainCourseSection>
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询课程章节列表
|
||||
*
|
||||
* @param trainCourseSection 课程章节信息
|
||||
* @return 课程章节集合
|
||||
*/
|
||||
public List<TrainCourseSection> selectTrainCourseSectionList(TrainCourseSection trainCourseSection);
|
||||
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.ruoyi.exam.mapper;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourseUser;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.MyMapper;
|
||||
|
||||
/**
|
||||
* 课程使用对象 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface TrainCourseUserMapper extends MyMapper<TrainCourseUser>
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询课程使用对象列表
|
||||
*
|
||||
* @param trainCourseUser 课程使用对象信息
|
||||
* @return 课程使用对象集合
|
||||
*/
|
||||
public List<TrainCourseUser> selectTrainCourseUserList(TrainCourseUser trainCourseUser);
|
||||
|
||||
}
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
package com.ruoyi.exam.mapper;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourseware;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.MyMapper;
|
||||
|
||||
/**
|
||||
* 课件 数据层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface TrainCoursewareMapper extends MyMapper<TrainCourseware>
|
||||
{
|
||||
|
||||
/**
|
||||
* 查询课件列表
|
||||
*
|
||||
* @param trainCourseware 课件信息
|
||||
* @return 课件集合
|
||||
*/
|
||||
public List<TrainCourseware> selectTrainCoursewareList(TrainCourseware trainCourseware);
|
||||
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
package com.ruoyi.exam.service;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourseSectionCourseware;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||
/**
|
||||
* 章节课件 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface ITrainCourseSectionCoursewareService extends AbstractBaseService<TrainCourseSectionCourseware>
|
||||
{
|
||||
/**
|
||||
* 查询章节课件分页列表
|
||||
*
|
||||
* @param trainCourseSectionCourseware 章节课件信息
|
||||
* @return 章节课件集合
|
||||
*/
|
||||
public List<TrainCourseSectionCourseware> selectTrainCourseSectionCoursewarePage(TrainCourseSectionCourseware trainCourseSectionCourseware);
|
||||
/**
|
||||
* 查询章节课件列表
|
||||
*
|
||||
* @param trainCourseSectionCourseware 章节课件信息
|
||||
* @return 章节课件集合
|
||||
*/
|
||||
public List<TrainCourseSectionCourseware> selectTrainCourseSectionCoursewareList(TrainCourseSectionCourseware trainCourseSectionCourseware);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
package com.ruoyi.exam.service;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourseSection;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||
/**
|
||||
* 课程章节 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface ITrainCourseSectionService extends AbstractBaseService<TrainCourseSection>
|
||||
{
|
||||
/**
|
||||
* 查询课程章节分页列表
|
||||
*
|
||||
* @param trainCourseSection 课程章节信息
|
||||
* @return 课程章节集合
|
||||
*/
|
||||
public List<TrainCourseSection> selectTrainCourseSectionPage(TrainCourseSection trainCourseSection);
|
||||
/**
|
||||
* 查询课程章节列表
|
||||
*
|
||||
* @param trainCourseSection 课程章节信息
|
||||
* @return 课程章节集合
|
||||
*/
|
||||
public List<TrainCourseSection> selectTrainCourseSectionList(TrainCourseSection trainCourseSection);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
package com.ruoyi.exam.service;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourse;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||
/**
|
||||
* 课程 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface ITrainCourseService extends AbstractBaseService<TrainCourse>
|
||||
{
|
||||
/**
|
||||
* 查询课程分页列表
|
||||
*
|
||||
* @param trainCourse 课程信息
|
||||
* @return 课程集合
|
||||
*/
|
||||
public List<TrainCourse> selectTrainCoursePage(TrainCourse trainCourse);
|
||||
/**
|
||||
* 查询课程列表
|
||||
*
|
||||
* @param trainCourse 课程信息
|
||||
* @return 课程集合
|
||||
*/
|
||||
public List<TrainCourse> selectTrainCourseList(TrainCourse trainCourse);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
package com.ruoyi.exam.service;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourseUser;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||
/**
|
||||
* 课程使用对象 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface ITrainCourseUserService extends AbstractBaseService<TrainCourseUser>
|
||||
{
|
||||
/**
|
||||
* 查询课程使用对象分页列表
|
||||
*
|
||||
* @param trainCourseUser 课程使用对象信息
|
||||
* @return 课程使用对象集合
|
||||
*/
|
||||
public List<TrainCourseUser> selectTrainCourseUserPage(TrainCourseUser trainCourseUser);
|
||||
/**
|
||||
* 查询课程使用对象列表
|
||||
*
|
||||
* @param trainCourseUser 课程使用对象信息
|
||||
* @return 课程使用对象集合
|
||||
*/
|
||||
public List<TrainCourseUser> selectTrainCourseUserList(TrainCourseUser trainCourseUser);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
package com.ruoyi.exam.service;
|
||||
|
||||
import com.ruoyi.exam.domain.TrainCourseware;
|
||||
import java.util.List;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||
/**
|
||||
* 课件 服务层
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
public interface ITrainCoursewareService extends AbstractBaseService<TrainCourseware>
|
||||
{
|
||||
/**
|
||||
* 查询课件分页列表
|
||||
*
|
||||
* @param trainCourseware 课件信息
|
||||
* @return 课件集合
|
||||
*/
|
||||
public List<TrainCourseware> selectTrainCoursewarePage(TrainCourseware trainCourseware);
|
||||
/**
|
||||
* 查询课件列表
|
||||
*
|
||||
* @param trainCourseware 课件信息
|
||||
* @return 课件集合
|
||||
*/
|
||||
public List<TrainCourseware> selectTrainCoursewareList(TrainCourseware trainCourseware);
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
package com.ruoyi.exam.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.exam.mapper.TrainCourseSectionCoursewareMapper;
|
||||
import com.ruoyi.exam.domain.TrainCourseSectionCourseware;
|
||||
import com.ruoyi.exam.service.ITrainCourseSectionCoursewareService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||
/**
|
||||
* 章节课件 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Service
|
||||
public class TrainCourseSectionCoursewareServiceImpl extends AbstractBaseServiceImpl<TrainCourseSectionCoursewareMapper,TrainCourseSectionCourseware> implements ITrainCourseSectionCoursewareService
|
||||
{
|
||||
@Autowired
|
||||
private TrainCourseSectionCoursewareMapper trainCourseSectionCoursewareMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 查询章节课件列表
|
||||
*
|
||||
* @param trainCourseSectionCourseware 章节课件信息
|
||||
* @return 章节课件集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourseSectionCourseware> selectTrainCourseSectionCoursewareList(TrainCourseSectionCourseware trainCourseSectionCourseware)
|
||||
{
|
||||
return trainCourseSectionCoursewareMapper.selectTrainCourseSectionCoursewareList(trainCourseSectionCourseware);
|
||||
}
|
||||
/**
|
||||
* 查询章节课件分页列表
|
||||
*
|
||||
* @param trainCourseSectionCourseware 章节课件信息
|
||||
* @return 章节课件集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourseSectionCourseware> selectTrainCourseSectionCoursewarePage(TrainCourseSectionCourseware trainCourseSectionCourseware)
|
||||
{
|
||||
startPage();
|
||||
return trainCourseSectionCoursewareMapper.selectTrainCourseSectionCoursewareList(trainCourseSectionCourseware);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
package com.ruoyi.exam.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.exam.mapper.TrainCourseSectionMapper;
|
||||
import com.ruoyi.exam.domain.TrainCourseSection;
|
||||
import com.ruoyi.exam.service.ITrainCourseSectionService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||
/**
|
||||
* 课程章节 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Service
|
||||
public class TrainCourseSectionServiceImpl extends AbstractBaseServiceImpl<TrainCourseSectionMapper,TrainCourseSection> implements ITrainCourseSectionService
|
||||
{
|
||||
@Autowired
|
||||
private TrainCourseSectionMapper trainCourseSectionMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 查询课程章节列表
|
||||
*
|
||||
* @param trainCourseSection 课程章节信息
|
||||
* @return 课程章节集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourseSection> selectTrainCourseSectionList(TrainCourseSection trainCourseSection)
|
||||
{
|
||||
return trainCourseSectionMapper.selectTrainCourseSectionList(trainCourseSection);
|
||||
}
|
||||
/**
|
||||
* 查询课程章节分页列表
|
||||
*
|
||||
* @param trainCourseSection 课程章节信息
|
||||
* @return 课程章节集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourseSection> selectTrainCourseSectionPage(TrainCourseSection trainCourseSection)
|
||||
{
|
||||
startPage();
|
||||
return trainCourseSectionMapper.selectTrainCourseSectionList(trainCourseSection);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
package com.ruoyi.exam.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.exam.mapper.TrainCourseMapper;
|
||||
import com.ruoyi.exam.domain.TrainCourse;
|
||||
import com.ruoyi.exam.service.ITrainCourseService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||
/**
|
||||
* 课程 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Service
|
||||
public class TrainCourseServiceImpl extends AbstractBaseServiceImpl<TrainCourseMapper,TrainCourse> implements ITrainCourseService
|
||||
{
|
||||
@Autowired
|
||||
private TrainCourseMapper trainCourseMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 查询课程列表
|
||||
*
|
||||
* @param trainCourse 课程信息
|
||||
* @return 课程集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourse> selectTrainCourseList(TrainCourse trainCourse)
|
||||
{
|
||||
return trainCourseMapper.selectTrainCourseList(trainCourse);
|
||||
}
|
||||
/**
|
||||
* 查询课程分页列表
|
||||
*
|
||||
* @param trainCourse 课程信息
|
||||
* @return 课程集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourse> selectTrainCoursePage(TrainCourse trainCourse)
|
||||
{
|
||||
startPage();
|
||||
return trainCourseMapper.selectTrainCourseList(trainCourse);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
package com.ruoyi.exam.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.exam.mapper.TrainCourseUserMapper;
|
||||
import com.ruoyi.exam.domain.TrainCourseUser;
|
||||
import com.ruoyi.exam.service.ITrainCourseUserService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||
/**
|
||||
* 课程使用对象 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Service
|
||||
public class TrainCourseUserServiceImpl extends AbstractBaseServiceImpl<TrainCourseUserMapper,TrainCourseUser> implements ITrainCourseUserService
|
||||
{
|
||||
@Autowired
|
||||
private TrainCourseUserMapper trainCourseUserMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 查询课程使用对象列表
|
||||
*
|
||||
* @param trainCourseUser 课程使用对象信息
|
||||
* @return 课程使用对象集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourseUser> selectTrainCourseUserList(TrainCourseUser trainCourseUser)
|
||||
{
|
||||
return trainCourseUserMapper.selectTrainCourseUserList(trainCourseUser);
|
||||
}
|
||||
/**
|
||||
* 查询课程使用对象分页列表
|
||||
*
|
||||
* @param trainCourseUser 课程使用对象信息
|
||||
* @return 课程使用对象集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourseUser> selectTrainCourseUserPage(TrainCourseUser trainCourseUser)
|
||||
{
|
||||
startPage();
|
||||
return trainCourseUserMapper.selectTrainCourseUserList(trainCourseUser);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
package com.ruoyi.exam.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.exam.mapper.TrainCoursewareMapper;
|
||||
import com.ruoyi.exam.domain.TrainCourseware;
|
||||
import com.ruoyi.exam.service.ITrainCoursewareService;
|
||||
import com.ruoyi.common.support.Convert;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||
/**
|
||||
* 课件 服务层实现
|
||||
*
|
||||
* @author zhujj
|
||||
* @date 2018-12-12
|
||||
*/
|
||||
@Service
|
||||
public class TrainCoursewareServiceImpl extends AbstractBaseServiceImpl<TrainCoursewareMapper,TrainCourseware> implements ITrainCoursewareService
|
||||
{
|
||||
@Autowired
|
||||
private TrainCoursewareMapper trainCoursewareMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 查询课件列表
|
||||
*
|
||||
* @param trainCourseware 课件信息
|
||||
* @return 课件集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourseware> selectTrainCoursewareList(TrainCourseware trainCourseware)
|
||||
{
|
||||
return trainCoursewareMapper.selectTrainCoursewareList(trainCourseware);
|
||||
}
|
||||
/**
|
||||
* 查询课件分页列表
|
||||
*
|
||||
* @param trainCourseware 课件信息
|
||||
* @return 课件集合
|
||||
*/
|
||||
@Override
|
||||
public List<TrainCourseware> selectTrainCoursewarePage(TrainCourseware trainCourseware)
|
||||
{
|
||||
startPage();
|
||||
return trainCoursewareMapper.selectTrainCoursewareList(trainCourseware);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
package com.ruoyi.course.controller;
|
||||
package com.ruoyi.train.course.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.course.domain.TrainCourseCategory;
|
||||
import com.ruoyi.course.service.ITrainCourseCategoryService;
|
||||
import com.ruoyi.train.course.domain.TrainCourseCategory;
|
||||
import com.ruoyi.train.course.service.ITrainCourseCategoryService;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.util.ShiroUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ruoyi.course.domain;
|
||||
package com.ruoyi.train.course.domain;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.ruoyi.course.mapper;
|
||||
package com.ruoyi.train.course.mapper;
|
||||
|
||||
import com.ruoyi.course.domain.TrainCourseCategory;
|
||||
import com.ruoyi.train.course.domain.TrainCourseCategory;
|
||||
import com.ruoyi.framework.web.base.MyMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ public interface TrainCourseCategoryMapper extends MyMapper<TrainCourseCategory>
|
|||
/**
|
||||
* 查询课程分类人数
|
||||
*
|
||||
* @param dept 课程分类信息
|
||||
* @param category 课程分类信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int selectCategoryCount(TrainCourseCategory category);
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.ruoyi.course.service;
|
||||
package com.ruoyi.train.course.service;
|
||||
|
||||
import com.ruoyi.course.domain.TrainCourseCategory;
|
||||
import com.ruoyi.train.course.domain.TrainCourseCategory;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
package com.ruoyi.course.service.impl;
|
||||
package com.ruoyi.train.course.service.impl;
|
||||
|
||||
import com.ruoyi.common.annotation.DataScope;
|
||||
import com.ruoyi.common.constant.UserConstants;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.course.domain.TrainCourseCategory;
|
||||
import com.ruoyi.course.mapper.TrainCourseCategoryMapper;
|
||||
import com.ruoyi.course.service.ITrainCourseCategoryService;
|
||||
import com.ruoyi.train.course.domain.TrainCourseCategory;
|
||||
import com.ruoyi.train.course.mapper.TrainCourseCategoryMapper;
|
||||
import com.ruoyi.train.course.service.ITrainCourseCategoryService;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
package com.ruoyi.courseware.controller;
|
||||
package com.ruoyi.train.courseware.controller;
|
||||
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.base.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.courseware.domain.TrainCoursewareCategory;
|
||||
import com.ruoyi.courseware.service.ITrainCoursewareCategoryService;
|
||||
import com.ruoyi.train.courseware.domain.TrainCoursewareCategory;
|
||||
import com.ruoyi.train.courseware.service.ITrainCoursewareCategoryService;
|
||||
import com.ruoyi.framework.web.base.BaseController;
|
||||
import com.ruoyi.framework.web.util.ShiroUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ruoyi.courseware.controller;
|
||||
package com.ruoyi.train.courseware.controller;
|
||||
|
||||
import com.aliyuncs.DefaultAcsClient;
|
||||
import com.aliyuncs.exceptions.ClientException;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ruoyi.courseware.domain;
|
||||
package com.ruoyi.train.courseware.domain;
|
||||
|
||||
import com.ruoyi.common.base.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.ruoyi.courseware.mapper;
|
||||
package com.ruoyi.train.courseware.mapper;
|
||||
|
||||
import com.ruoyi.courseware.domain.TrainCoursewareCategory;
|
||||
import com.ruoyi.train.courseware.domain.TrainCoursewareCategory;
|
||||
import com.ruoyi.framework.web.base.MyMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package com.ruoyi.courseware.service;
|
||||
package com.ruoyi.train.courseware.service;
|
||||
|
||||
import com.ruoyi.courseware.domain.TrainCoursewareCategory;
|
||||
import com.ruoyi.train.courseware.domain.TrainCoursewareCategory;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseService;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
package com.ruoyi.courseware.service.impl;
|
||||
package com.ruoyi.train.courseware.service.impl;
|
||||
|
||||
import com.ruoyi.common.annotation.DataScope;
|
||||
import com.ruoyi.common.constant.UserConstants;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.courseware.domain.TrainCoursewareCategory;
|
||||
import com.ruoyi.courseware.mapper.TrainCoursewareCategoryMapper;
|
||||
import com.ruoyi.courseware.service.ITrainCoursewareCategoryService;
|
||||
import com.ruoyi.train.courseware.domain.TrainCoursewareCategory;
|
||||
import com.ruoyi.train.courseware.mapper.TrainCoursewareCategoryMapper;
|
||||
import com.ruoyi.train.courseware.service.ITrainCoursewareCategoryService;
|
||||
import com.ruoyi.framework.web.base.AbstractBaseServiceImpl;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.ruoyi.courseware.utils;
|
||||
package com.ruoyi.train.courseware.utils;
|
||||
|
||||
import com.aliyuncs.DefaultAcsClient;
|
||||
import com.aliyuncs.exceptions.ClientException;
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.exam.mapper.TrainCourseMapper">
|
||||
|
||||
<resultMap type="TrainCourse" id="TrainCourseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="deptId" column="dept_id" />
|
||||
<result property="trainCourseCategoryId" column="train_course_category_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="cover" column="cover" />
|
||||
<result property="description" column="description" />
|
||||
<result property="state" column="state" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTrainCourseVo">
|
||||
id, dept_id, train_course_category_id, name, cover, description, state, del_flag, create_by, create_time, update_by, update_time, remark </sql>
|
||||
|
||||
<select id="selectTrainCourseList" parameterType="TrainCourse" resultMap="TrainCourseResult">
|
||||
select
|
||||
<include refid="selectTrainCourseVo"/>
|
||||
from train_course
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="deptId != null "> and dept_id = #{deptId}</if>
|
||||
<if test="trainCourseCategoryId != null "> and train_course_category_id = #{trainCourseCategoryId}</if>
|
||||
<if test="name != null and name != '' "> and name = #{name}</if>
|
||||
<if test="cover != null and cover != '' "> and cover = #{cover}</if>
|
||||
<if test="description != null and description != '' "> and description = #{description}</if>
|
||||
<if test="state != null and state != '' "> and state = #{state}</if>
|
||||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
<if test="createBy != null and createBy != '' "> and create_by = #{createBy}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != '' "> and update_by = #{updateBy}</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="remark != null and remark != '' "> and remark = #{remark}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.exam.mapper.TrainCourseSectionCoursewareMapper">
|
||||
|
||||
<resultMap type="TrainCourseSectionCourseware" id="TrainCourseSectionCoursewareResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="trainCourseSectionId" column="train_course_section_id" />
|
||||
<result property="trainCoursewareId" column="train_courseware_id" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTrainCourseSectionCoursewareVo">
|
||||
id, train_course_section_id, train_courseware_id, order_num, del_flag, create_by, create_time, update_by, update_time, remark </sql>
|
||||
|
||||
<select id="selectTrainCourseSectionCoursewareList" parameterType="TrainCourseSectionCourseware" resultMap="TrainCourseSectionCoursewareResult">
|
||||
select
|
||||
<include refid="selectTrainCourseSectionCoursewareVo"/>
|
||||
from train_course_section_courseware
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="trainCourseSectionId != null "> and train_course_section_id = #{trainCourseSectionId}</if>
|
||||
<if test="trainCoursewareId != null "> and train_courseware_id = #{trainCoursewareId}</if>
|
||||
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
||||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
<if test="createBy != null and createBy != '' "> and create_by = #{createBy}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != '' "> and update_by = #{updateBy}</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="remark != null and remark != '' "> and remark = #{remark}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.exam.mapper.TrainCourseSectionMapper">
|
||||
|
||||
<resultMap type="TrainCourseSection" id="TrainCourseSectionResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="trainCourseId" column="train_course_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="orderNum" column="order_num" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTrainCourseSectionVo">
|
||||
id, train_course_id, name, order_num, del_flag, create_by, create_time, update_by, update_time, remark </sql>
|
||||
|
||||
<select id="selectTrainCourseSectionList" parameterType="TrainCourseSection" resultMap="TrainCourseSectionResult">
|
||||
select
|
||||
<include refid="selectTrainCourseSectionVo"/>
|
||||
from train_course_section
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="trainCourseId != null "> and train_course_id = #{trainCourseId}</if>
|
||||
<if test="name != null and name != '' "> and name = #{name}</if>
|
||||
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
||||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
<if test="createBy != null and createBy != '' "> and create_by = #{createBy}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != '' "> and update_by = #{updateBy}</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="remark != null and remark != '' "> and remark = #{remark}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.exam.mapper.TrainCourseUserMapper">
|
||||
|
||||
<resultMap type="TrainCourseUser" id="TrainCourseUserResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="trainCourseId" column="train_course_id" />
|
||||
<result property="vipUserId" column="vip_user_id" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createDate" column="create_date" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateDate" column="update_date" />
|
||||
<result property="remarks" column="remarks" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTrainCourseUserVo">
|
||||
id, train_course_id, vip_user_id, create_by, create_date, update_by, update_date, remarks, del_flag </sql>
|
||||
|
||||
<select id="selectTrainCourseUserList" parameterType="TrainCourseUser" resultMap="TrainCourseUserResult">
|
||||
select
|
||||
<include refid="selectTrainCourseUserVo"/>
|
||||
from train_course_user
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="trainCourseId != null "> and train_course_id = #{trainCourseId}</if>
|
||||
<if test="vipUserId != null "> and vip_user_id = #{vipUserId}</if>
|
||||
<if test="createBy != null and createBy != '' "> and create_by = #{createBy}</if>
|
||||
<if test="createDate != null "> and create_date = #{createDate}</if>
|
||||
<if test="updateBy != null and updateBy != '' "> and update_by = #{updateBy}</if>
|
||||
<if test="updateDate != null "> and update_date = #{updateDate}</if>
|
||||
<if test="remarks != null and remarks != '' "> and remarks = #{remarks}</if>
|
||||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -1,50 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.exam.mapper.TrainCoursewareMapper">
|
||||
|
||||
<resultMap type="TrainCourseware" id="TrainCoursewareResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="trainCoursewareCategoryId" column="train_courseware_category_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="type" column="type" />
|
||||
<result property="learnTime" column="learn_time" />
|
||||
<result property="state" column="state" />
|
||||
<result property="url" column="url" />
|
||||
<result property="content" column="content" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTrainCoursewareVo">
|
||||
id, train_courseware_category_id, name, type, learn_time, state, url, content, del_flag, create_by, create_time, update_by, update_time, remark </sql>
|
||||
|
||||
<select id="selectTrainCoursewareList" parameterType="TrainCourseware" resultMap="TrainCoursewareResult">
|
||||
select
|
||||
<include refid="selectTrainCoursewareVo"/>
|
||||
from train_courseware
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="trainCoursewareCategoryId != null "> and train_courseware_category_id = #{trainCoursewareCategoryId}</if>
|
||||
<if test="name != null and name != '' "> and name = #{name}</if>
|
||||
<if test="type != null and type != '' "> and type = #{type}</if>
|
||||
<if test="learnTime != null "> and learn_time = #{learnTime}</if>
|
||||
<if test="state != null and state != '' "> and state = #{state}</if>
|
||||
<if test="url != null and url != '' "> and url = #{url}</if>
|
||||
<if test="content != null and content != '' "> and content = #{content}</if>
|
||||
<if test="delFlag != null and delFlag != '' "> and del_flag = #{delFlag}</if>
|
||||
<if test="createBy != null and createBy != '' "> and create_by = #{createBy}</if>
|
||||
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||
<if test="updateBy != null and updateBy != '' "> and update_by = #{updateBy}</if>
|
||||
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||
<if test="remark != null and remark != '' "> and remark = #{remark}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.course.mapper.TrainCourseCategoryMapper">
|
||||
<mapper namespace="com.ruoyi.train.course.mapper.TrainCourseCategoryMapper">
|
||||
|
||||
<resultMap type="TrainCourseCategory" id="TrainCourseCategoryResult">
|
||||
<id property="id" column="id" />
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.courseware.mapper.TrainCoursewareCategoryMapper">
|
||||
<mapper namespace="com.ruoyi.train.courseware.mapper.TrainCoursewareCategoryMapper">
|
||||
|
||||
<resultMap type="TrainCoursewareCategory" id="TrainCoursewareCategoryResult">
|
||||
<id property="id" column="id" />
|
||||
|
|
@ -1,100 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourse-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="deptId" name="deptId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程分类:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCourseCategoryId" name="trainCourseCategoryId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程封面:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="cover" name="cover" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="description" name="description" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否公开(默认 1-公开,2-不公开):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="state" name="state" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourse"
|
||||
$("#form-trainCourse-add").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-trainCourse-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourse-edit" th:object="${trainCourse}">
|
||||
<input id="id" name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="deptId" name="deptId" th:field="*{deptId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程分类:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCourseCategoryId" name="trainCourseCategoryId" th:field="*{trainCourseCategoryId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程封面:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="cover" name="cover" th:field="*{cover}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="description" name="description" th:field="*{description}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否公开(默认 1-公开,2-不公开):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="state" name="state" th:field="*{state}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourse"
|
||||
$("#form-trainCourse-edit").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-trainCourse-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,188 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="gray-bg">
|
||||
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
部门ID:<input type="text" name="deptId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
课程分类:<input type="text" name="trainCourseCategoryId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
课程名称:<input type="text" name="name"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
课程封面:<input type="text" name="cover"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
:<input type="text" name="description"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
是否公开(默认 1-公开,2-不公开):<input type="text" name="state"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
删除标志(0代表存在 2代表删除):<input type="text" name="delFlag"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建者:<input type="text" name="createBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建时间:<input type="text" name="createTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新者:<input type="text" name="updateBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新时间:<input type="text" name="updateTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
备注:<input type="text" name="remark"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:trainCourse:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:trainCourse:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:trainCourse:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:trainCourse:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table" data-mobile-responsive="true"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('exam:trainCourse:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('exam:trainCourse:remove')}]];
|
||||
var prefix = ctx + "exam/trainCourse";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "课程",
|
||||
search: false,
|
||||
showExport: true,
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field : 'id',
|
||||
title : '课程ID',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field : 'deptId',
|
||||
title : '部门ID',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'trainCourseCategoryId',
|
||||
title : '课程分类',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'name',
|
||||
title : '课程名称',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'cover',
|
||||
title : '课程封面',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'description',
|
||||
title : '',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'state',
|
||||
title : '是否公开(默认 1-公开,2-不公开)',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'delFlag',
|
||||
title : '删除标志(0代表存在 2代表删除)',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createBy',
|
||||
title : '创建者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createTime',
|
||||
title : '创建时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateBy',
|
||||
title : '更新者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateTime',
|
||||
title : '更新时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'remark',
|
||||
title : '备注',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,94 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseCategory-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="deptId" name="deptId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">父部门id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="parentId" name="parentId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">祖级列表:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="parentIds" name="parentIds" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">分类名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">显示顺序:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="orderNum" name="orderNum" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseCategory"
|
||||
$("#form-trainCourseCategory-add").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-trainCourseCategory-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseCategory-edit" th:object="${trainCourseCategory}">
|
||||
<input id="id" name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="deptId" name="deptId" th:field="*{deptId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">父部门id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="parentId" name="parentId" th:field="*{parentId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">祖级列表:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="parentIds" name="parentIds" th:field="*{parentIds}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">分类名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">显示顺序:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="orderNum" name="orderNum" th:field="*{orderNum}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseCategory"
|
||||
$("#form-trainCourseCategory-edit").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-trainCourseCategory-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,136 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="gray-bg">
|
||||
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
部门ID:<input type="text" name="deptId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
父部门id:<input type="text" name="parentId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
祖级列表:<input type="text" name="parentIds"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
分类名称:<input type="text" name="name"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
显示顺序:<input type="text" name="orderNum"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
删除标志(0代表存在 2代表删除):<input type="text" name="delFlag"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建者:<input type="text" name="createBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建时间:<input type="text" name="createTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新者:<input type="text" name="updateBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新时间:<input type="text" name="updateTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
备注:<input type="text" name="remark"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:trainCourseCategory:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:trainCourseCategory:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:trainCourseCategory:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:trainCourseCategory:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-tree-table" data-mobile-responsive="true"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('exam:trainCourseCategory:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('exam:trainCourseCategory:remove')}]];
|
||||
var prefix = ctx + "exam/trainCourseCategory";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
code: "id",
|
||||
parentCode: "parentId",
|
||||
uniqueId: "id",
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "课程分类",
|
||||
search: false,
|
||||
showExport: true,
|
||||
columns: [{
|
||||
field: 'selectItem',
|
||||
radio: true
|
||||
},
|
||||
{
|
||||
field : 'deptId',
|
||||
title : '部门',
|
||||
align: "left"
|
||||
},{
|
||||
field : 'name',
|
||||
title : '分类名称',
|
||||
align: "left"
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
if (row.parentId != 0) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.deptId + '\')"><i class="fa fa-edit">编辑</i></a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="remove(\'' + row.deptId + '\')"><i class="fa fa-remove">删除</i></a>');
|
||||
return actions.join('');
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.treeTable.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseSection-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCourseId" name="trainCourseId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">章节名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">显示顺序:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="orderNum" name="orderNum" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseSection"
|
||||
$("#form-trainCourseSection-add").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-trainCourseSection-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseSection-edit" th:object="${trainCourseSection}">
|
||||
<input id="id" name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCourseId" name="trainCourseId" th:field="*{trainCourseId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">章节名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">显示顺序:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="orderNum" name="orderNum" th:field="*{orderNum}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseSection"
|
||||
$("#form-trainCourseSection-edit").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-trainCourseSection-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,161 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="gray-bg">
|
||||
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
课程ID:<input type="text" name="trainCourseId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
章节名称:<input type="text" name="name"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
显示顺序:<input type="text" name="orderNum"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
删除标志(0代表存在 2代表删除):<input type="text" name="delFlag"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建者:<input type="text" name="createBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建时间:<input type="text" name="createTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新者:<input type="text" name="updateBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新时间:<input type="text" name="updateTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
备注:<input type="text" name="remark"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:trainCourseSection:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:trainCourseSection:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:trainCourseSection:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:trainCourseSection:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table" data-mobile-responsive="true"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('exam:trainCourseSection:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('exam:trainCourseSection:remove')}]];
|
||||
var prefix = ctx + "exam/trainCourseSection";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "课程章节",
|
||||
search: false,
|
||||
showExport: true,
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field : 'id',
|
||||
title : '章节id',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field : 'trainCourseId',
|
||||
title : '课程ID',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'name',
|
||||
title : '章节名称',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'orderNum',
|
||||
title : '显示顺序',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'delFlag',
|
||||
title : '删除标志(0代表存在 2代表删除)',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createBy',
|
||||
title : '创建者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createTime',
|
||||
title : '创建时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateBy',
|
||||
title : '更新者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateTime',
|
||||
title : '更新时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'remark',
|
||||
title : '备注',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseSectionCourseware-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程章节ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCourseSectionId" name="trainCourseSectionId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课件ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCoursewareId" name="trainCoursewareId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">显示顺序:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="orderNum" name="orderNum" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseSectionCourseware"
|
||||
$("#form-trainCourseSectionCourseware-add").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-trainCourseSectionCourseware-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseSectionCourseware-edit" th:object="${trainCourseSectionCourseware}">
|
||||
<input id="id" name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课程章节ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCourseSectionId" name="trainCourseSectionId" th:field="*{trainCourseSectionId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课件ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCoursewareId" name="trainCoursewareId" th:field="*{trainCoursewareId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">显示顺序:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="orderNum" name="orderNum" th:field="*{orderNum}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseSectionCourseware"
|
||||
$("#form-trainCourseSectionCourseware-edit").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-trainCourseSectionCourseware-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,161 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="gray-bg">
|
||||
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
课程章节ID:<input type="text" name="trainCourseSectionId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
课件ID:<input type="text" name="trainCoursewareId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
显示顺序:<input type="text" name="orderNum"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
删除标志(0代表存在 2代表删除):<input type="text" name="delFlag"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建者:<input type="text" name="createBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建时间:<input type="text" name="createTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新者:<input type="text" name="updateBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新时间:<input type="text" name="updateTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
备注:<input type="text" name="remark"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:trainCourseSectionCourseware:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:trainCourseSectionCourseware:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:trainCourseSectionCourseware:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:trainCourseSectionCourseware:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table" data-mobile-responsive="true"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('exam:trainCourseSectionCourseware:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('exam:trainCourseSectionCourseware:remove')}]];
|
||||
var prefix = ctx + "exam/trainCourseSectionCourseware";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "章节课件",
|
||||
search: false,
|
||||
showExport: true,
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field : 'id',
|
||||
title : '章节课件id',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field : 'trainCourseSectionId',
|
||||
title : '课程章节ID',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'trainCoursewareId',
|
||||
title : '课件ID',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'orderNum',
|
||||
title : '显示顺序',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'delFlag',
|
||||
title : '删除标志(0代表存在 2代表删除)',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createBy',
|
||||
title : '创建者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createTime',
|
||||
title : '创建时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateBy',
|
||||
title : '更新者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateTime',
|
||||
title : '更新时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'remark',
|
||||
title : '备注',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,76 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseUser-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">考试代码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCourseId" name="trainCourseId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">会员代码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="vipUserId" name="vipUserId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createDate" name="createDate" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateDate" name="updateDate" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注信息:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remarks" name="remarks" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标记:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseUser"
|
||||
$("#form-trainCourseUser-add").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-trainCourseUser-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseUser-edit" th:object="${trainCourseUser}">
|
||||
<input id="id" name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">考试代码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCourseId" name="trainCourseId" th:field="*{trainCourseId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">会员代码:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="vipUserId" name="vipUserId" th:field="*{vipUserId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createDate" name="createDate" th:field="*{createDate}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateDate" name="updateDate" th:field="*{updateDate}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注信息:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remarks" name="remarks" th:field="*{remarks}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标记:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseUser"
|
||||
$("#form-trainCourseUser-edit").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-trainCourseUser-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,152 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="gray-bg">
|
||||
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
考试代码:<input type="text" name="trainCourseId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
会员代码:<input type="text" name="vipUserId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建者:<input type="text" name="createBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建时间:<input type="text" name="createDate"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新者:<input type="text" name="updateBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新时间:<input type="text" name="updateDate"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
备注信息:<input type="text" name="remarks"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
删除标记:<input type="text" name="delFlag"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:trainCourseUser:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:trainCourseUser:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:trainCourseUser:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:trainCourseUser:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table" data-mobile-responsive="true"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('exam:trainCourseUser:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('exam:trainCourseUser:remove')}]];
|
||||
var prefix = ctx + "exam/trainCourseUser";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "课程使用对象",
|
||||
search: false,
|
||||
showExport: true,
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field : 'id',
|
||||
title : '考试对象',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field : 'trainCourseId',
|
||||
title : '考试代码',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'vipUserId',
|
||||
title : '会员代码',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createBy',
|
||||
title : '创建者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createDate',
|
||||
title : '创建时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateBy',
|
||||
title : '更新者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateDate',
|
||||
title : '更新时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'remarks',
|
||||
title : '备注信息',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'delFlag',
|
||||
title : '删除标记',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,106 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseware-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课件分类ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCoursewareCategoryId" name="trainCoursewareCategoryId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课件类型(1-文档,2-图文,3-视频,4-音频,5-图片,6-外部链接):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="type" name="type" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">学习时常(分钟):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="learnTime" name="learnTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否公开(1-是,0-不是):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="state" name="state" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="url" name="url" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">正文:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="content" name="content" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseware"
|
||||
$("#form-trainCourseware-add").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-trainCourseware-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,107 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCourseware-edit" th:object="${trainCourseware}">
|
||||
<input id="id" name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课件分类ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="trainCoursewareCategoryId" name="trainCoursewareCategoryId" th:field="*{trainCoursewareCategoryId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">课件类型(1-文档,2-图文,3-视频,4-音频,5-图片,6-外部链接):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="type" name="type" th:field="*{type}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">学习时常(分钟):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="learnTime" name="learnTime" th:field="*{learnTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">是否公开(1-是,0-不是):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="state" name="state" th:field="*{state}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">地址:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="url" name="url" th:field="*{url}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">正文:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="content" name="content" th:field="*{content}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCourseware"
|
||||
$("#form-trainCourseware-edit").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-trainCourseware-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,193 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<link th:href="@{/ajax/libs/jquery-layout/jquery.layout-latest.css}" rel="stylesheet"/>
|
||||
<link th:href="@{/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css}" rel="stylesheet"/>
|
||||
<body class="gray-bg">
|
||||
<div class="ui-layout-west">
|
||||
<div class="main-content">
|
||||
<div class="box box-main">
|
||||
<div class="box-header">
|
||||
<div class="box-title">
|
||||
<i class="fa icon-grid"></i> 组织机构
|
||||
</div>
|
||||
<div class="box-tools pull-right">
|
||||
<a type="button" class="btn btn-box-tool menuItem" href="#" onclick="dept()" title="管理部门"><i class="fa fa-edit"></i></a>
|
||||
<button type="button" class="btn btn-box-tool" id="btnExpand" title="展开" style="display:none;"><i class="fa fa-chevron-up"></i></button>
|
||||
<button type="button" class="btn btn-box-tool" id="btnCollapse" title="折叠"><i class="fa fa-chevron-down"></i></button>
|
||||
<button type="button" class="btn btn-box-tool" id="btnRefresh" title="刷新部门"><i class="fa fa-refresh"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui-layout-content">
|
||||
<div id="tree" class="ztree"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container-div ui-layout-center">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
课件分类ID:<input type="text" name="trainCoursewareCategoryId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
部门名称:<input type="text" name="name"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
课件类型(1-文档,2-图文,3-视频,4-音频,5-图片,6-外部链接):<input type="text" name="type"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:trainCourseware:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:trainCourseware:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:trainCourseware:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:trainCourseware:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table" data-mobile-responsive="true"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:src="@{/ajax/libs/jquery-layout/jquery.layout-latest.js}"></script>
|
||||
<script th:src="@{/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js}"></script>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('exam:trainCourseware:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('exam:trainCourseware:remove')}]];
|
||||
var prefix = ctx + "exam/trainCourseware";
|
||||
|
||||
$(function() {
|
||||
$('body').layout({ west__size: 185 });
|
||||
queryDeptTree();
|
||||
queryTrainCourseware();
|
||||
});
|
||||
function queryTrainCourseware() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "课件",
|
||||
search: false,
|
||||
showExport: true,
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field : 'trainCoursewareCategoryId',
|
||||
title : '课件分类ID',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'name',
|
||||
title : '部门名称',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'type',
|
||||
title : '课件类型',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'learnTime',
|
||||
title : '学习时常(分钟)',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'state',
|
||||
title : '是否公开(1-是,0-不是)',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'url',
|
||||
title : '地址',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'content',
|
||||
title : '正文',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createBy',
|
||||
title : '创建者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createTime',
|
||||
title : '创建时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
}
|
||||
function queryDeptTree()
|
||||
{
|
||||
var url = ctx + "train/courseware/category/treeData";
|
||||
var options = {
|
||||
url: url,
|
||||
expandLevel: 2,
|
||||
onClick : zOnClick
|
||||
};
|
||||
$.tree.init(options);
|
||||
|
||||
function zOnClick(event, treeId, treeNode) {
|
||||
$("#deptId").val(treeNode.id);
|
||||
$("#parentId").val(treeNode.pId);
|
||||
$.table.search();
|
||||
}
|
||||
}
|
||||
|
||||
$('#btnExpand').click(function() {
|
||||
$._tree.expandAll(true);
|
||||
$(this).hide();
|
||||
$('#btnCollapse').show();
|
||||
});
|
||||
|
||||
$('#btnCollapse').click(function() {
|
||||
$._tree.expandAll(false);
|
||||
$(this).hide();
|
||||
$('#btnExpand').show();
|
||||
});
|
||||
|
||||
$('#btnRefresh').click(function() {
|
||||
queryDeptTree();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -1,94 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCoursewareCategory-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="deptId" name="deptId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">父部门id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="parentId" name="parentId" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">祖级列表:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="parentIds" name="parentIds" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">显示顺序:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="orderNum" name="orderNum" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCoursewareCategory"
|
||||
$("#form-trainCoursewareCategory-add").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/add", $('#form-trainCoursewareCategory-add').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,95 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="white-bg">
|
||||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-trainCoursewareCategory-edit" th:object="${trainCoursewareCategory}">
|
||||
<input id="id" name="id" th:field="*{id}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门ID:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="deptId" name="deptId" th:field="*{deptId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">父部门id:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="parentId" name="parentId" th:field="*{parentId}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">祖级列表:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="parentIds" name="parentIds" th:field="*{parentIds}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">显示顺序:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="orderNum" name="orderNum" th:field="*{orderNum}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">删除标志(0代表存在 2代表删除):</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createBy" name="createBy" th:field="*{createBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">创建时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="createTime" name="createTime" th:field="*{createTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新者:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateBy" name="updateBy" th:field="*{updateBy}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">更新时间:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="updateTime" name="updateTime" th:field="*{updateTime}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">备注:</label>
|
||||
<div class="col-sm-8">
|
||||
<input id="remark" name="remark" th:field="*{remark}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div th:include="include::footer"></div>
|
||||
<script type="text/javascript">
|
||||
var prefix = ctx + "exam/trainCoursewareCategory"
|
||||
$("#form-trainCoursewareCategory-edit").validate({
|
||||
rules:{
|
||||
xxxx:{
|
||||
required:true,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-trainCoursewareCategory-edit').serialize());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,179 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||
<meta charset="utf-8">
|
||||
<head th:include="include :: header"></head>
|
||||
<body class="gray-bg">
|
||||
|
||||
<div class="container-div">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 search-collapse">
|
||||
<form id="formId">
|
||||
<div class="select-list">
|
||||
<ul>
|
||||
<li>
|
||||
部门ID:<input type="text" name="deptId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
父部门id:<input type="text" name="parentId"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
祖级列表:<input type="text" name="parentIds"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
部门名称:<input type="text" name="name"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
显示顺序:<input type="text" name="orderNum"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
删除标志(0代表存在 2代表删除):<input type="text" name="delFlag"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建者:<input type="text" name="createBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
创建时间:<input type="text" name="createTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新者:<input type="text" name="updateBy"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
更新时间:<input type="text" name="updateTime"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
备注:<input type="text" name="remark"/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm hidden-xs" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="exam:trainCoursewareCategory:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary btn-edit disabled" onclick="$.operate.edit()" shiro:hasPermission="exam:trainCoursewareCategory:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger btn-del btn-del disabled" onclick="$.operate.removeAll()" shiro:hasPermission="exam:trainCoursewareCategory:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="exam:trainCoursewareCategory:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table" data-mobile-responsive="true"></table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div th:include="include :: footer"></div>
|
||||
<script th:inline="javascript">
|
||||
var editFlag = [[${@permission.hasPermi('exam:trainCoursewareCategory:edit')}]];
|
||||
var removeFlag = [[${@permission.hasPermi('exam:trainCoursewareCategory:remove')}]];
|
||||
var prefix = ctx + "exam/trainCoursewareCategory";
|
||||
|
||||
$(function() {
|
||||
var options = {
|
||||
url: prefix + "/list",
|
||||
createUrl: prefix + "/add",
|
||||
updateUrl: prefix + "/edit/{id}",
|
||||
removeUrl: prefix + "/remove",
|
||||
exportUrl: prefix + "/export",
|
||||
modalName: "课件分类",
|
||||
search: false,
|
||||
showExport: true,
|
||||
columns: [{
|
||||
checkbox: true
|
||||
},
|
||||
{
|
||||
field : 'id',
|
||||
title : '部门id',
|
||||
visible: false
|
||||
},
|
||||
{
|
||||
field : 'deptId',
|
||||
title : '部门ID',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'parentId',
|
||||
title : '父部门id',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'parentIds',
|
||||
title : '祖级列表',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'name',
|
||||
title : '部门名称',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'orderNum',
|
||||
title : '显示顺序',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'delFlag',
|
||||
title : '删除标志(0代表存在 2代表删除)',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createBy',
|
||||
title : '创建者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'createTime',
|
||||
title : '创建时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateBy',
|
||||
title : '更新者',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'updateTime',
|
||||
title : '更新时间',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
field : 'remark',
|
||||
title : '备注',
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
align: 'center',
|
||||
formatter: function(value, row, index) {
|
||||
var actions = [];
|
||||
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||
return actions.join('');
|
||||
}
|
||||
}]
|
||||
};
|
||||
$.table.init(options);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue