|
|
@ -31,6 +31,7 @@ import com.daqing.framework.util.RedisUtil; |
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
import com.daqing.framework.utils.excel.ExcelUtil; |
|
|
|
import com.daqing.framework.utils.excel.ExcelUtil; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -86,6 +87,8 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
private DgBusinessProcessStatusMapper dgBusinessProcessStatusMapper; |
|
|
|
private DgBusinessProcessStatusMapper dgBusinessProcessStatusMapper; |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private DgApplyAmountInfoController dgApplyAmountInfoController; |
|
|
|
private DgApplyAmountInfoController dgApplyAmountInfoController; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private DgBusinessCompanyMapper dgBusinessCompanyMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public String getRoles() { |
|
|
|
public String getRoles() { |
|
|
@ -171,7 +174,7 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
} |
|
|
|
} |
|
|
|
dgApplyAmountInfo.setBusinessCode(businessCode); |
|
|
|
dgApplyAmountInfo.setBusinessCode(businessCode); |
|
|
|
|
|
|
|
|
|
|
|
dgApplyAmountInfoMapper.insert(dgApplyAmountInfo); |
|
|
|
int insert = dgApplyAmountInfoMapper.insert(dgApplyAmountInfo); |
|
|
|
|
|
|
|
|
|
|
|
//新增到业务列表
|
|
|
|
//新增到业务列表
|
|
|
|
DgApplyAmountList dgApplyAmountList = new DgApplyAmountList(); |
|
|
|
DgApplyAmountList dgApplyAmountList = new DgApplyAmountList(); |
|
|
@ -229,6 +232,12 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
dgEnclosureInfo.setInspectionPhotos(ArraysUtil.toString(businessApplication.getInspectionPhotos())); |
|
|
|
dgEnclosureInfo.setInspectionPhotos(ArraysUtil.toString(businessApplication.getInspectionPhotos())); |
|
|
|
dgEnclosureInfoMapper.insert(dgEnclosureInfo); |
|
|
|
dgEnclosureInfoMapper.insert(dgEnclosureInfo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//备份企业信息,以防企业信息改动从而影响业务信息变更
|
|
|
|
|
|
|
|
DgBusinessCompany dgBusinessCompany = new DgBusinessCompany(); |
|
|
|
|
|
|
|
BeanUtils.copyProperties(businessApplication,dgBusinessCompany); |
|
|
|
|
|
|
|
dgBusinessCompany.setBusinessId(dgApplyAmountInfo.getId()); |
|
|
|
|
|
|
|
dgBusinessCompanyMapper.insert(dgBusinessCompany); |
|
|
|
|
|
|
|
|
|
|
|
//如果审批状态为审核中,操作状态为已发起,则往担保部经理添加一条待审核的记录
|
|
|
|
//如果审批状态为审核中,操作状态为已发起,则往担保部经理添加一条待审核的记录
|
|
|
|
if(dgApplyAmountList.getStatus().equals(StatusCode.SP_IN_REVIEW) && dgApplyAmountList.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)){ |
|
|
|
if(dgApplyAmountList.getStatus().equals(StatusCode.SP_IN_REVIEW) && dgApplyAmountList.getOperatingStatus().equals(StatusCode.CZ_LAUNCH)){ |
|
|
|
DgApplyAmountList applyAmountList = new DgApplyAmountList(); |
|
|
|
DgApplyAmountList applyAmountList = new DgApplyAmountList(); |
|
|
@ -288,12 +297,16 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
} |
|
|
|
} |
|
|
|
dgApplyAmountInfo.setRemark(dgApplyAmountList.getApplyContent()); |
|
|
|
dgApplyAmountInfo.setRemark(dgApplyAmountList.getApplyContent()); |
|
|
|
|
|
|
|
|
|
|
|
DgApplyAmountInfoRequest applyAmountInfo = new DgApplyAmountInfoRequest(); |
|
|
|
/* DgApplyAmountInfoRequest applyAmountInfo = new DgApplyAmountInfoRequest(); |
|
|
|
applyAmountInfo.setCompanyId(dgApplyAmountInfo.getCompanyId()); |
|
|
|
applyAmountInfo.setCompanyId(dgApplyAmountInfo.getCompanyId()); |
|
|
|
//根据企业id查询企业详情
|
|
|
|
//根据企业id查询企业详情
|
|
|
|
ResponseResult result = crmsFeignService.queryCustomerInfoById(applyAmountInfo); |
|
|
|
ResponseResult result = crmsFeignService.queryCustomerInfoById(applyAmountInfo); |
|
|
|
|
|
|
|
|
|
|
|
LinkedHashMap linkedList = (LinkedHashMap)result.getData(); |
|
|
|
LinkedHashMap linkedList = (LinkedHashMap)result.getData();*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//根据业务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()); |
|
|
@ -342,18 +355,10 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
dgEnclosureInfo.setMeetingMinutesList((List<String>) arr1List2.get(12)); |
|
|
|
dgEnclosureInfo.setMeetingMinutesList((List<String>) arr1List2.get(12)); |
|
|
|
dgEnclosureInfo.setMarriageCopyList((List<String>) arr1List2.get(13)); |
|
|
|
dgEnclosureInfo.setMarriageCopyList((List<String>) arr1List2.get(13)); |
|
|
|
|
|
|
|
|
|
|
|
/* int page=1; |
|
|
|
|
|
|
|
int size=10; |
|
|
|
|
|
|
|
//关联人信息列表展示
|
|
|
|
|
|
|
|
ResponseResult list = crmsFeignService.companyPersonalList(page,size,dgApplyAmountInfo.getCompanyId()); |
|
|
|
|
|
|
|
LinkedHashMap personalList = (LinkedHashMap)list.getData(); |
|
|
|
|
|
|
|
System.out.println("关联人信息列表======================="+personalList);*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BusinessApplicationDetailResponse businessApplicationDetail= new BusinessApplicationDetailResponse(); |
|
|
|
BusinessApplicationDetailResponse businessApplicationDetail= new BusinessApplicationDetailResponse(); |
|
|
|
businessApplicationDetail.setDgApplyAmountInfo(dgApplyAmountInfo); |
|
|
|
businessApplicationDetail.setDgApplyAmountInfo(dgApplyAmountInfo); |
|
|
|
businessApplicationDetail.setDgEnclosureInfo(dgEnclosureInfo); |
|
|
|
businessApplicationDetail.setDgEnclosureInfo(dgEnclosureInfo); |
|
|
|
businessApplicationDetail.setLinkedHashMap(linkedList); |
|
|
|
businessApplicationDetail.setDgBusinessCompany(dgBusinessCompany); |
|
|
|
//businessApplicationDetail.setLinkedHashMap2(personalList);
|
|
|
|
|
|
|
|
return businessApplicationDetail; |
|
|
|
return businessApplicationDetail; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -453,6 +458,13 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl<DgApplyAmountInfoM |
|
|
|
//根据业务id删除对应的附件信息
|
|
|
|
//根据业务id删除对应的附件信息
|
|
|
|
dgEnclosureInfoMapper.delete(new QueryWrapper<DgEnclosureInfo>().eq("business_id",businessApplication.getBusinessId())); |
|
|
|
dgEnclosureInfoMapper.delete(new QueryWrapper<DgEnclosureInfo>().eq("business_id",businessApplication.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//修改备份企业信息
|
|
|
|
|
|
|
|
DgBusinessCompany dgBusinessCompany = new DgBusinessCompany(); |
|
|
|
|
|
|
|
BeanUtils.copyProperties(businessApplication,dgBusinessCompany); |
|
|
|
|
|
|
|
System.out.println("dgBusinessCompany============="+dgBusinessCompany); |
|
|
|
|
|
|
|
dgBusinessCompanyMapper.update(dgBusinessCompany,new QueryWrapper<DgBusinessCompany>() |
|
|
|
|
|
|
|
.eq("business_id",businessApplication.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|
String departmentId = OrdinaryUtil.getDepartmentId(Integer.parseInt(this.getUserId())); |
|
|
|