|
|
@ -39,11 +39,9 @@ import com.epmet.constant.UserAdviceConstant; |
|
|
|
import com.epmet.dao.UserAdviceDao; |
|
|
|
import com.epmet.dto.CustomerAgencyDTO; |
|
|
|
import com.epmet.dto.CustomerDTO; |
|
|
|
import com.epmet.dto.CustomerGridDTO; |
|
|
|
import com.epmet.dto.UserAdviceDTO; |
|
|
|
import com.epmet.dto.form.AdviceListFormDTO; |
|
|
|
import com.epmet.dto.form.ReplyAdviceFormDTO; |
|
|
|
import com.epmet.dto.form.SubmitAdviceFormDTO; |
|
|
|
import com.epmet.dto.form.UserResiInfoFormDTO; |
|
|
|
import com.epmet.dto.form.*; |
|
|
|
import com.epmet.dto.result.*; |
|
|
|
import com.epmet.entity.UserAdviceEntity; |
|
|
|
import com.epmet.entity.UserAdviceImgEntity; |
|
|
@ -322,7 +320,7 @@ public class UserAdviceServiceImpl extends BaseServiceImpl<UserAdviceDao, UserAd |
|
|
|
* @param dto |
|
|
|
* @param loginUserId |
|
|
|
* @return void |
|
|
|
* @Description 居民端-回复建议 |
|
|
|
* @Description 居民端提交建议 |
|
|
|
* @Author liushaowen |
|
|
|
* @Date 2020/11/10 10:57 |
|
|
|
*/ |
|
|
@ -344,21 +342,17 @@ public class UserAdviceServiceImpl extends BaseServiceImpl<UserAdviceDao, UserAd |
|
|
|
logger.error("customerId:{},获取customerName失败",dto.getCustomerId()); |
|
|
|
} |
|
|
|
//获取gridName,agencyId
|
|
|
|
Result<GridInfoResultDTO> gridInfoResultDTOResult = govOrgOpenFeignClient.queryGridInfo(dto.getGridId()); |
|
|
|
CustomerGridFormDTO customerGridFormDTO = new CustomerGridFormDTO(); |
|
|
|
customerGridFormDTO.setGridId(dto.getGridId()); |
|
|
|
Result<CustomerGridDTO> gridInfoResultDTOResult = govOrgOpenFeignClient.getCustomerGridByGridId(customerGridFormDTO); |
|
|
|
if (gridInfoResultDTOResult.success()){ |
|
|
|
userAdviceDTO.setGridName(gridInfoResultDTOResult.getData().getGridName()); |
|
|
|
userAdviceDTO.setAgencyId(gridInfoResultDTOResult.getData().getParentAgencyId()); |
|
|
|
//获取agencyName
|
|
|
|
Result<CustomerAgencyDTO> agencyById = govOrgOpenFeignClient.getAgencyById(gridInfoResultDTOResult.getData().getParentAgencyId()); |
|
|
|
if (agencyById.success()){ |
|
|
|
userAdviceDTO.setAgencyName(agencyById.getData().getAllParentName()); |
|
|
|
userAdviceDTO.setAgencyAllParentName(agencyById.getData().getAllParentName()); |
|
|
|
userAdviceDTO.setAgencyPids(agencyById.getData().getPids()); |
|
|
|
}else { |
|
|
|
logger.error("agencyId:{},获取组织详情失败",gridInfoResultDTOResult.getData().getParentAgencyId()); |
|
|
|
} |
|
|
|
userAdviceDTO.setAgencyId(gridInfoResultDTOResult.getData().getPid()); |
|
|
|
userAdviceDTO.setAgencyPids(gridInfoResultDTOResult.getData().getPids()); |
|
|
|
userAdviceDTO.setAgencyName(gridInfoResultDTOResult.getData().getAgencyName()); |
|
|
|
userAdviceDTO.setAgencyAllParentName(gridInfoResultDTOResult.getData().getAllParentName()); |
|
|
|
}else { |
|
|
|
logger.error("gridId:{},获取网格详情失败",dto.getGridId()); |
|
|
|
logger.error("gridId:{},获取网格和所属组织详情失败",dto.getGridId()); |
|
|
|
} |
|
|
|
|
|
|
|
//获取userName,regPhone
|
|
|
|