package org.jeecg.modules.mdcJc; import org.jeecg.JeecgSystemApplication; import org.jeecg.modules.mdc.util.DateUtils; import org.jeecg.modules.mdcJc.service.*; 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; /** * @author clown * * @date 2024/7/16 */ @RunWith(SpringRunner.class) @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeecgSystemApplication.class) public class MesTest { @Autowired private IClassMonthlyScheduleService mesInfoInMdcService; @Autowired private IMdcClassMonthService mdcClassMonthService; @Autowired private IMdcProductMonthScheduleService mdcProductMonthScheduleService; @Autowired private IMdcProductDayScheduleService mdcProductDayScheduleService; @Autowired private IMdcOnLineQueueService mdcOnLineQueueService; @Autowired private IMdcUnderLineQueueService mdcUnderLineQueueService; @Test public void scheduleProductMonthList() { mdcProductMonthScheduleService.scheduleProductMonthList(); } @Test public void classMonthSchedule() { mdcClassMonthService.saveOrUpdateClassMonthSchedule(); } @Test public void testQuery() { String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH); mesInfoInMdcService.findListClass(date); } @Test public void scheduleProductDayList() { mdcProductDayScheduleService.scheduleProductDayList(); } @Test public void onLineQueueList() { mdcOnLineQueueService.saveOnLineQueueList(); } @Test public void underLineQueueList() { mdcUnderLineQueueService.saveUnderLineQueue(); } }