puzhibing
2023-06-13 7860e5cb6db60aeb82c640651998f8294635df5b
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
package com.dsh.guns.modular.system.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsh.course.mapper.TbBannerMapper;
import com.dsh.guns.modular.system.model.TbBanner;
import com.dsh.guns.modular.system.service.ITbBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * <p>
 * banner信息表  服务实现类
 * </p>
 *
 * @author stylefeng
 * @since 2022-06-17
 */
@Service
public class TbBannerServiceImpl extends ServiceImpl<TbBannerMapper, TbBanner> implements ITbBannerService {
 
    @Autowired
    private TbBannerMapper tbBannerMapper;
    @Override
    public List<TbBanner> selectAll(String time) {
        String s =null;
        String s1 =null;
        if(time != null &&!"".equals(time)) {
            String[] split = time.split(" - ");
            s=split[0];
            s1=split[1];
            if(s.equals(s1)){
                s=s+" 00:00:01";
                s1=s1+" 23:59:59";
            }
        }
        return tbBannerMapper.selectAll(s,s1);
 
    }
}