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);
|
|
}
|
}
|