package com.jpsoft.smart; import com.jpsoft.smart.modules.base.dao.CheckNumCompanyDAO; import com.jpsoft.smart.modules.base.dao.TotalCheckCompanyDAO; import com.jpsoft.smart.modules.base.entity.CheckNumCompany; import com.jpsoft.smart.modules.base.entity.TotalCheckCompany; 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; /** * @author 墨鱼_mo * @date 2020-3-27 11:25 */ @RunWith(SpringRunner.class) @SpringBootTest public class CheckNumCompanyTest { @Autowired private CheckNumCompanyDAO checkNumCompanyDAO; @Autowired private TotalCheckCompanyDAO totalCheckCompanyDAO; @Test public void testGet(){ // CheckNumCompany checkNumCompany = checkNumCompanyDAO.get(1L); List list = checkNumCompanyDAO.findByRecordTime("2020-03-28"); System.out.println(list); } @Test public void testList(){ List list = checkNumCompanyDAO.list(); System.out.println(list); } @Test public void testGetDayCheckNum(){ Integer i = checkNumCompanyDAO.getDayCheckNum("2020-03-26"); System.out.println(i==null?0:i); } @Test public void testFindMinNormal(){ Integer i = totalCheckCompanyDAO.findMinNormalDay(); System.out.println(i); } }