...
|
...
|
@@ -1435,22 +1435,29 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
if (bo.getSource()==null||1 != bo.getSource()) {
|
|
|
//查询银行城市
|
|
|
AreaReqBO areaReqBO = new AreaReqBO();
|
|
|
areaReqBO.setCode(bo.getBankCityId()*100);
|
|
|
areaReqBO.setCode(bo.getBankCityId());
|
|
|
areaReqBO.setInvoker("ordersdetail");
|
|
|
logger.info("bindBankCard,bo is {},areareq is {}",bo,areaReqBO);
|
|
|
AreaRspBo area = null;
|
|
|
try {
|
|
|
area = serviceCaller.call("users.getAreaByCode", areaReqBO, AreaRspBo.class);
|
|
|
} catch (ServiceException e) {
|
|
|
logger.info("bindBankCard,bo is {},areareq is {},e is {}",bo,areaReqBO,e);
|
|
|
} catch (ServiceNotAvaibleException e) {
|
|
|
logger.info("bindBankCard,bo is {},areareq is {},e is {}",bo,areaReqBO,e);
|
|
|
} catch (ServiceNotFoundException e) {
|
|
|
logger.info("bindBankCard,bo is {},areareq is {},e is {}",bo,areaReqBO,e);
|
|
|
logger.info("bindBankCard,bo is {},getAreaByCode,area is {}",bo,JSONObject.toJSONString(area));
|
|
|
} catch (Exception e) {
|
|
|
logger.info("bindBankCard,bo is {},getAreaByCode exception,areareq is {},e is {}",bo,areaReqBO,e);
|
|
|
}
|
|
|
logger.info("bindBankCard,bo is {},area is {}",bo,JSONObject.toJSONString(area));
|
|
|
if (area != null && area.getParent() != null) {
|
|
|
if (area != null && area.getCaption() != null) {
|
|
|
insertReq.setBankCity(area.getCaption());
|
|
|
}else {
|
|
|
}/*else if (area != null && (area.getCaption()==null||area.getCaption().trim().length()<2)) {
|
|
|
areaReqBO.setCode((bo.getBankCityId()/100)*10000);
|
|
|
try {
|
|
|
area = serviceCaller.call("users.getAreaByCode", areaReqBO, AreaRspBo.class);
|
|
|
logger.info("bindBankCard,bo is {},getAreaByCode again,area is {}",bo,JSONObject.toJSONString(area));
|
|
|
} catch (Exception e) {
|
|
|
logger.info("bindBankCard,bo is {},getAreaByCode exception,areareq is {},e is {}",bo,areaReqBO,e);
|
|
|
}
|
|
|
insertReq.setBankCity(area.getCaption());
|
|
|
}*/
|
|
|
else {
|
|
|
throw new ServiceException(ServiceError.UNION_VERSION_UPGRADE_ERROR);
|
|
|
}
|
|
|
logger.info("bindBankCard,bo is {},area is {},city is {}",bo,JSONObject.toJSONString(area),insertReq.getBankCity());
|
...
|
...
|
|