|
|
|
|
@@ -230,6 +230,9 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
|
|
|
|
|
FranchiseeDO franchiseeDO = request.toFranchiseeDO();
|
|
|
|
|
//查银行信息
|
|
|
|
|
LinePayDO linePayDO = linePayMapper.getLinePayByLineId(request.getLineId());
|
|
|
|
|
if (Objects.isNull(linePayDO)){
|
|
|
|
|
throw new ServiceException(ErrorCodeEnum.LINE_PAY_FALSE);
|
|
|
|
|
}
|
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
String dateString = sdf.format(linePayDO.getPayTime());
|
|
|
|
|
franchiseeDO.setPayDateStr(dateString);
|
|
|
|
|
@@ -238,6 +241,9 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
|
|
|
|
|
franchiseeDO.setBankSub(linePayDO.getBranchBankCode());
|
|
|
|
|
//查城市信息
|
|
|
|
|
LineInfoDO lineInfoDO = lineInfoMapper.getByLineId(request.getLineId());
|
|
|
|
|
if (Objects.isNull(lineInfoDO)){
|
|
|
|
|
throw new ServiceException(ErrorCodeEnum.LINE_ID_IS_NOT_EXIST);
|
|
|
|
|
}
|
|
|
|
|
HyOpenAreaInfoDO openAreaInfoDO = openAreaInfoMapper.selectById(lineInfoDO.getWantShopAreaId());
|
|
|
|
|
franchiseeDO.setProvinceCode(String.valueOf(openAreaInfoDO.getParentId()));
|
|
|
|
|
franchiseeDO.setCityCode(String.valueOf(openAreaInfoDO.getId()));
|
|
|
|
|
@@ -255,9 +261,9 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
|
|
|
|
|
lineInfoMapper.updateByPrimaryKeySelective(lineInfoParam);
|
|
|
|
|
}
|
|
|
|
|
if (initiatingResponse.getCode() != 0){
|
|
|
|
|
return new ResponseResult(500,initiatingResponse.getMsg(),initiatingResponse.getData());
|
|
|
|
|
return new ResponseResult(500,initiatingResponse.getMessage(),initiatingResponse.getData());
|
|
|
|
|
}else {
|
|
|
|
|
return new ResponseResult(200000,initiatingResponse.getMsg(),initiatingResponse.getData());
|
|
|
|
|
return new ResponseResult(200000,initiatingResponse.getMessage(),initiatingResponse.getData());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|