瀏覽代碼

供应商修改文章bugfix

Aslee 3 年之前
父節點
當前提交
48b561993a

+ 1 - 0
src/main/java/com/caimei365/user/service/impl/ShopServiceImpl.java

@@ -481,6 +481,7 @@ public class ShopServiceImpl implements ShopService {
             articlePo.setAuditStatus(1);
             articleMapper.insertShopArticle(articlePo);
         } else {
+            articlePo.setAuditStatus(1);
             articleMapper.updateShopArticle(articlePo);
         }
         // 更新文章索引

+ 2 - 1
src/main/resources/mapper/ArticleMapper.xml

@@ -90,7 +90,8 @@
             recommendContent = #{recommendContent},
             infoContent      = #{articleContent},
             guidanceImage    = #{guidanceImage},
-            enabledStatus    = #{status}
+            enabledStatus    = #{status},
+            auditStatus      = #{auditStatus}
         where id = #{articleId}
     </update>
     <update id="updateArticleStatus">