2019第一个博客

2019第一个博客
cccccccc
jhjchjhdsjfajdjjdahkj

@PiccTransactional
public Map<String,Object> dealAnnuityPay(AnnuityPay annuityPay,HttpServletRequest request) throws SystemException {
LoginUser sessionUser = WebUtils.getBaseLoginUser(request);//当前登录用户
Map<String,Object> resultMap=new HashMap<>();
if(annuityPay==null){
resultMap.put(“isCheckFile”,false);
resultMap.put(“errorContent”,“传值为空!”);
resultMap.put(“allSucess”,false);
throw new SystemException(“传值为空!”);
}
//判断缴费申请是增加还是修改
String applyCode;
boolean isAddFlag=false;
if (!StringUtils.isBlank(annuityPay.getApplyCode())){
//如果是修改,根据申请编号更新申请数据
applyCode=annuityPay.getApplyCode();
}else {
//如果是新增,生成统一申请编号
applyCode = AcceptApplyType.JFSQ.getCode() + DateUtils.getDateTimeStr()+ DataUtils.getRandomNumber(4);
isAddFlag=true;
}
//0 校验文件信息
ResponseInfo fileCheckResult;
try{
resultMap=annuityFileCheckCommonUtils.checkInformation(annuityPay.getApplyAndFileList(),AcceptApplyType.JFSQ.getCode(),annuityPay,isAddFlag);
if (!(boolean)resultMap.get(“isSuccess”)) {
logger.error(“文件校验失败!”,resultMap);
resultMap.put(“allSucess”,false);
return resultMap;
}
}catch (Exception e){
logger.error("文件校验失败 ",e);
resultMap.put(“isCheckFile”,false);
resultMap.put(“errorContent”,e.getMessage());
resultMap.put(“allSucess”,false);
throw new SystemException(“文件校验失败!”);
}
//1 保存上传文件数据信息
ResponseInfo resultResponseInfo;
if(!isAddFlag){
//修改
resultResponseInfo=annuitySaveFileCommonUtils.saveFileMessage(false,annuityPay.getApplyAndFileList(),applyCode,sessionUser.getAccountHolderCode());
if (StringUtils.equals(resultResponseInfo.getCallFlag(), CallFlagEnum.FAILED.value())) {
logger.error(“保存文件”,resultResponseInfo.getErrorContent());
resultMap.put(“isCheckFile”,false);
resultMap.put(“errorContent”,resultResponseInfo.getErrorContent());
resultMap.put(“allSucess”,false);
throw new SystemException(resultResponseInfo.getErrorContent());
}
}else{

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值