| | |
| | | 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.CommonConfigurationEntity;
|
| | | 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.CommonConfigurationMapper;
|
| | | 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 PlatformNoticeMapper platformNoticeMapper;
|
| | |
|
| | | private final AppVersionMapper appVersionMapper;
|
| | | |
| | | private final CommonConfigurationMapper commonConfigurationMapper;
|
| | |
|
| | | @Override
|
| | | public IPage<PlatformTradeSettingEntity> findPlatformTradeSettingInPage(
|
| | |
| | | appVersionEntitys.setAddress(appVersionEntity.getAddress());
|
| | | appVersionEntitys.setContent(appVersionEntity.getContent());
|
| | | appVersionEntitys.setType(appVersionEntity.getType());
|
| | | appVersionEntitys.setVersion(appVersionEntity.getVersion()); |
| | | appVersionEntitys.setVersion(appVersionEntity.getVersion()); |
| | | appVersionMapper.insert(appVersionEntitys);
|
| | |
|
| | | }
|
| | |
|
| | | @Override
|
| | | public IPage<CommonConfigurationEntity> findCommonConfigurationEntityInPage(
|
| | | CommonConfigurationEntity commonConfigurationEntity, QueryRequest request) {
|
| | |
|
| | | Page<CommonConfigurationEntity> page = new Page<>(request.getPageNum(), request.getPageSize());
|
| | | IPage<CommonConfigurationEntity> commonConfigurationEntitys = commonConfigurationMapper.findCommonConfigurationEntityInPage(page, commonConfigurationEntity);
|
| | | return commonConfigurationEntitys;
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public void commonConfigurationAdd(@Valid CommonConfigurationEntity commonConfigurationEntity) {
|
| | | CommonConfigurationEntity commonConfiguration = new CommonConfigurationEntity();
|
| | | String name = commonConfigurationEntity.getName();
|
| | | String type = commonConfigurationEntity.getType();
|
| | | int state = commonConfigurationEntity.getState();
|
| | | String content = commonConfigurationEntity.getContent();
|
| | | String remarks = commonConfigurationEntity.getRemarks();
|
| | | commonConfiguration.setName(name);
|
| | | commonConfiguration.setType(type);
|
| | | commonConfiguration.setState(state);
|
| | | commonConfiguration.setContent(content);
|
| | | commonConfiguration.setRemarks(remarks);
|
| | | commonConfigurationMapper.insert(commonConfiguration);
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public FebsResponse commonConfigurationDelete(@NotNull(message = "{required}") Long id) {
|
| | | commonConfigurationMapper.deleteById(id);
|
| | | return new FebsResponse().success();
|
| | | }
|
| | |
|
| | | @Override
|
| | | public CommonConfigurationEntity selectCommonConfigurationById(long id) {
|
| | | return commonConfigurationMapper.selectById(id);
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public FebsResponse commonConfigurationUpdate(@Valid CommonConfigurationEntity commonConfigurationEntity) {
|
| | | commonConfigurationMapper.updateById(commonConfigurationEntity);
|
| | | return new FebsResponse().success();
|
| | | }
|
| | |
|
| | |
|
| | | }
|