Compare commits

...

2 Commits

Author SHA1 Message Date
d9dfac5d4c Merge branch 'master' into dev 2024-10-31 17:58:58 +08:00
833824c4a1 try catch 处理 2024-10-31 17:58:08 +08:00
2 changed files with 26 additions and 5 deletions

View File

@ -151,4 +151,29 @@ public class AppSwiperController extends BaseController
map.put("user", sysUser); map.put("user", sysUser);
return CommonResult.success(map); return CommonResult.success(map);
} }
// @GetMapping("/getJcWorkerInfo")
// public CommonResult getJcWorkerInfo()
// {
//
// LambdaQueryWrapper<PartnerWorker> queryWrapper =new LambdaQueryWrapper<>();
// SysUser user = SecurityUtils.getLoginUser().getUser();
// queryWrapper.eq(PartnerWorker::getUserId,user.getUserId());
// PartnerWorker worker = jcWorkerService.getOne(queryWrapper);
// if (ObjectUtil.isNotEmpty(worker)){
// LambdaQueryWrapper<ShopMallPartners> queryWrapper1 =new LambdaQueryWrapper<>();
// queryWrapper1.eq(ShopMallPartners::getPartnerId,worker.getPartnerId()).eq(ShopMallPartners::getType,"jc").eq(ShopMallPartners::getIsBanned,"0");
// ShopMallPartners partner = partnersService.getOne(queryWrapper1);
// if (ObjectUtil.isEmpty(partner)){
// return error("信息有误");
// }
// ajax.put("partnerInfo", partner);
// }else {
// return error("信息有误");
// }
// SysUser sysUser = userService.selectUserById(user.getUserId());
//
// ajax.put("user", sysUser);
//
// return ajax;
// }
} }

View File

@ -66,15 +66,11 @@ public class SysConfigServiceImpl implements ISysConfigService {
*/ */
@Override @Override
public String selectConfigByKey(String configKey) { public String selectConfigByKey(String configKey) {
String configValue = Convert.toStr(redisCache2.getCacheObject(getCacheKey(configKey)));
if (StringUtils.isNotEmpty(configValue)) {
return configValue;
}
SysConfig config = new SysConfig(); SysConfig config = new SysConfig();
config.setConfigKey(configKey); config.setConfigKey(configKey);
SysConfig retConfig = configMapper2.selectConfig(config); SysConfig retConfig = configMapper2.selectConfig(config);
if (StringUtils.isNotNull(retConfig)) { if (StringUtils.isNotNull(retConfig)) {
redisCache2.setCacheObject(getCacheKey(configKey), retConfig.getConfigValue());
return retConfig.getConfigValue(); return retConfig.getConfigValue();
} }
return StringUtils.EMPTY; return StringUtils.EMPTY;