|
|
@ -16,15 +16,16 @@ import com.epmet.entity.UserEntity; |
|
|
|
import com.epmet.entity.UserWechatEntity; |
|
|
|
import com.epmet.feign.GovOrgFeignClient; |
|
|
|
import com.epmet.service.UserService; |
|
|
|
import com.epmet.util.ModuleConstant; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -153,12 +154,13 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
if(StringUtils.isNotBlank(myselfMsg.getGridId())){ |
|
|
|
//registerGridName 首次注册的网格
|
|
|
|
CustomerGridFormDTO gridId = new CustomerGridFormDTO(); |
|
|
|
gridId.setGridId(myselfMsg.getGridId()); |
|
|
|
gridId.setGridId(myResiUserInfoFormDTO.getGridId()); |
|
|
|
Result<CustomerGridDTO> gridResult = govOrgFeignClient.getCustomerGridByGridId(gridId); |
|
|
|
if(gridResult.success() && null != gridResult.getData()){ |
|
|
|
result.setRegisterGridName(gridResult.getData().getGridName()); |
|
|
|
}else{ |
|
|
|
if(StringUtils.isNotBlank(gridResult.getMsg())) log.warn(gridResult.getMsg()); |
|
|
|
result.setRegisterGridName(ModuleConstant.EMPTY_STR); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|