| | |
| | | import com.dsh.other.entity.CreateHistoryDto; |
| | | import com.dsh.other.entity.GetHistoryDto; |
| | | import com.dsh.other.mapper.BannerMapper; |
| | | import com.dsh.other.model.BannerVo; |
| | | import com.dsh.other.service.IBannerService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | public List<GetHistoryDto> gethistory(Integer studentId) { |
| | | return baseMapper.getHistory(studentId); |
| | | } |
| | | |
| | | @Override |
| | | public String getFirst() { |
| | | return baseMapper.getFirst(); |
| | | } |
| | | |
| | | @Override |
| | | public List<BannerVo> list1(Integer position) { |
| | | return this.bannerMapper.list1(position); |
| | | } |
| | | |
| | | @Autowired |
| | | private BannerMapper bannerMapper; |
| | | |
| | | @Override |
| | | public int changeState(AdvertisementChangeStateDTO dto) { |
| | | List<Integer> ids = dto.getIds(); |
| | | Integer state = dto.getState(); |
| | | return bannerMapper.changeState(ids,state); |
| | | return bannerMapper.changeState(ids, state); |
| | | } |
| | | |
| | | @Override |
| | | public List<Banner> listAll(AdvertisementQuery query) { |
| | | return bannerMapper.listAll(query); |
| | | } |
| | | |
| | | |
| | | } |