package com.ltkj.hosp.service.impl;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ltkj.common.utils.DateUtils;
|
import com.ltkj.hosp.domain.Wxuser;
|
import com.ltkj.hosp.mapper.AbucoderWxuserMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.boot.Banner;
|
import org.springframework.stereotype.Service;
|
import com.ltkj.hosp.mapper.AppBannerMapper;
|
import com.ltkj.hosp.domain.AppBanner;
|
import com.ltkj.hosp.service.IAppBannerService;
|
|
/**
|
* 小程序主页轮播图Service业务层处理
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-01-16
|
*/
|
@Service
|
public class AppBannerServiceImpl extends ServiceImpl<AppBannerMapper, AppBanner> implements IAppBannerService {
|
@Autowired
|
private AppBannerMapper appBannerMapper;
|
|
/**
|
* 查询小程序主页轮播图
|
*
|
* @param id 小程序主页轮播图主键
|
* @return 小程序主页轮播图
|
*/
|
@Override
|
public AppBanner selectAppBannerById(Long id) {
|
return appBannerMapper.selectAppBannerById(id);
|
}
|
|
/**
|
* 查询小程序主页轮播图列表
|
*
|
* @param appBanner 小程序主页轮播图
|
* @return 小程序主页轮播图
|
*/
|
@Override
|
public List<AppBanner> selectAppBannerList(AppBanner appBanner) {
|
return appBannerMapper.selectAppBannerList(appBanner);
|
}
|
|
/**
|
* 新增小程序主页轮播图
|
*
|
* @param appBanner 小程序主页轮播图
|
* @return 结果
|
*/
|
@Override
|
public int insertAppBanner(AppBanner appBanner) {
|
appBanner.setCreateTime(DateUtils.getNowDate());
|
return appBannerMapper.insertAppBanner(appBanner);
|
}
|
|
/**
|
* 修改小程序主页轮播图
|
*
|
* @param appBanner 小程序主页轮播图
|
* @return 结果
|
*/
|
@Override
|
public int updateAppBanner(AppBanner appBanner) {
|
appBanner.setUpdateTime(DateUtils.getNowDate());
|
return appBannerMapper.updateAppBanner(appBanner);
|
}
|
|
/**
|
* 批量删除小程序主页轮播图
|
*
|
* @param ids 需要删除的小程序主页轮播图主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteAppBannerByIds(Long[] ids) {
|
return appBannerMapper.deleteAppBannerByIds(ids);
|
}
|
|
/**
|
* 删除小程序主页轮播图信息
|
*
|
* @param id 小程序主页轮播图主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteAppBannerById(Long id) {
|
return appBannerMapper.deleteAppBannerById(id);
|
}
|
}
|