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 @@ - -