package com.izouma.jmrh.repo;

import com.izouma.jmrh.ApplicationTests;
import com.izouma.jmrh.domain.OrgInfo;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class OrgInfoRepoTest extends ApplicationTests {
    @Autowired
    private OrgInfoRepo orgInfoRepo;

    @Test
    public void save() {
        orgInfoRepo.save(OrgInfo.builder()
                .orgName("蚂蚁集团")
                .orgType("私企")
                .industry("金融")
                .publicCompany(true)
                .address("浙江杭州")
                .addressDetail("西湖区西溪路556号蚂蚁Z空间")
                .intro("蚂蚁集团是一家旨在为世界带来普惠金融服务和数字生活新服务的创新型科技企业。")
                .logo("https://jxjmrh.oss-cn-hangzhou.aliyuncs.com/image/2021-03-04-15-32-25SYmveuGr.png")
                .license("")
                .contactName("马云")
                .contactIdNo("321321321111111111")
                .contactPhone("15888888888")
                .contactEmail("123456@alibaba.com")
                .userId(2047L)
                .build());
    }
}