提交 eb471740 authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 049cc966
......@@ -26,8 +26,9 @@ public class ContetPublishForm {
private Integer resourceType;
@ApiModelProperty("原创首发作者,1企鹅号,2微信公众账号,3头条号,4大鱼号,5一点号,6百家号,7网易号")
private List<String> original_author;
@ApiModelProperty("网易授权码")
@ApiModelProperty("授权码")
private String code;
@ApiModelProperty("绑定账号")
private List<String> accountId;
}
package com.zrqx.core.form.resource.bg.articlelibrary;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.List;
import lombok.Data;
@Data
@ApiModel(value="SaveArticleRelationLibraryForm",description="文章关联账号")
public class SaveArticleRelationLibraryForm {
@ApiModelProperty("文章id")
private String id;
@ApiModelProperty("绑定账号")
private List<String> accountId;
}
......@@ -22,8 +22,8 @@ public class SaveUpdateArticleLibraryForm {
private Date timingTime;
@ApiModelProperty("资源类型 1文本,2图文章")
private Integer resourceType;
@ApiModelProperty("绑定账号")
private List<String> accountId;
//@ApiModelProperty("绑定账号")
//private List<String> accountId;
@ApiModelProperty("发布状态:0未发布,1已发布,3定时发布")
private Integer publishStatus;
@ApiModelProperty("是否删除 0:未删除 1:已删除")
......
......@@ -54,16 +54,6 @@ public class ArticleLibrarySerivceImpl extends BaseServiceImpl<ArticleLibrary,In
}
entity.setUploadTime(new Date());
articleMapper.insert(entity);
//文章和账号关联表
if (form.getAccountId()!=null && form.getAccountId().size() > 0) {
for (int i = 0; i < form.getAccountId().size(); i++) {
ResourceRelation res=new ResourceRelation();
res.setAccountId(form.getAccountId().get(i));
res.setResourceType(1);
res.setObjectId(entity.getId());
resourceRelationMapper.insert(res);
}
}
}
return true;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论