Commit 7711dc6c authored by liuyang's avatar liuyang

fixed bug

parent 89d6e113
...@@ -451,7 +451,11 @@ public class CourseService extends ServiceImpl<CourseMapper, CoursePO> { ...@@ -451,7 +451,11 @@ public class CourseService extends ServiceImpl<CourseMapper, CoursePO> {
if (CollUtil.isEmpty(model.getUserTagIds())){ if (CollUtil.isEmpty(model.getUserTagIds())){
throw new BusinessException("请选择用户标签"); throw new BusinessException("请选择用户标签");
} }
po.setUserTagIds(ArrayUtil.join(model.getTagIds(),",")); List<String> ids = Lists.newArrayList();
for (Long userTagId : model.getUserTagIds()){
ids.add(String.valueOf(userTagId));
}
po.setUserTagIds(String.join(",",ids));
}else { }else {
po.setUserTagIds(""); po.setUserTagIds("");
} }
......
...@@ -97,4 +97,5 @@ public class CourseDetailModel { ...@@ -97,4 +97,5 @@ public class CourseDetailModel {
* 课程附件列表 * 课程附件列表
*/ */
private List<CourseAttachmentModel> attachmentList; private List<CourseAttachmentModel> attachmentList;
private String userTagIds;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment