diff --git a/src/main/java/com/subsidy/controller/AdministerController.java b/src/main/java/com/subsidy/controller/AdministerController.java index 815ec0b..eccdb17 100644 --- a/src/main/java/com/subsidy/controller/AdministerController.java +++ b/src/main/java/com/subsidy/controller/AdministerController.java @@ -87,7 +87,7 @@ public class AdministerController { @PostMapping("classSummary") @ApiOperation("课程汇总 id 班级id ") - @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) + //@LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) public ResponseVO classSummary(@RequestBody ClassDetailDTO classDetailDTO){ return ResponseData.generateCreatedResponse(0,administerService.classSummary(classDetailDTO)); } diff --git a/src/main/java/com/subsidy/controller/ClassDictController.java b/src/main/java/com/subsidy/controller/ClassDictController.java index e486a7a..2a1511a 100644 --- a/src/main/java/com/subsidy/controller/ClassDictController.java +++ b/src/main/java/com/subsidy/controller/ClassDictController.java @@ -36,7 +36,7 @@ public class ClassDictController { private ClassDictService classDictService; @PostMapping("getAllClasses") - @ApiOperation("获取某老师下的所有课程 companyId 所选企业id className 班级名称") + @ApiOperation("获取某公司下的所有课程 companyId 所选企业id className 班级名称") @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) public ResponseVO getAllClasses(@RequestBody ClassDictDO classDictDO){ return ResponseData.generateCreatedResponse(0,classDictService.getAllClasses(classDictDO)); @@ -50,7 +50,7 @@ public class ClassDictController { } @PostMapping("addClass") - @ApiOperation("添加课程 userId:登录人id companyId courseId classType className startDate endDate memberId [] 班级学员 classNoticeDOS[noticeType isAuto noticeTime]") + @ApiOperation("添加课程 userId:登录人id companyId courseId classType className startDate endDate isOrder 是否按照顺序播放 isFastPlay 是否快进 memberId [] 班级学员 classNoticeDOS[noticeType isAuto noticeTime]") @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) public ResponseVO addClass(@RequestBody AddClassDTO addClassDTO){ return ResponseData.generateCreatedResponse(0,classDictService.addClass(addClassDTO)); @@ -85,7 +85,7 @@ public class ClassDictController { } @PostMapping("addMemberToClass") - @ApiOperation("将某个成员加入到某个班级里 classId memberIds []") + @ApiOperation("将多个成员加入到某个班级里 classId memberIds []") @LoginRequired(value = {ConstantUtils.ADMINISTER_TERMINATE}) public ResponseVO addMemberToClass(@RequestBody AddMemberToClassDTO addMemberToClassDTO){ return ResponseData.generateCreatedResponse(0,classDictService.addMemberToClass(addMemberToClassDTO)); diff --git a/src/main/java/com/subsidy/controller/CompanyFieldMappingController.java b/src/main/java/com/subsidy/controller/CompanyFieldMappingController.java new file mode 100644 index 0000000..ad109eb --- /dev/null +++ b/src/main/java/com/subsidy/controller/CompanyFieldMappingController.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 DengMin + * @since 2022-02-11 + */ +@RestController +@Api(tags = "") +@RequestMapping("/company-field-mapping-do") +public class CompanyFieldMappingController { + +} diff --git a/src/main/java/com/subsidy/controller/JobDictController.java b/src/main/java/com/subsidy/controller/JobDictController.java new file mode 100644 index 0000000..553c13e --- /dev/null +++ b/src/main/java/com/subsidy/controller/JobDictController.java @@ -0,0 +1,61 @@ +package com.subsidy.controller; + + +import com.subsidy.common.ResponseData; +import com.subsidy.common.ResponseVO; +import com.subsidy.model.JobDictDO; +import com.subsidy.service.JobDictService; +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 DengMin + * @since 2022-02-10 + */ +@RestController +@Api(tags = "岗位表") +@RequestMapping("/jobDict") +//TODO: 字段类型不全 +public class JobDictController { + + @Autowired + private JobDictService jobDictService; + + @PostMapping("queryJobs") + @ApiOperation("查询某公司的岗位 companyId") + public ResponseVO queryJobs(@RequestBody JobDictDO jobDictDO){ + return ResponseData.generateCreatedResponse(0,jobDictService.queryJobs(jobDictDO)); + } + + @PostMapping("deleteJob") + @ApiOperation("删除某个岗位 id") + public ResponseVO deleteJob(@RequestBody JobDictDO jobDictDO){ + return ResponseData.generateCreatedResponse(0,jobDictService.deleteJob(jobDictDO)); + } + + @PostMapping("addJob") + @ApiOperation("添加岗位 companyId jobName") + public ResponseVO addJob(@RequestBody JobDictDO jobDictDO){ + return ResponseData.generateCreatedResponse(0,jobDictService.addJob(jobDictDO)); + } + + @PostMapping("updateJob") + @ApiOperation("更新岗位 jobName") + public ResponseVO updateJob(@RequestBody JobDictDO jobDictDO){ + return ResponseData.generateCreatedResponse(0,jobDictService.updateJob(jobDictDO)); + } + + + + +} diff --git a/src/main/java/com/subsidy/controller/JobMemberMappingController.java b/src/main/java/com/subsidy/controller/JobMemberMappingController.java new file mode 100644 index 0000000..fea9eeb --- /dev/null +++ b/src/main/java/com/subsidy/controller/JobMemberMappingController.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 DengMin + * @since 2022-02-10 + */ +@RestController +@Api(tags = "岗位人员表") +@RequestMapping("/jobMemberMapping") +public class JobMemberMappingController { + +} diff --git a/src/main/java/com/subsidy/jobs/Scheduler.java b/src/main/java/com/subsidy/jobs/Scheduler.java index 80f78f0..a685f28 100644 --- a/src/main/java/com/subsidy/jobs/Scheduler.java +++ b/src/main/java/com/subsidy/jobs/Scheduler.java @@ -126,6 +126,10 @@ public class Scheduler { List+ * Mapper 接口 + *
+ * + * @author DengMin + * @since 2022-02-11 + */ + @Repository +public interface CompanyFieldMappingMapper extends BaseMapper
* 行业字典表 Mapper 接口
@@ -19,4 +21,5 @@ public interface FieldDictMapper extends BaseMapper
+ * 岗位表 Mapper 接口
+ *
+ * 岗位人员表 Mapper 接口
+ *
+ *
+ *
+ * 岗位表
+ *
+ * 岗位人员表
+ *
+ * 服务类
+ *
+ * 岗位表 服务类
+ *
+ * 岗位人员表 服务类
+ *
+ * 服务实现类
+ *
+ * 岗位表 服务实现类
+ *
+ * 岗位人员表 服务实现类
+ *