|
@@ -13,6 +13,7 @@ import com.fs.app.vo.UserPostVO;
|
|
|
import com.fs.app.vo.UserVO;
|
|
import com.fs.app.vo.UserVO;
|
|
|
import com.fs.common.annotation.RepeatSubmit;
|
|
import com.fs.common.annotation.RepeatSubmit;
|
|
|
import com.fs.common.config.FSConfig;
|
|
import com.fs.common.config.FSConfig;
|
|
|
|
|
+import com.fs.common.constant.FsConstants;
|
|
|
import com.fs.common.core.domain.R;
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.redis.RedisCache;
|
|
import com.fs.common.core.redis.RedisCache;
|
|
|
import com.fs.common.exception.ServiceException;
|
|
import com.fs.common.exception.ServiceException;
|
|
@@ -263,7 +264,13 @@ public class UserController extends AppBaseController {
|
|
|
companyUser.setCompanyName(company.getCompanyName());
|
|
companyUser.setCompanyName(company.getCompanyName());
|
|
|
// 岗位
|
|
// 岗位
|
|
|
companyUser.setPosts(postService.selectCompanyPostListByUserId(companyUser.getUserId()));
|
|
companyUser.setPosts(postService.selectCompanyPostListByUserId(companyUser.getUserId()));
|
|
|
- return R.ok().put("user", companyUser).put("balance", company.getMoney());
|
|
|
|
|
|
|
+ String companyMoneyKey = FsConstants.COMPANY_MONEY_KEY + company.getCompanyId();
|
|
|
|
|
+ String moneyStr = redisCache.getCacheObject(companyMoneyKey);
|
|
|
|
|
+ BigDecimal money = new BigDecimal(0);
|
|
|
|
|
+ if (StringUtils.isNotEmpty(moneyStr)) {
|
|
|
|
|
+ money =new BigDecimal(moneyStr);
|
|
|
|
|
+ }
|
|
|
|
|
+ return R.ok().put("user", companyUser).put("balance",money);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
return R.error("操作异常");
|
|
return R.error("操作异常");
|