|
|
@ -1,15 +1,18 @@ |
|
|
|
package com.daqing.financial.guarantee.service.impl; |
|
|
|
package com.daqing.financial.guarantee.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgCopyUserMapper; |
|
|
|
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.request.CopyForMeRequest; |
|
|
|
import com.daqing.financial.guarantee.model.response.CopyForMeResponse; |
|
|
|
import com.daqing.financial.guarantee.model.response.CopyForMeResponse; |
|
|
|
import com.daqing.financial.guarantee.service.IDgCopyUserService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgCopyUserService; |
|
|
|
import com.daqing.financial.guarantee.util.DateUtils; |
|
|
|
import com.daqing.financial.guarantee.util.DateUtils; |
|
|
|
import com.daqing.financial.guarantee.util.TaskNodeUtil; |
|
|
|
import com.daqing.financial.guarantee.util.TaskNodeUtil; |
|
|
|
import com.daqing.framework.domain.guarantee.DgCopyUser; |
|
|
|
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.model.response.ResponseResult; |
|
|
|
import com.daqing.framework.util.RedisUtil; |
|
|
|
import com.daqing.framework.util.RedisUtil; |
|
|
|
import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
|
import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
@ -42,6 +45,9 @@ public class DgCopyUserServiceImpl extends ServiceImpl<DgCopyUserMapper, DgCopyU |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private HrmsFeignService hrmsFeignService; |
|
|
|
private HrmsFeignService hrmsFeignService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private DgPaymentConfirmationConsiderMapper paymentConfirmationConsiderMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<CopyForMeResponse> queryCopyForMe(CopyForMeRequest copyForMeRequest) { |
|
|
|
public List<CopyForMeResponse> queryCopyForMe(CopyForMeRequest copyForMeRequest) { |
|
|
|
// 时间筛选(固定时间)
|
|
|
|
// 时间筛选(固定时间)
|
|
|
@ -110,6 +116,14 @@ public class DgCopyUserServiceImpl extends ServiceImpl<DgCopyUserMapper, DgCopyU |
|
|
|
|
|
|
|
|
|
|
|
//转换任务节点
|
|
|
|
//转换任务节点
|
|
|
|
copyForMeResponseList.forEach(copyForMeResponse -> { |
|
|
|
copyForMeResponseList.forEach(copyForMeResponse -> { |
|
|
|
|
|
|
|
//财务确认根据业务id查询图片文件
|
|
|
|
|
|
|
|
if ("9".equals(copyForMeResponse.getTaskNode())){ |
|
|
|
|
|
|
|
QueryWrapper<DgPaymentConfirmationConsider> 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())){ |
|
|
|
if (StringUtils.isEmpty(copyForMeResponse.getApplicant())){ |
|
|
|
copyForMeResponse.setApplicant("客户"); |
|
|
|
copyForMeResponse.setApplicant("客户"); |
|
|
|