xiangpei
2025-05-14 47cd9ecc0eff38ffe6b3b794b2bf197e958f4403
src/main/java/com/mindskip/xzs/service/impl/OnlineStudySeerviceImpl.java
@@ -36,7 +36,9 @@
    public RestResponse add(OnlineStudyVO form) {
        OnlineStudy onlineStudy = new OnlineStudy();
        BeanUtils.copyProperties(form, onlineStudy);
        onlineStudy.setContentUrl(JSON.toJSONString(form.getContentUrl()));
        if (Objects.nonNull(form.getContentUrl())) {
            onlineStudy.setContentUrl(JSON.toJSONString(form.getContentUrl()));
        }
        if (! CollectionUtils.isEmpty(form.getAttachment())) {
            onlineStudy.setAttachment(JSON.toJSONString(form.getAttachment()));
        }