diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgAssetsInvestigationResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgAssetsInvestigationResponse.java index 46d4e79a..1bee3104 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgAssetsInvestigationResponse.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgAssetsInvestigationResponse.java @@ -176,4 +176,7 @@ public class DgAssetsInvestigationResponse implements Serializable { @ApiModelProperty(value = "评估价值对象") private DgAssetsMoney dgAssetsMoney; + + @ApiModelProperty(value = "资产部调查专员") + private String cName; } diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgGuaranteeAssignUserResponse.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgGuaranteeAssignUserResponse.java index 43717ad3..4112b6c4 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgGuaranteeAssignUserResponse.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/model/response/DgGuaranteeAssignUserResponse.java @@ -98,4 +98,12 @@ public class DgGuaranteeAssignUserResponse implements Serializable { @ApiModelProperty(value = "更新时间") @TableField(fill = FieldFill.INSERT_UPDATE) private Date updateTime; + /** + * A角名称 + */ + private String aName; + /** + * B角名称 + */ + private String bName; } 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 72c162bd..556103bf 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 @@ -46,4 +46,7 @@ public class MessageDetailResponse implements Serializable { @ApiModelProperty(value = "信息部调查详细") private DgMessageInvestigation dgMessageInvestigation; + @ApiModelProperty(value = "信息部调查专员") + private String CName; + } 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 4d024771..651f7b11 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 @@ -20,6 +20,7 @@ import com.daqing.financial.guarantee.util.OrdinaryUtil; import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; import com.daqing.framework.domain.crms.response.CrmsCode; import com.daqing.framework.domain.guarantee.*; +import com.daqing.framework.domain.hrms.ext.EmployeeVO; import com.daqing.framework.domain.hrms.response.HrmsCode; import com.daqing.framework.exception.ExceptionCast; import com.daqing.framework.model.StatusCode; @@ -230,6 +231,20 @@ public class DgAssetsInvestigationServiceImpl extends ServiceImpl() + .eq("business_id", assetsResponse.getBusinessId()).eq("type", 1)); + if(assetsInvestigate !=null){ + Integer empCId = assetsInvestigate.getEmpId(); + Integer arr[] = new Integer[]{ + empCId + }; + if(arr.length>0){ + ResponseResult> listResponseResult = hrmsFeignService.listEmpNameByUserId(arr); + assetsResponse.setCName(listResponseResult.getData().get(0).getName()); + } + } + AssetsDetailResponse assetsDetailResponse = new AssetsDetailResponse(); assetsDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo); assetsDetailResponse.setLinkedHashMap(linkedList); diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java index 1d10f335..8453ea63 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java @@ -22,6 +22,7 @@ import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; import com.daqing.framework.domain.crms.response.CrmsCode; import com.daqing.framework.domain.guarantee.*; import com.daqing.framework.domain.guarantee.po.DgGuaranteePO; +import com.daqing.framework.domain.hrms.ext.EmployeeVO; import com.daqing.framework.domain.hrms.response.HrmsCode; import com.daqing.framework.exception.ExceptionCast; import com.daqing.framework.model.StatusCode; @@ -192,6 +193,26 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl() + .eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 1)); + + DgGuaranteeAssignUser assignUser3 = this.baseMapper.selectOne(new QueryWrapper() + .eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 2)); + + if(assignUser2 !=null || assignUser3 != null){ + Integer empAId = assignUser2.getEmpId(); + Integer empBId = assignUser3.getEmpId(); + Integer arr[] = new Integer[]{ + empAId,empBId + }; + if(arr.length>0){ + ResponseResult> listResponseResult = hrmsFeignService.listEmpNameByUserId(arr); + assignUser.setAName(listResponseResult.getData().get(0).getName()); + assignUser.setBName(listResponseResult.getData().get(1).getName()); + } + } + GuaranteeDetailResponse guaranteeDetailResponse = new GuaranteeDetailResponse(); guaranteeDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo); guaranteeDetailResponse.setDgEnclosureInfo(dgEnclosureInfo); @@ -306,22 +327,59 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpllambdaUpdate() + .set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null + .set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_PROCESSED) + .set(DgGuaranteeAssignUser::getStatus, investigateGuaranteeRequest.getStatus()) + .eq(DgGuaranteeAssignUser::getId, investigateGuaranteeRequest.getId()) + ); }else if(investigateGuaranteeRequest.getIsSaveOrCommit() != null && investigateGuaranteeRequest.getIsSaveOrCommit()!=1){//保存 dgGuaranteeAssignUser.setStatus(guaranteeAssignUser.getStatus());//审批状态 当前是什么状态就是什么状态 dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理 - this.baseMapper.updateById(dgGuaranteeAssignUser); + //this.baseMapper.updateById(dgGuaranteeAssignUser); + //插入或更新的字段有 空字符串 或者 null + this.baseMapper.update( + null, + Wrappers.lambdaUpdate() + .set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null + .set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_ON_HAND) + .set(DgGuaranteeAssignUser::getStatus, guaranteeAssignUser.getStatus()) + .eq(DgGuaranteeAssignUser::getId, investigateGuaranteeRequest.getId()) + ); }else{ if(investigateGuaranteeRequest.getStatus().equals(StatusCode.SP_REFUSE)){//如果为拒绝,则修改所有审批状态为拒绝,同时A,B角操作状态均为已处理 dgGuaranteeAssignUser.setStatus(StatusCode.SP_REFUSE);//拒绝 this.baseMapper.update(dgGuaranteeAssignUser,new QueryWrapper() .eq("business_id",guaranteeAssignUser.getBusinessId())); dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//已处理 - this.baseMapper.update(dgGuaranteeAssignUser,new QueryWrapper() +/* this.baseMapper.update(dgGuaranteeAssignUser,new QueryWrapper() .eq("business_id",guaranteeAssignUser.getBusinessId()).eq("type",1)); this.baseMapper.update(dgGuaranteeAssignUser,new QueryWrapper() - .eq("business_id",guaranteeAssignUser.getBusinessId()).eq("type",2)); - + .eq("business_id",guaranteeAssignUser.getBusinessId()).eq("type",2));*/ + + this.baseMapper.update( + null, + Wrappers.lambdaUpdate() + .set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null + .set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_PROCESSED) + .set(DgGuaranteeAssignUser::getStatus, StatusCode.SP_REFUSE) + .eq(DgGuaranteeAssignUser::getBusinessId, guaranteeAssignUser.getBusinessId()) + .eq(DgGuaranteeAssignUser::getType, 1) + ); + + this.baseMapper.update( + null, + Wrappers.lambdaUpdate() + .set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null + .set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_PROCESSED) + .set(DgGuaranteeAssignUser::getStatus, StatusCode.SP_REFUSE) + .eq(DgGuaranteeAssignUser::getBusinessId, guaranteeAssignUser.getBusinessId()) + .eq(DgGuaranteeAssignUser::getType, 2) + ); //拒绝状态下,修改业务状态为已否决 DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); processStatus.setBusinessStatus(3);//已否决 @@ -330,7 +388,16 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpllambdaUpdate() + .set(DgGuaranteeAssignUser::getApplyContent, investigateGuaranteeRequest.getApplyContent()) //把email设置成null + .set(DgGuaranteeAssignUser::getOperatingStatus, StatusCode.CZ_PROCESSED) + .set(DgGuaranteeAssignUser::getStatus, investigateGuaranteeRequest.getStatus()) + .eq(DgGuaranteeAssignUser::getId, investigateGuaranteeRequest.getId()) + ); } } } 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 32066989..6bd3f0ed 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 @@ -23,6 +23,7 @@ import com.daqing.financial.guarantee.util.OrdinaryUtil; import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; import com.daqing.framework.domain.crms.response.CrmsCode; import com.daqing.framework.domain.guarantee.*; +import com.daqing.framework.domain.hrms.ext.EmployeeVO; import com.daqing.framework.domain.hrms.response.HrmsCode; import com.daqing.framework.exception.ExceptionCast; import com.daqing.framework.model.StatusCode; @@ -244,6 +245,19 @@ public class DgMessageInvestigationServiceImpl extends ServiceImpl) arr1List2.get(12)); dgEnclosureInfo.setMarriageCopyList((List) arr1List2.get(13)); + //查询该业务id下对应的C角 + DgMessageInvestigation messageInvestigate = this.baseMapper.selectOne(new QueryWrapper() + .eq("business_id", dgMessageInvestigation.getBusinessId()).eq("type", 1)); + if(messageInvestigate !=null){ + Integer empCId = messageInvestigate.getEmpId(); + Integer arr[] = new Integer[]{ + empCId + }; + if(arr.length>0){ + ResponseResult> listResponseResult = hrmsFeignService.listEmpNameByUserId(arr); + messageDetailResponse.setCName(listResponseResult.getData().get(0).getName()); + } + } messageDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo); messageDetailResponse.setDgEnclosureInfo(dgEnclosureInfo); diff --git a/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java b/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java index a9fc287f..b609d259 100644 --- a/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java +++ b/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/service/impl/UserLoginServiceImpl.java @@ -159,7 +159,7 @@ public class UserLoginServiceImpl extends ServiceImpl if(loginRequest.getTenDayEffective() == 1){ times = 864000; } - String token = JwtUtils.createJWT(userEntity.getId()+"",userEntity.getAccount(),"token", times); + String token = JwtUtils.createJWT(userEntity.getId()+"",name,"token", times); Token userToken = tokenService.getOne(new QueryWrapper().eq("user_id", userEntity.getId())); if(userToken != null){ //删除redis里面的token