Răsfoiți Sursa

帮助不区分站点

Gaosheng 2 zile în urmă
părinte
comite
537468fd47

+ 2 - 0
xinkeaboard-server/b2b2c-web/src/main/java/com/slodon/b2b2c/model/cms/HelpArticleModel.java

@@ -64,6 +64,7 @@ public class HelpArticleModel {
         }
         StoreCmsArticle articleInsert = new StoreCmsArticle();
         PropertyUtils.copyProperties(articleInsert, articleAddDTO);
+        articleInsert.setWebSite("1");
         articleInsert.setCreateTime(new Date());
         articleInsert.setCreateId(admin.getAdminId());
         int count = helpArticleWriteMapper.insert(articleInsert);
@@ -148,6 +149,7 @@ public class HelpArticleModel {
         }
         StoreCmsArticle articleUpdate = new StoreCmsArticle();
         PropertyUtils.copyProperties(articleUpdate, articleUpdateDTO);
+        articleUpdate.setWebSite("1");
         articleUpdate.setUpdateTime(new Date());
         int count = helpArticleWriteMapper.updateByPrimaryKeySelective(articleUpdate);
         if (count == 0) {