Commit d24aa6bf by 吴迪

【新增】修改bug

parent 07304175
...@@ -126,6 +126,7 @@ public class MedicalController extends AbstractController { ...@@ -126,6 +126,7 @@ public class MedicalController extends AbstractController {
QueryWrapper<MedicalEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<MedicalEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.select("top 10 id,title "); queryWrapper.select("top 10 id,title ");
queryWrapper.gt("level","0"); queryWrapper.gt("level","0");
queryWrapper.eq("status","1");
if(StringUtils.isBlank(medical.getType())) { if(StringUtils.isBlank(medical.getType())) {
return R.error("请输入分类"); return R.error("请输入分类");
} }
......
...@@ -63,6 +63,10 @@ public class NewsMovieServiceImpl extends ServiceImpl<NewsMovieDao, NewsMovieEnt ...@@ -63,6 +63,10 @@ public class NewsMovieServiceImpl extends ServiceImpl<NewsMovieDao, NewsMovieEnt
newtopicEntityVo.setUpdatedate(date); newtopicEntityVo.setUpdatedate(date);
newtopicEntityVo.setShowtime(DateUtils.format(date,DateUtils.DATE_PATTERN_1)); newtopicEntityVo.setShowtime(DateUtils.format(date,DateUtils.DATE_PATTERN_1));
newtopicEntityVo.setLasteditor(user.getUsername()); newtopicEntityVo.setLasteditor(user.getUsername());
if(StringUtils.isNotBlank(newtopicEntityVo.getPic())){
newtopicEntityVo.setLittlepic(newtopicEntityVo.getPic());
newtopicEntityVo.setBigpic(newtopicEntityVo.getPic());
}
NewsMovieEntity newsMovieEntity = new NewsMovieEntity(); NewsMovieEntity newsMovieEntity = new NewsMovieEntity();
BeanUtils.copyProperties(newtopicEntityVo,newsMovieEntity); BeanUtils.copyProperties(newtopicEntityVo,newsMovieEntity);
baseMapper.insert(newsMovieEntity); baseMapper.insert(newsMovieEntity);
......
...@@ -56,6 +56,7 @@ public class NewsMovieEntityVo implements Serializable { ...@@ -56,6 +56,7 @@ public class NewsMovieEntityVo implements Serializable {
/** /**
* $column.comments * $column.comments
*/ */
private String bigpic; private String bigpic;
/** /**
* $column.comments * $column.comments
...@@ -117,4 +118,7 @@ public class NewsMovieEntityVo implements Serializable { ...@@ -117,4 +118,7 @@ public class NewsMovieEntityVo implements Serializable {
* $column.comments * $column.comments
*/ */
private String lasteditor; private String lasteditor;
private String pic;
} }
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