| | |
| | | import java.util.UUID;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | | import javax.transaction.Transactional;
|
| | |
|
| | | import org.springframework.cache.annotation.Cacheable;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | | import org.yeshi.utils.tencentcloud.COSManager;
|
| | |
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public int insertSelective(SwiperPicture record) throws SwiperPictureException{
|
| | | public int insertSelective(SwiperPicture record) {
|
| | | return swiperPictureMapper.insertSelective(record);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public SwiperPicture selectByPrimaryKey(Long id) throws SwiperPictureException{
|
| | | public SwiperPicture selectByPrimaryKey(Long id) {
|
| | | return swiperPictureMapper.selectByPrimaryKey(id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int updateByPrimaryKeySelective(SwiperPicture record) throws SwiperPictureException{
|
| | | public int updateByPrimaryKeySelective(SwiperPicture record) {
|
| | | return swiperPictureMapper.updateByPrimaryKeySelective(record);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int updateByPrimaryKey(SwiperPicture record) throws SwiperPictureException{
|
| | | public int updateByPrimaryKey(SwiperPicture record){
|
| | | return swiperPictureMapper.updateByPrimaryKey(record);
|
| | | }
|
| | |
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public List<SwiperPicture> getOrderByBannerID(Long bannerId, Integer type, Integer order) throws SwiperPictureException {
|
| | | public List<SwiperPicture> getOrderByBannerID(Long bannerId, Integer type, Integer order) {
|
| | | return swiperPictureMapper.getOrderByBannerID(bannerId, type, order);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | @Override
|
| | | @Cacheable(value = "bannerCache", key = "'getByBannerCard-'+#card")
|
| | | public List<SwiperPicture> getByBannerCard(String card) throws SwiperPictureException {
|
| | | public List<SwiperPicture> getByBannerCard(String card) {
|
| | | List<SwiperPicture> list = swiperPictureMapper.getByBannerCard(card);
|
| | | if (list != null && list.size() > 0) {
|
| | | for (SwiperPicture swiperPicture: list) {
|
| | |
| | |
|
| | | @Override
|
| | | @Cacheable(value = "bannerCache", key = "'getByBannerId-'+#bannerId")
|
| | | public List<SwiperPicture> getByBannerId(Long bannerId) throws SwiperPictureException {
|
| | | public List<SwiperPicture> getByBannerId(Long bannerId) {
|
| | | return swiperPictureMapper.getByBannerId(bannerId);
|
| | | }
|
| | |
|