Lius
2024-08-22 f59452ac384766a21500857e89928a8abc0e75b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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();
    }
}