diff --git a/src/main/java/com/subsidy/controller/CertClassController.java b/src/main/java/com/subsidy/controller/CertClassController.java new file mode 100644 index 0000000..76d2d1d --- /dev/null +++ b/src/main/java/com/subsidy/controller/CertClassController.java @@ -0,0 +1,43 @@ +package com.subsidy.controller; + + +import com.subsidy.common.ResponseData; +import com.subsidy.common.ResponseVO; +import com.subsidy.common.interceptor.LoginRequired; +import com.subsidy.dto.cert.AddCertClassDTO; +import com.subsidy.dto.classDict.AddClassDTO; +import com.subsidy.service.CertClassService; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *
+ * 证书班级映射表 前端控制器 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ +@RestController +@Api(tags = "证书班级映射表") +@RequestMapping("/certClassMapping") +public class CertClassController { + + @Autowired + private CertClassService certClassMappingService; + + + @PostMapping("addCertClass") + @ApiOperation("添加班级 userId:登录人id certId courseId classTypeId className startDate endDate testRule 是否视频看完再做测试 isOrder 是否按照顺序播放 isFastPlay 是否快进 memberIds [] 班级学员") + @LoginRequired + public ResponseVO addClass(@RequestBody AddCertClassDTO addCertClassDTO){ + return ResponseData.generateCreatedResponse(0,certClassMappingService.addClass(addCertClassDTO)); + } + +} diff --git a/src/main/java/com/subsidy/controller/CertClassMemberMappingController.java b/src/main/java/com/subsidy/controller/CertClassMemberMappingController.java new file mode 100644 index 0000000..89c3c21 --- /dev/null +++ b/src/main/java/com/subsidy/controller/CertClassMemberMappingController.java @@ -0,0 +1,22 @@ +package com.subsidy.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.web.bind.annotation.RestController; +import io.swagger.annotations.Api; + +/** + *+ * 证书班级人员映射表 前端控制器 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ +@RestController +@Api(tags = "证书班级人员映射表") +@RequestMapping("/certClassMemberMapping") +public class CertClassMemberMappingController { + +} diff --git a/src/main/java/com/subsidy/controller/CertMemberMappingController.java b/src/main/java/com/subsidy/controller/CertMemberMappingController.java index 0dfaf18..8cd14e2 100644 --- a/src/main/java/com/subsidy/controller/CertMemberMappingController.java +++ b/src/main/java/com/subsidy/controller/CertMemberMappingController.java @@ -64,4 +64,6 @@ public class CertMemberMappingController { return ResponseData.generateCreatedResponse(0,certMemberMappingService.getSignInfo(certMemberMappingDO)); } + + } diff --git a/src/main/java/com/subsidy/controller/MemberController.java b/src/main/java/com/subsidy/controller/MemberController.java index 2d1fe45..49d9811 100644 --- a/src/main/java/com/subsidy/controller/MemberController.java +++ b/src/main/java/com/subsidy/controller/MemberController.java @@ -55,7 +55,7 @@ public class MemberController { } @PostMapping("updateMember") - @ApiOperation("编辑成员 {id companyId userName accountName accountNameEn telephone gender image idCard status departmentIds jobIds}") + @ApiOperation("编辑成员 {id companyId userName accountName accountNameEn telephone gender image idCard idCardPhoto status departmentIds jobIds}") @LoginRequired public ResponseVO updateMember(@RequestBody AddMemberDTO addMemberDTO){ return ResponseData.generateCreatedResponse(0,memberService.updateMember(addMemberDTO)); diff --git a/src/main/java/com/subsidy/dto/cert/AddCertClassDTO.java b/src/main/java/com/subsidy/dto/cert/AddCertClassDTO.java new file mode 100644 index 0000000..9885c89 --- /dev/null +++ b/src/main/java/com/subsidy/dto/cert/AddCertClassDTO.java @@ -0,0 +1,15 @@ +package com.subsidy.dto.cert; + +import com.subsidy.model.CertClassDO; +import lombok.Data; + +import java.util.List; + +@Data +public class AddCertClassDTO extends CertClassDO { + + private Long userId; + + private List+ * 证书班级映射表 Mapper 接口 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ + @Repository +public interface CertClassMapper extends BaseMapper+ * 证书班级人员映射表 Mapper 接口 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ + @Repository +public interface CertClassMemberMappingMapper extends BaseMapper+ * 证书班级映射表 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("cert_class_mapping") +public class CertClassDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 证书id + */ + private Long certId; + + /** + * 班级名称 + */ + private String className; + + /** + * 班级类型:平台支持/企业自荐 + */ + private String classType; + + /** + * 班级类型id + */ + private Long classTypeId; + + /** + * 课程id + */ + private Long courseId; + + /** + * 开课时间 + */ + private String startDate; + + /** + * 结课时间 + */ + private String endDate; + + /** + * 按序解锁时视频 1按照顺序解锁 + */ + private Long isOrder; + + /** + * 是否能快进 1:可以快进 + */ + private Long isFastPlay; + + /** + * 班级状态 + */ + private String openStatus; + + /** + * 1限制/0不限制 + */ + private Integer testRule; + + /** + * 学习上限时长 + */ + private Integer limitHour; + + /** + * 首次进入班级时人脸验证 + */ + private Integer imageClassCheck; + + /** + * 测试前人脸验证 + */ + private Integer imageTestCheck; + + /** + * 活跃度检测开启/关闭 + */ + private Integer activityDetection; + + /** + * 活跃度检测方式 1:常规 2:滑块 3:人脸识别 + */ + private Integer activityDetectionMethod; + + /** + * 首次播放允许拖曳 + */ + private Integer firstDragAllowed; + + /** + * 首次播放允许倍速 + */ + private Integer firstSpeedAllowed; + + /** + * 课时抓拍 + */ + private Integer playSnap; + + +} diff --git a/src/main/java/com/subsidy/model/CertClassMemberMappingDO.java b/src/main/java/com/subsidy/model/CertClassMemberMappingDO.java new file mode 100644 index 0000000..923a7a5 --- /dev/null +++ b/src/main/java/com/subsidy/model/CertClassMemberMappingDO.java @@ -0,0 +1,33 @@ +package com.subsidy.model; + +import com.subsidy.util.BaseModel; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + *+ * 证书班级人员映射表 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("cert_class_member_mapping") +public class CertClassMemberMappingDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + private Long certClassId; + + private Long memberId; + + +} diff --git a/src/main/java/com/subsidy/model/MemberDO.java b/src/main/java/com/subsidy/model/MemberDO.java index 9d7ae91..67d1500 100644 --- a/src/main/java/com/subsidy/model/MemberDO.java +++ b/src/main/java/com/subsidy/model/MemberDO.java @@ -101,6 +101,11 @@ public class MemberDO extends BaseModel { private String idCard; /** + * 身份证照片 + */ + private String idCardPhoto; + + /** * 第一次登录 */ private Integer firstLogin; diff --git a/src/main/java/com/subsidy/service/CertClassMemberMappingService.java b/src/main/java/com/subsidy/service/CertClassMemberMappingService.java new file mode 100644 index 0000000..1134837 --- /dev/null +++ b/src/main/java/com/subsidy/service/CertClassMemberMappingService.java @@ -0,0 +1,16 @@ +package com.subsidy.service; + +import com.subsidy.model.CertClassMemberMappingDO; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + *+ * 证书班级人员映射表 服务类 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ +public interface CertClassMemberMappingService extends IService+ * 证书班级映射表 服务类 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ +public interface CertClassService extends IService+ * 证书班级人员映射表 服务实现类 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ +@Service +public class CertClassMemberMappingServiceImpl extends ServiceImpl+ * 证书班级映射表 服务实现类 + *
+ * + * @author Tuyp + * @since 2022-09-06 + */ +@Service +public class CertClassServiceImpl extends ServiceImpl