提交 c70f2654 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 a19bd6b0
......@@ -131,10 +131,14 @@ public class VideoLibrarySerivceImpl extends BaseServiceImpl<VideoLibrary,String
if(!videoLibrary.getSalesType().equals(form.getSalesType())) {
videoLibrary.setCourseId(null);
mapper.updateByPrimaryKey(videoLibrary);
//删除推荐位资源
}
}
if(form.getSalesType() != null && entity.getSalesType() == 2){
VideoLibrary videoLibrary = mapper.selectByPrimaryKey(entity.getId());
if(!videoLibrary.getSalesType().equals(form.getSalesType())) {
Example example1 = new Example(RecommendResource.class);
example1.createCriteria().andEqualTo("resId", form.getId());
recommendResourceMapper.deleteByExample(example);
recommendResourceMapper.deleteByExample(example1);
}
}
entity.setUpdateTime(new Date());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论