| | |
| | | import java.util.Optional;
|
| | | import java.util.Set;
|
| | |
|
| | | import static com.moral.common.bean.Constants.IS_DELETE_FALSE;
|
| | | import static com.moral.common.bean.Constants.IS_DELETE_TRUE;
|
| | | import static com.moral.common.util.ResourceUtil.getValue;
|
| | | import static org.apache.commons.lang3.StringUtils.isNumeric;
|
| | | import static org.springframework.util.ObjectUtils.isEmpty;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.apache.commons.lang3.StringUtils;
|
| | |
| | |
|
| | | import tk.mybatis.mapper.entity.Example;
|
| | | import tk.mybatis.mapper.entity.Example.Criteria;
|
| | |
|
| | | import static com.moral.common.bean.Constants.IS_DELETE_FALSE;
|
| | | import static com.moral.common.bean.Constants.IS_DELETE_TRUE;
|
| | | import static com.moral.common.util.ResourceUtil.getValue;
|
| | | import static org.apache.commons.lang3.StringUtils.isNumeric;
|
| | | import static org.springframework.util.ObjectUtils.isEmpty;
|
| | |
|
| | | @Service
|
| | | public class AccountServiceImpl implements AccountService {
|
| | |
| | | @Override
|
| | | public Map<String, Object> getMenuListsByAccountName(String accountName) {
|
| | | List<Menu> menuList = accountMapper.getParentMenuListsByAccountName(accountName);
|
| | | Integer organizationId = accountMapper.getByAccountName(accountName).getOrganizationId();
|
| | | Map<String, Object> organizationMap = new LinkedHashMap<>();
|
| | | organizationMap.put("organizationId",organizationId);
|
| | | String email = accountMapper.getEmailByAccountName(accountName);
|
| | | Map<String, Object> mapList = new LinkedHashMap<>();
|
| | | Map<String, Object> appMap = new LinkedHashMap<>();
|
| | | appMap.put("name", "七星瓢虫环境监测");
|
| | | appMap.put("description", "七星瓢虫环境监测后台配置中心");
|
| | | mapList.put("app", appMap);
|
| | | mapList.put("organization", organizationMap);
|
| | | Map<String, Object> userMap = new LinkedHashMap<>();
|
| | | userMap.put("name", accountName);
|
| | | userMap.put("avatar", "./assets/img/zorro.svg");
|