技术交流服务功能添加bug修改

master
王家东 2 weeks ago
parent 26e0f596dc
commit b55040c4f9
  1. 2
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/cms/controller/CmsArticleController.java
  2. 2
      jeecg-boot/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/expproject/controller/ExpprojectController.java

@ -161,7 +161,7 @@ public class CmsArticleController extends JeecgController<CmsArticle, ICmsArticl
public Result<String> addJSJLNEW(@RequestBody CmsArticle cmsArticle) { public Result<String> addJSJLNEW(@RequestBody CmsArticle cmsArticle) {
LoginUser principal = (LoginUser) SecurityUtils.getSubject().getPrincipal(); LoginUser principal = (LoginUser) SecurityUtils.getSubject().getPrincipal();
cmsArticle.setCreateBy(principal.getUsername()); cmsArticle.setCreateBy(principal.getUsername());
CmsColumn cmsColumn = cmsColumnService.getById(cmsArticle.getColumnId()); /*CmsColumn cmsColumn = cmsColumnService.getById(cmsArticle.getColumnId());*/
/*cmsArticle.setColumnName(cmsColumn.getName());*/ /*cmsArticle.setColumnName(cmsColumn.getName());*/
// if (StringUtils.equals("1", cmsArticle.getStatus())) { // if (StringUtils.equals("1", cmsArticle.getStatus())) {
cmsArticle.setPublishTime(new Date()); cmsArticle.setPublishTime(new Date());

@ -126,7 +126,7 @@ public class ExpprojectController {
IPage<Expproject> pageList = expprojectService.page(page, queryWrapper); IPage<Expproject> pageList = expprojectService.page(page, queryWrapper);
return Result.OK(pageList); return Result.OK(pageList);
} else { } else {
return Result.error("未发现数据"); return Result.error("您还没参加项目。");
} }
} }

Loading…
Cancel
Save