|
|
@@ -1,6 +1,7 @@
|
|
|
package com.fs.app.controller;
|
|
|
|
|
|
import com.fs.app.params.LoginBindCompanyParam;
|
|
|
+import com.fs.common.BeanCopyUtils;
|
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
@@ -17,13 +18,18 @@ import com.fs.company.service.ICompanyService;
|
|
|
import com.fs.company.service.ICompanyUserService;
|
|
|
import com.fs.course.param.FsCourseListBySidebarParam;
|
|
|
import com.fs.qw.domain.QwExternalContactInfo;
|
|
|
+import com.fs.qw.domain.QwTagGroup;
|
|
|
import com.fs.qw.domain.QwUser;
|
|
|
import com.fs.qw.param.ExternalContactDetailsParam;
|
|
|
import com.fs.qw.param.QwExtCourseSopWatchLog;
|
|
|
+import com.fs.qw.param.sidebar.TagGroupListParam;
|
|
|
+import com.fs.qw.param.sidebar.TagGroupUpdateParam;
|
|
|
import com.fs.qw.service.IQwExternalContactInfoService;
|
|
|
import com.fs.qw.service.IQwExternalContactService;
|
|
|
+import com.fs.qw.service.IQwTagGroupService;
|
|
|
import com.fs.qw.vo.ExternalContactDetailsVO;
|
|
|
import com.fs.qw.vo.QwExternalListByHeavyVO;
|
|
|
+import com.fs.qw.vo.QwTagGroupListVO;
|
|
|
import com.fs.sop.service.ISopUserLogsInfoService;
|
|
|
import com.fs.sop.vo.ExtCourseSopWatchLogVO;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
@@ -67,6 +73,9 @@ public class ApisQwUserController extends BaseController {
|
|
|
@Autowired
|
|
|
ICompanyPostService postService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IQwTagGroupService qwTagGroupService;
|
|
|
+
|
|
|
|
|
|
@GetMapping("/details")
|
|
|
@ApiOperation("会员看课详情")
|
|
|
@@ -188,4 +197,29 @@ public class ApisQwUserController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @GetMapping("/tagGroupList")
|
|
|
+ @ApiOperation("获取所有标签组和其下标签")
|
|
|
+ public R getTagGroupList(TagGroupListParam param) {
|
|
|
+ QwTagGroup qwTagGroup = new QwTagGroup();
|
|
|
+ BeanCopyUtils.copy(param, qwTagGroup);
|
|
|
+ qwTagGroup.setName(param.getTagName());
|
|
|
+
|
|
|
+ PageHelper.startPage(qwTagGroup.getPageNum(), qwTagGroup.getPageSize());
|
|
|
+ List<QwTagGroupListVO> list = qwTagGroupService.selectQwGroupTagList(qwTagGroup);
|
|
|
+
|
|
|
+ PageInfo<QwTagGroupListVO> result = new PageInfo<>(list);
|
|
|
+ return R.ok().put("data", result);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PutMapping("/externalContact/tag")
|
|
|
+ @ApiOperation("编辑标签")
|
|
|
+ public R updateExternalContactTag(@RequestBody TagGroupUpdateParam param) {
|
|
|
+ int i = qwExternalContactService.updateExternalContactTag(param);
|
|
|
+ if (i > 0) {
|
|
|
+ return R.ok();
|
|
|
+ }
|
|
|
+ return R.error();
|
|
|
+ }
|
|
|
+
|
|
|
}
|