| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import com.xcong.excoin.common.entity.FebsResponse;
|
| | | import com.xcong.excoin.common.entity.QueryRequest;
|
| | | import com.xcong.excoin.modules.systemSetting.entity.AppVersionEntity;
|
| | | import com.xcong.excoin.modules.systemSetting.entity.PlatformBannerEntity;
|
| | | import com.xcong.excoin.modules.systemSetting.entity.PlatformNoticeEntity;
|
| | | import com.xcong.excoin.modules.systemSetting.entity.PlatformSymbolsSkuEntity;
|
| | | import com.xcong.excoin.modules.systemSetting.entity.PlatformTradeSettingEntity;
|
| | | import com.xcong.excoin.modules.systemSetting.mapper.AppVersionMapper;
|
| | | import com.xcong.excoin.modules.systemSetting.mapper.PlatformBannerMapper;
|
| | | import com.xcong.excoin.modules.systemSetting.mapper.PlatformNoticeMapper;
|
| | | import com.xcong.excoin.modules.systemSetting.mapper.PlatformSymbolsSkuMapper;
|
| | |
| | | private final PlatformBannerMapper platformBannerMapper;
|
| | |
|
| | | private final PlatformNoticeMapper platformNoticeMapper;
|
| | | |
| | | private final AppVersionMapper appVersionMapper;
|
| | |
|
| | | @Override
|
| | | public IPage<PlatformTradeSettingEntity> findPlatformTradeSettingInPage(
|
| | |
| | | return platformNoticeEntity;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public IPage<AppVersionEntity> findAppVersionEntityInPage(AppVersionEntity appVersionEntity, QueryRequest request) {
|
| | | Page<AppVersionEntity> page = new Page<>(request.getPageNum(), request.getPageSize());
|
| | | IPage<AppVersionEntity> appVersionEntitys = appVersionMapper.findAppVersionInPage(page, appVersionEntity);
|
| | | return appVersionEntitys;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public AppVersionEntity selectAppVersionById(long id) {
|
| | | AppVersionEntity appVersionEntity = appVersionMapper.selectById(id);
|
| | | return appVersionEntity;
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public FebsResponse appVersionConfirm(@Valid AppVersionEntity appVersionEntity) {
|
| | | appVersionMapper.updateById(appVersionEntity);
|
| | | return new FebsResponse().success();
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public FebsResponse appVersionDelete(@NotNull(message = "{required}") Long id) {
|
| | | appVersionMapper.deleteById(id);
|
| | | return new FebsResponse().success();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void appVersionAdds(@Valid AppVersionEntity appVersionEntity) {
|
| | | AppVersionEntity appVersionEntitys = new AppVersionEntity();
|
| | | appVersionEntitys.setCreatetime(new Date());
|
| | | appVersionEntitys.setAddress(appVersionEntity.getAddress());
|
| | | appVersionEntitys.setContent(appVersionEntity.getContent());
|
| | | appVersionEntitys.setType(appVersionEntity.getType());
|
| | | appVersionEntitys.setVersion(appVersionEntity.getVersion()); |
| | | appVersionMapper.insert(appVersionEntitys);
|
| | | |
| | | }
|
| | |
|
| | |
|
| | | }
|