package com.community.huiju;

import com.community.commom.uuid.IdGen;
import com.community.huiju.dao.TaUserMapper;
import com.community.huiju.dao.ToCommunitiesMapper;
import com.community.huiju.dao.TpTicketMapper;
import com.community.huiju.model.TaUser;
import com.community.huiju.model.ToCommunities;
import com.community.huiju.model.TpTicket;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest
public class DemoApplicationTests {


	@Autowired
	private TaUserMapper mapper;

	@Autowired
	private TpTicketMapper tpTicketMapper;

	@Autowired
	private ToCommunitiesMapper toCommunitiesMapper;

	@Test
	public void contextLoads() {

//		List<ToCommunities> list = toCommunitiesMapper.selectByCommunityName("小区");
//		System.out.println(list);

//		TpTicket tpTicket = tpTicketMapper.selectByPrimaryKey(1);
//		System.out.println(tpTicket);

//		TaUser user = mapper.selectByPrimaryKey(1);
//		System.out.println(user);

//		IdGen idGen = IdGen.get();
//		long lo = 454545454;
//		int in =  454545454;
//		System.out.println(Long.valueOf(idGen.nextId()).intValue());

	}

}
