| | |
| | | } |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 会员提现申请,审批结果 |
| | | /// </summary> |
| | | /// <param name="data"></param> |
| | | /// <returns></returns> |
| | | public IActionResult GetCustomerWithdrawal(string OrderNo) |
| | | { |
| | | ReturnMsg<AdmCustomerWithdrawalDTO> returnMsg = new ReturnMsg<AdmCustomerWithdrawalDTO>(); |
| | | returnMsg.code = 2; |
| | | try |
| | | { |
| | | //验证数据完整性 |
| | | if (string.IsNullOrWhiteSpace(OrderNo)) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有订单号!"; |
| | | returnMsg.count = 0; |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | |
| | | |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | |
| | | var customerWithdrawalDTO = _askService.GetCustomerWithdrawalList(OrderNo).FirstOrDefault(); |
| | | |
| | | |
| | | //验证是否重复发起 |
| | | if (customerWithdrawalDTO == null) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有查找到审批流程!"; |
| | | returnMsg.count = 0; |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | |
| | | |
| | | |
| | | var sysCodeDtls = _liaotianService.GetSYScode("wf_run_process", "shenpi_status"); |
| | | var sysCodeDtl = sysCodeDtls.Where(x => x.CodeSn == customerWithdrawalDTO.ShenpiStatus).FirstOrDefault(); |
| | | if (sysCodeDtl != null) |
| | | { |
| | | customerWithdrawalDTO.ShenpiStatusName = sysCodeDtl.Comments; |
| | | } |
| | | var wfRunProcessDTO = _wfRunProcessService.GetList(customerWithdrawalDTO.Id, "20").FirstOrDefault(); |
| | | |
| | | if (wfRunProcessDTO == null) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有查找到审批流程!"; |
| | | returnMsg.count = 0; |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | |
| | | var lishiyijian = _wfHistoryService.GetListshenpi(wfRunProcessDTO.Id).LastOrDefault() ; |
| | | if (lishiyijian == null) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有查找到审批流程!"; |
| | | returnMsg.count = 0; |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | customerWithdrawalDTO.Content = lishiyijian.Content; |
| | | customerWithdrawalDTO.Step = wfRunProcessDTO.Step; |
| | | |
| | | returnMsg.code = 1; |
| | | returnMsg.returnObj = customerWithdrawalDTO; |
| | | returnMsg.count = 1; |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | returnMsg.code = 2; |
| | | returnMsg.error = "没有获取到token"; |
| | | returnMsg.count = 0; |
| | | |
| | | } |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | } |
| | | } |