|
|
@ -10,6 +10,7 @@ import com.daqing.financial.guarantee.feign.HrmsFeignService; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgApplyAmountInfoMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgApplyAmountInfoMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsAssessmentAssetsLogMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsAssessmentAssetsLogMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsInvestigationMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsInvestigationMapper; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.mapper.DgAssetsMoneyMapper; |
|
|
|
import com.daqing.financial.guarantee.model.request.ApprovalAssetsRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.ApprovalAssetsRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.AssetsRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.AssetsRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.InvestigateAssetsRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.InvestigateAssetsRequest; |
|
|
@ -17,17 +18,22 @@ import com.daqing.financial.guarantee.model.response.*; |
|
|
|
import com.daqing.financial.guarantee.service.IDgAssetsInvestigationService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgAssetsInvestigationService; |
|
|
|
import com.daqing.financial.guarantee.util.ArraysUtil; |
|
|
|
import com.daqing.financial.guarantee.util.ArraysUtil; |
|
|
|
import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; |
|
|
|
import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; |
|
|
|
|
|
|
|
import com.daqing.framework.domain.crms.response.CrmsCode; |
|
|
|
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; |
|
|
|
import com.daqing.framework.domain.guarantee.DgApplyAmountInfo; |
|
|
|
import com.daqing.framework.domain.guarantee.DgAssetsAssessmentAssetsLog; |
|
|
|
import com.daqing.framework.domain.guarantee.DgAssetsAssessmentAssetsLog; |
|
|
|
import com.daqing.framework.domain.guarantee.DgAssetsInvestigation; |
|
|
|
import com.daqing.framework.domain.guarantee.DgAssetsInvestigation; |
|
|
|
|
|
|
|
import com.daqing.framework.domain.guarantee.DgAssetsMoney; |
|
|
|
|
|
|
|
import com.daqing.framework.exception.ExceptionCast; |
|
|
|
import com.daqing.framework.model.StatusCode; |
|
|
|
import com.daqing.framework.model.StatusCode; |
|
|
|
import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
import com.daqing.framework.model.response.ResponseResult; |
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
|
|
|
|
import com.daqing.framework.utils.excel.ExcelUtil; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
import javax.annotation.Resource; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.LinkedHashMap; |
|
|
|
import java.util.LinkedHashMap; |
|
|
@ -62,6 +68,9 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private DgAssetsAssessmentAssetsLogMapper dgAssetsAssessmentAssetsLogMapper; |
|
|
|
private DgAssetsAssessmentAssetsLogMapper dgAssetsAssessmentAssetsLogMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private DgAssetsMoneyMapper dgAssetsMoneyMapper; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public PageUtils queryPage(Integer page, Integer size, String customerNumberOrName, List<String> roleIdlist, String userId, Integer status) { |
|
|
|
public PageUtils queryPage(Integer page, Integer size, String customerNumberOrName, List<String> roleIdlist, String userId, Integer status) { |
|
|
|
//分页参数
|
|
|
|
//分页参数
|
|
|
@ -128,6 +137,10 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
|
|
|
|
|
|
|
|
assetsResponse.setAssessmentList(assessmentlist);*/ |
|
|
|
assetsResponse.setAssessmentList(assessmentlist);*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DgAssetsMoney dgAssetsMoney = dgAssetsMoneyMapper.selectOne(new QueryWrapper<DgAssetsMoney>() |
|
|
|
|
|
|
|
.eq("business_id",assetsResponse.getBusinessId())); |
|
|
|
|
|
|
|
assetsResponse.setDgAssetsMoney(dgAssetsMoney); |
|
|
|
|
|
|
|
|
|
|
|
String files=assetsResponse.getFile(); |
|
|
|
String files=assetsResponse.getFile(); |
|
|
|
if(files != null){ |
|
|
|
if(files != null){ |
|
|
|
if(files.length()>0){ |
|
|
|
if(files.length()>0){ |
|
|
@ -201,6 +214,13 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
|
|
|
|
|
|
|
|
//根据业务id批量新增数据到评估价值列表
|
|
|
|
//根据业务id批量新增数据到评估价值列表
|
|
|
|
//dgAssetsAssessmentAssetsLogMapper.insertAssetsList(investigateAssetsRequest.getAssessmentList());
|
|
|
|
//dgAssetsAssessmentAssetsLogMapper.insertAssetsList(investigateAssetsRequest.getAssessmentList());
|
|
|
|
|
|
|
|
DgAssetsMoney money = new DgAssetsMoney(); |
|
|
|
|
|
|
|
money.setBusinessId(dgAssetsInvestigation.getBusinessId()); |
|
|
|
|
|
|
|
money.setHouseMoney(investigateAssetsRequest.getHouseMoney()); |
|
|
|
|
|
|
|
money.setCarMoney(investigateAssetsRequest.getCarMoney()); |
|
|
|
|
|
|
|
money.setEquipmentMoney(investigateAssetsRequest.getEquipmentMoney()); |
|
|
|
|
|
|
|
money.setOtherMoney(investigateAssetsRequest.getOtherMoney()); |
|
|
|
|
|
|
|
dgAssetsMoneyMapper.insert(money); |
|
|
|
|
|
|
|
|
|
|
|
//判断资产部调查员是否调查通过,如果通过,修改资产部经理操作状态为待处理
|
|
|
|
//判断资产部调查员是否调查通过,如果通过,修改资产部经理操作状态为待处理
|
|
|
|
if(investigateAssetsRequest.getStatus()==1){//状态为审核中
|
|
|
|
if(investigateAssetsRequest.getStatus()==1){//状态为审核中
|
|
|
@ -251,4 +271,19 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl<DgAssetsInvest |
|
|
|
|
|
|
|
|
|
|
|
return 1; |
|
|
|
return 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public Boolean excelExport(List<String> ids, HttpServletResponse response) { |
|
|
|
|
|
|
|
//根据ids查询业务申请列表信息
|
|
|
|
|
|
|
|
List<AssetsInvestigationListResponse>assetsList = this.baseMapper.selectListByIds(ids); |
|
|
|
|
|
|
|
System.out.println("applyList==========================="+assetsList); |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
ExcelUtil.writeExcelWithSheets(response, assetsList, "资产调查一览表", "assetsInvestigation", new AssetsInvestigationListResponse()) |
|
|
|
|
|
|
|
.finish(); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
ExceptionCast.cast(CrmsCode.CUSTOMER_EXPORT_EXSIT); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|