代码优化!

This commit is contained in:
易焱 2019-08-11 21:24:32 +08:00
parent 969018bafd
commit 9a0b440ac8
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package com.cwhelp.admin.system.controller;
import com.cwhelp.admin.system.validator.UserValid;
import com.cwhelp.common.constant.AdminConst;
import com.cwhelp.common.constant.PlatformConst;
import com.cwhelp.common.enums.ResultEnum;
import com.cwhelp.common.enums.StatusEnum;
import com.cwhelp.common.exception.ResultException;
@ -109,7 +110,7 @@ public class UserController {
Long platformId = user.getBssPlatform().getId();
List<BssPlatform> list = null;
//当前账号属于财务帮 查询出所有平台
if (platformId == 1) {
if (platformId == PlatformConst.OWN_TYPE) {
list = bssPlatformService.getListByExample(Example.of(new BssPlatform(), ExampleMatcher.matching()), new Sort(Sort.Direction.DESC, "createDate"));
} else {
BssPlatform bssPlatform = new BssPlatform();

Binary file not shown.