From 508013985a25d0249298685066a105d741cc434e Mon Sep 17 00:00:00 2001 From: chen <1251790704@qq.com> Date: Thu, 15 Apr 2021 10:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=84=E9=80=81=E5=88=97=E8=A1=A8=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BC=82=E5=B8=B8=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DgCopyUserServiceImpl.java | 14 ++++++++++++++ .../mapper/guarantee/DgCopyUserMapper.xml | 5 +---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgCopyUserServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgCopyUserServiceImpl.java index 0e0071e9..ec1cc6be 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgCopyUserServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgCopyUserServiceImpl.java @@ -1,15 +1,18 @@ package com.daqing.financial.guarantee.service.impl; import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.daqing.financial.guarantee.feign.HrmsFeignService; import com.daqing.financial.guarantee.mapper.DgCopyUserMapper; +import com.daqing.financial.guarantee.mapper.DgPaymentConfirmationConsiderMapper; import com.daqing.financial.guarantee.model.request.CopyForMeRequest; import com.daqing.financial.guarantee.model.response.CopyForMeResponse; import com.daqing.financial.guarantee.service.IDgCopyUserService; import com.daqing.financial.guarantee.util.DateUtils; import com.daqing.financial.guarantee.util.TaskNodeUtil; import com.daqing.framework.domain.guarantee.DgCopyUser; +import com.daqing.framework.domain.guarantee.DgPaymentConfirmationConsider; import com.daqing.framework.model.response.ResponseResult; import com.daqing.framework.util.RedisUtil; import com.daqing.framework.utils.excel.EasyExcelUtil; @@ -42,6 +45,9 @@ public class DgCopyUserServiceImpl extends ServiceImpl queryCopyForMe(CopyForMeRequest copyForMeRequest) { // 时间筛选(固定时间) @@ -110,6 +116,14 @@ public class DgCopyUserServiceImpl extends ServiceImpl { + //财务确认根据业务id查询图片文件 + if ("9".equals(copyForMeResponse.getTaskNode())){ + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq("business_id",copyForMeResponse.getBusinessId()).last("limit 1"); + DgPaymentConfirmationConsider paymentConfirmationConsider = paymentConfirmationConsiderMapper.selectOne(wrapper); + String imgFile = paymentConfirmationConsider.getImgFile(); + copyForMeResponse.setImgFile(imgFile); + } //提单人为空,默认赋值客户 if (StringUtils.isEmpty(copyForMeResponse.getApplicant())){ copyForMeResponse.setApplicant("客户"); diff --git a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgCopyUserMapper.xml b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgCopyUserMapper.xml index f9fc380e..12baf2fc 100644 --- a/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgCopyUserMapper.xml +++ b/dq-financial-guarantee/src/main/resources/mapper/guarantee/DgCopyUserMapper.xml @@ -28,8 +28,6 @@ - -