Browse Source

居民预约

master
zxc 4 years ago
parent
commit
f1333e72c7
  1. 2
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/AppointmentMiniFormDTO.java
  2. 13
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcPartyServiceCenterServiceImpl.java

2
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/AppointmentMiniFormDTO.java

@ -53,10 +53,12 @@ public class AppointmentMiniFormDTO implements Serializable {
/**
* 组织ID
*/
@NotBlank(message = "orgId不能为空",groups = AppointmentMiniForm.class)
private String orgId;
/**
* 组织类型grid网格agency组织
*/
@NotBlank(message = "orgType不能为空",groups = AppointmentMiniForm.class)
private String orgType;
}

13
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/IcPartyServiceCenterServiceImpl.java

@ -348,19 +348,10 @@ public class IcPartyServiceCenterServiceImpl extends BaseServiceImpl<IcPartyServ
throw new RenException(EpmetErrorCode.APPOINTMENT_TIME_ERROR.getCode());
}
}
Result<RegisterRelationDTO> registerRelation = userOpenFeignClient.resiRelationInfo(tokenDto.getUserId());
if (!registerRelation.success()){
throw new EpmetException(String.format("查询居民{%s}信息失败",tokenDto.getUserId()));
}
IcMatterAppointmentRecordEntity e = ConvertUtils.sourceToTarget(formDTO, IcMatterAppointmentRecordEntity.class);
e.setCustomerId(customerId);
if (StringUtils.isNotBlank(formDTO.getOrgId())){
e.setOrgId(formDTO.getOrgId());
e.setOrgType(formDTO.getOrgType());
}else {
e.setOrgId(registerRelation.getData().getGridId());
e.setOrgType(PartyServiceCenterConstant.ORG_TYPE_GRID);
}
e.setOrgId(formDTO.getOrgId());
e.setOrgType(formDTO.getOrgType());
if (e.getOrgType().equals(PartyServiceCenterConstant.ORG_TYPE_GRID)){
GridInfoCache gridInfo = CustomerOrgRedis.getGridInfo(e.getOrgId());
if (null == gridInfo){

Loading…
Cancel
Save