Commit 06bd993a by guojuxing

json转化调整

parent 7641f3da
......@@ -275,19 +275,8 @@ public class LoginController {
ServiceResponse<ResourceGroupDataDTO> response = resourceGroupApiService.getResourceGroupByUserId(userId);
if (resource.isSuccess()) {
ResourceGroupDataDTO resourceGroupDataDTO = response.getResult();
CustomUserAreaDTO customUserAreaDTO = resourceGroupDataDTO.getCustomUserAreaDTO();
CustomUserInfo customUserInfo = new CustomUserInfo();
if (customUserAreaDTO != null) {
List<ResourceGroupCustomUserDTO> customUserList = customUserAreaDTO.getCustomUserList();
List<ResourceGroupCustomUserInfo> customUserInfoList = null;
if (CollectionUtils.isNotEmpty(customUserList)) {
customUserInfoList = EntityUtil.changeEntityListNew(ResourceGroupCustomUserInfo.class, customUserList);
customUserAreaDTO.setCustomUserList(null);
}
customUserInfo = EntityUtil.changeEntityByJSON(CustomUserInfo.class, customUserAreaDTO);
customUserInfo.setCustomUserList(customUserInfoList);
}
detail.setCustomUserInfo(customUserInfo);
detail.setCustomUserInfo(EntityUtil.changeEntityByJSON(CustomUserInfo.class, resourceGroupDataDTO.getCustomUserAreaDTO()));
detail.setStoreResourceInfo(EntityUtil.changeEntityNew(StoreResourceInfo.class, resourceGroupDataDTO.getStoreResourceDTO()));
detail.setGoodsResourceInfo(EntityUtil.changeEntityNew(GoodsResourceInfo.class, resourceGroupDataDTO.getGoodsResourceDTO()));
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment