|
|
@ -300,6 +300,19 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public BusinessApplicationDetailResponse businessApplicationDetail(Integer id) { |
|
|
|
public BusinessApplicationDetailResponse businessApplicationDetail(Integer id) { |
|
|
|
|
|
|
|
//根据id查询业务id
|
|
|
|
|
|
|
|
DgApplyAmountList dgApplyAmountList = dgApplyAmountListMapper.selectById(id); |
|
|
|
|
|
|
|
BusinessApplicationDetailResponse response = publicBusinessCommon(id); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//根据业务id查询备份企业信息
|
|
|
|
|
|
|
|
DgBusinessCompany dgBusinessCompany = dgBusinessCompanyMapper.selectOne(new QueryWrapper<DgBusinessCompany>() |
|
|
|
|
|
|
|
.eq("business_id", dgApplyAmountList.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
response.setDgBusinessCompany(dgBusinessCompany); |
|
|
|
|
|
|
|
return response; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public BusinessApplicationDetailResponse publicBusinessCommon(Integer id) { |
|
|
|
//根据id查询业务id
|
|
|
|
//根据id查询业务id
|
|
|
|
DgApplyAmountList dgApplyAmountList = dgApplyAmountListMapper.selectById(id); |
|
|
|
DgApplyAmountList dgApplyAmountList = dgApplyAmountListMapper.selectById(id); |
|
|
|
//根据主键id查询业务申请详细信息
|
|
|
|
//根据主键id查询业务申请详细信息
|
|
|
@ -316,10 +329,6 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
} |
|
|
|
} |
|
|
|
dgApplyAmountInfo.setRemark(dgApplyAmountList.getApplyContent()); |
|
|
|
dgApplyAmountInfo.setRemark(dgApplyAmountList.getApplyContent()); |
|
|
|
|
|
|
|
|
|
|
|
//根据业务id查询备份企业信息
|
|
|
|
|
|
|
|
DgBusinessCompany dgBusinessCompany = dgBusinessCompanyMapper.selectOne(new QueryWrapper<DgBusinessCompany>() |
|
|
|
|
|
|
|
.eq("business_id", dgApplyAmountList.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询附件详细,附件关联业务主键id
|
|
|
|
//查询附件详细,附件关联业务主键id
|
|
|
|
DgEnclosureInfoResponse dgEnclosureInfo = dgEnclosureInfoMapper.selectByCompanyId(dgApplyAmountList.getBusinessId()); |
|
|
|
DgEnclosureInfoResponse dgEnclosureInfo = dgEnclosureInfoMapper.selectByCompanyId(dgApplyAmountList.getBusinessId()); |
|
|
|
|
|
|
|
|
|
|
@ -374,10 +383,26 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
BusinessApplicationDetailResponse businessApplicationDetail= new BusinessApplicationDetailResponse(); |
|
|
|
BusinessApplicationDetailResponse businessApplicationDetail= new BusinessApplicationDetailResponse(); |
|
|
|
businessApplicationDetail.setDgApplyAmountInfo(dgApplyAmountInfo); |
|
|
|
businessApplicationDetail.setDgApplyAmountInfo(dgApplyAmountInfo); |
|
|
|
businessApplicationDetail.setDgEnclosureInfo(dgEnclosureInfo); |
|
|
|
businessApplicationDetail.setDgEnclosureInfo(dgEnclosureInfo); |
|
|
|
businessApplicationDetail.setDgBusinessCompany(dgBusinessCompany); |
|
|
|
|
|
|
|
return businessApplicationDetail; |
|
|
|
return businessApplicationDetail; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public BusinessApplicationDetailResponse xcxBusinessAppDetail(Integer id) { |
|
|
|
|
|
|
|
//根据id查询业务id
|
|
|
|
|
|
|
|
DgApplyAmountList dgApplyAmountList = dgApplyAmountListMapper.selectById(id); |
|
|
|
|
|
|
|
BusinessApplicationDetailResponse response = publicBusinessCommon(id); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DgApplyAmountInfo dgApplyAmountInfo = dgApplyAmountInfoMapper.selectById(dgApplyAmountList.getBusinessId()); |
|
|
|
|
|
|
|
DgApplyAmountInfoRequest applyAmountInfo = new DgApplyAmountInfoRequest(); |
|
|
|
|
|
|
|
applyAmountInfo.setCompanyId(dgApplyAmountInfo.getCompanyId()); |
|
|
|
|
|
|
|
//根据企业id查询企业详情
|
|
|
|
|
|
|
|
ResponseResult result = crmsFeignService.queryCustomerInfoById(applyAmountInfo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LinkedHashMap linkedList = (LinkedHashMap)result.getData(); |
|
|
|
|
|
|
|
response.setLinkedHashMap(linkedList); |
|
|
|
|
|
|
|
return response; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public int updateBusinessApplication(BusinessApplicationRequest businessApplication) { |
|
|
|
public int updateBusinessApplication(BusinessApplicationRequest businessApplication) { |
|
|
|
//根据业务id以及type查询对应的记录
|
|
|
|
//根据业务id以及type查询对应的记录
|
|
|
|