Commit 8c8c55dd authored by 罗林杰's avatar 罗林杰

修改驳回原因

parent 7db707d8
...@@ -54,7 +54,7 @@ public class CmsApplicationController extends CyPaginationController<CmsApplicat ...@@ -54,7 +54,7 @@ public class CmsApplicationController extends CyPaginationController<CmsApplicat
@Operation(summary = "删除报名表", description = "删除报名表") @Operation(summary = "删除报名表", description = "删除报名表")
@Parameters({@Parameter(name = "businessId", description = "businessId", required = true)}) @Parameters({@Parameter(name = "businessId", description = "businessId", required = true)})
@DeleteMapping("/delete/{businessId:\\w+}") @DeleteMapping("/delete/{businessId:\\w+}")
public CyResult delete(@PathVariable Integer businessId, @RequestBody CmsApplication cmsApplication) { public CyResult delete(@PathVariable Integer businessId, @RequestBody CmsApplication cmsApplication) {
cmsApplication.setBusinessId(businessId); cmsApplication.setBusinessId(businessId);
CyPersistModel data = cmsApplicationServiceImpl.remove(cmsApplication); CyPersistModel data = cmsApplicationServiceImpl.remove(cmsApplication);
return CyResultGenUtil.builder(data, return CyResultGenUtil.builder(data,
......
...@@ -285,6 +285,10 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm ...@@ -285,6 +285,10 @@ public class OpmArticleServiceImpl extends ServiceImpl<OpmArticleRepository, Opm
List<ArticleCommentVO> comment = baseMapper.selectArticleCommentCount(article); List<ArticleCommentVO> comment = baseMapper.selectArticleCommentCount(article);
//修改动态 //修改动态
article.setCommentCount(comment.size());//修改评论数 article.setCommentCount(comment.size());//修改评论数
//驳回原因
if (opmArticle.getRemarks()!= null){
article.setRemarks(opmArticle.getRemarks());
}
int line = baseMapper.updateById(article); int line = baseMapper.updateById(article);
//修改动态所有评论审核状态 //修改动态所有评论审核状态
//修改子表的评论数 给父级评论数+1 //修改子表的评论数 给父级评论数+1
......
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