diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/InvestigateGuaranteeRequest.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/InvestigateGuaranteeRequest.java index 0e48be9b..37244588 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/InvestigateGuaranteeRequest.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/request/InvestigateGuaranteeRequest.java @@ -65,5 +65,8 @@ public class InvestigateGuaranteeRequest implements Serializable { @ApiModelProperty(value = "考察照片") private String[] inspectionPhotos; + @ApiModelProperty(value = "区分保存和提交按钮") + private Integer isSaveOrCommit; + } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/MessageDetailResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/MessageDetailResponse.java index 3fd66ba2..72c162bd 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/MessageDetailResponse.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/MessageDetailResponse.java @@ -43,4 +43,7 @@ public class MessageDetailResponse implements Serializable { @ApiModelProperty(value = "信息部调查附件详细") private List messageFileList; + @ApiModelProperty(value = "信息部调查详细") + private DgMessageInvestigation dgMessageInvestigation; + } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java index 85ee23ca..a990b74a 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java @@ -227,15 +227,15 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl0){ - String a = measures.substring(1,measures.length()-1); - String arry[]=a.split(","); - List demoList = Arrays.asList(arry); - dgApplyAmountInfo.setEnGuaranteeMeasure(demoList); - System.out.println("arry==============="+demoList); + if(measures != null){ + if(measures.length()>0){ + String a = measures.substring(1,measures.length()-1); + String arry[]=a.split(","); + List demoList = Arrays.asList(arry); + dgApplyAmountInfo.setEnGuaranteeMeasure(demoList); + } } - - System.out.println("业务申请详细========="+dgApplyAmountInfo); + dgApplyAmountInfo.setRemark(dgApplyAmountList.getApplyContent()); DgApplyAmountInfoRequest applyAmountInfo = new DgApplyAmountInfoRequest(); applyAmountInfo.setCompanyId(dgApplyAmountInfo.getCompanyId()); @@ -243,7 +243,6 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl) arr1List2.get(12)); dgEnclosureInfo.setMarriageCopyList((List) arr1List2.get(13)); - System.out.println("附件详细=============="+dgEnclosureInfo); - /* int page=1; int size=10; //关联人信息列表展示 @@ -333,12 +329,21 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl() .eq("business_id", businessApplication.getBusinessId()).eq("type", 1)); - //草稿状态下,新增业务状态到业务状态表 + //草稿状态下,新增业务状态到业务状态表,同时新增一条记录到担保经理处理 if(dgApplyAmountList.getStatus().equals(StatusCode.SP_DRAFT)){ DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); processStatus.setBusinessId(businessApplication.getBusinessId());//业务id processStatus.setBusinessStatus(1);//进行中 dgBusinessProcessStatusMapper.insert(processStatus); + + DgApplyAmountList applyAmountList = new DgApplyAmountList(); + applyAmountList.setBusinessId(dgApplyAmountInfo.getId());//主键id + applyAmountList.setPresenterId(dgApplyAmountList.getPresenterId());// 提单人id + applyAmountList.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理角色id + applyAmountList.setType(2);//设置类型 + applyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//状态设置为审核中 + applyAmountList.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理 + dgApplyAmountListMapper.insert(applyAmountList); } //撤销状态下,修改业务状态 diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAssetsInvestigationServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAssetsInvestigationServiceImpl.java index 1938d0e9..c7a9e66b 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAssetsInvestigationServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgAssetsInvestigationServiceImpl.java @@ -168,16 +168,6 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl demoList = Arrays.asList(arry); assetsResponse.setFileList(demoList); - System.out.println("arry==============="+demoList); } } @@ -211,7 +200,6 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl() .eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 3)); + guaranteeAssignUser.setAmount(assignUser.getAmount()); + guaranteeAssignUser.setTerm(assignUser.getTerm()); + GuaranteeDetailResponse guaranteeDetailResponse = new GuaranteeDetailResponse(); guaranteeDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo); guaranteeDetailResponse.setDgEnclosureInfo(dgEnclosureInfo); guaranteeDetailResponse.setLinkedHashMap(linkedList); - guaranteeDetailResponse.setAssignUser(assignUser); + guaranteeDetailResponse.setAssignUser(guaranteeAssignUser); return guaranteeDetailResponse; } @@ -214,13 +217,20 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl() .eq("business_id", guaranteeAssignUser.getBusinessId())); + + DgGuaranteeAssignUser assignUser2 = new DgGuaranteeAssignUser(); + assignUser2.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理 + this.baseMapper.update(assignUser2, new QueryWrapper() + .eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type",1)); + this.baseMapper.update(assignUser2, new QueryWrapper() + .eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type",2)); } //判断A角和B角是否都调查通过,如果都审核通过,修改担保部经理操作状态为待处理 @@ -327,6 +344,10 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl().eq("business_id", guaranteeAssignUser.getBusinessId())); + dgEnclosureInfo.setOtherFile(dgEnclosureInfo1.getOtherFile());//其他附件 + //根据业务id删除对应的附件信息 dgEnclosureInfoMapper.delete(new QueryWrapper().eq("business_id", guaranteeAssignUser.getBusinessId())); //附件新增 diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgMessageInvestigationServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgMessageInvestigationServiceImpl.java index ecb6c26b..91c396c6 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgMessageInvestigationServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgMessageInvestigationServiceImpl.java @@ -232,6 +232,7 @@ public class DgMessageInvestigationServiceImpl extends ServiceImpl