change 3 years ago
parent
commit
31ff8cd9c9

+ 1 - 0
zhongzheng-admin/src/main/java/com/zhongzheng/controller/base/UserProfileController.java

@@ -54,6 +54,7 @@ public class UserProfileController extends BaseController {
     @GetMapping("/list")
     public TableDataInfo<UserProfileVo> list(UserProfileQueryBo bo) {
         startPage();
+        //1为资料审核
         bo.setTypeStatus(1L);
         List<UserProfileVo> list = iUserProfileService.queryList(bo);
         return getDataTable(list);

+ 0 - 10
zhongzheng-admin/src/main/java/com/zhongzheng/controller/course/CourseStreamingController.java

@@ -126,14 +126,4 @@ public class CourseStreamingController extends BaseController {
         return AjaxResult.success(list);
     }
 
-    /**
-     * 新增课程流媒体
-     */
-    @ApiOperation("同步保利威新增课程流媒体")
-    @PreAuthorize("@ss.hasPermi('system:streaming:add')")
-    @Log(title = "同步保利威新增课程流媒体", businessType = BusinessType.INSERT)
-    @PostMapping("addAll")
-    public AjaxResult<Void> addAll(@RequestBody CourseStreamingAddBo bo) {
-        return toAjax(iCourseStreamingService.insertByAddAllBo(bo) ? 1 : 0);
-    }
 }

+ 2 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/base/service/impl/UserProfileServiceImpl.java

@@ -226,13 +226,14 @@ public class UserProfileServiceImpl extends ServiceImpl<UserProfileMapper, UserP
         bindingMap.put("time", JSONObject.parseObject(String.valueOf(maps.get("graduation_time")), UserProfileFit.class).getValue());
         bindingMap.put("year", JSONObject.parseObject(String.valueOf(maps.get("working_years")), UserProfileFit.class).getValue());
         File touch = FileUtil.touch(ZHONGZHENG_PROFILE+"word.html");
-        //默认配置
+        //默认freemake配置
         Configuration configuration = new Configuration();
         configuration.setDefaultEncoding("UTF-8");
         configuration.setClassForTemplateLoading(this.getClass(), "/templates");
         Template template = configuration.getTemplate("wordPhone.ftl");
         Writer out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(touch),"UTF-8"));
         try {
+            //写入数据
             template.process(bindingMap,out);
             out.flush();
             out.close();

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseHandoutsServiceImpl.java

@@ -50,6 +50,7 @@ public class CourseHandoutsServiceImpl extends ServiceImpl<CourseHandoutsMapper,
         if (CollectionUtils.isEmpty(courseHandoutsVos)){
             return null;
         }
+        //获得讲义业务层
         CourseHandoutsVo courseHandoutsVo = courseHandoutsVos.get(0);
         List<CourseHandoutsBusinessVo> courseHandoutsBusinessVos = baseMapper.selectEntity(courseHandoutsVo.getHandoutsId());
         courseHandoutsVo.setCourseHandoutsBusinessVo(courseHandoutsBusinessVos);
@@ -79,6 +80,7 @@ public class CourseHandoutsServiceImpl extends ServiceImpl<CourseHandoutsMapper,
             pageVo.addAll(voList);
             voList = pageVo;
         }
+        //获得讲义业务层
         for (CourseHandoutsVo courseHandoutsVo : voList) {
             List<CourseHandoutsBusinessVo> courseHandoutsBusinessVos = baseMapper.selectEntity(courseHandoutsVo.getHandoutsId());
             courseHandoutsVo.setCourseHandoutsBusinessVo(courseHandoutsBusinessVos);

+ 1 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/course/service/impl/CourseSubjectServiceImpl.java

@@ -170,6 +170,7 @@ public class CourseSubjectServiceImpl extends ServiceImpl<CourseSubjectMapper, C
     @Override
     public List<CourseSubjectVo> queryListAll(CourseSubjectQueryBo bo) {
         Collection<CourseSubjectVo> courseSubjectVos = baseMapper.queryList(bo);
+        //查询没有绑定业务类型得科目
         if (bo.getEducationId() != null || bo.getBusinessId() != null || bo.getProjectId() !=null){
             CourseSubjectQueryBo courseSubjectQueryBo = new CourseSubjectQueryBo();
             courseSubjectQueryBo.setWrong(1L);