|
@ -8,10 +8,7 @@ import com.epmet.commons.tools.exception.EpmetException; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
import com.epmet.dao.CustomerGridDao; |
|
|
import com.epmet.dao.*; |
|
|
import com.epmet.dao.CustomerGridManageUserDao; |
|
|
|
|
|
import com.epmet.dao.CustomerStaffAgencyDao; |
|
|
|
|
|
import com.epmet.dao.CustomerStaffGridDao; |
|
|
|
|
|
import com.epmet.dto.CustomerCommunityManageUserDTO; |
|
|
import com.epmet.dto.CustomerCommunityManageUserDTO; |
|
|
import com.epmet.dto.CustomerGridManageUserDTO; |
|
|
import com.epmet.dto.CustomerGridManageUserDTO; |
|
|
import com.epmet.dto.CustomerStaffAgencyDTO; |
|
|
import com.epmet.dto.CustomerStaffAgencyDTO; |
|
@ -19,6 +16,7 @@ import com.epmet.dto.form.CustomerGridManageUserListFormDTO; |
|
|
import com.epmet.dto.result.CustomerGridManageUserListDTO; |
|
|
import com.epmet.dto.result.CustomerGridManageUserListDTO; |
|
|
import com.epmet.dto.result.CustomerGridStatisticsReulstDTO; |
|
|
import com.epmet.dto.result.CustomerGridStatisticsReulstDTO; |
|
|
import com.epmet.dto.result.GridByStaffResultDTO; |
|
|
import com.epmet.dto.result.GridByStaffResultDTO; |
|
|
|
|
|
import com.epmet.entity.CustomerAgencyEntity; |
|
|
import com.epmet.entity.CustomerCommunityManageUserEntity; |
|
|
import com.epmet.entity.CustomerCommunityManageUserEntity; |
|
|
import com.epmet.entity.CustomerGridEntity; |
|
|
import com.epmet.entity.CustomerGridEntity; |
|
|
import com.epmet.entity.CustomerGridManageUserEntity; |
|
|
import com.epmet.entity.CustomerGridManageUserEntity; |
|
@ -50,6 +48,8 @@ public class CustomerGridManageUserServiceImpl extends BaseServiceImpl<CustomerG |
|
|
@Autowired |
|
|
@Autowired |
|
|
private CustomerGridDao customerGridDao; |
|
|
private CustomerGridDao customerGridDao; |
|
|
@Autowired |
|
|
@Autowired |
|
|
|
|
|
private CustomerAgencyDao customerAgencyDao; |
|
|
|
|
|
@Autowired |
|
|
private CustomerStaffAgencyDao customerStaffAgencyDao; |
|
|
private CustomerStaffAgencyDao customerStaffAgencyDao; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
@ -78,7 +78,13 @@ public class CustomerGridManageUserServiceImpl extends BaseServiceImpl<CustomerG |
|
|
List<CustomerGridManageUserEntity> list = baseDao.selectList(lambdaQueryWrapper); |
|
|
List<CustomerGridManageUserEntity> list = baseDao.selectList(lambdaQueryWrapper); |
|
|
PageInfo<CustomerGridManageUserEntity> customerGridManageUserEntityPageInfo = new PageInfo<>(list); |
|
|
PageInfo<CustomerGridManageUserEntity> customerGridManageUserEntityPageInfo = new PageInfo<>(list); |
|
|
List<CustomerGridManageUserListDTO> result = ConvertUtils.sourceToTarget(list,CustomerGridManageUserListDTO.class); |
|
|
List<CustomerGridManageUserListDTO> result = ConvertUtils.sourceToTarget(list,CustomerGridManageUserListDTO.class); |
|
|
|
|
|
result.forEach( |
|
|
|
|
|
user->{ |
|
|
|
|
|
CustomerGridEntity grid = customerGridDao.selectById(user.getGridId()); |
|
|
|
|
|
CustomerAgencyEntity agency = customerAgencyDao.selectById(grid.getPid()); |
|
|
|
|
|
user.setAgencyName(agency.getAllParentName()+"-"+agency.getOrganizationName()+"-"+grid.getGridName()); |
|
|
|
|
|
} |
|
|
|
|
|
); |
|
|
return new PageData<>(result,customerGridManageUserEntityPageInfo.getTotal()); |
|
|
return new PageData<>(result,customerGridManageUserEntityPageInfo.getTotal()); |
|
|
} |
|
|
} |
|
|
return new PageData<>(); |
|
|
return new PageData<>(); |
|
|