添加教育学习模块的班级学生管理功能
parent
3739eb9d40
commit
2777fe5ba0
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.edu.web.study;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.edu.api.study.ClassServiceI;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCO;
|
||||
import com.zcloud.edu.dto.study.ClassAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassUpdateCmd;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:11
|
||||
*/
|
||||
@Api(tags = "班级信息")
|
||||
@RequestMapping("/${application.gateway}/class")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class ClassController {
|
||||
private final ClassServiceI classService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<ClassCO> add(@Validated @RequestBody ClassAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return classService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<ClassCO> page(@RequestBody ClassPageQry qry) {
|
||||
return classService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<ClassCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<ClassCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<ClassCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new ClassCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
classService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
classService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody ClassUpdateCmd classUpdateCmd) {
|
||||
classService.edit(classUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.edu.web.study;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.edu.api.study.ClassCurriculumServiceI;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCurriculumCO;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumUpdateCmd;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:13
|
||||
*/
|
||||
@Api(tags = "班级信息")
|
||||
@RequestMapping("/${application.gateway}/classCurriculum")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumController {
|
||||
private final ClassCurriculumServiceI classCurriculumService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<ClassCurriculumCO> add(@Validated @RequestBody ClassCurriculumAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return classCurriculumService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<ClassCurriculumCO> page(@RequestBody ClassCurriculumPageQry qry) {
|
||||
return classCurriculumService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<ClassCurriculumCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<ClassCurriculumCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<ClassCurriculumCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new ClassCurriculumCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
classCurriculumService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
classCurriculumService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody ClassCurriculumUpdateCmd classCurriculumUpdateCmd) {
|
||||
classCurriculumService.edit(classCurriculumUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.edu.web.study;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.edu.api.study.ClassExamPaperServiceI;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassExamPaperCO;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperUpdateCmd;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Api(tags = "班级信息")
|
||||
@RequestMapping("/${application.gateway}/classExamPaper")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperController {
|
||||
private final ClassExamPaperServiceI classExamPaperService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<ClassExamPaperCO> add(@Validated @RequestBody ClassExamPaperAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return classExamPaperService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<ClassExamPaperCO> page(@RequestBody ClassExamPaperPageQry qry) {
|
||||
return classExamPaperService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<ClassExamPaperCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<ClassExamPaperCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<ClassExamPaperCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new ClassExamPaperCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
classExamPaperService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
classExamPaperService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody ClassExamPaperUpdateCmd classExamPaperUpdateCmd) {
|
||||
classExamPaperService.edit(classExamPaperUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.edu.web.study;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.edu.api.study.StudentServiceI;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentCO;
|
||||
import com.zcloud.edu.dto.study.StudentAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentUpdateCmd;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@Api(tags = "班级信息")
|
||||
@RequestMapping("/${application.gateway}/student")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class StudentController {
|
||||
private final StudentServiceI studentService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<StudentCO> add(@Validated @RequestBody StudentAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return studentService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<StudentCO> page(@RequestBody StudentPageQry qry) {
|
||||
return studentService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<StudentCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<StudentCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<StudentCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new StudentCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
studentService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
studentService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody StudentUpdateCmd studentUpdateCmd) {
|
||||
studentService.edit(studentUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.edu.web.study;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.edu.api.study.StudentExamRecordServiceI;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordCO;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordUpdateCmd;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
@Api(tags = "班级信息")
|
||||
@RequestMapping("/${application.gateway}/studentExamRecord")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordController {
|
||||
private final StudentExamRecordServiceI studentExamRecordService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<StudentExamRecordCO> add(@Validated @RequestBody StudentExamRecordAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return studentExamRecordService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<StudentExamRecordCO> page(@RequestBody StudentExamRecordPageQry qry) {
|
||||
return studentExamRecordService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<StudentExamRecordCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<StudentExamRecordCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<StudentExamRecordCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new StudentExamRecordCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
studentExamRecordService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
studentExamRecordService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody StudentExamRecordUpdateCmd studentExamRecordUpdateCmd) {
|
||||
studentExamRecordService.edit(studentExamRecordUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.edu.web.study;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.edu.api.study.StudentExamRecordItemServiceI;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordItemCO;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemUpdateCmd;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@Api(tags = "班级信息")
|
||||
@RequestMapping("/${application.gateway}/studentExamRecordItem")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordItemController {
|
||||
private final StudentExamRecordItemServiceI studentExamRecordItemService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<StudentExamRecordItemCO> add(@Validated @RequestBody StudentExamRecordItemAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return studentExamRecordItemService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<StudentExamRecordItemCO> page(@RequestBody StudentExamRecordItemPageQry qry) {
|
||||
return studentExamRecordItemService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<StudentExamRecordItemCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<StudentExamRecordItemCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<StudentExamRecordItemCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new StudentExamRecordItemCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
studentExamRecordItemService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
studentExamRecordItemService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody StudentExamRecordItemUpdateCmd studentExamRecordItemUpdateCmd) {
|
||||
studentExamRecordItemService.edit(studentExamRecordItemUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
package com.zcloud.edu.web.study;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.edu.api.study.StudentSignServiceI;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentSignCO;
|
||||
import com.zcloud.edu.dto.study.StudentSignAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentSignPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentSignUpdateCmd;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
@Api(tags = "班级信息")
|
||||
@RequestMapping("/${application.gateway}/studentSign")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class StudentSignController {
|
||||
private final StudentSignServiceI studentSignService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<StudentSignCO> add(@Validated @RequestBody StudentSignAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return studentSignService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<StudentSignCO> page(@RequestBody StudentSignPageQry qry) {
|
||||
return studentSignService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<StudentSignCO> listAll() {
|
||||
return MultiResponse.of(new ArrayList<StudentSignCO>());
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<StudentSignCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new StudentSignCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
studentSignService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
studentSignService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody StudentSignUpdateCmd studentSignUpdateCmd) {
|
||||
studentSignService.edit(studentSignUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.edu.command.convertor.study;
|
||||
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCO;
|
||||
import com.zcloud.edu.persistence.dataobject.study.ClassDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:11
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface ClassCoConvertor {
|
||||
/**
|
||||
* @param classDOs
|
||||
* @return
|
||||
*/
|
||||
List<ClassCO> converDOsToCOs(List<ClassDO> classDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.edu.command.convertor.study;
|
||||
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCurriculumCO;
|
||||
import com.zcloud.edu.persistence.dataobject.study.ClassCurriculumDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:13
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface ClassCurriculumCoConvertor {
|
||||
/**
|
||||
* @param classCurriculumDOs
|
||||
* @return
|
||||
*/
|
||||
List<ClassCurriculumCO> converDOsToCOs(List<ClassCurriculumDO> classCurriculumDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.edu.command.convertor.study;
|
||||
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassExamPaperCO;
|
||||
import com.zcloud.edu.persistence.dataobject.study.ClassExamPaperDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface ClassExamPaperCoConvertor {
|
||||
/**
|
||||
* @param classExamPaperDOs
|
||||
* @return
|
||||
*/
|
||||
List<ClassExamPaperCO> converDOsToCOs(List<ClassExamPaperDO> classExamPaperDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.edu.command.convertor.study;
|
||||
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentCO;
|
||||
import com.zcloud.edu.persistence.dataobject.study.StudentDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface StudentCoConvertor {
|
||||
/**
|
||||
* @param studentDOs
|
||||
* @return
|
||||
*/
|
||||
List<StudentCO> converDOsToCOs(List<StudentDO> studentDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.edu.command.convertor.study;
|
||||
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordCO;
|
||||
import com.zcloud.edu.persistence.dataobject.study.StudentExamRecordDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface StudentExamRecordCoConvertor {
|
||||
/**
|
||||
* @param studentExamRecordDOs
|
||||
* @return
|
||||
*/
|
||||
List<StudentExamRecordCO> converDOsToCOs(List<StudentExamRecordDO> studentExamRecordDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.edu.command.convertor.study;
|
||||
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordItemCO;
|
||||
import com.zcloud.edu.persistence.dataobject.study.StudentExamRecordItemDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface StudentExamRecordItemCoConvertor {
|
||||
/**
|
||||
* @param studentExamRecordItemDOs
|
||||
* @return
|
||||
*/
|
||||
List<StudentExamRecordItemCO> converDOsToCOs(List<StudentExamRecordItemDO> studentExamRecordItemDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.edu.command.convertor.study;
|
||||
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentSignCO;
|
||||
import com.zcloud.edu.persistence.dataobject.study.StudentSignDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface StudentSignCoConvertor {
|
||||
/**
|
||||
* @param studentSignDOs
|
||||
* @return
|
||||
*/
|
||||
List<StudentSignCO> converDOsToCOs(List<StudentSignDO> studentSignDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.edu.command.query.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.edu.command.convertor.study.ClassCurriculumCoConvertor;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCurriculumCO;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumPageQry;
|
||||
import com.zcloud.edu.persistence.dataobject.study.ClassCurriculumDO;
|
||||
import com.zcloud.edu.persistence.repository.study.ClassCurriculumRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumQueryExe {
|
||||
private final ClassCurriculumRepository classCurriculumRepository;
|
||||
private final ClassCurriculumCoConvertor classCurriculumCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param classCurriculumPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<ClassCurriculumCO> execute(ClassCurriculumPageQry classCurriculumPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(classCurriculumPageQry);
|
||||
PageResponse<ClassCurriculumDO> pageResponse = classCurriculumRepository.listPage(params);
|
||||
List<ClassCurriculumCO> examCenterCOS = classCurriculumCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.edu.command.query.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.edu.command.convertor.study.ClassExamPaperCoConvertor;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassExamPaperCO;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperPageQry;
|
||||
import com.zcloud.edu.persistence.dataobject.study.ClassExamPaperDO;
|
||||
import com.zcloud.edu.persistence.repository.study.ClassExamPaperRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperQueryExe {
|
||||
private final ClassExamPaperRepository classExamPaperRepository;
|
||||
private final ClassExamPaperCoConvertor classExamPaperCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param classExamPaperPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<ClassExamPaperCO> execute(ClassExamPaperPageQry classExamPaperPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(classExamPaperPageQry);
|
||||
PageResponse<ClassExamPaperDO> pageResponse = classExamPaperRepository.listPage(params);
|
||||
List<ClassExamPaperCO> examCenterCOS = classExamPaperCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.edu.command.query.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.edu.command.convertor.study.ClassCoConvertor;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCO;
|
||||
import com.zcloud.edu.dto.study.ClassPageQry;
|
||||
import com.zcloud.edu.persistence.dataobject.study.ClassDO;
|
||||
import com.zcloud.edu.persistence.repository.study.ClassRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:12
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassQueryExe {
|
||||
private final ClassRepository classRepository;
|
||||
private final ClassCoConvertor classCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param classPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<ClassCO> execute(ClassPageQry classPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(classPageQry);
|
||||
PageResponse<ClassDO> pageResponse = classRepository.listPage(params);
|
||||
List<ClassCO> examCenterCOS = classCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.edu.command.query.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.edu.command.convertor.study.StudentExamRecordItemCoConvertor;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordItemCO;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemPageQry;
|
||||
import com.zcloud.edu.persistence.dataobject.study.StudentExamRecordItemDO;
|
||||
import com.zcloud.edu.persistence.repository.study.StudentExamRecordItemRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:18
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordItemQueryExe {
|
||||
private final StudentExamRecordItemRepository studentExamRecordItemRepository;
|
||||
private final StudentExamRecordItemCoConvertor studentExamRecordItemCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param studentExamRecordItemPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<StudentExamRecordItemCO> execute(StudentExamRecordItemPageQry studentExamRecordItemPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(studentExamRecordItemPageQry);
|
||||
PageResponse<StudentExamRecordItemDO> pageResponse = studentExamRecordItemRepository.listPage(params);
|
||||
List<StudentExamRecordItemCO> examCenterCOS = studentExamRecordItemCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.edu.command.query.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.edu.command.convertor.study.StudentExamRecordCoConvertor;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordCO;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordPageQry;
|
||||
import com.zcloud.edu.persistence.dataobject.study.StudentExamRecordDO;
|
||||
import com.zcloud.edu.persistence.repository.study.StudentExamRecordRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordQueryExe {
|
||||
private final StudentExamRecordRepository studentExamRecordRepository;
|
||||
private final StudentExamRecordCoConvertor studentExamRecordCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param studentExamRecordPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<StudentExamRecordCO> execute(StudentExamRecordPageQry studentExamRecordPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(studentExamRecordPageQry);
|
||||
PageResponse<StudentExamRecordDO> pageResponse = studentExamRecordRepository.listPage(params);
|
||||
List<StudentExamRecordCO> examCenterCOS = studentExamRecordCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.edu.command.query.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.edu.command.convertor.study.StudentCoConvertor;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentCO;
|
||||
import com.zcloud.edu.dto.study.StudentPageQry;
|
||||
import com.zcloud.edu.persistence.dataobject.study.StudentDO;
|
||||
import com.zcloud.edu.persistence.repository.study.StudentRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentQueryExe {
|
||||
private final StudentRepository studentRepository;
|
||||
private final StudentCoConvertor studentCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param studentPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<StudentCO> execute(StudentPageQry studentPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(studentPageQry);
|
||||
PageResponse<StudentDO> pageResponse = studentRepository.listPage(params);
|
||||
List<StudentCO> examCenterCOS = studentCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package com.zcloud.edu.command.query.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.edu.command.convertor.study.StudentSignCoConvertor;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentSignCO;
|
||||
import com.zcloud.edu.dto.study.StudentSignPageQry;
|
||||
import com.zcloud.edu.persistence.dataobject.study.StudentSignDO;
|
||||
import com.zcloud.edu.persistence.repository.study.StudentSignRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentSignQueryExe {
|
||||
private final StudentSignRepository studentSignRepository;
|
||||
private final StudentSignCoConvertor studentSignCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param studentSignPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<StudentSignCO> execute(StudentSignPageQry studentSignPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(studentSignPageQry);
|
||||
PageResponse<StudentSignDO> pageResponse = studentSignRepository.listPage(params);
|
||||
List<StudentSignCO> examCenterCOS = studentSignCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassGateway;
|
||||
import com.zcloud.edu.domain.model.study.ClassE;
|
||||
import com.zcloud.edu.dto.study.ClassAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:11
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassAddExe {
|
||||
private final ClassGateway classGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(ClassAddCmd cmd) {
|
||||
ClassE classE = new ClassE();
|
||||
BeanUtils.copyProperties(cmd, classE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = classGateway.add(classE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassCurriculumGateway;
|
||||
import com.zcloud.edu.domain.model.study.ClassCurriculumE;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:13
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumAddExe {
|
||||
private final ClassCurriculumGateway classCurriculumGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(ClassCurriculumAddCmd cmd) {
|
||||
ClassCurriculumE classCurriculumE = new ClassCurriculumE();
|
||||
BeanUtils.copyProperties(cmd, classCurriculumE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = classCurriculumGateway.add(classCurriculumE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassCurriculumGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumRemoveExe {
|
||||
private final ClassCurriculumGateway classCurriculumGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = classCurriculumGateway.deletedClassCurriculumById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = classCurriculumGateway.deletedClassCurriculumByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassCurriculumGateway;
|
||||
import com.zcloud.edu.domain.model.study.ClassCurriculumE;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumUpdateExe {
|
||||
private final ClassCurriculumGateway classCurriculumGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(ClassCurriculumUpdateCmd classCurriculumUpdateCmd) {
|
||||
ClassCurriculumE classCurriculumE = new ClassCurriculumE();
|
||||
BeanUtils.copyProperties(classCurriculumUpdateCmd, classCurriculumE);
|
||||
boolean res = classCurriculumGateway.update(classCurriculumE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassExamPaperGateway;
|
||||
import com.zcloud.edu.domain.model.study.ClassExamPaperE;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperAddExe {
|
||||
private final ClassExamPaperGateway classExamPaperGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(ClassExamPaperAddCmd cmd) {
|
||||
ClassExamPaperE classExamPaperE = new ClassExamPaperE();
|
||||
BeanUtils.copyProperties(cmd, classExamPaperE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = classExamPaperGateway.add(classExamPaperE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassExamPaperGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperRemoveExe {
|
||||
private final ClassExamPaperGateway classExamPaperGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = classExamPaperGateway.deletedClassExamPaperById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = classExamPaperGateway.deletedClassExamPaperByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassExamPaperGateway;
|
||||
import com.zcloud.edu.domain.model.study.ClassExamPaperE;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:22
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperUpdateExe {
|
||||
private final ClassExamPaperGateway classExamPaperGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(ClassExamPaperUpdateCmd classExamPaperUpdateCmd) {
|
||||
ClassExamPaperE classExamPaperE = new ClassExamPaperE();
|
||||
BeanUtils.copyProperties(classExamPaperUpdateCmd, classExamPaperE);
|
||||
boolean res = classExamPaperGateway.update(classExamPaperE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:12
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassRemoveExe {
|
||||
private final ClassGateway classGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = classGateway.deletedClassById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = classGateway.deletedClassByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.ClassGateway;
|
||||
import com.zcloud.edu.domain.model.study.ClassE;
|
||||
import com.zcloud.edu.dto.study.ClassUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:12
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class ClassUpdateExe {
|
||||
private final ClassGateway classGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(ClassUpdateCmd classUpdateCmd) {
|
||||
ClassE classE = new ClassE();
|
||||
BeanUtils.copyProperties(classUpdateCmd, classE);
|
||||
boolean res = classGateway.update(classE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentGateway;
|
||||
import com.zcloud.edu.domain.model.study.StudentE;
|
||||
import com.zcloud.edu.dto.study.StudentAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentAddExe {
|
||||
private final StudentGateway studentGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(StudentAddCmd cmd) {
|
||||
StudentE studentE = new StudentE();
|
||||
BeanUtils.copyProperties(cmd, studentE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = studentGateway.add(studentE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentExamRecordGateway;
|
||||
import com.zcloud.edu.domain.model.study.StudentExamRecordE;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordAddExe {
|
||||
private final StudentExamRecordGateway studentExamRecordGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(StudentExamRecordAddCmd cmd) {
|
||||
StudentExamRecordE studentExamRecordE = new StudentExamRecordE();
|
||||
BeanUtils.copyProperties(cmd, studentExamRecordE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = studentExamRecordGateway.add(studentExamRecordE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentExamRecordItemGateway;
|
||||
import com.zcloud.edu.domain.model.study.StudentExamRecordItemE;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordItemAddExe {
|
||||
private final StudentExamRecordItemGateway studentExamRecordItemGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(StudentExamRecordItemAddCmd cmd) {
|
||||
StudentExamRecordItemE studentExamRecordItemE = new StudentExamRecordItemE();
|
||||
BeanUtils.copyProperties(cmd, studentExamRecordItemE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = studentExamRecordItemGateway.add(studentExamRecordItemE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentExamRecordItemGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordItemRemoveExe {
|
||||
private final StudentExamRecordItemGateway studentExamRecordItemGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = studentExamRecordItemGateway.deletedStudentExamRecordItemById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = studentExamRecordItemGateway.deletedStudentExamRecordItemByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentExamRecordItemGateway;
|
||||
import com.zcloud.edu.domain.model.study.StudentExamRecordItemE;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordItemUpdateExe {
|
||||
private final StudentExamRecordItemGateway studentExamRecordItemGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(StudentExamRecordItemUpdateCmd studentExamRecordItemUpdateCmd) {
|
||||
StudentExamRecordItemE studentExamRecordItemE = new StudentExamRecordItemE();
|
||||
BeanUtils.copyProperties(studentExamRecordItemUpdateCmd, studentExamRecordItemE);
|
||||
boolean res = studentExamRecordItemGateway.update(studentExamRecordItemE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentExamRecordGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordRemoveExe {
|
||||
private final StudentExamRecordGateway studentExamRecordGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = studentExamRecordGateway.deletedStudentExamRecordById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = studentExamRecordGateway.deletedStudentExamRecordByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentExamRecordGateway;
|
||||
import com.zcloud.edu.domain.model.study.StudentExamRecordE;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordUpdateExe {
|
||||
private final StudentExamRecordGateway studentExamRecordGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(StudentExamRecordUpdateCmd studentExamRecordUpdateCmd) {
|
||||
StudentExamRecordE studentExamRecordE = new StudentExamRecordE();
|
||||
BeanUtils.copyProperties(studentExamRecordUpdateCmd, studentExamRecordE);
|
||||
boolean res = studentExamRecordGateway.update(studentExamRecordE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentRemoveExe {
|
||||
private final StudentGateway studentGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = studentGateway.deletedStudentById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = studentGateway.deletedStudentByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentSignGateway;
|
||||
import com.zcloud.edu.domain.model.study.StudentSignE;
|
||||
import com.zcloud.edu.dto.study.StudentSignAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentSignAddExe {
|
||||
private final StudentSignGateway studentSignGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(StudentSignAddCmd cmd) {
|
||||
StudentSignE studentSignE = new StudentSignE();
|
||||
BeanUtils.copyProperties(cmd, studentSignE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = studentSignGateway.add(studentSignE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentSignGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentSignRemoveExe {
|
||||
private final StudentSignGateway studentSignGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = studentSignGateway.deletedStudentSignById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = studentSignGateway.deletedStudentSignByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentSignGateway;
|
||||
import com.zcloud.edu.domain.model.study.StudentSignE;
|
||||
import com.zcloud.edu.dto.study.StudentSignUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentSignUpdateExe {
|
||||
private final StudentSignGateway studentSignGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(StudentSignUpdateCmd studentSignUpdateCmd) {
|
||||
StudentSignE studentSignE = new StudentSignE();
|
||||
BeanUtils.copyProperties(studentSignUpdateCmd, studentSignE);
|
||||
boolean res = studentSignGateway.update(studentSignE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.edu.command.study;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.edu.domain.gateway.study.StudentGateway;
|
||||
import com.zcloud.edu.domain.model.study.StudentE;
|
||||
import com.zcloud.edu.dto.study.StudentUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class StudentUpdateExe {
|
||||
private final StudentGateway studentGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(StudentUpdateCmd studentUpdateCmd) {
|
||||
StudentE studentE = new StudentE();
|
||||
BeanUtils.copyProperties(studentUpdateCmd, studentE);
|
||||
boolean res = studentGateway.update(studentE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.edu.service.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.api.study.ClassCurriculumServiceI;
|
||||
import com.zcloud.edu.command.query.study.ClassCurriculumQueryExe;
|
||||
import com.zcloud.edu.command.study.ClassCurriculumAddExe;
|
||||
import com.zcloud.edu.command.study.ClassCurriculumRemoveExe;
|
||||
import com.zcloud.edu.command.study.ClassCurriculumUpdateExe;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCurriculumCO;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumServiceImpl implements ClassCurriculumServiceI {
|
||||
private final ClassCurriculumAddExe classCurriculumAddExe;
|
||||
private final ClassCurriculumUpdateExe classCurriculumUpdateExe;
|
||||
private final ClassCurriculumRemoveExe classCurriculumRemoveExe;
|
||||
private final ClassCurriculumQueryExe classCurriculumQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<ClassCurriculumCO> listPage(ClassCurriculumPageQry qry) {
|
||||
|
||||
return classCurriculumQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(ClassCurriculumAddCmd cmd) {
|
||||
|
||||
classCurriculumAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(ClassCurriculumUpdateCmd classCurriculumUpdateCmd) {
|
||||
classCurriculumUpdateExe.execute(classCurriculumUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
classCurriculumRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
classCurriculumRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.edu.service.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.api.study.ClassExamPaperServiceI;
|
||||
import com.zcloud.edu.command.query.study.ClassExamPaperQueryExe;
|
||||
import com.zcloud.edu.command.study.ClassExamPaperAddExe;
|
||||
import com.zcloud.edu.command.study.ClassExamPaperRemoveExe;
|
||||
import com.zcloud.edu.command.study.ClassExamPaperUpdateExe;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassExamPaperCO;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperServiceImpl implements ClassExamPaperServiceI {
|
||||
private final ClassExamPaperAddExe classExamPaperAddExe;
|
||||
private final ClassExamPaperUpdateExe classExamPaperUpdateExe;
|
||||
private final ClassExamPaperRemoveExe classExamPaperRemoveExe;
|
||||
private final ClassExamPaperQueryExe classExamPaperQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<ClassExamPaperCO> listPage(ClassExamPaperPageQry qry) {
|
||||
|
||||
return classExamPaperQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(ClassExamPaperAddCmd cmd) {
|
||||
|
||||
classExamPaperAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(ClassExamPaperUpdateCmd classExamPaperUpdateCmd) {
|
||||
classExamPaperUpdateExe.execute(classExamPaperUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
classExamPaperRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
classExamPaperRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.edu.service.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.api.study.ClassServiceI;
|
||||
import com.zcloud.edu.command.query.study.ClassQueryExe;
|
||||
import com.zcloud.edu.command.study.ClassAddExe;
|
||||
import com.zcloud.edu.command.study.ClassRemoveExe;
|
||||
import com.zcloud.edu.command.study.ClassUpdateExe;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCO;
|
||||
import com.zcloud.edu.dto.study.ClassAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:12
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class ClassServiceImpl implements ClassServiceI {
|
||||
private final ClassAddExe classAddExe;
|
||||
private final ClassUpdateExe classUpdateExe;
|
||||
private final ClassRemoveExe classRemoveExe;
|
||||
private final ClassQueryExe classQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<ClassCO> listPage(ClassPageQry qry) {
|
||||
|
||||
return classQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(ClassAddCmd cmd) {
|
||||
|
||||
classAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(ClassUpdateCmd classUpdateCmd) {
|
||||
classUpdateExe.execute(classUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
classRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
classRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.edu.service.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.api.study.StudentExamRecordItemServiceI;
|
||||
import com.zcloud.edu.command.query.study.StudentExamRecordItemQueryExe;
|
||||
import com.zcloud.edu.command.study.StudentExamRecordItemAddExe;
|
||||
import com.zcloud.edu.command.study.StudentExamRecordItemRemoveExe;
|
||||
import com.zcloud.edu.command.study.StudentExamRecordItemUpdateExe;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordItemCO;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordItemServiceImpl implements StudentExamRecordItemServiceI {
|
||||
private final StudentExamRecordItemAddExe studentExamRecordItemAddExe;
|
||||
private final StudentExamRecordItemUpdateExe studentExamRecordItemUpdateExe;
|
||||
private final StudentExamRecordItemRemoveExe studentExamRecordItemRemoveExe;
|
||||
private final StudentExamRecordItemQueryExe studentExamRecordItemQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<StudentExamRecordItemCO> listPage(StudentExamRecordItemPageQry qry) {
|
||||
|
||||
return studentExamRecordItemQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(StudentExamRecordItemAddCmd cmd) {
|
||||
|
||||
studentExamRecordItemAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(StudentExamRecordItemUpdateCmd studentExamRecordItemUpdateCmd) {
|
||||
studentExamRecordItemUpdateExe.execute(studentExamRecordItemUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
studentExamRecordItemRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
studentExamRecordItemRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.edu.service.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.api.study.StudentExamRecordServiceI;
|
||||
import com.zcloud.edu.command.query.study.StudentExamRecordQueryExe;
|
||||
import com.zcloud.edu.command.study.StudentExamRecordAddExe;
|
||||
import com.zcloud.edu.command.study.StudentExamRecordRemoveExe;
|
||||
import com.zcloud.edu.command.study.StudentExamRecordUpdateExe;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordCO;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordServiceImpl implements StudentExamRecordServiceI {
|
||||
private final StudentExamRecordAddExe studentExamRecordAddExe;
|
||||
private final StudentExamRecordUpdateExe studentExamRecordUpdateExe;
|
||||
private final StudentExamRecordRemoveExe studentExamRecordRemoveExe;
|
||||
private final StudentExamRecordQueryExe studentExamRecordQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<StudentExamRecordCO> listPage(StudentExamRecordPageQry qry) {
|
||||
|
||||
return studentExamRecordQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(StudentExamRecordAddCmd cmd) {
|
||||
|
||||
studentExamRecordAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(StudentExamRecordUpdateCmd studentExamRecordUpdateCmd) {
|
||||
studentExamRecordUpdateExe.execute(studentExamRecordUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
studentExamRecordRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
studentExamRecordRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.edu.service.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.api.study.StudentServiceI;
|
||||
import com.zcloud.edu.command.query.study.StudentQueryExe;
|
||||
import com.zcloud.edu.command.study.StudentAddExe;
|
||||
import com.zcloud.edu.command.study.StudentRemoveExe;
|
||||
import com.zcloud.edu.command.study.StudentUpdateExe;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentCO;
|
||||
import com.zcloud.edu.dto.study.StudentAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class StudentServiceImpl implements StudentServiceI {
|
||||
private final StudentAddExe studentAddExe;
|
||||
private final StudentUpdateExe studentUpdateExe;
|
||||
private final StudentRemoveExe studentRemoveExe;
|
||||
private final StudentQueryExe studentQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<StudentCO> listPage(StudentPageQry qry) {
|
||||
|
||||
return studentQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(StudentAddCmd cmd) {
|
||||
|
||||
studentAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(StudentUpdateCmd studentUpdateCmd) {
|
||||
studentUpdateExe.execute(studentUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
studentRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
studentRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.edu.service.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.api.study.StudentSignServiceI;
|
||||
import com.zcloud.edu.command.query.study.StudentSignQueryExe;
|
||||
import com.zcloud.edu.command.study.StudentSignAddExe;
|
||||
import com.zcloud.edu.command.study.StudentSignRemoveExe;
|
||||
import com.zcloud.edu.command.study.StudentSignUpdateExe;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentSignCO;
|
||||
import com.zcloud.edu.dto.study.StudentSignAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentSignPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentSignUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class StudentSignServiceImpl implements StudentSignServiceI {
|
||||
private final StudentSignAddExe studentSignAddExe;
|
||||
private final StudentSignUpdateExe studentSignUpdateExe;
|
||||
private final StudentSignRemoveExe studentSignRemoveExe;
|
||||
private final StudentSignQueryExe studentSignQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<StudentSignCO> listPage(StudentSignPageQry qry) {
|
||||
|
||||
return studentSignQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(StudentSignAddCmd cmd) {
|
||||
|
||||
studentSignAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(StudentSignUpdateCmd studentSignUpdateCmd) {
|
||||
studentSignUpdateExe.execute(studentSignUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
studentSignRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
studentSignRemoveExe.execute(ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.edu.api.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCurriculumCO;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassCurriculumUpdateCmd;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
public interface ClassCurriculumServiceI {
|
||||
PageResponse<ClassCurriculumCO> listPage(ClassCurriculumPageQry qry);
|
||||
|
||||
SingleResponse<ClassCurriculumCO> add(ClassCurriculumAddCmd cmd);
|
||||
|
||||
void edit(ClassCurriculumUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.edu.api.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassExamPaperCO;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassExamPaperUpdateCmd;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
public interface ClassExamPaperServiceI {
|
||||
PageResponse<ClassExamPaperCO> listPage(ClassExamPaperPageQry qry);
|
||||
|
||||
SingleResponse<ClassExamPaperCO> add(ClassExamPaperAddCmd cmd);
|
||||
|
||||
void edit(ClassExamPaperUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.edu.api.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.dto.clientobject.study.ClassCO;
|
||||
import com.zcloud.edu.dto.study.ClassAddCmd;
|
||||
import com.zcloud.edu.dto.study.ClassPageQry;
|
||||
import com.zcloud.edu.dto.study.ClassUpdateCmd;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:12
|
||||
*/
|
||||
public interface ClassServiceI {
|
||||
PageResponse<ClassCO> listPage(ClassPageQry qry);
|
||||
|
||||
SingleResponse<ClassCO> add(ClassAddCmd cmd);
|
||||
|
||||
void edit(ClassUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.edu.api.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordItemCO;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordItemUpdateCmd;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
public interface StudentExamRecordItemServiceI {
|
||||
PageResponse<StudentExamRecordItemCO> listPage(StudentExamRecordItemPageQry qry);
|
||||
|
||||
SingleResponse<StudentExamRecordItemCO> add(StudentExamRecordItemAddCmd cmd);
|
||||
|
||||
void edit(StudentExamRecordItemUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.edu.api.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentExamRecordCO;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentExamRecordUpdateCmd;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
public interface StudentExamRecordServiceI {
|
||||
PageResponse<StudentExamRecordCO> listPage(StudentExamRecordPageQry qry);
|
||||
|
||||
SingleResponse<StudentExamRecordCO> add(StudentExamRecordAddCmd cmd);
|
||||
|
||||
void edit(StudentExamRecordUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.edu.api.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentCO;
|
||||
import com.zcloud.edu.dto.study.StudentAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentUpdateCmd;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
public interface StudentServiceI {
|
||||
PageResponse<StudentCO> listPage(StudentPageQry qry);
|
||||
|
||||
SingleResponse<StudentCO> add(StudentAddCmd cmd);
|
||||
|
||||
void edit(StudentUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
package com.zcloud.edu.api.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.edu.dto.clientobject.study.StudentSignCO;
|
||||
import com.zcloud.edu.dto.study.StudentSignAddCmd;
|
||||
import com.zcloud.edu.dto.study.StudentSignPageQry;
|
||||
import com.zcloud.edu.dto.study.StudentSignUpdateCmd;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
public interface StudentSignServiceI {
|
||||
PageResponse<StudentSignCO> listPage(StudentSignPageQry qry);
|
||||
|
||||
SingleResponse<StudentSignCO> add(StudentSignAddCmd cmd);
|
||||
|
||||
void edit(StudentSignUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,104 @@
|
|||
package com.zcloud.edu.dto.clientobject.study;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:11
|
||||
*/
|
||||
@Data
|
||||
public class ClassCO extends ClientObject {
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String classId;
|
||||
//班级名称
|
||||
@ApiModelProperty(value = "班级名称")
|
||||
private String name;
|
||||
//培训日期 开始时间
|
||||
@ApiModelProperty(value = "培训日期 开始时间")
|
||||
private String startTime;
|
||||
//培训日期 结束日期
|
||||
@ApiModelProperty(value = "培训日期 结束日期")
|
||||
private String endTime;
|
||||
//培训教师id
|
||||
@ApiModelProperty(value = "培训教师id")
|
||||
private Long teacherId;
|
||||
//教师名称
|
||||
@ApiModelProperty(value = "教师名称")
|
||||
private String teacherName;
|
||||
//培训行业类型
|
||||
@ApiModelProperty(value = "培训行业类型")
|
||||
private String trainType;
|
||||
//培训行业类型名称
|
||||
@ApiModelProperty(value = "培训行业类型名称")
|
||||
private String trainTypeName;
|
||||
//培训地点
|
||||
@ApiModelProperty(value = "培训地点")
|
||||
private String trainingLocation;
|
||||
//机构ID
|
||||
@ApiModelProperty(value = "机构ID")
|
||||
private String corpinfoId;
|
||||
//状态:1-未申请 2-待开班 3- 培训中 4-培训结束
|
||||
@ApiModelProperty(value = "状态:1-未申请 2-待开班 3- 培训中 4-培训结束 ")
|
||||
private String state;
|
||||
//培训有效期日期 开始时间
|
||||
@ApiModelProperty(value = "培训有效期日期 开始时间")
|
||||
private String validStartTime;
|
||||
//培训有效期日期 结束时间
|
||||
@ApiModelProperty(value = "培训有效期日期 结束时间")
|
||||
private String validEndTime;
|
||||
//1考试0不考试
|
||||
@ApiModelProperty(value = "1考试0不考试")
|
||||
private Integer examination;
|
||||
//考试次数只有考试时候有用
|
||||
@ApiModelProperty(value = "考试次数只有考试时候有用")
|
||||
private Integer numberofexams;
|
||||
//删除标识true false
|
||||
@ApiModelProperty(value = "删除标识true false")
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
@ApiModelProperty(value = "更新人姓名")
|
||||
private String updateName;
|
||||
//租户id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
@ApiModelProperty(value = "单位id")
|
||||
private Long orgId;
|
||||
//版本
|
||||
@ApiModelProperty(value = "版本")
|
||||
private Integer version;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private Long createId;
|
||||
//修改人id
|
||||
@ApiModelProperty(value = "修改人id")
|
||||
private Long updateId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
package com.zcloud.edu.dto.clientobject.study;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:13
|
||||
*/
|
||||
@Data
|
||||
public class ClassCurriculumCO extends ClientObject {
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String classCurriculumId;
|
||||
//课程id
|
||||
@ApiModelProperty(value = "课程id")
|
||||
private String curriculumId;
|
||||
//班级id
|
||||
@ApiModelProperty(value = "班级id")
|
||||
private String classId;
|
||||
//课程名称
|
||||
@ApiModelProperty(value = "课程名称")
|
||||
private String curriculumName;
|
||||
//删除标识true false
|
||||
@ApiModelProperty(value = "删除标识true false")
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
@ApiModelProperty(value = "更新人姓名")
|
||||
private String updateName;
|
||||
//租户id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
@ApiModelProperty(value = "单位id")
|
||||
private Long orgId;
|
||||
//版本
|
||||
@ApiModelProperty(value = "版本")
|
||||
private Integer version;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private Long createId;
|
||||
//修改人id
|
||||
@ApiModelProperty(value = "修改人id")
|
||||
private Long updateId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,83 @@
|
|||
package com.zcloud.edu.dto.clientobject.study;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Data
|
||||
public class ClassExamPaperCO extends ClientObject {
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String classExamPaperId;
|
||||
//班级id
|
||||
@ApiModelProperty(value = "班级id")
|
||||
private String classId;
|
||||
//试卷id
|
||||
@ApiModelProperty(value = "试卷id")
|
||||
private String examPaperId;
|
||||
//企业ID
|
||||
@ApiModelProperty(value = "企业ID")
|
||||
private Long corpinfoId;
|
||||
//试卷名称
|
||||
@ApiModelProperty(value = "试卷名称")
|
||||
private String examName;
|
||||
//试卷总分数
|
||||
@ApiModelProperty(value = "试卷总分数")
|
||||
private String examScore;
|
||||
//合格分数
|
||||
@ApiModelProperty(value = "合格分数")
|
||||
private String passScore;
|
||||
//考试时长(分钟)
|
||||
@ApiModelProperty(value = "考试时长(分钟)")
|
||||
private String examTime;
|
||||
//删除标识true false
|
||||
@ApiModelProperty(value = "删除标识true false")
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
@ApiModelProperty(value = "更新人姓名")
|
||||
private String updateName;
|
||||
//租户id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
@ApiModelProperty(value = "单位id")
|
||||
private Long orgId;
|
||||
//版本
|
||||
@ApiModelProperty(value = "版本")
|
||||
private Integer version;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private Long createId;
|
||||
//修改人id
|
||||
@ApiModelProperty(value = "修改人id")
|
||||
private Long updateId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,131 @@
|
|||
package com.zcloud.edu.dto.clientobject.study;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@Data
|
||||
public class StudentCO extends ClientObject {
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String studentId;
|
||||
private Integer userId;
|
||||
//班级id
|
||||
@ApiModelProperty(value = "班级id")
|
||||
private String classId;
|
||||
private String name;
|
||||
private Long corpinfoId;
|
||||
//手机号
|
||||
@ApiModelProperty(value = "手机号")
|
||||
private String phone;
|
||||
//身份证号
|
||||
@ApiModelProperty(value = "身份证号")
|
||||
private String userIdCard;
|
||||
//民族编码
|
||||
@ApiModelProperty(value = "民族编码")
|
||||
private String nation;
|
||||
//民族名称
|
||||
@ApiModelProperty(value = "民族名称")
|
||||
private String nationName;
|
||||
//人脸照片url
|
||||
@ApiModelProperty(value = "人脸照片url")
|
||||
private String userAvatarUrl;
|
||||
//现住址
|
||||
@ApiModelProperty(value = "现住址")
|
||||
private String currentAddress;
|
||||
//户口所在地
|
||||
@ApiModelProperty(value = "户口所在地")
|
||||
private String locationAddress;
|
||||
//文化程度 数据字典
|
||||
@ApiModelProperty(value = "文化程度 数据字典")
|
||||
private String culturalLevel;
|
||||
//文化程度名称
|
||||
@ApiModelProperty(value = "文化程度名称")
|
||||
private String culturalLevelName;
|
||||
//婚姻状态
|
||||
@ApiModelProperty(value = "婚姻状态")
|
||||
private String maritalStatus;
|
||||
//婚姻状态名称
|
||||
@ApiModelProperty(value = "婚姻状态名称")
|
||||
private String maritalStatusName;
|
||||
//政治面貌
|
||||
@ApiModelProperty(value = "政治面貌")
|
||||
private String politicalAffiliation;
|
||||
//政治面貌名称
|
||||
@ApiModelProperty(value = "政治面貌名称")
|
||||
private String politicalAffiliationName;
|
||||
//岗位名称
|
||||
@ApiModelProperty(value = "岗位名称")
|
||||
private String postName;
|
||||
//签到状态 0-未签到 1-已签到
|
||||
@ApiModelProperty(value = "签到状态 0-未签到 1-已签到")
|
||||
private Integer signFlag;
|
||||
//考试签到状态 0-未签到 1-已签到
|
||||
@ApiModelProperty(value = "考试签到状态 0-未签到 1-已签到")
|
||||
private Integer examSignFlag;
|
||||
//学员状态 0-未学习 1-已签到 2-考试通过 3-未签到 4-考试未通过
|
||||
@ApiModelProperty(value = "学员状态 0-未学习 1-已签到 2-考试通过 3-未签到 4-考试未通过")
|
||||
private Integer state;
|
||||
//相关方id集合
|
||||
@ApiModelProperty(value = "相关方id集合")
|
||||
private String interestedIds;
|
||||
//相关方名称集合
|
||||
@ApiModelProperty(value = "相关方名称集合")
|
||||
private String interestedNames;
|
||||
//项目id集合
|
||||
@ApiModelProperty(value = "项目id集合")
|
||||
private String projectIds;
|
||||
//项目名称集合
|
||||
@ApiModelProperty(value = "项目名称集合")
|
||||
private String projectNames;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
//删除标识true false
|
||||
@ApiModelProperty(value = "删除标识true false")
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
@ApiModelProperty(value = "更新人姓名")
|
||||
private String updateName;
|
||||
//租户id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
@ApiModelProperty(value = "单位id")
|
||||
private Long orgId;
|
||||
//版本
|
||||
@ApiModelProperty(value = "版本")
|
||||
private Integer version;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private Long createId;
|
||||
//修改人id
|
||||
@ApiModelProperty(value = "修改人id")
|
||||
private Long updateId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,101 @@
|
|||
package com.zcloud.edu.dto.clientobject.study;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
@Data
|
||||
public class StudentExamRecordCO extends ClientObject {
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String studentExamRecordId;
|
||||
//用户id
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
//学员id
|
||||
@ApiModelProperty(value = "学员id")
|
||||
private String studentId;
|
||||
//班级id
|
||||
@ApiModelProperty(value = "班级id")
|
||||
private String classId;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private Long corpinfoId;
|
||||
//班级-试卷 表ID
|
||||
@ApiModelProperty(value = "班级-试卷 表ID")
|
||||
private String classExamPaperId;
|
||||
//试卷id
|
||||
@ApiModelProperty(value = "试卷id")
|
||||
private String examPaperId;
|
||||
//考试时间
|
||||
@ApiModelProperty(value = "考试时间")
|
||||
private String examTimeBegin;
|
||||
//考试交卷时间
|
||||
@ApiModelProperty(value = "考试交卷时间")
|
||||
private String examTimeEnd;
|
||||
//考试总题数
|
||||
@ApiModelProperty(value = "考试总题数")
|
||||
private Integer examQuestionNum;
|
||||
//考试对题数
|
||||
@ApiModelProperty(value = "考试对题数")
|
||||
private Integer examQuestionRight;
|
||||
//考试错题数
|
||||
@ApiModelProperty(value = "考试错题数")
|
||||
private Integer examQuestionWrong;
|
||||
//考试得分
|
||||
@ApiModelProperty(value = "考试得分")
|
||||
private Object examScore;
|
||||
//考试结果 0 -不通过 1-通过
|
||||
@ApiModelProperty(value = "考试结果 0 -不通过 1-通过")
|
||||
private Integer result;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
//删除标识true false
|
||||
@ApiModelProperty(value = "删除标识true false")
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
@ApiModelProperty(value = "更新人姓名")
|
||||
private String updateName;
|
||||
//租户id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
@ApiModelProperty(value = "单位id")
|
||||
private Long orgId;
|
||||
//版本
|
||||
@ApiModelProperty(value = "版本")
|
||||
private Integer version;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private Long createId;
|
||||
//修改人id
|
||||
@ApiModelProperty(value = "修改人id")
|
||||
private Long updateId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,77 @@
|
|||
package com.zcloud.edu.dto.clientobject.study;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@Data
|
||||
public class StudentExamRecordItemCO extends ClientObject {
|
||||
private Long id;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String studentExamRecordItemId;
|
||||
//考试记录id
|
||||
@ApiModelProperty(value = "考试记录id")
|
||||
private String studentExamRecordId;
|
||||
//学员id
|
||||
@ApiModelProperty(value = "学员id")
|
||||
private String studentId;
|
||||
//习题ID
|
||||
@ApiModelProperty(value = "习题ID")
|
||||
private String questionId;
|
||||
//学员答案
|
||||
@ApiModelProperty(value = "学员答案")
|
||||
private String answer;
|
||||
//正确答案
|
||||
@ApiModelProperty(value = "正确答案")
|
||||
private String answerRight;
|
||||
//删除标识true false
|
||||
@ApiModelProperty(value = "删除标识true false")
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
@ApiModelProperty(value = "更新人姓名")
|
||||
private String updateName;
|
||||
//租户id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
@ApiModelProperty(value = "单位id")
|
||||
private Long orgId;
|
||||
//版本
|
||||
@ApiModelProperty(value = "版本")
|
||||
private Integer version;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private Long createId;
|
||||
//修改人id
|
||||
@ApiModelProperty(value = "修改人id")
|
||||
private Long updateId;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,80 @@
|
|||
package com.zcloud.edu.dto.clientobject.study;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
@Data
|
||||
public class StudentSignCO extends ClientObject {
|
||||
private Long id;
|
||||
//学员id
|
||||
@ApiModelProperty(value = "学员id")
|
||||
private String studentId;
|
||||
//业务id
|
||||
@ApiModelProperty(value = "业务id")
|
||||
private String studentSignId;
|
||||
//班级id
|
||||
@ApiModelProperty(value = "班级id")
|
||||
private String classId;
|
||||
//用户id
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private Long corpinfoId;
|
||||
//签到人脸路径
|
||||
@ApiModelProperty(value = "签到人脸路径")
|
||||
private String faceUrl;
|
||||
//签到类型 1-打卡签到 2-人脸签到
|
||||
@ApiModelProperty(value = "签到类型 1-打卡签到 2-人脸签到")
|
||||
private Integer type;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
//删除标识true false
|
||||
@ApiModelProperty(value = "删除标识true false")
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
@ApiModelProperty(value = "创建人姓名")
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
@ApiModelProperty(value = "更新人姓名")
|
||||
private String updateName;
|
||||
//租户id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
@ApiModelProperty(value = "单位id")
|
||||
private Long orgId;
|
||||
//版本
|
||||
@ApiModelProperty(value = "版本")
|
||||
private Integer version;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private Long createId;
|
||||
//修改人id
|
||||
@ApiModelProperty(value = "修改人id")
|
||||
private Long updateId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,85 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:11
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ClassAddCmd extends Command {
|
||||
@ApiModelProperty(value = "业务id", name = "classId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String classId;
|
||||
|
||||
@ApiModelProperty(value = "班级名称", name = "name", required = true)
|
||||
@NotEmpty(message = "班级名称不能为空")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "培训日期 开始时间", name = "startTime", required = true)
|
||||
@NotEmpty(message = "培训日期 开始时间不能为空")
|
||||
private String startTime;
|
||||
|
||||
@ApiModelProperty(value = "培训日期 结束日期", name = "endTime", required = true)
|
||||
@NotEmpty(message = "培训日期 结束日期不能为空")
|
||||
private String endTime;
|
||||
|
||||
@ApiModelProperty(value = "培训教师id", name = "teacherId", required = true)
|
||||
@NotNull(message = "培训教师id不能为空")
|
||||
private Long teacherId;
|
||||
|
||||
@ApiModelProperty(value = "教师名称", name = "teacherName", required = true)
|
||||
@NotEmpty(message = "教师名称不能为空")
|
||||
private String teacherName;
|
||||
|
||||
@ApiModelProperty(value = "培训行业类型", name = "trainType", required = true)
|
||||
@NotEmpty(message = "培训行业类型不能为空")
|
||||
private String trainType;
|
||||
|
||||
@ApiModelProperty(value = "培训行业类型名称", name = "trainTypeName", required = true)
|
||||
@NotEmpty(message = "培训行业类型名称不能为空")
|
||||
private String trainTypeName;
|
||||
|
||||
@ApiModelProperty(value = "培训地点", name = "trainingLocation", required = true)
|
||||
@NotEmpty(message = "培训地点不能为空")
|
||||
private String trainingLocation;
|
||||
|
||||
@ApiModelProperty(value = "机构ID", name = "corpinfoId", required = true)
|
||||
@NotEmpty(message = "机构ID不能为空")
|
||||
private String corpinfoId;
|
||||
|
||||
@ApiModelProperty(value = "状态:1-未申请 2-待开班 3- 培训中 4-培训结束 ", name = "state", required = true)
|
||||
@NotEmpty(message = "状态:1-未申请 2-待开班 3- 培训中 4-培训结束 不能为空")
|
||||
private String state;
|
||||
|
||||
@ApiModelProperty(value = "培训有效期日期 开始时间", name = "validStartTime", required = true)
|
||||
@NotEmpty(message = "培训有效期日期 开始时间不能为空")
|
||||
private String validStartTime;
|
||||
|
||||
@ApiModelProperty(value = "培训有效期日期 结束时间", name = "validEndTime", required = true)
|
||||
@NotEmpty(message = "培训有效期日期 结束时间不能为空")
|
||||
private String validEndTime;
|
||||
|
||||
@ApiModelProperty(value = "1考试0不考试", name = "examination", required = true)
|
||||
@NotNull(message = "1考试0不考试不能为空")
|
||||
private Integer examination;
|
||||
|
||||
@ApiModelProperty(value = "考试次数只有考试时候有用", name = "numberofexams", required = true)
|
||||
@NotNull(message = "考试次数只有考试时候有用不能为空")
|
||||
private Integer numberofexams;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:13
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumAddCmd extends Command {
|
||||
@ApiModelProperty(value = "业务id", name = "classCurriculumId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String classCurriculumId;
|
||||
|
||||
@ApiModelProperty(value = "课程id", name = "curriculumId", required = true)
|
||||
@NotEmpty(message = "课程id不能为空")
|
||||
private String curriculumId;
|
||||
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
|
||||
@ApiModelProperty(value = "课程名称", name = "curriculumName", required = true)
|
||||
@NotEmpty(message = "课程名称不能为空")
|
||||
private String curriculumName;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@Data
|
||||
public class ClassCurriculumPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeClassCurriculumId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "${column.comment}", name = "id", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务id", name = "classCurriculumId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String classCurriculumId;
|
||||
@ApiModelProperty(value = "课程id", name = "curriculumId", required = true)
|
||||
@NotEmpty(message = "课程id不能为空")
|
||||
private String curriculumId;
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
@ApiModelProperty(value = "课程名称", name = "curriculumName", required = true)
|
||||
@NotEmpty(message = "课程名称不能为空")
|
||||
private String curriculumName;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperAddCmd extends Command {
|
||||
@ApiModelProperty(value = "业务id", name = "classExamPaperId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String classExamPaperId;
|
||||
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
|
||||
@ApiModelProperty(value = "试卷id", name = "examPaperId", required = true)
|
||||
@NotEmpty(message = "试卷id不能为空")
|
||||
private String examPaperId;
|
||||
|
||||
@ApiModelProperty(value = "企业ID", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业ID不能为空")
|
||||
private Long corpinfoId;
|
||||
|
||||
@ApiModelProperty(value = "试卷名称", name = "examName", required = true)
|
||||
@NotEmpty(message = "试卷名称不能为空")
|
||||
private String examName;
|
||||
|
||||
@ApiModelProperty(value = "试卷总分数", name = "examScore", required = true)
|
||||
@NotEmpty(message = "试卷总分数不能为空")
|
||||
private String examScore;
|
||||
|
||||
@ApiModelProperty(value = "合格分数", name = "passScore", required = true)
|
||||
@NotEmpty(message = "合格分数不能为空")
|
||||
private String passScore;
|
||||
|
||||
@ApiModelProperty(value = "考试时长(分钟)", name = "examTime", required = true)
|
||||
@NotEmpty(message = "考试时长(分钟)不能为空")
|
||||
private String examTime;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Data
|
||||
public class ClassExamPaperPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeClassExamPaperId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "${column.comment}", name = "id", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务id", name = "classExamPaperId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String classExamPaperId;
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
@ApiModelProperty(value = "试卷id", name = "examPaperId", required = true)
|
||||
@NotEmpty(message = "试卷id不能为空")
|
||||
private String examPaperId;
|
||||
@ApiModelProperty(value = "企业ID", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业ID不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "试卷名称", name = "examName", required = true)
|
||||
@NotEmpty(message = "试卷名称不能为空")
|
||||
private String examName;
|
||||
@ApiModelProperty(value = "试卷总分数", name = "examScore", required = true)
|
||||
@NotEmpty(message = "试卷总分数不能为空")
|
||||
private String examScore;
|
||||
@ApiModelProperty(value = "合格分数", name = "passScore", required = true)
|
||||
@NotEmpty(message = "合格分数不能为空")
|
||||
private String passScore;
|
||||
@ApiModelProperty(value = "考试时长(分钟)", name = "examTime", required = true)
|
||||
@NotEmpty(message = "考试时长(分钟)不能为空")
|
||||
private String examTime;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:12
|
||||
*/
|
||||
@Data
|
||||
public class ClassPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeClassId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:12
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ClassUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "${column.comment}", name = "id", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务id", name = "classId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String classId;
|
||||
@ApiModelProperty(value = "班级名称", name = "name", required = true)
|
||||
@NotEmpty(message = "班级名称不能为空")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "培训日期 开始时间", name = "startTime", required = true)
|
||||
@NotEmpty(message = "培训日期 开始时间不能为空")
|
||||
private String startTime;
|
||||
@ApiModelProperty(value = "培训日期 结束日期", name = "endTime", required = true)
|
||||
@NotEmpty(message = "培训日期 结束日期不能为空")
|
||||
private String endTime;
|
||||
@ApiModelProperty(value = "培训教师id", name = "teacherId", required = true)
|
||||
@NotNull(message = "培训教师id不能为空")
|
||||
private Long teacherId;
|
||||
@ApiModelProperty(value = "教师名称", name = "teacherName", required = true)
|
||||
@NotEmpty(message = "教师名称不能为空")
|
||||
private String teacherName;
|
||||
@ApiModelProperty(value = "培训行业类型", name = "trainType", required = true)
|
||||
@NotEmpty(message = "培训行业类型不能为空")
|
||||
private String trainType;
|
||||
@ApiModelProperty(value = "培训行业类型名称", name = "trainTypeName", required = true)
|
||||
@NotEmpty(message = "培训行业类型名称不能为空")
|
||||
private String trainTypeName;
|
||||
@ApiModelProperty(value = "培训地点", name = "trainingLocation", required = true)
|
||||
@NotEmpty(message = "培训地点不能为空")
|
||||
private String trainingLocation;
|
||||
@ApiModelProperty(value = "机构ID", name = "corpinfoId", required = true)
|
||||
@NotEmpty(message = "机构ID不能为空")
|
||||
private String corpinfoId;
|
||||
@ApiModelProperty(value = "状态:1-未申请 2-待开班 3- 培训中 4-培训结束 ", name = "state", required = true)
|
||||
@NotEmpty(message = "状态:1-未申请 2-待开班 3- 培训中 4-培训结束 不能为空")
|
||||
private String state;
|
||||
@ApiModelProperty(value = "培训有效期日期 开始时间", name = "validStartTime", required = true)
|
||||
@NotEmpty(message = "培训有效期日期 开始时间不能为空")
|
||||
private String validStartTime;
|
||||
@ApiModelProperty(value = "培训有效期日期 结束时间", name = "validEndTime", required = true)
|
||||
@NotEmpty(message = "培训有效期日期 结束时间不能为空")
|
||||
private String validEndTime;
|
||||
@ApiModelProperty(value = "1考试0不考试", name = "examination", required = true)
|
||||
@NotNull(message = "1考试0不考试不能为空")
|
||||
private Integer examination;
|
||||
@ApiModelProperty(value = "考试次数只有考试时候有用", name = "numberofexams", required = true)
|
||||
@NotNull(message = "考试次数只有考试时候有用不能为空")
|
||||
private Integer numberofexams;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,129 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:14
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StudentAddCmd extends Command {
|
||||
@ApiModelProperty(value = "业务id", name = "studentId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String studentId;
|
||||
|
||||
@ApiModelProperty(value = "${column.comment}", name = "userId", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Integer userId;
|
||||
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
|
||||
@ApiModelProperty(value = "${column.comment}", name = "name", required = true)
|
||||
@NotEmpty(message = "${column.comment}不能为空")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "${column.comment}", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long corpinfoId;
|
||||
|
||||
@ApiModelProperty(value = "手机号", name = "phone", required = true)
|
||||
@NotEmpty(message = "手机号不能为空")
|
||||
private String phone;
|
||||
|
||||
@ApiModelProperty(value = "身份证号", name = "userIdCard", required = true)
|
||||
@NotEmpty(message = "身份证号不能为空")
|
||||
private String userIdCard;
|
||||
|
||||
@ApiModelProperty(value = "民族编码", name = "nation", required = true)
|
||||
@NotEmpty(message = "民族编码不能为空")
|
||||
private String nation;
|
||||
|
||||
@ApiModelProperty(value = "民族名称", name = "nationName", required = true)
|
||||
@NotEmpty(message = "民族名称不能为空")
|
||||
private String nationName;
|
||||
|
||||
@ApiModelProperty(value = "人脸照片url", name = "userAvatarUrl", required = true)
|
||||
@NotEmpty(message = "人脸照片url不能为空")
|
||||
private String userAvatarUrl;
|
||||
|
||||
@ApiModelProperty(value = "现住址", name = "currentAddress", required = true)
|
||||
@NotEmpty(message = "现住址不能为空")
|
||||
private String currentAddress;
|
||||
|
||||
@ApiModelProperty(value = "户口所在地", name = "locationAddress", required = true)
|
||||
@NotEmpty(message = "户口所在地不能为空")
|
||||
private String locationAddress;
|
||||
|
||||
@ApiModelProperty(value = "文化程度 数据字典", name = "culturalLevel", required = true)
|
||||
@NotEmpty(message = "文化程度 数据字典不能为空")
|
||||
private String culturalLevel;
|
||||
|
||||
@ApiModelProperty(value = "文化程度名称", name = "culturalLevelName", required = true)
|
||||
@NotEmpty(message = "文化程度名称不能为空")
|
||||
private String culturalLevelName;
|
||||
|
||||
@ApiModelProperty(value = "婚姻状态", name = "maritalStatus", required = true)
|
||||
@NotEmpty(message = "婚姻状态不能为空")
|
||||
private String maritalStatus;
|
||||
|
||||
@ApiModelProperty(value = "婚姻状态名称", name = "maritalStatusName", required = true)
|
||||
@NotEmpty(message = "婚姻状态名称不能为空")
|
||||
private String maritalStatusName;
|
||||
|
||||
@ApiModelProperty(value = "政治面貌", name = "politicalAffiliation", required = true)
|
||||
@NotEmpty(message = "政治面貌不能为空")
|
||||
private String politicalAffiliation;
|
||||
|
||||
@ApiModelProperty(value = "政治面貌名称", name = "politicalAffiliationName", required = true)
|
||||
@NotEmpty(message = "政治面貌名称不能为空")
|
||||
private String politicalAffiliationName;
|
||||
|
||||
@ApiModelProperty(value = "岗位名称", name = "postName", required = true)
|
||||
@NotEmpty(message = "岗位名称不能为空")
|
||||
private String postName;
|
||||
|
||||
@ApiModelProperty(value = "签到状态 0-未签到 1-已签到", name = "signFlag", required = true)
|
||||
@NotNull(message = "签到状态 0-未签到 1-已签到不能为空")
|
||||
private Integer signFlag;
|
||||
|
||||
@ApiModelProperty(value = "考试签到状态 0-未签到 1-已签到", name = "examSignFlag", required = true)
|
||||
@NotNull(message = "考试签到状态 0-未签到 1-已签到不能为空")
|
||||
private Integer examSignFlag;
|
||||
|
||||
@ApiModelProperty(value = "学员状态 0-未学习 1-已签到 2-考试通过 3-未签到 4-考试未通过", name = "state", required = true)
|
||||
@NotNull(message = "学员状态 0-未学习 1-已签到 2-考试通过 3-未签到 4-考试未通过不能为空")
|
||||
private Integer state;
|
||||
|
||||
@ApiModelProperty(value = "相关方id集合", name = "interestedIds", required = true)
|
||||
@NotEmpty(message = "相关方id集合不能为空")
|
||||
private String interestedIds;
|
||||
|
||||
@ApiModelProperty(value = "相关方名称集合", name = "interestedNames", required = true)
|
||||
@NotEmpty(message = "相关方名称集合不能为空")
|
||||
private String interestedNames;
|
||||
|
||||
@ApiModelProperty(value = "项目id集合", name = "projectIds", required = true)
|
||||
@NotEmpty(message = "项目id集合不能为空")
|
||||
private String projectIds;
|
||||
|
||||
@ApiModelProperty(value = "项目名称集合", name = "projectNames", required = true)
|
||||
@NotEmpty(message = "项目名称集合不能为空")
|
||||
private String projectNames;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordAddCmd extends Command {
|
||||
@ApiModelProperty(value = "业务id", name = "studentExamRecordId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String studentExamRecordId;
|
||||
|
||||
@ApiModelProperty(value = "用户id", name = "userId", required = true)
|
||||
@NotNull(message = "用户id不能为空")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "学员id", name = "studentId", required = true)
|
||||
@NotEmpty(message = "学员id不能为空")
|
||||
private String studentId;
|
||||
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
|
||||
@ApiModelProperty(value = "班级-试卷 表ID", name = "classExamPaperId", required = true)
|
||||
@NotEmpty(message = "班级-试卷 表ID不能为空")
|
||||
private String classExamPaperId;
|
||||
|
||||
@ApiModelProperty(value = "试卷id", name = "examPaperId", required = true)
|
||||
@NotEmpty(message = "试卷id不能为空")
|
||||
private String examPaperId;
|
||||
|
||||
@ApiModelProperty(value = "考试时间", name = "examTimeBegin", required = true)
|
||||
@NotEmpty(message = "考试时间不能为空")
|
||||
private String examTimeBegin;
|
||||
|
||||
@ApiModelProperty(value = "考试交卷时间", name = "examTimeEnd", required = true)
|
||||
@NotEmpty(message = "考试交卷时间不能为空")
|
||||
private String examTimeEnd;
|
||||
|
||||
@ApiModelProperty(value = "考试总题数", name = "examQuestionNum", required = true)
|
||||
@NotNull(message = "考试总题数不能为空")
|
||||
private Integer examQuestionNum;
|
||||
|
||||
@ApiModelProperty(value = "考试对题数", name = "examQuestionRight", required = true)
|
||||
@NotNull(message = "考试对题数不能为空")
|
||||
private Integer examQuestionRight;
|
||||
|
||||
@ApiModelProperty(value = "考试错题数", name = "examQuestionWrong", required = true)
|
||||
@NotNull(message = "考试错题数不能为空")
|
||||
private Integer examQuestionWrong;
|
||||
|
||||
@ApiModelProperty(value = "考试得分", name = "examScore", required = true)
|
||||
@NotEmpty(message = "考试得分不能为空")
|
||||
private Object examScore;
|
||||
|
||||
@ApiModelProperty(value = "考试结果 0 -不通过 1-通过", name = "result", required = true)
|
||||
@NotNull(message = "考试结果 0 -不通过 1-通过不能为空")
|
||||
private Integer result;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordItemAddCmd extends Command {
|
||||
@ApiModelProperty(value = "业务id", name = "studentExamRecordItemId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String studentExamRecordItemId;
|
||||
|
||||
@ApiModelProperty(value = "考试记录id", name = "studentExamRecordId", required = true)
|
||||
@NotEmpty(message = "考试记录id不能为空")
|
||||
private String studentExamRecordId;
|
||||
|
||||
@ApiModelProperty(value = "学员id", name = "studentId", required = true)
|
||||
@NotEmpty(message = "学员id不能为空")
|
||||
private String studentId;
|
||||
|
||||
@ApiModelProperty(value = "习题ID", name = "questionId", required = true)
|
||||
@NotEmpty(message = "习题ID不能为空")
|
||||
private String questionId;
|
||||
|
||||
@ApiModelProperty(value = "学员答案", name = "answer", required = true)
|
||||
@NotEmpty(message = "学员答案不能为空")
|
||||
private String answer;
|
||||
|
||||
@ApiModelProperty(value = "正确答案", name = "answerRight", required = true)
|
||||
@NotEmpty(message = "正确答案不能为空")
|
||||
private String answerRight;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:18
|
||||
*/
|
||||
@Data
|
||||
public class StudentExamRecordItemPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeStudentExamRecordItemId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordItemUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "${column.comment}", name = "id", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务id", name = "studentExamRecordItemId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String studentExamRecordItemId;
|
||||
@ApiModelProperty(value = "考试记录id", name = "studentExamRecordId", required = true)
|
||||
@NotEmpty(message = "考试记录id不能为空")
|
||||
private String studentExamRecordId;
|
||||
@ApiModelProperty(value = "学员id", name = "studentId", required = true)
|
||||
@NotEmpty(message = "学员id不能为空")
|
||||
private String studentId;
|
||||
@ApiModelProperty(value = "习题ID", name = "questionId", required = true)
|
||||
@NotEmpty(message = "习题ID不能为空")
|
||||
private String questionId;
|
||||
@ApiModelProperty(value = "学员答案", name = "answer", required = true)
|
||||
@NotEmpty(message = "学员答案不能为空")
|
||||
private String answer;
|
||||
@ApiModelProperty(value = "正确答案", name = "answerRight", required = true)
|
||||
@NotEmpty(message = "正确答案不能为空")
|
||||
private String answerRight;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
@Data
|
||||
public class StudentExamRecordPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeStudentExamRecordId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:17
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StudentExamRecordUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "${column.comment}", name = "id", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务id", name = "studentExamRecordId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String studentExamRecordId;
|
||||
@ApiModelProperty(value = "用户id", name = "userId", required = true)
|
||||
@NotNull(message = "用户id不能为空")
|
||||
private Long userId;
|
||||
@ApiModelProperty(value = "学员id", name = "studentId", required = true)
|
||||
@NotEmpty(message = "学员id不能为空")
|
||||
private String studentId;
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "班级-试卷 表ID", name = "classExamPaperId", required = true)
|
||||
@NotEmpty(message = "班级-试卷 表ID不能为空")
|
||||
private String classExamPaperId;
|
||||
@ApiModelProperty(value = "试卷id", name = "examPaperId", required = true)
|
||||
@NotEmpty(message = "试卷id不能为空")
|
||||
private String examPaperId;
|
||||
@ApiModelProperty(value = "考试时间", name = "examTimeBegin", required = true)
|
||||
@NotEmpty(message = "考试时间不能为空")
|
||||
private String examTimeBegin;
|
||||
@ApiModelProperty(value = "考试交卷时间", name = "examTimeEnd", required = true)
|
||||
@NotEmpty(message = "考试交卷时间不能为空")
|
||||
private String examTimeEnd;
|
||||
@ApiModelProperty(value = "考试总题数", name = "examQuestionNum", required = true)
|
||||
@NotNull(message = "考试总题数不能为空")
|
||||
private Integer examQuestionNum;
|
||||
@ApiModelProperty(value = "考试对题数", name = "examQuestionRight", required = true)
|
||||
@NotNull(message = "考试对题数不能为空")
|
||||
private Integer examQuestionRight;
|
||||
@ApiModelProperty(value = "考试错题数", name = "examQuestionWrong", required = true)
|
||||
@NotNull(message = "考试错题数不能为空")
|
||||
private Integer examQuestionWrong;
|
||||
@ApiModelProperty(value = "考试得分", name = "examScore", required = true)
|
||||
@NotEmpty(message = "考试得分不能为空")
|
||||
private Object examScore;
|
||||
@ApiModelProperty(value = "考试结果 0 -不通过 1-通过", name = "result", required = true)
|
||||
@NotNull(message = "考试结果 0 -不通过 1-通过不能为空")
|
||||
private Integer result;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
@Data
|
||||
public class StudentPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeStudentId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:19
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StudentSignAddCmd extends Command {
|
||||
@ApiModelProperty(value = "学员id", name = "studentId", required = true)
|
||||
@NotEmpty(message = "学员id不能为空")
|
||||
private String studentId;
|
||||
|
||||
@ApiModelProperty(value = "业务id", name = "studentSignId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String studentSignId;
|
||||
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
|
||||
@ApiModelProperty(value = "用户id", name = "userId", required = true)
|
||||
@NotNull(message = "用户id不能为空")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
|
||||
@ApiModelProperty(value = "签到人脸路径", name = "faceUrl", required = true)
|
||||
@NotEmpty(message = "签到人脸路径不能为空")
|
||||
private String faceUrl;
|
||||
|
||||
@ApiModelProperty(value = "签到类型 1-打卡签到 2-人脸签到", name = "type", required = true)
|
||||
@NotNull(message = "签到类型 1-打卡签到 2-人脸签到不能为空")
|
||||
private Integer type;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
@Data
|
||||
public class StudentSignPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeStudentId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StudentSignUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "${column.comment}", name = "id", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "学员id", name = "studentId", required = true)
|
||||
@NotEmpty(message = "学员id不能为空")
|
||||
private String studentId;
|
||||
@ApiModelProperty(value = "业务id", name = "studentSignId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String studentSignId;
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
@ApiModelProperty(value = "用户id", name = "userId", required = true)
|
||||
@NotNull(message = "用户id不能为空")
|
||||
private Long userId;
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "签到人脸路径", name = "faceUrl", required = true)
|
||||
@NotEmpty(message = "签到人脸路径不能为空")
|
||||
private String faceUrl;
|
||||
@ApiModelProperty(value = "签到类型 1-打卡签到 2-人脸签到", name = "type", required = true)
|
||||
@NotNull(message = "签到类型 1-打卡签到 2-人脸签到不能为空")
|
||||
private Integer type;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
package com.zcloud.edu.dto.study;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class StudentUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "${column.comment}", name = "id", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务id", name = "studentId", required = true)
|
||||
@NotEmpty(message = "业务id不能为空")
|
||||
private String studentId;
|
||||
@ApiModelProperty(value = "${column.comment}", name = "userId", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Integer userId;
|
||||
@ApiModelProperty(value = "班级id", name = "classId", required = true)
|
||||
@NotEmpty(message = "班级id不能为空")
|
||||
private String classId;
|
||||
@ApiModelProperty(value = "${column.comment}", name = "name", required = true)
|
||||
@NotEmpty(message = "${column.comment}不能为空")
|
||||
private String name;
|
||||
@ApiModelProperty(value = "${column.comment}", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "${column.comment}不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "手机号", name = "phone", required = true)
|
||||
@NotEmpty(message = "手机号不能为空")
|
||||
private String phone;
|
||||
@ApiModelProperty(value = "身份证号", name = "userIdCard", required = true)
|
||||
@NotEmpty(message = "身份证号不能为空")
|
||||
private String userIdCard;
|
||||
@ApiModelProperty(value = "民族编码", name = "nation", required = true)
|
||||
@NotEmpty(message = "民族编码不能为空")
|
||||
private String nation;
|
||||
@ApiModelProperty(value = "民族名称", name = "nationName", required = true)
|
||||
@NotEmpty(message = "民族名称不能为空")
|
||||
private String nationName;
|
||||
@ApiModelProperty(value = "人脸照片url", name = "userAvatarUrl", required = true)
|
||||
@NotEmpty(message = "人脸照片url不能为空")
|
||||
private String userAvatarUrl;
|
||||
@ApiModelProperty(value = "现住址", name = "currentAddress", required = true)
|
||||
@NotEmpty(message = "现住址不能为空")
|
||||
private String currentAddress;
|
||||
@ApiModelProperty(value = "户口所在地", name = "locationAddress", required = true)
|
||||
@NotEmpty(message = "户口所在地不能为空")
|
||||
private String locationAddress;
|
||||
@ApiModelProperty(value = "文化程度 数据字典", name = "culturalLevel", required = true)
|
||||
@NotEmpty(message = "文化程度 数据字典不能为空")
|
||||
private String culturalLevel;
|
||||
@ApiModelProperty(value = "文化程度名称", name = "culturalLevelName", required = true)
|
||||
@NotEmpty(message = "文化程度名称不能为空")
|
||||
private String culturalLevelName;
|
||||
@ApiModelProperty(value = "婚姻状态", name = "maritalStatus", required = true)
|
||||
@NotEmpty(message = "婚姻状态不能为空")
|
||||
private String maritalStatus;
|
||||
@ApiModelProperty(value = "婚姻状态名称", name = "maritalStatusName", required = true)
|
||||
@NotEmpty(message = "婚姻状态名称不能为空")
|
||||
private String maritalStatusName;
|
||||
@ApiModelProperty(value = "政治面貌", name = "politicalAffiliation", required = true)
|
||||
@NotEmpty(message = "政治面貌不能为空")
|
||||
private String politicalAffiliation;
|
||||
@ApiModelProperty(value = "政治面貌名称", name = "politicalAffiliationName", required = true)
|
||||
@NotEmpty(message = "政治面貌名称不能为空")
|
||||
private String politicalAffiliationName;
|
||||
@ApiModelProperty(value = "岗位名称", name = "postName", required = true)
|
||||
@NotEmpty(message = "岗位名称不能为空")
|
||||
private String postName;
|
||||
@ApiModelProperty(value = "签到状态 0-未签到 1-已签到", name = "signFlag", required = true)
|
||||
@NotNull(message = "签到状态 0-未签到 1-已签到不能为空")
|
||||
private Integer signFlag;
|
||||
@ApiModelProperty(value = "考试签到状态 0-未签到 1-已签到", name = "examSignFlag", required = true)
|
||||
@NotNull(message = "考试签到状态 0-未签到 1-已签到不能为空")
|
||||
private Integer examSignFlag;
|
||||
@ApiModelProperty(value = "学员状态 0-未学习 1-已签到 2-考试通过 3-未签到 4-考试未通过", name = "state", required = true)
|
||||
@NotNull(message = "学员状态 0-未学习 1-已签到 2-考试通过 3-未签到 4-考试未通过不能为空")
|
||||
private Integer state;
|
||||
@ApiModelProperty(value = "相关方id集合", name = "interestedIds", required = true)
|
||||
@NotEmpty(message = "相关方id集合不能为空")
|
||||
private String interestedIds;
|
||||
@ApiModelProperty(value = "相关方名称集合", name = "interestedNames", required = true)
|
||||
@NotEmpty(message = "相关方名称集合不能为空")
|
||||
private String interestedNames;
|
||||
@ApiModelProperty(value = "项目id集合", name = "projectIds", required = true)
|
||||
@NotEmpty(message = "项目id集合不能为空")
|
||||
private String projectIds;
|
||||
@ApiModelProperty(value = "项目名称集合", name = "projectNames", required = true)
|
||||
@NotEmpty(message = "项目名称集合不能为空")
|
||||
private String projectNames;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.edu.domain.gateway.study;
|
||||
|
||||
|
||||
import com.zcloud.edu.domain.model.study.ClassCurriculumE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:13
|
||||
*/
|
||||
public interface ClassCurriculumGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(ClassCurriculumE classCurriculumE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(ClassCurriculumE classCurriculumE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedClassCurriculumById(Long id);
|
||||
|
||||
Boolean deletedClassCurriculumByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.edu.domain.gateway.study;
|
||||
|
||||
|
||||
import com.zcloud.edu.domain.model.study.ClassExamPaperE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
public interface ClassExamPaperGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(ClassExamPaperE classExamPaperE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(ClassExamPaperE classExamPaperE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedClassExamPaperById(Long id);
|
||||
|
||||
Boolean deletedClassExamPaperByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.edu.domain.gateway.study;
|
||||
|
||||
|
||||
import com.zcloud.edu.domain.model.study.ClassE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:11
|
||||
*/
|
||||
public interface ClassGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(ClassE classE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(ClassE classE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedClassById(Long id);
|
||||
|
||||
Boolean deletedClassByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.edu.domain.gateway.study;
|
||||
|
||||
|
||||
import com.zcloud.edu.domain.model.study.StudentExamRecordE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
public interface StudentExamRecordGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(StudentExamRecordE studentExamRecordE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(StudentExamRecordE studentExamRecordE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedStudentExamRecordById(Long id);
|
||||
|
||||
Boolean deletedStudentExamRecordByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.edu.domain.gateway.study;
|
||||
|
||||
|
||||
import com.zcloud.edu.domain.model.study.StudentExamRecordItemE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:18
|
||||
*/
|
||||
public interface StudentExamRecordItemGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(StudentExamRecordItemE studentExamRecordItemE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(StudentExamRecordItemE studentExamRecordItemE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedStudentExamRecordItemById(Long id);
|
||||
|
||||
Boolean deletedStudentExamRecordItemByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.edu.domain.gateway.study;
|
||||
|
||||
|
||||
import com.zcloud.edu.domain.model.study.StudentE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
public interface StudentGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(StudentE studentE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(StudentE studentE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedStudentById(Long id);
|
||||
|
||||
Boolean deletedStudentByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.edu.domain.gateway.study;
|
||||
|
||||
|
||||
import com.zcloud.edu.domain.model.study.StudentSignE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
public interface StudentSignGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(StudentSignE studentSignE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(StudentSignE studentSignE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedStudentSignById(Long id);
|
||||
|
||||
Boolean deletedStudentSignByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.zcloud.edu.domain.model.study;
|
||||
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:13
|
||||
*/
|
||||
@Data
|
||||
public class ClassCurriculumE extends BaseE {
|
||||
private Long id;
|
||||
//业务id
|
||||
private String classCurriculumId;
|
||||
//课程id
|
||||
private String curriculumId;
|
||||
//班级id
|
||||
private String classId;
|
||||
//课程名称
|
||||
private String curriculumName;
|
||||
//删除标识true false
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
private String updateName;
|
||||
//租户id
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
private Long orgId;
|
||||
//版本
|
||||
private Integer version;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
private Long createId;
|
||||
//修改人id
|
||||
private Long updateId;
|
||||
//环境
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,72 @@
|
|||
package com.zcloud.edu.domain.model.study;
|
||||
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:11
|
||||
*/
|
||||
@Data
|
||||
public class ClassE extends BaseE {
|
||||
private Long id;
|
||||
//业务id
|
||||
private String classId;
|
||||
//班级名称
|
||||
private String name;
|
||||
//培训日期 开始时间
|
||||
private String startTime;
|
||||
//培训日期 结束日期
|
||||
private String endTime;
|
||||
//培训教师id
|
||||
private Long teacherId;
|
||||
//教师名称
|
||||
private String teacherName;
|
||||
//培训行业类型
|
||||
private String trainType;
|
||||
//培训行业类型名称
|
||||
private String trainTypeName;
|
||||
//培训地点
|
||||
private String trainingLocation;
|
||||
//机构ID
|
||||
private String corpinfoId;
|
||||
//状态:1-未申请 2-待开班 3- 培训中 4-培训结束
|
||||
private String state;
|
||||
//培训有效期日期 开始时间
|
||||
private String validStartTime;
|
||||
//培训有效期日期 结束时间
|
||||
private String validEndTime;
|
||||
//1考试0不考试
|
||||
private Integer examination;
|
||||
//考试次数只有考试时候有用
|
||||
private Integer numberofexams;
|
||||
//删除标识true false
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
private String updateName;
|
||||
//租户id
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
private Long orgId;
|
||||
//版本
|
||||
private Integer version;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
private Long createId;
|
||||
//修改人id
|
||||
private Long updateId;
|
||||
//环境
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
package com.zcloud.edu.domain.model.study;
|
||||
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Data
|
||||
public class ClassExamPaperE extends BaseE {
|
||||
private Long id;
|
||||
//业务id
|
||||
private String classExamPaperId;
|
||||
//班级id
|
||||
private String classId;
|
||||
//试卷id
|
||||
private String examPaperId;
|
||||
//企业ID
|
||||
private Long corpinfoId;
|
||||
//试卷名称
|
||||
private String examName;
|
||||
//试卷总分数
|
||||
private String examScore;
|
||||
//合格分数
|
||||
private String passScore;
|
||||
//考试时长(分钟)
|
||||
private String examTime;
|
||||
//删除标识true false
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
private String updateName;
|
||||
//租户id
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
private Long orgId;
|
||||
//版本
|
||||
private Integer version;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
private Long createId;
|
||||
//修改人id
|
||||
private Long updateId;
|
||||
//环境
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
package com.zcloud.edu.domain.model.study;
|
||||
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:15
|
||||
*/
|
||||
@Data
|
||||
public class StudentE extends BaseE {
|
||||
private Long id;
|
||||
//业务id
|
||||
private String studentId;
|
||||
private Integer userId;
|
||||
//班级id
|
||||
private String classId;
|
||||
private String name;
|
||||
private Long corpinfoId;
|
||||
//手机号
|
||||
private String phone;
|
||||
//身份证号
|
||||
private String userIdCard;
|
||||
//民族编码
|
||||
private String nation;
|
||||
//民族名称
|
||||
private String nationName;
|
||||
//人脸照片url
|
||||
private String userAvatarUrl;
|
||||
//现住址
|
||||
private String currentAddress;
|
||||
//户口所在地
|
||||
private String locationAddress;
|
||||
//文化程度 数据字典
|
||||
private String culturalLevel;
|
||||
//文化程度名称
|
||||
private String culturalLevelName;
|
||||
//婚姻状态
|
||||
private String maritalStatus;
|
||||
//婚姻状态名称
|
||||
private String maritalStatusName;
|
||||
//政治面貌
|
||||
private String politicalAffiliation;
|
||||
//政治面貌名称
|
||||
private String politicalAffiliationName;
|
||||
//岗位名称
|
||||
private String postName;
|
||||
//签到状态 0-未签到 1-已签到
|
||||
private Integer signFlag;
|
||||
//考试签到状态 0-未签到 1-已签到
|
||||
private Integer examSignFlag;
|
||||
//学员状态 0-未学习 1-已签到 2-考试通过 3-未签到 4-考试未通过
|
||||
private Integer state;
|
||||
//相关方id集合
|
||||
private String interestedIds;
|
||||
//相关方名称集合
|
||||
private String interestedNames;
|
||||
//项目id集合
|
||||
private String projectIds;
|
||||
//项目名称集合
|
||||
private String projectNames;
|
||||
//环境
|
||||
private String env;
|
||||
//删除标识true false
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
private String updateName;
|
||||
//租户id
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
private Long orgId;
|
||||
//版本
|
||||
private Integer version;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
private Long createId;
|
||||
//修改人id
|
||||
private Long updateId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,70 @@
|
|||
package com.zcloud.edu.domain.model.study;
|
||||
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:16
|
||||
*/
|
||||
@Data
|
||||
public class StudentExamRecordE extends BaseE {
|
||||
private Long id;
|
||||
//业务id
|
||||
private String studentExamRecordId;
|
||||
//用户id
|
||||
private Long userId;
|
||||
//学员id
|
||||
private String studentId;
|
||||
//班级id
|
||||
private String classId;
|
||||
//企业id
|
||||
private Long corpinfoId;
|
||||
//班级-试卷 表ID
|
||||
private String classExamPaperId;
|
||||
//试卷id
|
||||
private String examPaperId;
|
||||
//考试时间
|
||||
private String examTimeBegin;
|
||||
//考试交卷时间
|
||||
private String examTimeEnd;
|
||||
//考试总题数
|
||||
private Integer examQuestionNum;
|
||||
//考试对题数
|
||||
private Integer examQuestionRight;
|
||||
//考试错题数
|
||||
private Integer examQuestionWrong;
|
||||
//考试得分
|
||||
private Object examScore;
|
||||
//考试结果 0 -不通过 1-通过
|
||||
private Integer result;
|
||||
//环境
|
||||
private String env;
|
||||
//删除标识true false
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
private String updateName;
|
||||
//租户id
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
private Long orgId;
|
||||
//版本
|
||||
private Integer version;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
private Long createId;
|
||||
//修改人id
|
||||
private Long updateId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
package com.zcloud.edu.domain.model.study;
|
||||
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:18
|
||||
*/
|
||||
@Data
|
||||
public class StudentExamRecordItemE extends BaseE {
|
||||
private Long id;
|
||||
//业务id
|
||||
private String studentExamRecordItemId;
|
||||
//考试记录id
|
||||
private String studentExamRecordId;
|
||||
//学员id
|
||||
private String studentId;
|
||||
//习题ID
|
||||
private String questionId;
|
||||
//学员答案
|
||||
private String answer;
|
||||
//正确答案
|
||||
private String answerRight;
|
||||
//删除标识true false
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
private String updateName;
|
||||
//租户id
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
private Long orgId;
|
||||
//版本
|
||||
private Integer version;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
private Long createId;
|
||||
//修改人id
|
||||
private Long updateId;
|
||||
//环境
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.zcloud.edu.domain.model.study;
|
||||
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:20
|
||||
*/
|
||||
@Data
|
||||
public class StudentSignE extends BaseE {
|
||||
private Long id;
|
||||
//学员id
|
||||
private String studentId;
|
||||
//业务id
|
||||
private String studentSignId;
|
||||
//班级id
|
||||
private String classId;
|
||||
//用户id
|
||||
private Long userId;
|
||||
//企业id
|
||||
private Long corpinfoId;
|
||||
//签到人脸路径
|
||||
private String faceUrl;
|
||||
//签到类型 1-打卡签到 2-人脸签到
|
||||
private Integer type;
|
||||
//环境
|
||||
private String env;
|
||||
//删除标识true false
|
||||
private String deleteEnum;
|
||||
//备注
|
||||
private String remarks;
|
||||
//创建人姓名
|
||||
private String createName;
|
||||
//更新人姓名
|
||||
private String updateName;
|
||||
//租户id
|
||||
private Long tenantId;
|
||||
//单位id
|
||||
private Long orgId;
|
||||
//版本
|
||||
private Integer version;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
private Long createId;
|
||||
//修改人id
|
||||
private Long updateId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.zcloud.edu.gatewayimpl.study;
|
||||
|
||||
import com.zcloud.edu.domain.gateway.study.ClassCurriculumGateway;
|
||||
import com.zcloud.edu.domain.model.study.ClassCurriculumE;
|
||||
import com.zcloud.edu.persistence.dataobject.study.ClassCurriculumDO;
|
||||
import com.zcloud.edu.persistence.repository.study.ClassCurriculumRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:13
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class ClassCurriculumGatewayImpl implements ClassCurriculumGateway {
|
||||
private final ClassCurriculumRepository classCurriculumRepository;
|
||||
|
||||
@Override
|
||||
public Boolean add(ClassCurriculumE classCurriculumE) {
|
||||
ClassCurriculumDO d = new ClassCurriculumDO();
|
||||
BeanUtils.copyProperties(classCurriculumE, d);
|
||||
classCurriculumRepository.save(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(ClassCurriculumE classCurriculumE) {
|
||||
ClassCurriculumDO d = new ClassCurriculumDO();
|
||||
BeanUtils.copyProperties(classCurriculumE, d);
|
||||
classCurriculumRepository.updateById(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedClassCurriculumById(Long id) {
|
||||
return classCurriculumRepository.removeById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedClassCurriculumByIds(Long[] ids) {
|
||||
return classCurriculumRepository.removeByIds(Collections.singletonList(ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.zcloud.edu.gatewayimpl.study;
|
||||
|
||||
import com.zcloud.edu.domain.gateway.study.ClassExamPaperGateway;
|
||||
import com.zcloud.edu.domain.model.study.ClassExamPaperE;
|
||||
import com.zcloud.edu.persistence.dataobject.study.ClassExamPaperDO;
|
||||
import com.zcloud.edu.persistence.repository.study.ClassExamPaperRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2026-01-13 14:18:21
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class ClassExamPaperGatewayImpl implements ClassExamPaperGateway {
|
||||
private final ClassExamPaperRepository classExamPaperRepository;
|
||||
|
||||
@Override
|
||||
public Boolean add(ClassExamPaperE classExamPaperE) {
|
||||
ClassExamPaperDO d = new ClassExamPaperDO();
|
||||
BeanUtils.copyProperties(classExamPaperE, d);
|
||||
classExamPaperRepository.save(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(ClassExamPaperE classExamPaperE) {
|
||||
ClassExamPaperDO d = new ClassExamPaperDO();
|
||||
BeanUtils.copyProperties(classExamPaperE, d);
|
||||
classExamPaperRepository.updateById(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedClassExamPaperById(Long id) {
|
||||
return classExamPaperRepository.removeById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedClassExamPaperByIds(Long[] ids) {
|
||||
return classExamPaperRepository.removeByIds(Collections.singletonList(ids));
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue