xiaoyong931011
2022-07-12 19befbb8b6ba0f12f7fec0e597edd0f9bce3ec0f
src/test/java/com/xcong/farmer/cms/ArticleTest.java
New file
@@ -0,0 +1,28 @@
package com.xcong.farmer.cms;
import com.xcong.farmer.cms.modules.system.entity.ArticleEntity;
import com.xcong.farmer.cms.modules.system.mapper.ArticleMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
/**
 * @author wzy
 * @date 2022-07-11
 **/
@SpringBootTest
public class ArticleTest {
    @Autowired
    private ArticleMapper articleMapper;
    @Test
    public void articleColumnIdUpdateTest() {
        Long columnId = 83L;
        ArticleEntity article = articleMapper.selectById(88L);
        article.setBeforeColumnId(-1L);
        articleMapper.updateById(article);
    }
}