| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.core.utils.StringUtils; |
| | | import com.ruoyi.system.api.constant.ConfigEnum; |
| | | import com.ruoyi.system.api.domain.poji.config.Activeness; |
| | | import com.ruoyi.system.api.domain.vo.MgtBulletinBoardVo; |
| | |
| | | import com.ruoyi.system.domain.pojo.config.CustomConfig; |
| | | import com.ruoyi.system.domain.vo.MgtActivenessVo; |
| | | import com.ruoyi.system.domain.vo.MgtAllCustomConfigVo; |
| | | import com.ruoyi.system.domain.vo.MgtCustomConfigVo; |
| | | import com.ruoyi.system.domain.vo.MgtOperLogPageVo; |
| | | import com.ruoyi.system.mapper.config.CustomConfigMapper; |
| | | import com.ruoyi.system.service.config.ActivenessService; |
| | | import com.ruoyi.system.service.config.AdvertService; |
| | | import com.ruoyi.system.service.config.CustomConfigService; |
| | | import com.ruoyi.system.service.config.RecommendCooperationService; |
| | | import com.ruoyi.system.service.config.*; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | private RemoteActivityService remoteActivityService; |
| | | |
| | | @Resource |
| | | private StaffSuggestService staffSuggestService; |
| | | |
| | | /** |
| | | * @param key |
| | |
| | | * @return MgtCustomConfigVo |
| | | */ |
| | | @Override |
| | | public MgtCustomConfigVo getCustomConfig(MgtCustomConfigDto mgtCustomConfigDto){ |
| | | public List<String> getCustomConfig(MgtCustomConfigDto mgtCustomConfigDto){ |
| | | CustomConfig customConfig = this.getByKey(mgtCustomConfigDto.getConfigType()); |
| | | MgtCustomConfigVo mgtCustomConfigVo = new MgtCustomConfigVo(); |
| | | if(customConfig!=null){ |
| | | mgtCustomConfigVo.setCustomConfig(customConfig.getConfigValue()); |
| | | mgtCustomConfigVo.setConfigType(mgtCustomConfigDto.getConfigType()); |
| | | List<String> list = new ArrayList<>(); |
| | | if(customConfig!=null&&StringUtils.isNotBlank(customConfig.getConfigValue())){ |
| | | list = Arrays.asList(customConfig.getConfigValue().split(",")); |
| | | } |
| | | return mgtCustomConfigVo; |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | |
| | | // 获取活动信息 |
| | | MgtBulletinBoardVo mgtBulletinBoardVoActivity = remoteActivityService.boardActivityTotal().getData(); |
| | | mgtBulletinBoardVo.setActivityUserTotal(mgtBulletinBoardVoActivity.getActivityUserTotal()); |
| | | //待回复建议数量 |
| | | Integer countA = remoteMemberService.getUnReplaySuggestVo().getData(); |
| | | Integer countB = remoteShopService.getUnReplaySuggestVo().getData(); |
| | | Integer countC = staffSuggestService.getUnReplaySuggestVo(); |
| | | mgtBulletinBoardVo.setUnReplaySuggestTotal(countA+countB+countC); |
| | | // 返回 MgtBulletinBoardVo 对象 |
| | | return mgtBulletinBoardVo; |
| | | } |