Commit 7711dc6c authored by liuyang's avatar liuyang

fixed bug

parent 89d6e113
......@@ -451,7 +451,11 @@ public class CourseService extends ServiceImpl<CourseMapper, CoursePO> {
if (CollUtil.isEmpty(model.getUserTagIds())){
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 {
po.setUserTagIds("");
}
......
......@@ -97,4 +97,5 @@ public class CourseDetailModel {
* 课程附件列表
*/
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