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
package org.jeecg.modules.mdcJc.service.impl;
 
import com.baomidou.dynamic.datasource.annotation.DS;
import org.jeecg.modules.mdc.util.DateUtils;
import org.jeecg.modules.mdcJc.entity.ClassMonthlyschedule;
import org.jeecg.modules.mdcJc.entity.MdcClassMonthlyschedule;
import org.jeecg.modules.mdcJc.service.IClassMonthlyScheduleService;
import org.jeecg.modules.mdcJc.service.IMesInfoInMdcService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * @author clown
 * * @date 2024/7/15
 */
@DS("mesSoAdb")
@Service
public class MesInfoInMdcServiceImpl implements IMesInfoInMdcService {
 
    @Autowired
    private IClassMonthlyScheduleService classMonthlyScheduleService;
 
    @Override
    public List<MdcClassMonthlyschedule> mesClass() {
        String date = DateUtils.format(DateUtils.getNow(),DateUtils.STR_YEAR_MONTH);
        List<ClassMonthlyschedule> list = classMonthlyScheduleService.findListClass(date);
        List<MdcClassMonthlyschedule> mesC = new ArrayList<>();
        BeanUtils.copyProperties(list,mesC);
        return mesC;
    }
}