Commit 3dd003b2 by 吴迪

【新增】修改文件

parent fc6d07d0
......@@ -15,6 +15,7 @@ import io.office.modules.manage.vo.request.NewtopicEntityVo;
import io.office.modules.sys.controller.AbstractController;
import io.office.modules.sys.entity.SysUserEntity;
import io.swagger.models.auth.In;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -94,6 +95,10 @@ public class NewsMovieController extends AbstractController {
newsMovieEntity.setLasteditor(user.getUsername());
QueryWrapper<NewsMovieEntity> newsMovieEntityQueryWrapper = new QueryWrapper<>();
newsMovieEntityQueryWrapper.eq("id",newsMovieEntity.getId());
if(StringUtils.isNotBlank(newsMovieEntity.getPic())) {
newsMovieEntity.setLittlepic(newsMovieEntity.getPic());
newsMovieEntity.setBigpic(newsMovieEntity.getPic());
}
newsMovieService.update(newsMovieEntity,newsMovieEntityQueryWrapper);
return R.ok();
}
......
......@@ -123,4 +123,7 @@ public class NewsMovieEntity implements Serializable {
*/
private String lasteditor;
@TableField(exist = false)
private String pic;
}
......@@ -14,7 +14,7 @@ spring:
name: GS1OfficeWebSit
# 环境 dev|test|prod
profiles:
active: dev
active: test
# jackson时间格式化
jackson:
time-zone: GMT+8
......
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