| | |
| | |
|
| | | import com.moral.entity.*;
|
| | | import com.moral.mapper.DictionaryDataMapper;
|
| | |
|
| | | import org.apache.commons.lang3.StringUtils;
|
| | | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
|
| | | import org.springframework.stereotype.Service;
|
| | |
| | | result.put("accountId", account.getId());
|
| | | result.put("orgId", account.getOrganizationId());
|
| | | result.put("data", menuList);
|
| | | String regionCode = getRegionCodeByAccount(account);
|
| | | if (!ObjectUtils.isEmpty(regionCode))
|
| | | result.put("regionCode", regionCode);
|
| | | setOrgIdsByAccount(result);
|
| | | }
|
| | | }
|
| | |
| | | result.put("accountId", -1);
|
| | | } else {
|
| | | result = judgeAccountInfo(account);
|
| | | if (!result.get("accountId").equals(-1)){
|
| | | String regionCode = getRegionCodeByAccount(account);
|
| | | if(!ObjectUtils.isEmpty(regionCode))
|
| | | result.put("regionCode",regionCode);
|
| | | }
|
| | |
|
| | | }
|
| | | return result;
|
| | |
| | | return (String) regionCodeAndType.get("regionCode");
|
| | | }
|
| | |
|
| | | public static Map<String,Object> getRegionCodeAndTypeByOrg(Organization organization){
|
| | | public Map<String, Object> getRegionCodeAndTypeByOrg(Organization organization) {
|
| | | Map<String,Object> result = new HashMap<>();
|
| | | String regionCode = "";
|
| | | String regionType = "";
|