代码优化!
This commit is contained in:
parent
969018bafd
commit
9a0b440ac8
|
|
@ -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.
Loading…
Reference in New Issue